Browse Source

修改禅道bug

hujing 5 years ago
parent
commit
0673096000

+ 9 - 0
kernel/src/main/java/com/lantone/qc/kernel/catalogue/behospitalized/BEH0414.java

@@ -28,9 +28,18 @@ public class BEH0414 extends QCCatalogue {
         String contactAddress_bh = structureMap.get("年龄");
         String contactAddress_first = firstStructMap.get(Content.age);
         if (StringUtil.isNotBlank(contactAddress_bh) && StringUtil.isNotBlank(contactAddress_first)) {
+            contactAddress_bh = removeUnit(contactAddress_bh);
+            contactAddress_first = removeUnit(contactAddress_first);
             if (!contactAddress_first.equals(contactAddress_bh)) {
                 status.set("-1");
             }
         }
     }
+
+    private String removeUnit(String str) {
+        if (str.contains("岁")) {
+            return str.replace("岁", "");
+        }
+        return str;
+    }
 }