|
|
@@ -590,6 +590,12 @@ public class PtlTaxSourceServiceImpl extends ServiceImpl<PtlTaxSourceNewMapper,
|
|
|
|
|
|
List<KindInfoVo> kinds = quoteInfo.getKindList();
|
|
|
List<RiskInfoVo> risks = quoteInfo.getRiskList();
|
|
|
+
|
|
|
+ //检测投保商业险的情况下 kind是否为null
|
|
|
+ if(risks.stream().filter(x->x.getRiskCode().equals(InsuranceRisk.BUSINESS.getCode())).findFirst().isPresent() && kinds==null){
|
|
|
+ throw new SystemException("投保商业险的情况下 险种信息不能为空!");
|
|
|
+ }
|
|
|
+
|
|
|
//6.交强投保
|
|
|
String yqInsureFlag = !InsuranceRisk.getFlagByTRAFFIC(risks) ?"0":"1";
|
|
|
//7.车损投保
|