Commit 4672309e by 杨林龙

修改时除掉所属组织参数

1 parent 1f671038
...@@ -1251,7 +1251,7 @@ public class VehicleService { ...@@ -1251,7 +1251,7 @@ public class VehicleService {
if (vehicleType != null) { if (vehicleType != null) {
vehicle.setModelName(vehicleType.getTypeName()); vehicle.setModelName(vehicleType.getTypeName());
} }
String userId = vehicleInfoVo.getOrganizationId().replace("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());
vehicleMapper.insert(vehicle); vehicleMapper.insert(vehicle);
...@@ -1291,10 +1291,7 @@ public class VehicleService { ...@@ -1291,10 +1291,7 @@ public class VehicleService {
if (vehicleType != null) { if (vehicleType != null) {
vehicle.setModelName(vehicleType.getTypeName()); vehicle.setModelName(vehicleType.getTypeName());
} }
String userId = vehicleInfoVo.getOrganizationId().replace("u", "");
vehicle.setCreatedBy(Long.parseLong(userId));
vehicle.setUpdatedDate(new Date()); vehicle.setUpdatedDate(new Date());
vehicle.setUpdatedBy(Long.parseLong(userId));
vehicleMapper.updateByPrimaryKey(vehicle); vehicleMapper.updateByPrimaryKey(vehicle);
// 绑定设备 // 绑定设备
List<DeviceInfoDto> deviceInfoDtos = vehicleInfoVo.getDeviceInfoDtos(); List<DeviceInfoDto> deviceInfoDtos = vehicleInfoVo.getDeviceInfoDtos();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!