Commit bfee9581 by 杨林龙

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

1 parent fc6e2e6c
...@@ -1637,6 +1637,10 @@ public class VehicleService extends AbstractCommonService { ...@@ -1637,6 +1637,10 @@ public class VehicleService extends AbstractCommonService {
bindSnList.add(deviceInfoDto.getSn()); bindSnList.add(deviceInfoDto.getSn());
// 修改设备为激活状态 // 修改设备为激活状态
updateDeviceActiveStatus(deviceInfoDto.getSn(), vehicle.getUpdatedBy(), ConstantsDevice.DEVICE_ACTIVED); updateDeviceActiveStatus(deviceInfoDto.getSn(), vehicle.getUpdatedBy(), ConstantsDevice.DEVICE_ACTIVED);
}else {
// 如果设备号没有变化 同步修改设备标记位 解决位置更换标记为没有更换的BUG
vehicleDevice.setActiveFlag(deviceInfoDto.getActiveFlag());
vehicleDeviceService.updateByPrimaryKey(vehicleDevice);
} }
currentDeviceInfoDtoMap.put(deviceInfoDto.getSn(), deviceInfoDto); currentDeviceInfoDtoMap.put(deviceInfoDto.getSn(), deviceInfoDto);
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!