Răsfoiți Sursa

1.紫金财险报价
2.协议修改
3.python对接驾意险

wks 3 ani în urmă
părinte
comite
0c113aa770

+ 3 - 5
src/main/java/com/ydtech/modules/protocol/service/impl/PtlAgreementUnderwritingRulesServiceImpl.java

@@ -13,10 +13,7 @@ import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Transactional;
 import org.springframework.util.ObjectUtils;
 
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
+import java.util.*;
 
 /**
  * @author wenks
@@ -47,7 +44,8 @@ public class PtlAgreementUnderwritingRulesServiceImpl extends ServiceImpl<PtlAgr
 
             ptlAgreementUnderwritingRules.forEach(x -> {
                 Map<String, PtlFactorDto> mapPtlFactorDto = PtlAgreementCostsFactorSaveDto.toMapPtlFactorDto(x.getRulesFactor());
-                List<String> licenseNo = mapPtlFactorDto.get("LicenseNo").getParameter();
+                PtlFactorDto ptlFactorDto = mapPtlFactorDto.get("LicenseNo");
+                List<String> licenseNo = ObjectUtils.isEmpty(ptlFactorDto) ? Collections.emptyList() : ptlFactorDto.getParameter();
                 map.put(x.getAgreementId(), licenseNo);
             });
         }