Commit e686d125 by 刘宇峰

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

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