fix (farm): 设备类型
- 设备类型列表
This commit is contained in:
@@ -115,7 +115,7 @@ public class DeviceClassifyServiceImpl implements DeviceClassifyService {
|
|||||||
public List<DeviceTypeRespVO> getDeviceTypeList() {
|
public List<DeviceTypeRespVO> getDeviceTypeList() {
|
||||||
List<DeviceClassifyDO> list = this.getDeviceClassifyList();
|
List<DeviceClassifyDO> list = this.getDeviceClassifyList();
|
||||||
return list.stream()
|
return list.stream()
|
||||||
.filter(device -> device.getParentId() != null && device.getParentId() == 0L)
|
.filter(device -> device.getParentId() == null || device.getParentId() == 0L)
|
||||||
.map(device -> new DeviceTypeRespVO(
|
.map(device -> new DeviceTypeRespVO(
|
||||||
String.valueOf(device.getId()),
|
String.valueOf(device.getId()),
|
||||||
device.getName(),
|
device.getName(),
|
||||||
|
|||||||
Reference in New Issue
Block a user