|
@@ -9,11 +9,14 @@ import com.ydtech.modules.ins.model.vo.CarInfoVo;
|
|
|
import com.ydtech.modules.ins.model.vo.CustomerInfoVo;
|
|
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.api.guoren.constants.ClauseTypeSystem;
|
|
|
|
|
+import com.ydtech.modules.order.entity.api.guoren.constants.FuelType;
|
|
|
import com.ydtech.modules.order.entity.vo.BaseQuoteInfoVo;
|
|
import com.ydtech.modules.order.entity.vo.BaseQuoteInfoVo;
|
|
|
import com.ydtech.utils.StringUtils;
|
|
import com.ydtech.utils.StringUtils;
|
|
|
import lombok.Data;
|
|
import lombok.Data;
|
|
|
import lombok.NoArgsConstructor;
|
|
import lombok.NoArgsConstructor;
|
|
|
|
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
|
|
@NoArgsConstructor
|
|
@NoArgsConstructor
|
|
@@ -114,10 +117,20 @@ public class CarPriceReq {
|
|
|
prpTitemCar.setLoanVehicleFlag("0");
|
|
prpTitemCar.setLoanVehicleFlag("0");
|
|
|
prpTitemCar.setChgOwnerFlag(carInfo.isTransferFlag() ? "1" : "0");
|
|
prpTitemCar.setChgOwnerFlag(carInfo.isTransferFlag() ? "1" : "0");
|
|
|
prpTitemCar.setProductType("0101");
|
|
prpTitemCar.setProductType("0101");
|
|
|
- prpTitemCar.setClauseTypeSystem("04");
|
|
|
|
|
|
|
+
|
|
|
|
|
+ // 新能源车
|
|
|
|
|
+ if(FuelType.getEnergy().contains(vinQ.getFuelType())){
|
|
|
|
|
+ prpTitemCar.setClauseTypeSystem(ClauseTypeSystem.CTS_05.getCode());
|
|
|
|
|
+ prpTitemCar.setTermsSystem(ClauseTypeSystem.CTS_05.getCode());
|
|
|
|
|
+ }else {
|
|
|
|
|
+ prpTitemCar.setClauseTypeSystem(ClauseTypeSystem.CTS_04.getCode());
|
|
|
|
|
+ prpTitemCar.setTermsSystem(ClauseTypeSystem.CTS_04.getCode());
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
prpTitemCar.setEngineNo(carInfo.getEngineNo());
|
|
prpTitemCar.setEngineNo(carInfo.getEngineNo());
|
|
|
prpTitemCar.setBrandName(vinQ.getBrandNameBC());
|
|
prpTitemCar.setBrandName(vinQ.getBrandNameBC());
|
|
|
prpTitemCar.setCertifiCateDate(carInfo.getIssueDate());
|
|
prpTitemCar.setCertifiCateDate(carInfo.getIssueDate());
|
|
|
|
|
+
|
|
|
//使用性质 8A 家庭自用
|
|
//使用性质 8A 家庭自用
|
|
|
prpTitemCar.setUseNatureCode("8A");
|
|
prpTitemCar.setUseNatureCode("8A");
|
|
|
//初登日期
|
|
//初登日期
|
|
@@ -125,7 +138,8 @@ public class CarPriceReq {
|
|
|
//核定载客数
|
|
//核定载客数
|
|
|
prpTitemCar.setSeatCount(carInfo.getSeatCount());
|
|
prpTitemCar.setSeatCount(carInfo.getSeatCount());
|
|
|
prpTitemCar.setFuelType("0");
|
|
prpTitemCar.setFuelType("0");
|
|
|
- prpTitemCar.setTermsSystem("04");
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
prpTitemCar.setTonCountlb(vinQ.getTonCount());
|
|
prpTitemCar.setTonCountlb(vinQ.getTonCount());
|
|
|
// prpTitemCar.setTonCountlb("0");
|
|
// prpTitemCar.setTonCountlb("0");
|
|
|
prpTitemCar.setVinClick("0");
|
|
prpTitemCar.setVinClick("0");
|
|
@@ -160,14 +174,11 @@ public class CarPriceReq {
|
|
|
|
|
|
|
|
//保费计算折扣 0是第一次计算保费,1是价费联动,2是批折扣,默认0
|
|
//保费计算折扣 0是第一次计算保费,1是价费联动,2是批折扣,默认0
|
|
|
bc.setFeeandDiscountFlag("0");
|
|
bc.setFeeandDiscountFlag("0");
|
|
|
-
|
|
|
|
|
//险种信息 0500-车险 摩托车、拖拉机的商业险-0521
|
|
//险种信息 0500-车险 摩托车、拖拉机的商业险-0521
|
|
|
bc.setRiskCode("0500");
|
|
bc.setRiskCode("0500");
|
|
|
-
|
|
|
|
|
//是否涉及农险业务 默认0
|
|
//是否涉及农险业务 默认0
|
|
|
bc.setAgriFlagBC("0");
|
|
bc.setAgriFlagBC("0");
|
|
|
|
|
|
|
|
-
|
|
|
|
|
BasePartVoDTO basePartVo = new BasePartVoDTO();
|
|
BasePartVoDTO basePartVo = new BasePartVoDTO();
|
|
|
basePartVo.setEditType("EditType_ProposalInput");
|
|
basePartVo.setEditType("EditType_ProposalInput");
|
|
|
basePartVo.setInputType("34");
|
|
basePartVo.setInputType("34");
|
|
@@ -176,7 +187,6 @@ public class CarPriceReq {
|
|
|
// basePartVo.setLoginRiskCode("0500");
|
|
// basePartVo.setLoginRiskCode("0500");
|
|
|
basePartVo.setUserCode(channelInfo.getAgentCode());
|
|
basePartVo.setUserCode(channelInfo.getAgentCode());
|
|
|
|
|
|
|
|
-
|
|
|
|
|
req.setBi(new BiDTO());
|
|
req.setBi(new BiDTO());
|
|
|
req.setCi(new CiDTO());
|
|
req.setCi(new CiDTO());
|
|
|
|
|
|
|
@@ -274,6 +284,9 @@ public class CarPriceReq {
|
|
|
@JsonProperty(value = "chgOwnerDate")
|
|
@JsonProperty(value = "chgOwnerDate")
|
|
|
@JSONField(name = "chgOwnerDate")
|
|
@JSONField(name = "chgOwnerDate")
|
|
|
private String chgOwnerDate;
|
|
private String chgOwnerDate;
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 条款体系
|
|
|
|
|
+ */
|
|
|
@JsonProperty(value = "clauseTypeSystem")
|
|
@JsonProperty(value = "clauseTypeSystem")
|
|
|
@JSONField(name = "clauseTypeSystem")
|
|
@JSONField(name = "clauseTypeSystem")
|
|
|
private String clauseTypeSystem;
|
|
private String clauseTypeSystem;
|
|
@@ -307,6 +320,9 @@ public class CarPriceReq {
|
|
|
@JsonProperty(value = "fuelType")
|
|
@JsonProperty(value = "fuelType")
|
|
|
@JSONField(name = "fuelType")
|
|
@JSONField(name = "fuelType")
|
|
|
private String fuelType;
|
|
private String fuelType;
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 商业险体系
|
|
|
|
|
+ */
|
|
|
@JsonProperty(value = "termsSystem")
|
|
@JsonProperty(value = "termsSystem")
|
|
|
@JSONField(name = "termsSystem")
|
|
@JSONField(name = "termsSystem")
|
|
|
private String termsSystem;
|
|
private String termsSystem;
|
|
@@ -480,32 +496,4 @@ public class CarPriceReq {
|
|
|
public static class CiDTO {
|
|
public static class CiDTO {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-// private static BcDTO.PrpTmainDTO buildPrpTmain(){
|
|
|
|
|
-// BcDTO.PrpTmainDTO tmain = new BcDTO.PrpTmainDTO();
|
|
|
|
|
-// tmain.setUnitmainTenanceType2Name();
|
|
|
|
|
-// "unitmainTenanceType2Name":"直通网销",
|
|
|
|
|
-// "channeltypeone":"60",
|
|
|
|
|
-// "argueSolution":"1",
|
|
|
|
|
-// "handler1Name":"徐丽",
|
|
|
|
|
-// "channeltypetwo":"0201",
|
|
|
|
|
-// "agentName":"徐丽",
|
|
|
|
|
-// "unitMaintenanceName":"南京测试标准件",
|
|
|
|
|
-// "businessNature":"0",
|
|
|
|
|
-// "activityPlan":"IXX",
|
|
|
|
|
-// "signDate":"2022-06-17",
|
|
|
|
|
-// "handlerCode":"S0300042",
|
|
|
|
|
-// "channeltypeoneName":"行销",
|
|
|
|
|
-// "unitMaintenanceCode":"0315G022105203121",
|
|
|
|
|
-// "unitmainTenanceType1":"G",
|
|
|
|
|
-// "unitmainTenanceType2":"06",
|
|
|
|
|
-// "channeltypetwoName":"行销传统",
|
|
|
|
|
-// "handler1Code":"S0300042",
|
|
|
|
|
-// "comName":"江苏南京溧水支公司个客综合",
|
|
|
|
|
-// "comCode":"031514A3",
|
|
|
|
|
-// "operateDate":"2022-06-17",
|
|
|
|
|
-// "startDate":"2022-06-18",
|
|
|
|
|
-// "eProposalFlag":"1",
|
|
|
|
|
-// "business":"2020-06-18"
|
|
|
|
|
-// }
|
|
|
|
|
}
|
|
}
|