Преглед изворни кода

1. 泰康:解决商业险方案明细中保费金额不显示问题
2. 泰康:解决商业险中按座位数计价后计算保费不正确问题

wangrq пре 3 месеци
родитељ
комит
b2e05aff98

+ 1 - 1
tenant/insurance/quotation-taikang/src/main/java/com/jzg/quotation/taikang/crawler/build/TkCrawlerQuoteResultsBuild.java

@@ -184,7 +184,7 @@ public class TkCrawlerQuoteResultsBuild {
         Map<String, TKCiKindsVo> collect = ciKindsVo.stream().collect(Collectors.toMap(TKCiKindsVo::getKindCode, x -> x));
         kindInfoVo.forEach(kind -> {
             TKCiKindsVo itemKindListDTO = collect.get(kind.getKindCode());
-            if (Objects.nonNull(itemKindListDTO) && itemKindListDTO.getKindCode().equals(kind.getPlatformKindCode())) {
+            if (Objects.nonNull(itemKindListDTO)) {
                 kind.setPremium(itemKindListDTO.getPremium() + "");
             }
         });

+ 4 - 5
tenant/insurance/quotation-taikang/src/main/java/com/jzg/quotation/taikang/crawler/service/TKSimpleService.java

@@ -1024,7 +1024,6 @@ public class TKSimpleService {
                     tkCiKindVo.setBjSelect("0");
                     tkCiKindVo.setDeductibleAmount(BigDecimal.ZERO);
                     tkCiKindVo.setIsSelect("0");
-                    tkCiKindVo.setQuantity(0);
                     tkCiKindVo.setQuoteAmountCN("不投保");
                 })
                 .collect(Collectors.toMap(TKCiKindsVo::getKindCode, Function.identity()));
@@ -1040,13 +1039,13 @@ public class TKSimpleService {
                     tkCiKindVo.setQuoteAmount(commonBiKindInfoVo.getAmount());
                     tkCiKindVo.setQuoteAmountCN(commonBiKindInfoVo.getAmount());
 
-                    // 设置数量:优先使用 quantity,其次使用 serviceTimes
+                    if (StringUtils.isNotBlank(commonBiKindInfoVo.getUnitAmount())) {
+                        tkCiKindVo.setUnitAmount(new BigDecimal(commonBiKindInfoVo.getUnitAmount()));
+                        tkCiKindVo.setUnitAmountCN(commonBiKindInfoVo.getUnitAmount());
+                    }
                     String quantity = commonBiKindInfoVo.getQuantity();
-                    String serviceTimes = commonBiKindInfoVo.getServiceTimes();
                     if (StringUtils.isNotBlank(quantity)) {
                         tkCiKindVo.setQuantity(Integer.parseInt(quantity));
-                    } else if (StringUtils.isNotBlank(serviceTimes)) {
-                        tkCiKindVo.setQuantity(Integer.parseInt(serviceTimes));
                     }
                 });