Commit da3a9536 by 吕明尚

修改设备集合未绑定房间报错

parent 010cbd85
...@@ -479,7 +479,11 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme ...@@ -479,7 +479,11 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme
} }
List<Device> devices = new ArrayList<>(); List<Device> devices = new ArrayList<>();
deviceList.stream().forEach(device -> { deviceList.stream().forEach(device -> {
if (room.getId().compareTo(device.getRoomId()) == 0) { Long roomId = device.getRoomId();
if (ObjectUtil.isEmpty(roomId)) {
return;
}
if (room.getId().compareTo(roomId) == 0) {
devices.add(device); devices.add(device);
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment