浏览代码

杭州第七:加入子女数量判断 **个男

zhanghang 3 年之前
父节点
当前提交
1aa1c15ad5

+ 2 - 1
kernel/src/main/java/com/lantone/qc/kernel/catalogue/hangzhoudiqi/behospitalized/BEH0058.java

@@ -59,9 +59,10 @@ public class BEH0058 extends QCCatalogue {
             String regex6 = ".*女数[\\d一两二三四五六七八九十].*";
             String regex7 = ".*[\\d一两二三四五六七八九十]个女.*";
             String regex8 = ".*[\\d一两二三四五六七八九十]个子.*";
+            String regex9 = ".*[\\d一两二三四五六七八九十]个男.*";
             boolean flag=false;
             if(maritalText.matches(regex1)||maritalText.matches(regex)||maritalText.matches(regex2)||maritalText.matches(regex3)||maritalText.matches(regex4)
-                    ||maritalText.matches(regex5)||maritalText.matches(regex6)||maritalText.matches(regex7)||maritalText.matches(regex8)){
+                    ||maritalText.matches(regex5)||maritalText.matches(regex6)||maritalText.matches(regex7)||maritalText.matches(regex8)||maritalText.matches(regex9)){
              flag=true;
             }
             regex = ".*\\d+-\\d+-\\d+-[1-9].*";