Browse Source

修改协议调度

wks 1 year ago
parent
commit
3d79f1bfb7

+ 1 - 1
src/main/java/com/ydtech/modules/order/aop/aspect/QuoteVerificationAspect.java

@@ -226,7 +226,7 @@ public class QuoteVerificationAspect {
                 }
                 //默认协议走逻辑判断 且不在排除部门中走默认判断逻辑
                 if(StringUtils.isNotBlank(isTaxSource) && "1".equals(isTaxSource) && isExclude){
-                    String taxAgreementId = ptlTaxSourceNewService.getAgreementId(deptId, userId, companyId, quoteInfo,insuranceRisk.getCode(),orderno);
+                    String taxAgreementId = ptlTaxSourceNewService.getAgreementId(deptId, userId, companyId, quoteInfo, insuranceRisk.getCode(),orderno);
                     ((BaseQuoteVo<?>) arg).setAgreementId(taxAgreementId);
                     log.info("======================订单号"+orderno+"走默认协议判断逻辑!匹配协议为:"+taxAgreementId+"=======================");
                     //throw new SystemException("订单号"+orderno+"走默认协议判断逻辑!匹配协议为:"+taxAgreementId);

+ 0 - 2
src/main/java/com/ydtech/modules/protocol/service/impl/PtlTaxSourceServiceImpl.java

@@ -513,8 +513,6 @@ public class PtlTaxSourceServiceImpl extends ServiceImpl<PtlTaxSourceNewMapper,
     @Override
     public String getAgreementId(String deptId, String userId, String companyId, BaseQuoteInfoVo quoteInfo, String riskCode,String orderno) {
         //通过订单号获取报价信息 防止从redis中获取的数据不对
-        InsOrders insOrders = insOrdersService.getById(orderno);
-        quoteInfo = new BaseQuoteInfoVo(insOrders);
         List<PtlAgreementDispatchRulesAttr> dispatchRulesAttrList = ptlAgreementDispatchRulesAttrService.getDispatchRulesAttrList();
         String resultId = "";
         //查找配置的默认项,匹配不到赋值默认的协议Id