|
@@ -1,7 +1,6 @@
|
|
|
package com.lantone.qc.kernel.catalogue.behospitalized;
|
|
|
|
|
|
import com.lantone.qc.kernel.catalogue.QCCatalogue;
|
|
|
-import com.lantone.qc.kernel.util.CatalogueUtil;
|
|
|
import com.lantone.qc.pub.Content;
|
|
|
import com.lantone.qc.pub.model.InputInfo;
|
|
|
import com.lantone.qc.pub.model.OutputInfo;
|
|
@@ -30,7 +29,9 @@ public class BEH0416 extends QCCatalogue {
|
|
|
String contactAddress_bh = structureMap.get("职业");
|
|
|
String contactAddress_first = firstStructMap.get(Content.job);
|
|
|
if (StringUtil.isNotBlank(contactAddress_bh) && StringUtil.isNotBlank(contactAddress_first)) {
|
|
|
- if (!removeBrackets(contactAddress_first).equals(removeBrackets(contactAddress_bh))) {
|
|
|
+ contactAddress_first = removeBrackets(contactAddress_first);
|
|
|
+ contactAddress_bh = removeBrackets(contactAddress_bh);
|
|
|
+ if (!contactAddress_first.contains(contactAddress_bh) && !contactAddress_bh.contains(contactAddress_first)) {
|
|
|
status.set("-1");
|
|
|
}
|
|
|
}
|
|
@@ -40,7 +41,7 @@ public class BEH0416 extends QCCatalogue {
|
|
|
/*
|
|
|
去除括号
|
|
|
*/
|
|
|
- private String removeBrackets(String str){
|
|
|
- return str.replaceAll("[()()]","");
|
|
|
+ private String removeBrackets(String str) {
|
|
|
+ return str.replaceAll("[()()]", "");
|
|
|
}
|
|
|
}
|