|
|
@ -1200,6 +1200,7 @@ public class SideHustleServiceImpl implements ISideHustleService { |
|
|
|
List<EquipmentStateCountVo> equipmentList = new ArrayList<>(); |
|
|
|
List<EquipmentStateCountVo> equipmentList = new ArrayList<>(); |
|
|
|
deptMap.forEach((key, value) -> { |
|
|
|
deptMap.forEach((key, value) -> { |
|
|
|
EquipmentStateCountVo equipmentCountVo = new EquipmentStateCountVo(); |
|
|
|
EquipmentStateCountVo equipmentCountVo = new EquipmentStateCountVo(); |
|
|
|
|
|
|
|
equipmentCountVo.setSort(key.getSort()); |
|
|
|
equipmentCountVo.setDeptId(key.getId()); |
|
|
|
equipmentCountVo.setDeptId(key.getId()); |
|
|
|
equipmentCountVo.setDeptName(key.getDeptName()); |
|
|
|
equipmentCountVo.setDeptName(key.getDeptName()); |
|
|
|
// 根据部门查询设备
|
|
|
|
// 根据部门查询设备
|
|
|
@ -1253,7 +1254,7 @@ public class SideHustleServiceImpl implements ISideHustleService { |
|
|
|
this.setDeviceInfo(R.getData(), deviceVoList, equipmentCountVo); |
|
|
|
this.setDeviceInfo(R.getData(), deviceVoList, equipmentCountVo); |
|
|
|
equipmentList.add(equipmentCountVo); |
|
|
|
equipmentList.add(equipmentCountVo); |
|
|
|
}); |
|
|
|
}); |
|
|
|
return equipmentList; |
|
|
|
return equipmentList.stream().sorted(Comparator.comparing(EquipmentStateCountVo::getSort)).collect(Collectors.toList()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|