Commit 5d7d35b9 authored by hezhen's avatar hezhen

123

parent 232491e0
......@@ -49,6 +49,7 @@ public class VehicleApplyBiz extends BaseBiz<VehicleApplyMapper, VehicleApply>{
if (list.size() > 0){
throw new BaseException("公司名称不能重复",ResultCode.FAILED_CODE);
}*/
setPriceType(vehicle);
VehicleApply vehicleApply=new VehicleApply();
BeanUtils.copyProperties(vehicle,vehicleApply);
Integer formType=2;
......@@ -79,6 +80,17 @@ public class VehicleApplyBiz extends BaseBiz<VehicleApplyMapper, VehicleApply>{
return vehicleApply;
}
public void setPriceType(Vehicle vehicle){
Integer goodsType = vehicle.getGoodsType() == null ? 0 : vehicle.getGoodsType();
if (goodsType > 0){
if (goodsType == 1 || goodsType == 2){
vehicle.setPriceType(2);
}else if (goodsType == 3){
vehicle.setPriceType(1);
}
}
}
public Long checkStatus(String vehicleId){
VehicleApply vehicleApply=new VehicleApply();
vehicleApply.setVehicleId(vehicleId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment