|
@@ -14,7 +14,10 @@ import lombok.NoArgsConstructor;
|
|
|
|
|
|
|
|
import java.io.Serial;
|
|
import java.io.Serial;
|
|
|
import java.io.Serializable;
|
|
import java.io.Serializable;
|
|
|
|
|
+import java.text.SimpleDateFormat;
|
|
|
|
|
+import java.util.Date;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
+import java.util.Optional;
|
|
|
import java.util.stream.Collectors;
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -76,10 +79,11 @@ public class ChengTaiPremiumcaRequest implements Serializable {
|
|
|
ChengTaiClientIdentifyResponse policyHolder, ChengTaiClientIdentifyResponse insuredPerson,
|
|
ChengTaiClientIdentifyResponse policyHolder, ChengTaiClientIdentifyResponse insuredPerson,
|
|
|
ChengTaiSaleInfoBo saleInfoBo,
|
|
ChengTaiSaleInfoBo saleInfoBo,
|
|
|
ChengTaiGetCIModelCodeResponse ciModelCode,
|
|
ChengTaiGetCIModelCodeResponse ciModelCode,
|
|
|
- CarDepreciationCalculator.DepreciationResult depreciationResult) {
|
|
|
|
|
|
|
+ CarDepreciationCalculator.DepreciationResult depreciationResult,
|
|
|
|
|
+ String name) {
|
|
|
this.combo = new ComboDTO("1");
|
|
this.combo = new ComboDTO("1");
|
|
|
// 主要信息
|
|
// 主要信息
|
|
|
- this.businessMain = new BusinessMainDTO(saleInfoBo.getSaleInfo(), "");
|
|
|
|
|
|
|
+ this.businessMain = new BusinessMainDTO(saleInfoBo.getSaleInfo(), "",name);
|
|
|
this.flag = new FlagDTO(false, false);
|
|
this.flag = new FlagDTO(false, false);
|
|
|
// 归属信息
|
|
// 归属信息
|
|
|
this.saleInfo = saleInfoBo.getSaleInfo();
|
|
this.saleInfo = saleInfoBo.getSaleInfo();
|
|
@@ -97,6 +101,7 @@ public class ChengTaiPremiumcaRequest implements Serializable {
|
|
|
this.ciContract = new CiContractDTO(quoteVo.getCiRiskInfoVo(), policyHolder);
|
|
this.ciContract = new CiContractDTO(quoteVo.getCiRiskInfoVo(), policyHolder);
|
|
|
// 商业险
|
|
// 商业险
|
|
|
// this.biContract = new BiContractDTO(quoteVo.getBiRiskInfoVo(), quoteVo.getKindInfoVo());
|
|
// this.biContract = new BiContractDTO(quoteVo.getBiRiskInfoVo(), quoteVo.getKindInfoVo());
|
|
|
|
|
+ this.submitReqBody = new SubmitReqBodyDTO();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@AllArgsConstructor
|
|
@AllArgsConstructor
|
|
@@ -220,9 +225,9 @@ public class ChengTaiPremiumcaRequest implements Serializable {
|
|
|
private String paymentmark;
|
|
private String paymentmark;
|
|
|
// end submit
|
|
// end submit
|
|
|
|
|
|
|
|
- public BusinessMainDTO(SaleInfoDTO saleInfoDTO, String planCode) {
|
|
|
|
|
- this.operatorCode = saleInfoDTO.getUserCode();
|
|
|
|
|
- this.operatorName = saleInfoDTO.getUserName();
|
|
|
|
|
|
|
+ public BusinessMainDTO(SaleInfoDTO saleInfoDTO, String planCode,String name) {
|
|
|
|
|
+ this.operatorCode = name;
|
|
|
|
|
+ this.operatorName = "太原天勤";
|
|
|
this.operateDate = TimeProcessing.nowDate();
|
|
this.operateDate = TimeProcessing.nowDate();
|
|
|
this.issueDate = TimeProcessing.nowDateTime();
|
|
this.issueDate = TimeProcessing.nowDateTime();
|
|
|
this.inputDate = this.operateDate;
|
|
this.inputDate = this.operateDate;
|
|
@@ -290,6 +295,10 @@ public class ChengTaiPremiumcaRequest implements Serializable {
|
|
|
private String userCode;
|
|
private String userCode;
|
|
|
@JsonProperty("userName")
|
|
@JsonProperty("userName")
|
|
|
private String userName;
|
|
private String userName;
|
|
|
|
|
+ @JsonProperty("riskBusinessType")
|
|
|
|
|
+ private String riskBusinessType;
|
|
|
|
|
+ @JsonProperty("riskBusinessTypeName")
|
|
|
|
|
+ private String riskBusinessTypeName;
|
|
|
|
|
|
|
|
// start submit 添加的参数
|
|
// start submit 添加的参数
|
|
|
@JsonProperty("id")
|
|
@JsonProperty("id")
|
|
@@ -458,7 +467,7 @@ public class ChengTaiPremiumcaRequest implements Serializable {
|
|
|
// end 参数
|
|
// end 参数
|
|
|
|
|
|
|
|
public PolicyCarDTO(CarInfoVo carInfoVo, CarDepreciationCalculator.DepreciationResult depreciationResult, ChengTaiFindCarModelResponse.DataDTO carModel, ChengTaiGetCIModelCodeResponse ciModelCode) {
|
|
public PolicyCarDTO(CarInfoVo carInfoVo, CarDepreciationCalculator.DepreciationResult depreciationResult, ChengTaiFindCarModelResponse.DataDTO carModel, ChengTaiGetCIModelCodeResponse ciModelCode) {
|
|
|
-
|
|
|
|
|
|
|
+ SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
this.vhlInfoType = "1";
|
|
this.vhlInfoType = "1";
|
|
|
this.plateNo = carInfoVo.getLicenseNo();
|
|
this.plateNo = carInfoVo.getLicenseNo();
|
|
|
this.vin = carInfoVo.getVinNo();
|
|
this.vin = carInfoVo.getVinNo();
|
|
@@ -475,24 +484,24 @@ public class ChengTaiPremiumcaRequest implements Serializable {
|
|
|
this.carKindName = carInfoVo.getCarKindName();
|
|
this.carKindName = carInfoVo.getCarKindName();
|
|
|
this.useNatureCode = carInfoVo.getVehicleUseCode();
|
|
this.useNatureCode = carInfoVo.getVehicleUseCode();
|
|
|
this.useNatureName = carInfoVo.getVehicleUseName();
|
|
this.useNatureName = carInfoVo.getVehicleUseName();
|
|
|
- this.attachNature = carInfoVo.getProperty();
|
|
|
|
|
|
|
+ this.attachNature = carInfoVo.getPropertyCode();
|
|
|
this.attachNatureName = carInfoVo.getPropertyName();
|
|
this.attachNatureName = carInfoVo.getPropertyName();
|
|
|
this.purchasePrice = Integer.valueOf(carModel.getPurchasepricenottax());
|
|
this.purchasePrice = Integer.valueOf(carModel.getPurchasepricenottax());
|
|
|
this.orignPurchasePrice = Integer.valueOf(carModel.getPurchasepricenottax());
|
|
this.orignPurchasePrice = Integer.valueOf(carModel.getPurchasepricenottax());
|
|
|
this.actualValue = depreciationResult.getActualValue().toString();
|
|
this.actualValue = depreciationResult.getActualValue().toString();
|
|
|
this.consultValue = depreciationResult.getActualValue().toString();
|
|
this.consultValue = depreciationResult.getActualValue().toString();
|
|
|
this.plateType = carInfoVo.getLicenseColorCode();
|
|
this.plateType = carInfoVo.getLicenseColorCode();
|
|
|
- this.plateTypeName = carInfoVo.getLicenseColorName();
|
|
|
|
|
|
|
+ this.plateTypeName = Optional.ofNullable(carInfoVo.getLicenseColorName()).orElse("小型汽车号牌");
|
|
|
this.vehicleType = carInfoVo.getCarTypeCode();
|
|
this.vehicleType = carInfoVo.getCarTypeCode();
|
|
|
- this.vehicleTypeName = carInfoVo.getCarTypeName();
|
|
|
|
|
|
|
+ this.vehicleTypeName = Optional.ofNullable(carInfoVo.getCarTypeName()).orElse("轿车");
|
|
|
this.energyTypes = carInfoVo.getEnergyTypeCode();
|
|
this.energyTypes = carInfoVo.getEnergyTypeCode();
|
|
|
- this.carCheckStatus = "";
|
|
|
|
|
- this.carCheckerName = "";
|
|
|
|
|
- this.carCheckTime = "";
|
|
|
|
|
|
|
+ this.carCheckStatus = "2";
|
|
|
|
|
+ this.carCheckerName = "李锴";
|
|
|
|
|
+ this.carCheckTime = format.format(new Date());
|
|
|
this.approvedPassengersCapacity = Integer.valueOf(carInfoVo.getSeatCount());
|
|
this.approvedPassengersCapacity = Integer.valueOf(carInfoVo.getSeatCount());
|
|
|
-// this.approvedLoad = Integer.valueOf("");
|
|
|
|
|
|
|
+ this.approvedLoad = 0;
|
|
|
this.power = carModel.getPower();
|
|
this.power = carModel.getPower();
|
|
|
- this.displacement = Integer.valueOf(carModel.getExhaustscale());
|
|
|
|
|
|
|
+ this.displacement = Integer.valueOf(carModel.getExhaustscale().replace(".0",""));
|
|
|
this.exhaustScaleUnit = "cc";
|
|
this.exhaustScaleUnit = "cc";
|
|
|
this.loanVehicleFlag = "0";
|
|
this.loanVehicleFlag = "0";
|
|
|
this.ecdemicVehicleFlag = "0";
|
|
this.ecdemicVehicleFlag = "0";
|
|
@@ -610,6 +619,17 @@ public class ChengTaiPremiumcaRequest implements Serializable {
|
|
|
@JsonProperty("comCode")
|
|
@JsonProperty("comCode")
|
|
|
private String comCode;
|
|
private String comCode;
|
|
|
|
|
|
|
|
|
|
+ @JsonProperty("relationWithCar")
|
|
|
|
|
+ private String relationWithCar;
|
|
|
|
|
+
|
|
|
|
|
+ @JsonProperty("relationWithInsured")
|
|
|
|
|
+ private String relationWithInsured;
|
|
|
|
|
+
|
|
|
|
|
+ @JsonProperty("sameType")
|
|
|
|
|
+ private String sameType;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
// start submit 添加的参数
|
|
// start submit 添加的参数
|
|
|
@JsonProperty("id")
|
|
@JsonProperty("id")
|
|
|
private String id;
|
|
private String id;
|
|
@@ -625,14 +645,14 @@ public class ChengTaiPremiumcaRequest implements Serializable {
|
|
|
this.customerId = policyHolder.getCustomerId();
|
|
this.customerId = policyHolder.getCustomerId();
|
|
|
this.name = policyHolder.getName();
|
|
this.name = policyHolder.getName();
|
|
|
this.identifyTypeCode = policyHolder.getIdentifyTypeCode();
|
|
this.identifyTypeCode = policyHolder.getIdentifyTypeCode();
|
|
|
- this.identifyTypeName = policyHolder.getIdentifyTypeName();
|
|
|
|
|
|
|
+ this.identifyTypeName = Optional.ofNullable(policyHolder.getIdentifyTypeName()).orElse("");
|
|
|
this.identifyNumber = policyHolder.getIdentifyNumber();
|
|
this.identifyNumber = policyHolder.getIdentifyNumber();
|
|
|
this.province = policyHolder.getProvince();
|
|
this.province = policyHolder.getProvince();
|
|
|
this.city = policyHolder.getCity();
|
|
this.city = policyHolder.getCity();
|
|
|
this.district = policyHolder.getDistrict();
|
|
this.district = policyHolder.getDistrict();
|
|
|
- this.provinceName = policyHolder.getProvinceName();
|
|
|
|
|
- this.cityName = policyHolder.getCityName();
|
|
|
|
|
- this.districtName = policyHolder.getDistrictName();
|
|
|
|
|
|
|
+ this.provinceName = Optional.ofNullable(policyHolder.getProvinceName()).orElse("");
|
|
|
|
|
+ this.cityName = Optional.ofNullable(policyHolder.getCityName()).orElse("");
|
|
|
|
|
+ this.districtName = Optional.ofNullable(policyHolder.getDistrictName()).orElse("");
|
|
|
this.addr = policyHolder.getAddr();
|
|
this.addr = policyHolder.getAddr();
|
|
|
this.completeAddress = policyHolder.getCompleteAddress();
|
|
this.completeAddress = policyHolder.getCompleteAddress();
|
|
|
this.mobile = policyHolder.getMobile();
|
|
this.mobile = policyHolder.getMobile();
|
|
@@ -651,7 +671,9 @@ public class ChengTaiPremiumcaRequest implements Serializable {
|
|
|
this.microBusinessesInd = policyHolder.getMicroBusinessesInd();
|
|
this.microBusinessesInd = policyHolder.getMicroBusinessesInd();
|
|
|
this.signedbyOrig = "0";
|
|
this.signedbyOrig = "0";
|
|
|
this.comCode = policyHolder.getComCode();
|
|
this.comCode = policyHolder.getComCode();
|
|
|
-
|
|
|
|
|
|
|
+ this.relationWithCar="1";
|
|
|
|
|
+ this.relationWithInsured="7";
|
|
|
|
|
+ this.sameType="1";
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -684,6 +706,9 @@ public class ChengTaiPremiumcaRequest implements Serializable {
|
|
|
@JsonProperty("longTerm")
|
|
@JsonProperty("longTerm")
|
|
|
private String longTerm;
|
|
private String longTerm;
|
|
|
|
|
|
|
|
|
|
+ @JsonProperty("sameType")
|
|
|
|
|
+ private String sameType;
|
|
|
|
|
+
|
|
|
// start submit 添加的参数
|
|
// start submit 添加的参数
|
|
|
@JsonProperty("id")
|
|
@JsonProperty("id")
|
|
|
private String id;
|
|
private String id;
|
|
@@ -697,7 +722,7 @@ public class ChengTaiPremiumcaRequest implements Serializable {
|
|
|
this.role = "3";
|
|
this.role = "3";
|
|
|
this.name = ownersInfo.getName();
|
|
this.name = ownersInfo.getName();
|
|
|
this.identifyTypeCode = ownersInfo.getIdentifyType();
|
|
this.identifyTypeCode = ownersInfo.getIdentifyType();
|
|
|
- this.identifyTypeName = ownersInfo.getIdentifyTypeName();
|
|
|
|
|
|
|
+ this.identifyTypeName = Optional.ofNullable(ownersInfo.getIdentifyTypeName()).orElse("居民身份证");
|
|
|
this.identifyNumber = ownersInfo.getIdentifyNumber();
|
|
this.identifyNumber = ownersInfo.getIdentifyNumber();
|
|
|
this.sex = ownersInfo.getGender();
|
|
this.sex = ownersInfo.getGender();
|
|
|
this.age = ownersInfo.getAge();
|
|
this.age = ownersInfo.getAge();
|
|
@@ -705,6 +730,7 @@ public class ChengTaiPremiumcaRequest implements Serializable {
|
|
|
this.identifyValidDate = ownersInfo.getIdentifyValidDate();
|
|
this.identifyValidDate = ownersInfo.getIdentifyValidDate();
|
|
|
this.identifyValidEndDate = ownersInfo.getIdentifyValidEndDate();
|
|
this.identifyValidEndDate = ownersInfo.getIdentifyValidEndDate();
|
|
|
this.longTerm = "0";
|
|
this.longTerm = "0";
|
|
|
|
|
+ this.sameType = "1";
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -1075,7 +1101,6 @@ public class ChengTaiPremiumcaRequest implements Serializable {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @NoArgsConstructor
|
|
|
|
|
@Data
|
|
@Data
|
|
|
public static class SubmitReqBodyDTO {
|
|
public static class SubmitReqBodyDTO {
|
|
|
@JsonProperty("businessType")
|
|
@JsonProperty("businessType")
|
|
@@ -1110,6 +1135,13 @@ public class ChengTaiPremiumcaRequest implements Serializable {
|
|
|
|
|
|
|
|
@JsonProperty("smscheckFlag")
|
|
@JsonProperty("smscheckFlag")
|
|
|
private String smscheckFlag;
|
|
private String smscheckFlag;
|
|
|
|
|
+
|
|
|
|
|
+ public SubmitReqBodyDTO(){
|
|
|
|
|
+ this.businessType= "PROPOSAL";
|
|
|
|
|
+ this.acciRelatedFlag= "0";
|
|
|
|
|
+ this.mandatoryReviewFlag= false;
|
|
|
|
|
+ this.reinsuranceFlag= "0";
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@NoArgsConstructor
|
|
@NoArgsConstructor
|