Commit e686d125 by 刘宇峰

新增车辆-车型管理-异步保存

1 parent c6a609d6
...@@ -229,7 +229,7 @@ public class VehicleController { ...@@ -229,7 +229,7 @@ public class VehicleController {
throw new AdminException(ResultEnum.TENANT_VEHICLE_TYPES_EXISTED); throw new AdminException(ResultEnum.TENANT_VEHICLE_TYPES_EXISTED);
} }
vehicleService.saveVehicleTypes(typesBO); vehicleService.saveVehicleTypes(typesBO, ShieldContextHolder.getUserId());
return R.ok(); return R.ok();
} }
......
...@@ -787,7 +787,7 @@ public class VehicleService { ...@@ -787,7 +787,7 @@ public class VehicleService {
} }
@Async @Async
public void saveVehicleTypes(VehicleTypesBO typesBO) { public void saveVehicleTypes(VehicleTypesBO typesBO, Long userId) {
Date now = new Date(); Date now = new Date();
...@@ -813,7 +813,7 @@ public class VehicleService { ...@@ -813,7 +813,7 @@ public class VehicleService {
tvType.setTypeId(carType.getCarTypeId()); tvType.setTypeId(carType.getCarTypeId());
tvType.setTypeName(carType.getName()); tvType.setTypeName(carType.getName());
tvType.setEnableStatus(typesBO.getEnableStatus()); tvType.setEnableStatus(typesBO.getEnableStatus());
tvType.setCreatedBy(ShieldContextHolder.getUserId()); tvType.setCreatedBy(userId);
tvType.setCreatedDate(now); tvType.setCreatedDate(now);
tvTypeList.add(tvType); tvTypeList.add(tvType);
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!