|
|
@@ -3,10 +3,8 @@ package com.ydtech.modules.order.entity.api.bohai.request;
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
import com.ydtech.modules.ins.model.vo.CarInfoVo;
|
|
|
import com.ydtech.modules.ins.model.vo.CustomerInfoVo;
|
|
|
-import com.ydtech.modules.order.entity.api.bohai.constants.VehicleAffNature;
|
|
|
-import com.ydtech.modules.order.entity.api.bohai.constants.VehicleKind;
|
|
|
-import com.ydtech.modules.order.entity.api.bohai.constants.VehicleUsage;
|
|
|
-import com.ydtech.modules.order.entity.api.bohai.constants.VehicleUsageDetail;
|
|
|
+import com.ydtech.modules.order.entity.api.bohai.constants.*;
|
|
|
+import com.ydtech.modules.order.entity.config.BoHaiConfigureParameters;
|
|
|
import com.ydtech.modules.order.entity.vo.BaseQuoteInfoVo;
|
|
|
import com.ydtech.utils.StringUtils;
|
|
|
import lombok.Data;
|
|
|
@@ -41,19 +39,17 @@ public class VehicleConfirmationReqeust extends BoHaiBaseRequest {
|
|
|
private InsurederDTO insureder;
|
|
|
|
|
|
|
|
|
- public VehicleConfirmationReqeust(BaseQuoteInfoVo quoteInfoVo) {
|
|
|
+ public VehicleConfirmationReqeust(BoHaiConfigureParameters parameters, BaseQuoteInfoVo quoteInfoVo) {
|
|
|
+ this.setBaseParam(parameters, RequestType.Z00005.getCode());
|
|
|
// 车辆信息
|
|
|
CarInfoVo carInfo = quoteInfoVo.getCarInfo();
|
|
|
this.vehicle = new VehicleDTO(carInfo);
|
|
|
-
|
|
|
// 车主
|
|
|
CustomerInfoVo ownerInfo = quoteInfoVo.getOwnerInfo();
|
|
|
this.carOwner = new CarOwnerDTO(ownerInfo);
|
|
|
-
|
|
|
// 投保人
|
|
|
CustomerInfoVo policyHolderInfo = quoteInfoVo.getPolicyHolderInfo();
|
|
|
this.holder = new HolderDTO(policyHolderInfo);
|
|
|
-
|
|
|
// 被保人
|
|
|
CustomerInfoVo insuredPersonInfo = quoteInfoVo.getInsuredPersonInfo();
|
|
|
this.insureder = new InsurederDTO(insuredPersonInfo);
|
|
|
@@ -187,24 +183,17 @@ public class VehicleConfirmationReqeust extends BoHaiBaseRequest {
|
|
|
public VehicleDTO(CarInfoVo carInfo) {
|
|
|
this.carVin = carInfo.getVinNo();
|
|
|
this.vehicleModelCode = vehicleModelCode;
|
|
|
-
|
|
|
this.engineNo = carInfo.getEngineNo();
|
|
|
this.plateNo = carInfo.getLicenseNo();
|
|
|
this.registerDate = carInfo.getRegisterDate();
|
|
|
-
|
|
|
this.purchasePrice = purchasePrice;
|
|
|
-
|
|
|
// 新车
|
|
|
this.newVehicleFlag = StringUtils.isNotEmpty(carInfo.getLicenseNo()) ? "0" : "1";
|
|
|
-
|
|
|
this.moldName = moldName;
|
|
|
-
|
|
|
this.seatCount = carInfo.getSeatCount();
|
|
|
this.tonNumber = carInfo.getLimitLoad();
|
|
|
-
|
|
|
this.fuelType = carInfo.getEnergyType();
|
|
|
this.emptyWeight = carInfo.getCompleteKerbMass();
|
|
|
-
|
|
|
this.exhaustMeasure = exhaustMeasure;
|
|
|
|
|
|
VehicleKind vehicleKindEnum = VehicleKind.valueOf(carInfo.getCimodelclass());
|