|
@@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
import com.ydtech.constants.enums.InsurKind;
|
|
import com.ydtech.constants.enums.InsurKind;
|
|
|
import com.ydtech.constants.enums.InsurKindGuoRen;
|
|
import com.ydtech.constants.enums.InsurKindGuoRen;
|
|
|
import com.ydtech.modules.ins.model.dto.CarInsDateDto;
|
|
import com.ydtech.modules.ins.model.dto.CarInsDateDto;
|
|
|
-import com.ydtech.modules.ins.model.vo.CarInfoVo;
|
|
|
|
|
|
|
+import com.ydtech.modules.ins.model.vo.CustomerInfoVo;
|
|
|
import com.ydtech.modules.ins.model.vo.KindInfoVo;
|
|
import com.ydtech.modules.ins.model.vo.KindInfoVo;
|
|
|
import com.ydtech.modules.ins.model.vo.RiskInfoVo;
|
|
import com.ydtech.modules.ins.model.vo.RiskInfoVo;
|
|
|
import com.ydtech.modules.order.entity.vo.BaseQuoteInfoVo;
|
|
import com.ydtech.modules.order.entity.vo.BaseQuoteInfoVo;
|
|
@@ -50,12 +50,7 @@ public class PremiumReq {
|
|
|
@JsonProperty(value = "uuid")
|
|
@JsonProperty(value = "uuid")
|
|
|
@JSONField(name = "uuid")
|
|
@JSONField(name = "uuid")
|
|
|
private String uuid;
|
|
private String uuid;
|
|
|
- /**
|
|
|
|
|
- * 商业险重复投保提示
|
|
|
|
|
- */
|
|
|
|
|
- @JsonProperty(value = "bireCoverMsg")
|
|
|
|
|
- @JSONField(name = "bireCoverMsg")
|
|
|
|
|
- private String bireCoverMsg;
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 构造保费计算请求参数
|
|
* 构造保费计算请求参数
|
|
@@ -65,7 +60,8 @@ public class PremiumReq {
|
|
|
*/
|
|
*/
|
|
|
@JsonIgnore
|
|
@JsonIgnore
|
|
|
public static PremiumReq buildQuoteParam(BaseQuoteInfoVo yaQuoteInfoVo, CarPriceResp.DataDTO carPriceResult, VinQueryResp.DataDTO vinQ, boolean isNoCar) {
|
|
public static PremiumReq buildQuoteParam(BaseQuoteInfoVo yaQuoteInfoVo, CarPriceResp.DataDTO carPriceResult, VinQueryResp.DataDTO vinQ, boolean isNoCar) {
|
|
|
- CarInfoVo carInfo = yaQuoteInfoVo.getCarInfo();
|
|
|
|
|
|
|
+ CustomerInfoVo ownerInfo = yaQuoteInfoVo.getOwnerInfo();
|
|
|
|
|
+
|
|
|
List<RiskInfoVo> riskList = yaQuoteInfoVo.getRiskList();
|
|
List<RiskInfoVo> riskList = yaQuoteInfoVo.getRiskList();
|
|
|
List<KindInfoVo> kindInfoVList = yaQuoteInfoVo.getKindList();
|
|
List<KindInfoVo> kindInfoVList = yaQuoteInfoVo.getKindList();
|
|
|
|
|
|
|
@@ -73,23 +69,23 @@ public class PremiumReq {
|
|
|
|
|
|
|
|
riskList.forEach(a -> {
|
|
riskList.forEach(a -> {
|
|
|
if (a.getRiskCode().equals("0507")) {
|
|
if (a.getRiskCode().equals("0507")) {
|
|
|
- CiDTO ciDto = buildCiDto(a, isNoCar);
|
|
|
|
|
|
|
+ CiDTO ciDto = buildCiDto(ownerInfo, a, isNoCar);
|
|
|
quoteReq.setCi(ciDto);
|
|
quoteReq.setCi(ciDto);
|
|
|
}
|
|
}
|
|
|
if (a.getRiskCode().equals("0510")) {
|
|
if (a.getRiskCode().equals("0510")) {
|
|
|
- BiDTO biDto = buildBiDto(a, kindInfoVList, carPriceResult, vinQ, isNoCar);
|
|
|
|
|
|
|
+ BiDTO biDto = buildBiDto(ownerInfo, a, kindInfoVList, carPriceResult, vinQ, isNoCar);
|
|
|
quoteReq.setBi(biDto);
|
|
quoteReq.setBi(biDto);
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
//未投保交强
|
|
//未投保交强
|
|
|
if (null == quoteReq.getCi()) {
|
|
if (null == quoteReq.getCi()) {
|
|
|
- CiDTO ciDto = buildCiDto(null, false);
|
|
|
|
|
|
|
+ CiDTO ciDto = buildCiDto(ownerInfo, null, false);
|
|
|
quoteReq.setCi(ciDto);
|
|
quoteReq.setCi(ciDto);
|
|
|
}
|
|
}
|
|
|
//未投保商业
|
|
//未投保商业
|
|
|
if (null == quoteReq.getBi()) {
|
|
if (null == quoteReq.getBi()) {
|
|
|
- BiDTO biDto = buildBiDto(null, null, null, null, false);
|
|
|
|
|
|
|
+ BiDTO biDto = buildBiDto(ownerInfo, null, null, null, null, false);
|
|
|
quoteReq.setBi(biDto);
|
|
quoteReq.setBi(biDto);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -109,16 +105,12 @@ public class PremiumReq {
|
|
|
* @date: 2023-08-15
|
|
* @date: 2023-08-15
|
|
|
*/
|
|
*/
|
|
|
@JsonIgnore
|
|
@JsonIgnore
|
|
|
- public static CiDTO buildCiDto(RiskInfoVo ciRiskInfo, boolean isNoCar) {
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+ public static CiDTO buildCiDto(CustomerInfoVo ownerInfo, RiskInfoVo ciRiskInfo, boolean isNoCar) {
|
|
|
CiDTO ciDto = new CiDTO();
|
|
CiDTO ciDto = new CiDTO();
|
|
|
ciDto.setPrpTrenewal(new ArrayList<>());
|
|
ciDto.setPrpTrenewal(new ArrayList<>());
|
|
|
ciDto.setPrpTmainRate(new CiDTO.PrpTmainRateDTO());
|
|
ciDto.setPrpTmainRate(new CiDTO.PrpTmainRateDTO());
|
|
|
ciDto.setCalculateFlagCI("");
|
|
ciDto.setCalculateFlagCI("");
|
|
|
ciDto.setEditType("NEW");
|
|
ciDto.setEditType("NEW");
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 主信息
|
|
* 主信息
|
|
|
*/
|
|
*/
|
|
@@ -127,39 +119,31 @@ public class PremiumReq {
|
|
|
ciPrpTmain.setSignDate(DateUtil.formatDate(new Date()));
|
|
ciPrpTmain.setSignDate(DateUtil.formatDate(new Date()));
|
|
|
ciPrpTmain.setStartHour("0");
|
|
ciPrpTmain.setStartHour("0");
|
|
|
ciPrpTmain.setEndHour("24");
|
|
ciPrpTmain.setEndHour("24");
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 险种列表
|
|
* 险种列表
|
|
|
*/
|
|
*/
|
|
|
List<CiDTO.PrptitemkindListDTO> prptitemkindList = new ArrayList<>();
|
|
List<CiDTO.PrptitemkindListDTO> prptitemkindList = new ArrayList<>();
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 车船税
|
|
* 车船税
|
|
|
*/
|
|
*/
|
|
|
CiDTO.PrpTcarshipTaxDTO prpTcarshipTax = new CiDTO.PrpTcarshipTaxDTO();
|
|
CiDTO.PrpTcarshipTaxDTO prpTcarshipTax = new CiDTO.PrpTcarshipTaxDTO();
|
|
|
prpTcarshipTax.setPaidCertificate("");
|
|
prpTcarshipTax.setPaidCertificate("");
|
|
|
-
|
|
|
|
|
//交强起保
|
|
//交强起保
|
|
|
if (null != ciRiskInfo) {
|
|
if (null != ciRiskInfo) {
|
|
|
ciDto.setCalculateFlagCI("1");
|
|
ciDto.setCalculateFlagCI("1");
|
|
|
//构造保险日期
|
|
//构造保险日期
|
|
|
CarInsDateDto cidd = InsUtils.buildCiInsDate(ciRiskInfo.getStartDate(), ciRiskInfo.getEndDate());
|
|
CarInsDateDto cidd = InsUtils.buildCiInsDate(ciRiskInfo.getStartDate(), ciRiskInfo.getEndDate());
|
|
|
ciDto.setInputRisk("1");
|
|
ciDto.setInputRisk("1");
|
|
|
-
|
|
|
|
|
ciPrpTmain.setStartDate(cidd.getStartDate());
|
|
ciPrpTmain.setStartDate(cidd.getStartDate());
|
|
|
ciPrpTmain.setEndDate(cidd.getEndDate());
|
|
ciPrpTmain.setEndDate(cidd.getEndDate());
|
|
|
-
|
|
|
|
|
//转保验证码
|
|
//转保验证码
|
|
|
ciPrpTmain.setAnswer("");
|
|
ciPrpTmain.setAnswer("");
|
|
|
-
|
|
|
|
|
//即时起保标识 immeValiFlag 字符串 N 即时起保必传1
|
|
//即时起保标识 immeValiFlag 字符串 N 即时起保必传1
|
|
|
ciPrpTmain.setImmeValiFlag(cidd.isForthwith() ? "1" : "");
|
|
ciPrpTmain.setImmeValiFlag(cidd.isForthwith() ? "1" : "");
|
|
|
//即时终保时间 immeValidEndDate 字符串 N 即时起保必传
|
|
//即时终保时间 immeValidEndDate 字符串 N 即时起保必传
|
|
|
ciPrpTmain.setImmeValidStartDate(cidd.isForthwith() ? cidd.getStartDate() : "");
|
|
ciPrpTmain.setImmeValidStartDate(cidd.isForthwith() ? cidd.getStartDate() : "");
|
|
|
//即时终保时间 immeValidEndDate 字符串 N 即时起保必传 (YYYY-MM-DD HH:MM:SS)
|
|
//即时终保时间 immeValidEndDate 字符串 N 即时起保必传 (YYYY-MM-DD HH:MM:SS)
|
|
|
ciPrpTmain.setImmeValidEndDate(cidd.isForthwith() ? cidd.getEndDate() : "");
|
|
ciPrpTmain.setImmeValidEndDate(cidd.isForthwith() ? cidd.getEndDate() : "");
|
|
|
-
|
|
|
|
|
if (isNoCar) {
|
|
if (isNoCar) {
|
|
|
//非车标识 车+非车必传:1
|
|
//非车标识 车+非车必传:1
|
|
|
ciPrpTmain.setNoCarFlag("1");
|
|
ciPrpTmain.setNoCarFlag("1");
|
|
@@ -167,14 +151,6 @@ public class PremiumReq {
|
|
|
ciPrpTmain.setOrderFlag("N");
|
|
ciPrpTmain.setOrderFlag("N");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- /**
|
|
|
|
|
- * 车辆信息对象
|
|
|
|
|
- */
|
|
|
|
|
- CiDTO.PrpTitemCarDTO ciPrpTitemCar = new CiDTO.PrpTitemCarDTO();
|
|
|
|
|
- ciPrpTitemCar.setClauseType("F40");
|
|
|
|
|
- ciDto.setPrpTitemCar(ciPrpTitemCar);
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 平台交互信息
|
|
* 平台交互信息
|
|
|
*/
|
|
*/
|
|
@@ -182,30 +158,31 @@ public class PremiumReq {
|
|
|
//转保业务必传,传上次保费计算返回对应查询码,否则传空
|
|
//转保业务必传,传上次保费计算返回对应查询码,否则传空
|
|
|
ciInsureDemand.setDemandNo("");
|
|
ciInsureDemand.setDemandNo("");
|
|
|
ciDto.setCiInsureDemand(ciInsureDemand);
|
|
ciDto.setCiInsureDemand(ciInsureDemand);
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
prpTcarshipTax.setTaxRelifFlag("1");
|
|
prpTcarshipTax.setTaxRelifFlag("1");
|
|
|
ciDto.setPrpTcarshipTax(prpTcarshipTax);
|
|
ciDto.setPrpTcarshipTax(prpTcarshipTax);
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
prptitemkindList = buildCiKindList(ciRiskInfo);
|
|
prptitemkindList = buildCiKindList(ciRiskInfo);
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
} else {
|
|
} else {
|
|
|
-
|
|
|
|
|
ciDto.setInputRisk("0");
|
|
ciDto.setInputRisk("0");
|
|
|
ciPrpTmain.setStartDate("");
|
|
ciPrpTmain.setStartDate("");
|
|
|
ciPrpTmain.setEndDate("");
|
|
ciPrpTmain.setEndDate("");
|
|
|
-
|
|
|
|
|
prpTcarshipTax.setTaxRelifFlag("");
|
|
prpTcarshipTax.setTaxRelifFlag("");
|
|
|
ciDto.setPrpTcarshipTax(prpTcarshipTax);
|
|
ciDto.setPrpTcarshipTax(prpTcarshipTax);
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 车辆信息对象
|
|
|
|
|
+ */
|
|
|
|
|
+ CiDTO.PrpTitemCarDTO ciPrpTitemCar = new CiDTO.PrpTitemCarDTO();
|
|
|
|
|
+ ciPrpTitemCar.setClauseType("F40");
|
|
|
|
|
+ ciPrpTitemCar.setCarOwner(ownerInfo.getName());
|
|
|
|
|
+ ciPrpTitemCar.setCarOwnerIdentifyNumber(ownerInfo.getIdentifyNumber());
|
|
|
|
|
+ ciPrpTitemCar.setOtherNature("0");
|
|
|
|
|
|
|
|
- ciDto.setPrptitemkindList(prptitemkindList);
|
|
|
|
|
|
|
+ ciDto.setPrpTitemCar(ciPrpTitemCar);
|
|
|
|
|
|
|
|
- ciDto.setPrpTmain(ciPrpTmain);
|
|
|
|
|
|
|
|
|
|
|
|
+ ciDto.setPrptitemkindList(prptitemkindList);
|
|
|
|
|
+ ciDto.setPrpTmain(ciPrpTmain);
|
|
|
// /**
|
|
// /**
|
|
|
// * 特别约定
|
|
// * 特别约定
|
|
|
// */
|
|
// */
|
|
@@ -222,18 +199,15 @@ public class PremiumReq {
|
|
|
* @date: 2023-08-15
|
|
* @date: 2023-08-15
|
|
|
*/
|
|
*/
|
|
|
@JsonIgnore
|
|
@JsonIgnore
|
|
|
- public static BiDTO buildBiDto(RiskInfoVo biRiskInfo, List<KindInfoVo> kindInfoVList, CarPriceResp.DataDTO carPriceResult, VinQueryResp.DataDTO vinQ, boolean isNoCar) {
|
|
|
|
|
|
|
+ public static BiDTO buildBiDto(CustomerInfoVo ownerInfo, RiskInfoVo biRiskInfo, List<KindInfoVo> kindInfoVList, CarPriceResp.DataDTO carPriceResult, VinQueryResp.DataDTO vinQ, boolean isNoCar) {
|
|
|
BiDTO biDto = new BiDTO();
|
|
BiDTO biDto = new BiDTO();
|
|
|
biDto.setPrpTmainRate(new BiDTO.PrpTmainRateDTO());
|
|
biDto.setPrpTmainRate(new BiDTO.PrpTmainRateDTO());
|
|
|
biDto.setPrpTChargingPostDataList(new ArrayList<>());
|
|
biDto.setPrpTChargingPostDataList(new ArrayList<>());
|
|
|
-
|
|
|
|
|
BiDTO.CiInsureDemandDTO bidtoCiInsureDemandDto = new BiDTO.CiInsureDemandDTO();
|
|
BiDTO.CiInsureDemandDTO bidtoCiInsureDemandDto = new BiDTO.CiInsureDemandDTO();
|
|
|
bidtoCiInsureDemandDto.setDemandNo("");
|
|
bidtoCiInsureDemandDto.setDemandNo("");
|
|
|
biDto.setCiInsureDemand(bidtoCiInsureDemandDto);
|
|
biDto.setCiInsureDemand(bidtoCiInsureDemandDto);
|
|
|
-
|
|
|
|
|
biDto.setCiInsureDemandPay(new ArrayList<>());
|
|
biDto.setCiInsureDemandPay(new ArrayList<>());
|
|
|
biDto.setCiInsureDemandWarningClaim(new ArrayList<>());
|
|
biDto.setCiInsureDemandWarningClaim(new ArrayList<>());
|
|
|
-
|
|
|
|
|
biDto.setPrpTrenewal(new ArrayList<>());
|
|
biDto.setPrpTrenewal(new ArrayList<>());
|
|
|
biDto.setPrptengageList(new ArrayList<>());
|
|
biDto.setPrptengageList(new ArrayList<>());
|
|
|
|
|
|
|
@@ -242,7 +216,6 @@ public class PremiumReq {
|
|
|
*/
|
|
*/
|
|
|
BiDTO.PrpTmainDTO biPrpTmain = new BiDTO.PrpTmainDTO();
|
|
BiDTO.PrpTmainDTO biPrpTmain = new BiDTO.PrpTmainDTO();
|
|
|
biPrpTmain.setImmeValidEndDate("");
|
|
biPrpTmain.setImmeValidEndDate("");
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 车辆信息对象
|
|
* 车辆信息对象
|
|
|
*/
|
|
*/
|
|
@@ -251,6 +224,9 @@ public class PremiumReq {
|
|
|
biPrpTitemCar.setTermsSystem("04");
|
|
biPrpTitemCar.setTermsSystem("04");
|
|
|
biPrpTitemCar.setClauseType("F54");
|
|
biPrpTitemCar.setClauseType("F54");
|
|
|
|
|
|
|
|
|
|
+ biPrpTitemCar.setCarOwner(ownerInfo.getName());
|
|
|
|
|
+ biPrpTitemCar.setCarOwnerIdentifyNumber(ownerInfo.getIdentifyNumber());
|
|
|
|
|
+ biPrpTitemCar.setOtherNature("0");
|
|
|
|
|
|
|
|
biPrpTitemCar.setCiInsureDemandPay(new ArrayList<>());
|
|
biPrpTitemCar.setCiInsureDemandPay(new ArrayList<>());
|
|
|
biPrpTitemCar.setCiInsureDemandWarningClaim(new ArrayList());
|
|
biPrpTitemCar.setCiInsureDemandWarningClaim(new ArrayList());
|
|
@@ -502,7 +478,6 @@ public class PremiumReq {
|
|
|
private static List<CiDTO.PrptitemkindListDTO> buildCiKindList(RiskInfoVo ciRiskInfo) {
|
|
private static List<CiDTO.PrptitemkindListDTO> buildCiKindList(RiskInfoVo ciRiskInfo) {
|
|
|
List<CiDTO.PrptitemkindListDTO> prptitemkindList = new ArrayList<>();
|
|
List<CiDTO.PrptitemkindListDTO> prptitemkindList = new ArrayList<>();
|
|
|
CiDTO.PrptitemkindListDTO prptitemkind = new CiDTO.PrptitemkindListDTO();
|
|
CiDTO.PrptitemkindListDTO prptitemkind = new CiDTO.PrptitemkindListDTO();
|
|
|
-
|
|
|
|
|
prptitemkind.setKindCode("BZ");
|
|
prptitemkind.setKindCode("BZ");
|
|
|
prptitemkind.setKindName("机动车交通事故责任强制保险");
|
|
prptitemkind.setKindName("机动车交通事故责任强制保险");
|
|
|
prptitemkind.setStartDate(ciRiskInfo.getStartDate());
|
|
prptitemkind.setStartDate(ciRiskInfo.getStartDate());
|
|
@@ -514,7 +489,6 @@ public class PremiumReq {
|
|
|
prptitemkind.setNoTaxPremium("");
|
|
prptitemkind.setNoTaxPremium("");
|
|
|
prptitemkind.setTaxFee("");
|
|
prptitemkind.setTaxFee("");
|
|
|
prptitemkind.setFlag("2 03");
|
|
prptitemkind.setFlag("2 03");
|
|
|
-
|
|
|
|
|
prptitemkindList.add(prptitemkind);
|
|
prptitemkindList.add(prptitemkind);
|
|
|
return prptitemkindList;
|
|
return prptitemkindList;
|
|
|
|
|
|
|
@@ -523,33 +497,43 @@ public class PremiumReq {
|
|
|
@NoArgsConstructor
|
|
@NoArgsConstructor
|
|
|
@Data
|
|
@Data
|
|
|
public static class CiDTO {
|
|
public static class CiDTO {
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "prpTrenewal")
|
|
@JsonProperty(value = "prpTrenewal")
|
|
|
@JSONField(name = "prpTrenewal")
|
|
@JSONField(name = "prpTrenewal")
|
|
|
private List<?> prpTrenewal;
|
|
private List<?> prpTrenewal;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "prpTitemCar")
|
|
@JsonProperty(value = "prpTitemCar")
|
|
|
@JSONField(name = "prpTitemCar")
|
|
@JSONField(name = "prpTitemCar")
|
|
|
private PrpTitemCarDTO prpTitemCar;
|
|
private PrpTitemCarDTO prpTitemCar;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "prpTmain")
|
|
@JsonProperty(value = "prpTmain")
|
|
|
@JSONField(name = "prpTmain")
|
|
@JSONField(name = "prpTmain")
|
|
|
private PrpTmainDTO prpTmain;
|
|
private PrpTmainDTO prpTmain;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "inputRisk")
|
|
@JsonProperty(value = "inputRisk")
|
|
|
@JSONField(name = "inputRisk")
|
|
@JSONField(name = "inputRisk")
|
|
|
private String inputRisk;
|
|
private String inputRisk;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "prptitemkindList")
|
|
@JsonProperty(value = "prptitemkindList")
|
|
|
@JSONField(name = "prptitemkindList")
|
|
@JSONField(name = "prptitemkindList")
|
|
|
private List<PrptitemkindListDTO> prptitemkindList;
|
|
private List<PrptitemkindListDTO> prptitemkindList;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "calculateFlagCI")
|
|
@JsonProperty(value = "calculateFlagCI")
|
|
|
@JSONField(name = "calculateFlagCI")
|
|
@JSONField(name = "calculateFlagCI")
|
|
|
private String calculateFlagCI;
|
|
private String calculateFlagCI;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "ciInsureDemand")
|
|
@JsonProperty(value = "ciInsureDemand")
|
|
|
@JSONField(name = "ciInsureDemand")
|
|
@JSONField(name = "ciInsureDemand")
|
|
|
private CiInsureDemandDTO ciInsureDemand;
|
|
private CiInsureDemandDTO ciInsureDemand;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "editType")
|
|
@JsonProperty(value = "editType")
|
|
|
@JSONField(name = "editType")
|
|
@JSONField(name = "editType")
|
|
|
private String editType;
|
|
private String editType;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "prpTmainRate")
|
|
@JsonProperty(value = "prpTmainRate")
|
|
|
@JSONField(name = "prpTmainRate")
|
|
@JSONField(name = "prpTmainRate")
|
|
|
private PrpTmainRateDTO prpTmainRate;
|
|
private PrpTmainRateDTO prpTmainRate;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "prpTcarshipTax")
|
|
@JsonProperty(value = "prpTcarshipTax")
|
|
|
@JSONField(name = "prpTcarshipTax")
|
|
@JSONField(name = "prpTcarshipTax")
|
|
|
private PrpTcarshipTaxDTO prpTcarshipTax;
|
|
private PrpTcarshipTaxDTO prpTcarshipTax;
|
|
@@ -558,7 +542,6 @@ public class PremiumReq {
|
|
|
LocalDateTime start = DateTimeUtil.parseLocalDateTime(coverageEndDate, DateTimeUtil.DATETIME_PATTERN);
|
|
LocalDateTime start = DateTimeUtil.parseLocalDateTime(coverageEndDate, DateTimeUtil.DATETIME_PATTERN);
|
|
|
String newStartDate;
|
|
String newStartDate;
|
|
|
String newEndDate;
|
|
String newEndDate;
|
|
|
-
|
|
|
|
|
//及时起保
|
|
//及时起保
|
|
|
if (start.getHour() > 0) {
|
|
if (start.getHour() > 0) {
|
|
|
LocalDateTime end = start.plusYears(1L);
|
|
LocalDateTime end = start.plusYears(1L);
|
|
@@ -586,20 +569,26 @@ public class PremiumReq {
|
|
|
@NoArgsConstructor
|
|
@NoArgsConstructor
|
|
|
@Data
|
|
@Data
|
|
|
public static class PrpTitemCarDTO {
|
|
public static class PrpTitemCarDTO {
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "clauseTypeSystem")
|
|
@JsonProperty(value = "clauseTypeSystem")
|
|
|
@JSONField(name = "clauseTypeSystem")
|
|
@JSONField(name = "clauseTypeSystem")
|
|
|
private String clauseTypeSystem;
|
|
private String clauseTypeSystem;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "clauseType")
|
|
@JsonProperty(value = "clauseType")
|
|
|
@JSONField(name = "clauseType")
|
|
@JSONField(name = "clauseType")
|
|
|
private String clauseType;
|
|
private String clauseType;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "termsSystem")
|
|
@JsonProperty(value = "termsSystem")
|
|
|
@JSONField(name = "termsSystem")
|
|
@JSONField(name = "termsSystem")
|
|
|
private String termsSystem;
|
|
private String termsSystem;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "carOwner")
|
|
@JsonProperty(value = "carOwner")
|
|
|
@JSONField(name = "carOwner")
|
|
@JSONField(name = "carOwner")
|
|
|
private String carOwner;
|
|
private String carOwner;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "otherNature")
|
|
@JsonProperty(value = "otherNature")
|
|
|
@JSONField(name = "otherNature")
|
|
@JSONField(name = "otherNature")
|
|
|
|
|
+
|
|
|
private String otherNature;
|
|
private String otherNature;
|
|
|
@JsonProperty(value = "carOwnerIdentifyNumber")
|
|
@JsonProperty(value = "carOwnerIdentifyNumber")
|
|
|
@JSONField(name = "carOwnerIdentifyNumber")
|
|
@JSONField(name = "carOwnerIdentifyNumber")
|
|
@@ -609,52 +598,65 @@ public class PremiumReq {
|
|
|
@NoArgsConstructor
|
|
@NoArgsConstructor
|
|
|
@Data
|
|
@Data
|
|
|
public static class PrpTmainDTO {
|
|
public static class PrpTmainDTO {
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "endDate")
|
|
@JsonProperty(value = "endDate")
|
|
|
@JSONField(name = "endDate")
|
|
@JSONField(name = "endDate")
|
|
|
private String endDate;
|
|
private String endDate;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "noCarFlag")
|
|
@JsonProperty(value = "noCarFlag")
|
|
|
@JSONField(name = "noCarFlag")
|
|
@JSONField(name = "noCarFlag")
|
|
|
private String noCarFlag;
|
|
private String noCarFlag;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "immeValiFlag")
|
|
@JsonProperty(value = "immeValiFlag")
|
|
|
@JSONField(name = "immeValiFlag")
|
|
@JSONField(name = "immeValiFlag")
|
|
|
private String immeValiFlag;
|
|
private String immeValiFlag;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "signDate")
|
|
@JsonProperty(value = "signDate")
|
|
|
@JSONField(name = "signDate")
|
|
@JSONField(name = "signDate")
|
|
|
private String signDate;
|
|
private String signDate;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "inputDate")
|
|
@JsonProperty(value = "inputDate")
|
|
|
@JSONField(name = "inputDate")
|
|
@JSONField(name = "inputDate")
|
|
|
private String inputDate;
|
|
private String inputDate;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "endHour")
|
|
@JsonProperty(value = "endHour")
|
|
|
@JSONField(name = "endHour")
|
|
@JSONField(name = "endHour")
|
|
|
private String endHour;
|
|
private String endHour;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "immeValidEndDate")
|
|
@JsonProperty(value = "immeValidEndDate")
|
|
|
@JSONField(name = "immeValidEndDate")
|
|
@JSONField(name = "immeValidEndDate")
|
|
|
private String immeValidEndDate;
|
|
private String immeValidEndDate;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "answer")
|
|
@JsonProperty(value = "answer")
|
|
|
@JSONField(name = "answer")
|
|
@JSONField(name = "answer")
|
|
|
private String answer;
|
|
private String answer;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "startHour")
|
|
@JsonProperty(value = "startHour")
|
|
|
@JSONField(name = "startHour")
|
|
@JSONField(name = "startHour")
|
|
|
private String startHour;
|
|
private String startHour;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "orderFlag")
|
|
@JsonProperty(value = "orderFlag")
|
|
|
@JSONField(name = "orderFlag")
|
|
@JSONField(name = "orderFlag")
|
|
|
private String orderFlag;
|
|
private String orderFlag;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "immeValidStartDate")
|
|
@JsonProperty(value = "immeValidStartDate")
|
|
|
@JSONField(name = "immeValidStartDate")
|
|
@JSONField(name = "immeValidStartDate")
|
|
|
private String immeValidStartDate;
|
|
private String immeValidStartDate;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "simpleOrderFlag")
|
|
@JsonProperty(value = "simpleOrderFlag")
|
|
|
@JSONField(name = "simpleOrderFlag")
|
|
@JSONField(name = "simpleOrderFlag")
|
|
|
private String simpleOrderFlag;
|
|
private String simpleOrderFlag;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "startDate")
|
|
@JsonProperty(value = "startDate")
|
|
|
@JSONField(name = "startDate")
|
|
@JSONField(name = "startDate")
|
|
|
private String startDate;
|
|
private String startDate;
|
|
|
|
|
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@NoArgsConstructor
|
|
@NoArgsConstructor
|
|
|
@Data
|
|
@Data
|
|
|
public static class CiInsureDemandDTO {
|
|
public static class CiInsureDemandDTO {
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "demandNo")
|
|
@JsonProperty(value = "demandNo")
|
|
|
@JSONField(name = "demandNo")
|
|
@JSONField(name = "demandNo")
|
|
|
private String demandNo;
|
|
private String demandNo;
|
|
@@ -669,9 +671,11 @@ public class PremiumReq {
|
|
|
@NoArgsConstructor
|
|
@NoArgsConstructor
|
|
|
@Data
|
|
@Data
|
|
|
public static class PrpTcarshipTaxDTO {
|
|
public static class PrpTcarshipTaxDTO {
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "taxRelifFlag")
|
|
@JsonProperty(value = "taxRelifFlag")
|
|
|
@JSONField(name = "taxRelifFlag")
|
|
@JSONField(name = "taxRelifFlag")
|
|
|
private String taxRelifFlag;
|
|
private String taxRelifFlag;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "paidCertificate")
|
|
@JsonProperty(value = "paidCertificate")
|
|
|
@JSONField(name = "paidCertificate")
|
|
@JSONField(name = "paidCertificate")
|
|
|
private String paidCertificate;
|
|
private String paidCertificate;
|
|
@@ -680,36 +684,47 @@ public class PremiumReq {
|
|
|
@NoArgsConstructor
|
|
@NoArgsConstructor
|
|
|
@Data
|
|
@Data
|
|
|
public static class PrptitemkindListDTO {
|
|
public static class PrptitemkindListDTO {
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "amount")
|
|
@JsonProperty(value = "amount")
|
|
|
@JSONField(name = "amount")
|
|
@JSONField(name = "amount")
|
|
|
private String amount;
|
|
private String amount;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "kindCode")
|
|
@JsonProperty(value = "kindCode")
|
|
|
@JSONField(name = "kindCode")
|
|
@JSONField(name = "kindCode")
|
|
|
private String kindCode;
|
|
private String kindCode;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "flag")
|
|
@JsonProperty(value = "flag")
|
|
|
@JSONField(name = "flag")
|
|
@JSONField(name = "flag")
|
|
|
private String flag;
|
|
private String flag;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "endDate")
|
|
@JsonProperty(value = "endDate")
|
|
|
@JSONField(name = "endDate")
|
|
@JSONField(name = "endDate")
|
|
|
private String endDate;
|
|
private String endDate;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "isDeductible")
|
|
@JsonProperty(value = "isDeductible")
|
|
|
@JSONField(name = "isDeductible")
|
|
@JSONField(name = "isDeductible")
|
|
|
private String isDeductible;
|
|
private String isDeductible;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "rate")
|
|
@JsonProperty(value = "rate")
|
|
|
@JSONField(name = "rate")
|
|
@JSONField(name = "rate")
|
|
|
private String rate;
|
|
private String rate;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "deductible")
|
|
@JsonProperty(value = "deductible")
|
|
|
@JSONField(name = "deductible")
|
|
@JSONField(name = "deductible")
|
|
|
private String deductible;
|
|
private String deductible;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "kindName")
|
|
@JsonProperty(value = "kindName")
|
|
|
@JSONField(name = "kindName")
|
|
@JSONField(name = "kindName")
|
|
|
private String kindName;
|
|
private String kindName;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "taxFee")
|
|
@JsonProperty(value = "taxFee")
|
|
|
@JSONField(name = "taxFee")
|
|
@JSONField(name = "taxFee")
|
|
|
private String taxFee;
|
|
private String taxFee;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "noTaxPremium")
|
|
@JsonProperty(value = "noTaxPremium")
|
|
|
@JSONField(name = "noTaxPremium")
|
|
@JSONField(name = "noTaxPremium")
|
|
|
private String noTaxPremium;
|
|
private String noTaxPremium;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "startDate")
|
|
@JsonProperty(value = "startDate")
|
|
|
@JSONField(name = "startDate")
|
|
@JSONField(name = "startDate")
|
|
|
private String startDate;
|
|
private String startDate;
|
|
@@ -719,42 +734,55 @@ public class PremiumReq {
|
|
|
@NoArgsConstructor
|
|
@NoArgsConstructor
|
|
|
@Data
|
|
@Data
|
|
|
public static class BiDTO {
|
|
public static class BiDTO {
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "prpTrenewal")
|
|
@JsonProperty(value = "prpTrenewal")
|
|
|
@JSONField(name = "prpTrenewal")
|
|
@JSONField(name = "prpTrenewal")
|
|
|
private List<?> prpTrenewal;
|
|
private List<?> prpTrenewal;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "prptengageList")
|
|
@JsonProperty(value = "prptengageList")
|
|
|
@JSONField(name = "prptengageList")
|
|
@JSONField(name = "prptengageList")
|
|
|
private List<?> prptengageList;
|
|
private List<?> prptengageList;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "prpTitemCar")
|
|
@JsonProperty(value = "prpTitemCar")
|
|
|
@JSONField(name = "prpTitemCar")
|
|
@JSONField(name = "prpTitemCar")
|
|
|
private PrpTitemCarDTO prpTitemCar;
|
|
private PrpTitemCarDTO prpTitemCar;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "prpTmain")
|
|
@JsonProperty(value = "prpTmain")
|
|
|
@JSONField(name = "prpTmain")
|
|
@JSONField(name = "prpTmain")
|
|
|
private PrpTmainDTO prpTmain;
|
|
private PrpTmainDTO prpTmain;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "inputRisk")
|
|
@JsonProperty(value = "inputRisk")
|
|
|
@JSONField(name = "inputRisk")
|
|
@JSONField(name = "inputRisk")
|
|
|
private String inputRisk;
|
|
private String inputRisk;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "calculateFlagBI")
|
|
@JsonProperty(value = "calculateFlagBI")
|
|
|
@JSONField(name = "calculateFlagBI")
|
|
@JSONField(name = "calculateFlagBI")
|
|
|
private String calculateFlagBI;
|
|
private String calculateFlagBI;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "prptitemkindList")
|
|
@JsonProperty(value = "prptitemkindList")
|
|
|
@JSONField(name = "prptitemkindList")
|
|
@JSONField(name = "prptitemkindList")
|
|
|
private List<PrptitemkindListDTO> prptitemkindList;
|
|
private List<PrptitemkindListDTO> prptitemkindList;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "ciInsureDemand")
|
|
@JsonProperty(value = "ciInsureDemand")
|
|
|
@JSONField(name = "ciInsureDemand")
|
|
@JSONField(name = "ciInsureDemand")
|
|
|
private CiInsureDemandDTO ciInsureDemand;
|
|
private CiInsureDemandDTO ciInsureDemand;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "prpTChargingPostDataList")
|
|
@JsonProperty(value = "prpTChargingPostDataList")
|
|
|
@JSONField(name = "prpTChargingPostDataList")
|
|
@JSONField(name = "prpTChargingPostDataList")
|
|
|
private List<?> prpTChargingPostDataList;
|
|
private List<?> prpTChargingPostDataList;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "ciInsureDemandPay")
|
|
@JsonProperty(value = "ciInsureDemandPay")
|
|
|
@JSONField(name = "ciInsureDemandPay")
|
|
@JSONField(name = "ciInsureDemandPay")
|
|
|
private List<?> ciInsureDemandPay;
|
|
private List<?> ciInsureDemandPay;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "editType")
|
|
@JsonProperty(value = "editType")
|
|
|
@JSONField(name = "editType")
|
|
@JSONField(name = "editType")
|
|
|
private String editType;
|
|
private String editType;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "ciInsureDemandWarningClaim")
|
|
@JsonProperty(value = "ciInsureDemandWarningClaim")
|
|
|
@JSONField(name = "ciInsureDemandWarningClaim")
|
|
@JSONField(name = "ciInsureDemandWarningClaim")
|
|
|
private List<?> ciInsureDemandWarningClaim;
|
|
private List<?> ciInsureDemandWarningClaim;
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "prpTmainRate")
|
|
@JsonProperty(value = "prpTmainRate")
|
|
|
@JSONField(name = "prpTmainRate")
|
|
@JSONField(name = "prpTmainRate")
|
|
|
private PrpTmainRateDTO prpTmainRate;
|
|
private PrpTmainRateDTO prpTmainRate;
|
|
@@ -872,11 +900,23 @@ public class PremiumReq {
|
|
|
@JSONField(name = "pureElectricBatteryType")
|
|
@JSONField(name = "pureElectricBatteryType")
|
|
|
private String pureElectricBatteryType;
|
|
private String pureElectricBatteryType;
|
|
|
|
|
|
|
|
|
|
+ @JsonProperty(value = "carOwner")
|
|
|
|
|
+ @JSONField(name = "carOwner")
|
|
|
|
|
+ private String carOwner;
|
|
|
|
|
+
|
|
|
|
|
+ @JsonProperty(value = "otherNature")
|
|
|
|
|
+ @JSONField(name = "otherNature")
|
|
|
|
|
+ private String otherNature;
|
|
|
|
|
+
|
|
|
|
|
+ @JsonProperty(value = "carOwnerIdentifyNumber")
|
|
|
|
|
+ @JSONField(name = "carOwnerIdentifyNumber")
|
|
|
|
|
+ private String carOwnerIdentifyNumber;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@NoArgsConstructor
|
|
@NoArgsConstructor
|
|
|
@Data
|
|
@Data
|
|
|
public static class PrpTmainDTO {
|
|
public static class PrpTmainDTO {
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "endDate")
|
|
@JsonProperty(value = "endDate")
|
|
|
@JSONField(name = "endDate")
|
|
@JSONField(name = "endDate")
|
|
|
private String endDate;
|
|
private String endDate;
|
|
@@ -928,6 +968,7 @@ public class PremiumReq {
|
|
|
@NoArgsConstructor
|
|
@NoArgsConstructor
|
|
|
@Data
|
|
@Data
|
|
|
public static class CiInsureDemandDTO {
|
|
public static class CiInsureDemandDTO {
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "demandNo")
|
|
@JsonProperty(value = "demandNo")
|
|
|
@JSONField(name = "demandNo")
|
|
@JSONField(name = "demandNo")
|
|
|
private String demandNo;
|
|
private String demandNo;
|
|
@@ -936,6 +977,7 @@ public class PremiumReq {
|
|
|
@NoArgsConstructor
|
|
@NoArgsConstructor
|
|
|
@Data
|
|
@Data
|
|
|
public static class PrpTmainRateDTO {
|
|
public static class PrpTmainRateDTO {
|
|
|
|
|
+
|
|
|
@JsonProperty(value = "demandNo")
|
|
@JsonProperty(value = "demandNo")
|
|
|
@JSONField(name = "demandNo")
|
|
@JSONField(name = "demandNo")
|
|
|
private String demandNo;
|
|
private String demandNo;
|