|
|
@@ -901,10 +901,14 @@ public class CalculatePremiumRequest implements Serializable {
|
|
|
this.carInsuredRelation = "1";
|
|
|
|
|
|
String limitLoad = carInfo.getLimitLoad();
|
|
|
+
|
|
|
if (VehicleType.VT_A1.getCode().equals(carInfo.getCimodelclass())) {
|
|
|
double v = Double.parseDouble(limitLoad) / 1000;
|
|
|
this.tonCount = String.valueOf(v);
|
|
|
+ this.carKindDetailId = getTruckCarKindDetailId(v);
|
|
|
this.printUseNatureCode = "0003";
|
|
|
+ } else {
|
|
|
+ this.carKindDetailId = getCarKindDetailId(Integer.parseInt(carInfo.getSeatCount()));
|
|
|
}
|
|
|
|
|
|
this.completekerbmass = carInfo.getCompleteKerbMass();
|
|
|
@@ -912,7 +916,6 @@ public class CalculatePremiumRequest implements Serializable {
|
|
|
CarKindCode carKindCode1 = Enum.valueOf(CarKindCode.class, CarKindCode.TITLE + carInfo.getCimodelclass());
|
|
|
this.carKindCode = carKindCode1.getCode();
|
|
|
|
|
|
- this.carKindDetailId = getCarKindDetailId(Integer.parseInt(carInfo.getSeatCount()));
|
|
|
this.exhaustCapacity = vehicleModelInfosDTO.getExhaustCapacity();
|
|
|
this.oriCarKindName = carInfo.getCartype();
|
|
|
|
|
|
@@ -953,6 +956,19 @@ public class CalculatePremiumRequest implements Serializable {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ public String getTruckCarKindDetailId(double tonCount) {
|
|
|
+ if (tonCount < 2) {
|
|
|
+ return CarKindDetailIdEnum.HA.getCode();
|
|
|
+ } else if (tonCount < 5) {
|
|
|
+ return CarKindDetailIdEnum.HB.getCode();
|
|
|
+ } else if (tonCount < 10) {
|
|
|
+ return CarKindDetailIdEnum.HC.getCode();
|
|
|
+ }
|
|
|
+ return CarKindDetailIdEnum.HD.getCode();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
public void modificationOfVehicleType(ModelQueryResponse.VehicleModelInfosDTO vehicleModelInfosDTO, String actualValue) {
|
|
|
this.actualValue = actualValue;
|
|
|
this.agreeActualValue = actualValue;
|