|
|
@@ -3,6 +3,7 @@ package com.ydtech.modules.order.entity.api.yangguang.request;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.alibaba.fastjson.annotation.JSONField;
|
|
|
import com.ydtech.modules.order.entity.InsOrders;
|
|
|
+import com.ydtech.modules.order.entity.api.yangguang.constants.YangGuangCarType;
|
|
|
import com.ydtech.modules.order.entity.api.yangguang.constants.YgUseNatureCodeMapping;
|
|
|
import com.ydtech.modules.order.entity.config.YangGuangConfigureParameters;
|
|
|
import lombok.Data;
|
|
|
@@ -105,7 +106,10 @@ public class YangGuangGetNonVehicleProductsRequest extends YangGuangBaseRequest
|
|
|
if (useNatureCode != null) {
|
|
|
this.UseNatureCode = YgUseNatureCodeMapping.getYgUseNatureCode(useNatureCode);
|
|
|
}
|
|
|
- this.VehicleType = jsonObject.getString("cimodelclass");
|
|
|
+ String cartype = jsonObject.getString("cartype");
|
|
|
+ //车辆种类
|
|
|
+ YangGuangCarType yangGuangCarType = Enum.valueOf(YangGuangCarType.class,cartype);
|
|
|
+ this.VehicleType = yangGuangCarType.getCode();
|
|
|
this.LicenseCategory = jsonObject.getString("cartype");
|
|
|
this.Toncount = jsonObject.getString("seatCount");
|
|
|
}
|