Commit 5f791a68 by 刘宇峰

V1.3.0需求开发-试驾详情

1 parent 4a6486db
......@@ -1605,7 +1605,6 @@ public class VehicleService {
// 同步设备给试驾围栏
log.info("同步设备给试驾围栏===" + vehicleDevice.getVehicleId());
Vehicle vehicle = vehicleMapper.selectById(vehicleDevice.getVehicleId());
fenceService.syncUsersFencesSns(Lists.newArrayList(vehicle.getCreatedBy()));
// 查询该车辆绑定的设备列表 如果只绑定了一个设备 则一同删除车辆档案信息 删除试驾车关系表数据
List<VehicleDevice> vehicleDeviceList = vehicleDeviceService.listVehicleDeviceByVehicleIdBind(vehicleDevice.getVehicleId());
......@@ -1623,6 +1622,9 @@ public class VehicleService {
vehicleDevice.setDelFlag(Constants.DELETE_FLAG);
vehicleDeviceService.updateByPrimaryKey(vehicleDevice);
//同步变动设备及围栏到大数据
fenceService.syncUsersFencesSns(Lists.newArrayList(vehicle.getCreatedBy()));
//将设备设置为未激活
Device device = deviceService.getDeviceBySn(vehicleDevice.getSn());
device.setActivateTime(null);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!