Commit 4c77d83a by gdj

修复设备列表bug。

parent a52642df
......@@ -671,7 +671,7 @@ public class DeviceServiceImpl extends ServiceImpl<IDeviceMapper, DeviceEntity>
device.setStatus(deviceRedisService.checkDeviceOnline(sn));
// 查询 无人机
List<DeviceDTO> childrenList = this.getDevicesByParams(DeviceQueryParam.builder().deviceSn(device.getChildDeviceSn()).build());
if (!devicesList.isEmpty()) {
if (!childrenList.isEmpty()) {
device.setChildren(childrenList.get(0));
}
return Optional.of(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