|
|
@@ -141,6 +141,7 @@ public class FactorMatch {
|
|
|
public static boolean judgementsUnderwrite(List<PtlAgreementUndwrtRulesAttrLink> ptlAgreementCostRuleList, List<RuleAttrMappingVo> ruleAttrMappingVoList,
|
|
|
List<PtlAgreementUndwrtRulesAttr> undwrtRulesAttrList, StringBuilder logs, List<PtlAgreementUndwrtRulesDictLabal> undwrtRulesDictList) {
|
|
|
boolean useFlag = true;
|
|
|
+ boolean groupUseFlag = false;
|
|
|
for (PtlAgreementUndwrtRulesAttrLink ptlAgreementProductCostsAttrLink : ptlAgreementCostRuleList) {
|
|
|
//查找规则中的 传值属性
|
|
|
RuleAttrMappingVo ruleAttrMappingVo = ruleAttrMappingVoList.stream()
|
|
|
@@ -183,6 +184,10 @@ public class FactorMatch {
|
|
|
log.info("承保规则校验-传入值为null: attrCode={}, useFlag=false", ptlAgreementProductCostsAttrLink.getAttrCode());
|
|
|
}
|
|
|
|
|
|
+ if(useFlag){
|
|
|
+ groupUseFlag = useFlag;
|
|
|
+ }
|
|
|
+
|
|
|
if (!useFlag) {
|
|
|
log.info("承保规则校验-条件命中! attrCode={}, 传入值={}, 规则min={}, max={}, operator={}",
|
|
|
ptlAgreementProductCostsAttrLink.getAttrCode(), ruleAttrMappingVo.getValue(),
|
|
|
@@ -221,12 +226,10 @@ public class FactorMatch {
|
|
|
if (CollUtil.isNotEmpty(collect)) {
|
|
|
logs.append("<span style=\"color:red;\">规则匹配失败:" + collect.get(0).getAttrName() + "</span>\n");
|
|
|
}
|
|
|
-
|
|
|
- return false;
|
|
|
}
|
|
|
}
|
|
|
log.info("承保规则校验-所有条件均未命中, 规则组通过, useFlag={}", useFlag);
|
|
|
- return useFlag;
|
|
|
+ return groupUseFlag;
|
|
|
}
|
|
|
|
|
|
|