|
|
@@ -4,6 +4,7 @@ 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.*;
|
|
|
+import com.ydtech.modules.order.entity.api.bohai.response.VehicleTypeQueryResponse;
|
|
|
import com.ydtech.modules.order.entity.config.BoHaiConfigureParameters;
|
|
|
import com.ydtech.modules.order.entity.vo.BaseQuoteInfoVo;
|
|
|
import com.ydtech.utils.StringUtils;
|
|
|
@@ -39,11 +40,13 @@ public class VehicleConfirmationReqeust extends BoHaiBaseRequest {
|
|
|
private InsurederDTO insureder;
|
|
|
|
|
|
|
|
|
- public VehicleConfirmationReqeust(BoHaiConfigureParameters parameters, BaseQuoteInfoVo quoteInfoVo) {
|
|
|
- this.setBaseParam(parameters, RequestType.Z00005.getCode());
|
|
|
+ public VehicleConfirmationReqeust(BoHaiConfigureParameters parameters, BaseQuoteInfoVo quoteInfoVo,
|
|
|
+ VehicleTypeQueryResponse.DataDTO.VehicleModelsDTO vehicleModelsDTO,
|
|
|
+ String orderNo) {
|
|
|
+ this.setBaseParam(parameters, RequestType.Z00005.getCode(), orderNo);
|
|
|
// 车辆信息
|
|
|
CarInfoVo carInfo = quoteInfoVo.getCarInfo();
|
|
|
- this.vehicle = new VehicleDTO(carInfo);
|
|
|
+ this.vehicle = new VehicleDTO(carInfo, vehicleModelsDTO);
|
|
|
// 车主
|
|
|
CustomerInfoVo ownerInfo = quoteInfoVo.getOwnerInfo();
|
|
|
this.carOwner = new CarOwnerDTO(ownerInfo);
|
|
|
@@ -180,22 +183,21 @@ public class VehicleConfirmationReqeust extends BoHaiBaseRequest {
|
|
|
@JsonProperty("transferDate")
|
|
|
private String transferDate;
|
|
|
|
|
|
- public VehicleDTO(CarInfoVo carInfo) {
|
|
|
+ public VehicleDTO(CarInfoVo carInfo, VehicleTypeQueryResponse.DataDTO.VehicleModelsDTO vehicleModelsDTO) {
|
|
|
this.carVin = carInfo.getVinNo();
|
|
|
- this.vehicleModelCode = vehicleModelCode;
|
|
|
+ this.vehicleModelCode = vehicleModelsDTO.getMoldCharacterCode();
|
|
|
this.engineNo = carInfo.getEngineNo();
|
|
|
this.plateNo = carInfo.getLicenseNo();
|
|
|
this.registerDate = carInfo.getRegisterDate();
|
|
|
- this.purchasePrice = purchasePrice;
|
|
|
+ this.purchasePrice = vehicleModelsDTO.getPurchasePrice();
|
|
|
// 新车
|
|
|
this.newVehicleFlag = StringUtils.isNotEmpty(carInfo.getLicenseNo()) ? "0" : "1";
|
|
|
- this.moldName = moldName;
|
|
|
+ this.moldName = vehicleModelsDTO.getMoldName();
|
|
|
this.seatCount = carInfo.getSeatCount();
|
|
|
this.tonNumber = carInfo.getLimitLoad();
|
|
|
this.fuelType = carInfo.getEnergyType();
|
|
|
this.emptyWeight = carInfo.getCompleteKerbMass();
|
|
|
- this.exhaustMeasure = exhaustMeasure;
|
|
|
-
|
|
|
+ this.exhaustMeasure = vehicleModelsDTO.getExhaustMeasure();
|
|
|
VehicleKind vehicleKindEnum = VehicleKind.valueOf(carInfo.getCimodelclass());
|
|
|
this.vehicleKind = vehicleKindEnum.getCode();
|
|
|
this.vehicleAffNature = VehicleAffNature.VAN_1.getCode();
|
|
|
@@ -286,8 +288,25 @@ public class VehicleConfirmationReqeust extends BoHaiBaseRequest {
|
|
|
@JsonProperty("elecApplicationFlag")
|
|
|
private String elecApplicationFlag;
|
|
|
|
|
|
- public HolderDTO(CustomerInfoVo policyHolderInfo) {
|
|
|
|
|
|
+
|
|
|
+ public HolderDTO(CustomerInfoVo policyHolderInfo) {
|
|
|
+ this.certType = certType;
|
|
|
+ this.holderName = policyHolderInfo.getName();
|
|
|
+
|
|
|
+ this.certNo = certNo;
|
|
|
+ this.address = address;
|
|
|
+ this.phoneNumber = phoneNumber;
|
|
|
+ this.nation = nation;
|
|
|
+ this.certiStartDate = certiStartDate;
|
|
|
+ this.certiEndDate = certiEndDate;
|
|
|
+ this.certiType = certiType;
|
|
|
+ this.issuer = issuer;
|
|
|
+ this.email = email;
|
|
|
+ this.invoiceType = "";
|
|
|
+ this.bizFormatType = bizFormatType;
|
|
|
+ this.forceFormatType = forceFormatType;
|
|
|
+ this.elecApplicationFlag = elecApplicationFlag;
|
|
|
}
|
|
|
}
|
|
|
|