Explorar o código

北仑查房记录日期取得为年月日时分秒时结构化数据插入异常

wangsy %!s(int64=4) %!d(string=hai) anos
pai
achega
f4a8681795

+ 6 - 0
trans/src/main/java/com/lantone/qc/trans/comsis/CommonAnalysisUtil.java

@@ -271,6 +271,12 @@ public class CommonAnalysisUtil {
         Matcher matcher = pattern.matcher(top);
         if (matcher.find()) {
             return matcher.group(0);
+        } else {
+            Pattern p1 = Pattern.compile("[0-9]{4}年[0-9]+月[0-9]+日[0-9]+时[0-9]+分");
+            Matcher m1 = p1.matcher(top);
+            if (m1.find()) {
+                return m1.group(0);
+            }
         }
         return null;
     }