소스 검색

ocr识别结果优化

wangzaijun 3 주 전
부모
커밋
22f66713b4
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      mo-daq/src/main/java/com/smppw/modaq/application/components/OCRReportParser.java

+ 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);