wangzaijun 3 недель назад
Родитель
Сommit
22f66713b4

+ 2 - 2
mo-daq/src/main/java/com/smppw/modaq/application/components/OCRReportParser.java

@@ -51,11 +51,11 @@ public class OCRReportParser {
             if (StrUtil.isNotBlank(reportDate)) {
                 res.setReportDate(reportDate);
             }
-            if (StrUtil.isNotBlank(fundName)) {
+            if (StrUtil.isNotBlank(fundName) && fundName.contains("基金") && !fundName.contains("公司")) {
                 res.setFundName(fundName);
             }
             if (StrUtil.isNotBlank(fundCode)) {
-                res.setFundCode(fundCode);
+                res.setFundCode(ReportParseUtils.matchFundCode(fundCode));
             }
             if (StrUtil.isNotBlank(seals)) {
                 res.setWithSeals(true);