|
|
@@ -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);
|
|
|
});
|
|
|
}
|