Commit 1f330549 by yangll

修改车辆所属组织 同步围栏数据到大数据

1 parent 96f7d908
......@@ -1308,6 +1308,13 @@ public class VehicleService {
workOrderVehicle.setVin(vehicleInfoVo.getVin());
workOrderVehicleMapper.updateByPrimaryKeySelective(workOrderVehicle);
}
// 如果所属组织发生改变 同步修改同步围栏数据到大数据
if (dbVehicle.getCreatedBy() != Long.parseLong(userId)) {
// 同步更新原先组织的围栏数据到大数据
fenceService.syncUsersFencesSns(Lists.newArrayList(dbVehicle.getCreatedBy()));
// 再同步最新的围栏数据到大数据
fenceService.syncUsersFencesSns(Lists.newArrayList(Long.parseLong(userId)));
}
// 绑定设备
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!