Browse Source

fix:修复python报告解析接口报错问题

wangzaijun 6 months ago
parent
commit
c3c69ee80a

+ 1 - 1
service-daq/src/main/java/com/simuwang/daq/components/report/parser/py/AbstractPyReportParser.java

@@ -62,7 +62,7 @@ public abstract class AbstractPyReportParser<T extends ReportData> implements Re
                 param.put("trust_name", info.getCompanyName());
                 param.put("trust_name", info.getCompanyName());
             }
             }
         }
         }
-        String body = HttpUtil.post(pyBaseUrl + api, JSONUtil.toJsonStr(params));
+        String body = HttpUtil.post(pyBaseUrl + api, JSONUtil.toJsonStr(param));
         ParseResult<T> result = PythonReportConverter.convert(JSONUtil.parseObj(body), reportType);
         ParseResult<T> result = PythonReportConverter.convert(JSONUtil.parseObj(body), reportType);
         if (result.getStatus() == null) {
         if (result.getStatus() == null) {
             throw new ReportParseException(ReportParseStatus.PARSE_FAIL, "资源文件不存在");
             throw new ReportParseException(ReportParseStatus.PARSE_FAIL, "资源文件不存在");