소스 검색

fix:调整报告日期识别的规则顺序

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

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

@@ -358,8 +358,6 @@ public final class ReportParseUtils {
             };
         } else if (matcher2.find()) {
             return matcher2.group();
-        } else if (matcher5.find()) {
-            return matcher5.group();
         } else if (matcher3.find()) {
             return matcher3.group(1) + "-12-31";
         } else if (matcher6.find()) {
@@ -369,6 +367,8 @@ public final class ReportParseUtils {
             String month = matcher4.group(2);
             int lastDayOfMonth = getLastDayOfMonth(Integer.parseInt(year), Integer.parseInt(month));
             return year + "-" + padZero(month) + "-" + padZero(lastDayOfMonth + "");
+        } else if (matcher5.find()) {
+            return matcher5.group();
         } else {
             return null;
         }