Commit b2456d17 authored by hezhen's avatar hezhen

123

parent 3ea1b53c
...@@ -325,4 +325,8 @@ public class Vehicle { ...@@ -325,4 +325,8 @@ public class Vehicle {
@ApiModelProperty("扩展信息list") @ApiModelProperty("扩展信息list")
private String extensionList; private String extensionList;
@Transient
@ApiModelProperty("申请id")
private Integer vehicleApplyId;
} }
\ No newline at end of file
...@@ -69,6 +69,13 @@ public class VehicleApplyBiz extends BaseBiz<VehicleApplyMapper, VehicleApply>{ ...@@ -69,6 +69,13 @@ public class VehicleApplyBiz extends BaseBiz<VehicleApplyMapper, VehicleApply>{
vehicleApply.setVehicleId(vehicleId); vehicleApply.setVehicleId(vehicleId);
vehicleApply.setId(null); vehicleApply.setId(null);
insertSelective(vehicleApply); insertSelective(vehicleApply);
Integer vehicleApplyId = vehicle.getVehicleApplyId() == null ? 0 : vehicle.getVehicleApplyId();
if (vehicleApplyId > 0){
VehicleApply vehicleApply1=new VehicleApply();
vehicleApply1.setId(vehicleApplyId);
vehicleApply1.setIsDel(1);
updateSelectiveById(vehicleApply1);
}
return vehicleApply; return vehicleApply;
} }
......
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