fix (farm): 设备类型

- 设备类型列表
This commit is contained in:
达富斌
2025-09-21 17:26:33 +08:00
parent 46f9bd6cb9
commit 62d8c25f6f

View File

@@ -115,7 +115,7 @@ public class DeviceClassifyServiceImpl implements DeviceClassifyService {
public List<DeviceTypeRespVO> getDeviceTypeList() {
List<DeviceClassifyDO> list = this.getDeviceClassifyList();
return list.stream()
.filter(device -> device.getParentId() != null && device.getParentId() == 0L)
.filter(device -> device.getParentId() == null || device.getParentId() == 0L)
.map(device -> new DeviceTypeRespVO(
String.valueOf(device.getId()),
device.getName(),