소스 검색

修改禅道bug

hujing 5 년 전
부모
커밋
0673096000
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      kernel/src/main/java/com/lantone/qc/kernel/catalogue/behospitalized/BEH0414.java

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