Commit 9ca06d21 by 杨林龙

修改车辆重复绑定 标记位错误的问题

1 parent cf62cb54
...@@ -1627,6 +1627,7 @@ public class VehicleService extends AbstractCommonService { ...@@ -1627,6 +1627,7 @@ public class VehicleService extends AbstractCommonService {
if (unbindVehicleDevice != null) { if (unbindVehicleDevice != null) {
log.info("车辆修改绑定状态:{}", JSONObject.toJSONString(unbindVehicleDevice)); log.info("车辆修改绑定状态:{}", JSONObject.toJSONString(unbindVehicleDevice));
unbindVehicleDevice.setBindStatus(ConstantsDevice.BIND_VEHICLE_STATUS); unbindVehicleDevice.setBindStatus(ConstantsDevice.BIND_VEHICLE_STATUS);
unbindVehicleDevice.setActiveFlag(deviceInfoDto.getActiveFlag());
vehicleDeviceService.updateByPrimaryKey(unbindVehicleDevice); vehicleDeviceService.updateByPrimaryKey(unbindVehicleDevice);
} else { } else {
log.info("车辆" + vehicle.getId() + "新绑定的设备号===" + deviceInfoDto.getSn()); log.info("车辆" + vehicle.getId() + "新绑定的设备号===" + deviceInfoDto.getSn());
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!