|
|
@@ -6,8 +6,6 @@ import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.jzg.commons.core.base.BaseController;
|
|
|
import com.jzg.commons.core.page.HttpResult;
|
|
|
-import com.jzg.commons.entity.agreement.dispatch.dto.PtlAgreementDispatchRulesAttrLink;
|
|
|
-import com.jzg.commons.entity.agreement.dispatch.vo.ValidateDispatchRuleVo;
|
|
|
import com.jzg.commons.entity.orders.po.*;
|
|
|
import com.jzg.commons.entity.po.*;
|
|
|
import com.jzg.commons.entity.quote.vo.aggregated.UnderwritingVo;
|
|
|
@@ -27,7 +25,6 @@ import lombok.extern.slf4j.Slf4j;
|
|
|
import org.aspectj.lang.JoinPoint;
|
|
|
import org.aspectj.lang.annotation.Aspect;
|
|
|
import org.aspectj.lang.annotation.Before;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.time.format.DateTimeFormatter;
|
|
|
@@ -142,7 +139,7 @@ public class AuditVerificationAspect {
|
|
|
"协议已失效,请重新报价"
|
|
|
);
|
|
|
AssertionUtils.isFail(
|
|
|
- agreementVo.getIsEnable() != null && "1".equals(agreementVo.getIsEnable().toString()),
|
|
|
+ agreementVo.getIsEnable() != null && "1".equals(agreementVo.getIsEnable()),
|
|
|
"协议已停用,请重新报价"
|
|
|
);
|
|
|
|
|
|
@@ -193,7 +190,7 @@ public class AuditVerificationAspect {
|
|
|
e);
|
|
|
throw new SystemException("承保规则校验服务暂时不可用,请稍后重试");
|
|
|
} catch (Exception e) {
|
|
|
- log.error("承保规则校验异常, {}", logs.toString(), e);
|
|
|
+ log.error("承保规则校验异常, {}", logs, e);
|
|
|
throw new SystemException("承保规则校验异常,"+e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
@@ -210,12 +207,12 @@ public class AuditVerificationAspect {
|
|
|
boolean isNewCar = false;
|
|
|
if(comparenew.getCode()== 200) {
|
|
|
// 新旧车判断
|
|
|
- isNewCar = comparenew.getData().equals("true") ? true : false;
|
|
|
+ isNewCar = comparenew.getData().equals("true");
|
|
|
}
|
|
|
List<PtlAgreementUndwrtRulesAttr> undwrtRulesAttrList = orgClient.list().getData();
|
|
|
//获取所有费用属性关联
|
|
|
List<RuleAttrMappingVo> ruleAttrMappingVoList = RuleAttrMappingVo.getRuleAttrMappingVoList(insOrdersOther,insOrdersCarInfo,
|
|
|
- riskList, insOrdersCarUserInfos, kindList, insOrdersCosts, insOrdersAccidentalDriving, isNewCar);
|
|
|
+ riskList, insOrdersCarUserInfos, kindList, insOrdersCosts, insOrdersAccidentalDriving, isNewCar, insOrders.getCompanyId());
|
|
|
|
|
|
List<PtlAgreementUndwrtRulesDictLabal> undwrtRulesDictList = ptlNewAgreementClient.getUndwrtRulesDictList();
|
|
|
|
|
|
@@ -250,7 +247,7 @@ public class AuditVerificationAspect {
|
|
|
// 有一个匹配上 或者都没匹配上 都返回true
|
|
|
boolean ruleMatched = FactorMatch.judgementsUnderwrite(ptlAgreementUndwrtRulesNews, ruleAttrMappingVoList, undwrtRulesAttrList, ruleLogs, undwrtRulesDictList);
|
|
|
|
|
|
- log.info("规则组[{}]匹配结果: ruleMatched={}, 错误日志=[{}]", groupIndex, ruleMatched, ruleLogs.toString());
|
|
|
+ log.info("规则组[{}]匹配结果: ruleMatched={}, 错误日志=[{}]", groupIndex, ruleMatched, ruleLogs);
|
|
|
|
|
|
if (ruleMatched && StringUtils.isNotBlank(ruleLogs)) {//ruleLogs 不为空 表示有一个匹配上
|
|
|
anyRuleMatched = true;
|