Commit 2b2ae4a6 by 杨林龙

新增删除试驾设备时 同步给试驾围栏

1 parent f0625030
......@@ -440,6 +440,10 @@ public class VehicleService {
//试驾设备标记为非试驾设备
vehicleDevice.setTrialType(ConstantsDevice.NOT_TRIAL_DEVICE_STATUS);
vehicleDeviceService.updateByPrimaryKey(vehicleDevice);
// 同步设备给试驾围栏
Vehicle vehicle = vehicleMapper.selectById(vehicleId);
fenceService.syncUsersFencesSns(Lists.newArrayList(vehicle.getCreatedBy()));
}
/**
......@@ -1300,6 +1304,10 @@ public class VehicleService {
vehicleDevice.setUpdatedDate(new Date());
vehicleDevice.setUpdatedBy(ShieldContextHolder.getUserId());
vehicleDeviceService.updateByPrimaryKey(vehicleDevice);
// 同步设备给围栏
Vehicle vehicle = vehicleMapper.selectById(testVehicleVo.getId());
fenceService.syncUsersFencesSns(Lists.newArrayList(vehicle.getCreatedBy()));
}
public void adjFreq(DeviceWorkModel model) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!