|
|
@@ -1,5 +1,6 @@
|
|
|
package com.ydtech.modules.fee.dto.vo;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
import com.ydtech.constants.enums.InsurKind;
|
|
|
import com.ydtech.constants.enums.dict.ZmTransferType;
|
|
|
import com.ydtech.constants.enums.dict.insurance.VehicleType;
|
|
|
@@ -434,13 +435,20 @@ public class RuleAttrMappingVo {
|
|
|
ruleAttrMappingVoList.add(new RuleAttrMappingVo("TotalPayoutRate", String.valueOf(insAreaCompany.getLossRation())));
|
|
|
//太平绿黄红区
|
|
|
ruleAttrMappingVoList.add(new RuleAttrMappingVo("GreenYellowAndRedAreas", insAreaCompany.getTpColorScore()));
|
|
|
- if (insAreaCompany.getAccidentalDriving() != null) {
|
|
|
- //非车名称
|
|
|
- ruleAttrMappingVoList.add(new RuleAttrMappingVo("NonCarName", insAreaCompany.getAccidentalDriving()
|
|
|
- .getRideRiskName()));
|
|
|
- //非车份数
|
|
|
- ruleAttrMappingVoList.add(new RuleAttrMappingVo("NonCarQuantity",
|
|
|
- String.valueOf(insAreaCompany.getAccidentalDriving().getQuantity())));
|
|
|
+ if (insAreaCompany.getApiType() == 2) {
|
|
|
+ if (insAreaCompany.getAccidentInfo() != null && !insAreaCompany.getAccidentInfo().isEmpty()) {
|
|
|
+ //非车名称
|
|
|
+ ruleAttrMappingVoList.add(new RuleAttrMappingVo("NonCarName", ((JSONObject) insAreaCompany.getAccidentInfo().get(0)).getString("projectName")));
|
|
|
+ //非车份数
|
|
|
+ Integer quantity = ((JSONObject) insAreaCompany.getAccidentInfo().get(0)).getInteger("quantity");
|
|
|
+ ruleAttrMappingVoList.add(new RuleAttrMappingVo("NonCarQuantity",
|
|
|
+ String.valueOf(quantity)));
|
|
|
+ }
|
|
|
+ }else if(insAreaCompany.getApiType() == 1){
|
|
|
+ if (Objects.nonNull(insAreaCompany.getAccidentalDriving())){
|
|
|
+ ruleAttrMappingVoList.add(new RuleAttrMappingVo("NonCarName", insAreaCompany.getAccidentalDriving().getRideRiskName()));
|
|
|
+ ruleAttrMappingVoList.add(new RuleAttrMappingVo("NonCarQuantity", String.valueOf(insAreaCompany.getAccidentalDriving().getQuantity())));
|
|
|
+ }
|
|
|
}
|
|
|
//真假单交
|
|
|
ruleAttrMappingVoList.add(new RuleAttrMappingVo("IsDJQ", insAreaCompany.getIsDjq()));
|