bifrons před 2 roky
rodič
revize
a3f07dcb85

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

@@ -63,7 +63,6 @@ public class QuoteVerificationAspect {
                 List<KindInfoVo> kinds = quoteInfo.getKindList();
                 List<RiskInfoVo> risks = quoteInfo.getRiskList();
 
-                ProductsType productsType;
                 boolean haveCarDamageKind = false;//是否含车损
                 boolean haveBusiKind = false;//是否含车损外的商业险种
                 for (KindInfoVo kindInfoVo : kinds) {
@@ -87,6 +86,7 @@ public class QuoteVerificationAspect {
                 } else {
                     productid = ProductsType.PT_0330034001.getCode();//交商
                 }
+
                 String taxAgreementId = taxSourceService.getAgreementId(deptId, userId, companyId, quoteInfo.getCarInfo().getLicenseNo(), quoteInfo.getCarInfo().getEnginedesc(), productid);
                 if(!"".equals(taxAgreementId)){
                     ((BaseQuoteVo<?>) arg).setAgreementId(taxAgreementId);

+ 1 - 1
src/main/java/com/ydtech/modules/protocol/service/impl/TaxSourceServiceImpl.java

@@ -371,7 +371,7 @@ public class TaxSourceServiceImpl extends ServiceImpl<TaxSourceMapper, TaxSource
         }
 
         // 不包含险种 随机其他保险公司
-        if (taxSourceDtos != null && Objects.equals(resultId, taxSourceDtos.getAgreementId()) && taxSourceDtos.getInsuranceRepertoire().contains(productid)) {
+        if (taxSourceDtos != null && taxSourceDtos.getAgreementId().equals(resultId) && taxSourceDtos.getInsuranceRepertoire().contains(productid)) {
             resultId = taxSourceDtos.getBanishAgreementId();
         }