提交代码
This commit is contained in:
parent
78be71b699
commit
e967f1d9a7
|
@ -51,9 +51,9 @@ public class SummaryServiceImpl implements SummaryService {
|
|||
if(onlineMap.isEmpty()){
|
||||
return getPieSummaryVOS();
|
||||
}
|
||||
List<Long> deviceIdList = onlineMap.keySet().stream().map(Long::parseLong).toList();
|
||||
// List<Long> deviceIdList = onlineMap.keySet().stream().map(Long::parseLong).toList();
|
||||
|
||||
List<DeviceVO> deviceVOList = deviceService.getDeviceVOByIds(deviceIdList);
|
||||
List<DeviceVO> deviceVOList = deviceService.getDeviceVOByIds(null);
|
||||
|
||||
//将所有设备按不同的设备品牌进行分组
|
||||
Map<String,List<DeviceVO>> deviceGroup = new HashMap<>();
|
||||
|
@ -81,9 +81,8 @@ public class SummaryServiceImpl implements SummaryService {
|
|||
Integer onLineCount = 0;
|
||||
Integer offLineCount = 0;
|
||||
|
||||
List<DeviceVO> allDeviceVOList = deviceService.getDeviceVOByIds(null);
|
||||
|
||||
for(DeviceVO deviceVO : allDeviceVOList){
|
||||
for(DeviceVO deviceVO : deviceVOList){
|
||||
if("true".equalsIgnoreCase(onlineMap.get(deviceVO.getId().toString()))){
|
||||
onLineCount++;
|
||||
}else {
|
||||
|
|
Loading…
Reference in New Issue