Commit c60746b5 by 杨林龙

新增车辆增加操作日志

1 parent ed179d55
...@@ -1260,6 +1260,7 @@ public class VehicleService { ...@@ -1260,6 +1260,7 @@ public class VehicleService {
String userId = vehicleInfoVo.getOrganizationId().replaceAll("u", ""); String userId = vehicleInfoVo.getOrganizationId().replaceAll("u", "");
vehicle.setCreatedBy(Long.parseLong(userId)); vehicle.setCreatedBy(Long.parseLong(userId));
vehicle.setCreatedDate(new Date()); vehicle.setCreatedDate(new Date());
vehicle.setRemark("由" + ShieldContextHolder.getAccount() + "创建,时间:" + DateUtil.formatDate(new Date()));
vehicleMapper.insert(vehicle); vehicleMapper.insert(vehicle);
List<DeviceInfoDto> deviceInfoDtos = vehicleInfoVo.getDeviceInfoDtos(); List<DeviceInfoDto> deviceInfoDtos = vehicleInfoVo.getDeviceInfoDtos();
for (DeviceInfoDto deviceInfoDto : deviceInfoDtos) { for (DeviceInfoDto deviceInfoDto : deviceInfoDtos) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!