Commit de397b0e by 黄小葱

bug修改 同步车辆绑定设备

1 parent 3df92f79
......@@ -344,11 +344,10 @@ public class VehicleService {
for (TrackInfoBo trackInfo : trackInfoList) {
String sn = trackInfo.getSn();
// 查询设备是否存在
if (deviceService.checkSnExist(sn)) {
log.info("设备已存在,sn:" + sn);
continue;
if (!deviceService.checkSnExist(sn)) {
saveDevice(trackInfo, createId);
}
saveDevice(trackInfo, createId);
log.info("设备已存在,不保存。sn:" + sn);
//检查该设备是否绑定 如果绑定 则解除绑定 重新绑定新车辆
if (vehicle != null) {
checkAndBindNewVehicle(sn, vehicle.getId(), createId);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!