|
|
@@ -1,6 +1,11 @@
|
|
|
package com.ydtech.modules.order.entity.api.pingan.request;
|
|
|
|
|
|
|
|
|
+import com.ydtech.modules.ins.model.vo.CarInfoVo;
|
|
|
+import com.ydtech.modules.ins.model.vo.CustomerInfoVo;
|
|
|
+import com.ydtech.modules.order.entity.api.pingan.response.SearchPAVehicleListResponse;
|
|
|
+import com.ydtech.modules.order.entity.config.PingAnConfigureParameters;
|
|
|
+import com.ydtech.modules.order.entity.vo.BaseQuoteInfoVo;
|
|
|
import lombok.Data;
|
|
|
import lombok.EqualsAndHashCode;
|
|
|
|
|
|
@@ -20,6 +25,9 @@ public class CarConfirmRequest extends PingAnBaseRequest {
|
|
|
|
|
|
private String isInternetBusiness;
|
|
|
|
|
|
+ /**
|
|
|
+ * 车辆信息
|
|
|
+ */
|
|
|
private VehicleDTO vehicle;
|
|
|
|
|
|
private RegisterDTO register;
|
|
|
@@ -56,6 +64,22 @@ public class CarConfirmRequest extends PingAnBaseRequest {
|
|
|
|
|
|
private String developmentStage;
|
|
|
|
|
|
+ public CarConfirmRequest(PingAnConfigureParameters parameters, BaseQuoteInfoVo quoteInfo, SearchPAVehicleListResponse.ModelsDto modelsDto) {
|
|
|
+ this.setUserId(parameters.getUserId());
|
|
|
+ CarInfoVo carInfo = quoteInfo.getCarInfo();
|
|
|
+// this.vehicle = new VehicleDTO(carInfo, modelsDto);
|
|
|
+
|
|
|
+ // 车主
|
|
|
+ CustomerInfoVo ownerInfo = quoteInfo.getOwnerInfo();
|
|
|
+ // 投保人信息
|
|
|
+ CustomerInfoVo policyHolderInfo = quoteInfo.getPolicyHolderInfo();
|
|
|
+ // 被保人信息
|
|
|
+ CustomerInfoVo insuredPersonInfo = quoteInfo.getInsuredPersonInfo();
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
@Data
|
|
|
public static class VehicleDTO implements Serializable {
|
|
|
|
|
|
@@ -69,7 +93,13 @@ public class CarConfirmRequest extends PingAnBaseRequest {
|
|
|
private String vehicleStyleUniqueId;
|
|
|
private String autoModelName;
|
|
|
private String seats;
|
|
|
+ /**
|
|
|
+ * 整备质量(吨)
|
|
|
+ */
|
|
|
private String wholeWeight;
|
|
|
+ /**
|
|
|
+ * 核定载质量(吨)
|
|
|
+ */
|
|
|
private String tonNumber;
|
|
|
private String exhaustMeasure;
|
|
|
private String power;
|
|
|
@@ -87,6 +117,39 @@ public class CarConfirmRequest extends PingAnBaseRequest {
|
|
|
private String vehicleCodeForShangHai;
|
|
|
private String specialCarLicense;
|
|
|
|
|
|
+// public VehicleDTO(CarInfoVo carInfo, SearchPAVehicleListResponse.ModelsDto modelsDto) {
|
|
|
+// this.registerDate = carInfo.getRegisterDate();
|
|
|
+// this.frameNo = carInfo.getFrameNo();
|
|
|
+// this.engineNo = carInfo.getEngineNo();
|
|
|
+//
|
|
|
+//// this.modelCode = modelsDto.getmod;
|
|
|
+// this.paModelCode = modelsDto.getPaModelCode();
|
|
|
+// this.modelIndex = modelsDto.getModelIndex();
|
|
|
+//// this.vehicleStyleUniqueId = vehicleStyleUniqueId;
|
|
|
+// this.autoModelName = modelsDto.getModelName();
|
|
|
+// this.seats = carInfo.getSeatCount();
|
|
|
+//
|
|
|
+// this.wholeWeight = String.valueOf(Float.parseFloat(carInfo.getCompleteKerbMass()) / 1000);
|
|
|
+// this.tonNumber = tonNumber;
|
|
|
+//
|
|
|
+// this.exhaustMeasure = modelsDto.getExhaustMeasure();
|
|
|
+//// this.power = modelsDto.get;
|
|
|
+// this.vehicleCertiType = vehicleCertiType;
|
|
|
+// this.vehicleCertiNo = vehicleCertiNo;
|
|
|
+// this.vehicleCertiDate = vehicleCertiDate;
|
|
|
+// this.invoiceDate = invoiceDate;
|
|
|
+// this.useAttribute = useAttribute;
|
|
|
+// this.useAttributDetailCode = useAttributDetailCode;
|
|
|
+// this.ownAttribute = ownAttribute;
|
|
|
+// this.offerLastPolicyFlag = offerLastPolicyFlag;
|
|
|
+// this.isOfferLocalUseProof = isOfferLocalUseProof;
|
|
|
+// this.shanghaiVehicleType = shanghaiVehicleType;
|
|
|
+// this.isNewEnergyVehicle = isNewEnergyVehicle;
|
|
|
+// this.vehicleCodeForShangHai = vehicleCodeForShangHai;
|
|
|
+// this.specialCarLicense = specialCarLicense;
|
|
|
+// }
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|