|
|
@ -91,7 +91,7 @@ public class IndexController {
|
|
|
|
baseMonitorunitInfoDtoList.stream()
|
|
|
|
baseMonitorunitInfoDtoList.stream()
|
|
|
|
.filter(
|
|
|
|
.filter(
|
|
|
|
y ->
|
|
|
|
y ->
|
|
|
|
!y.getParentId().isEmpty()
|
|
|
|
y.getParentId()!=null
|
|
|
|
&& y.getMonitorunitType().equals(x.getMonitorunittypeId()))
|
|
|
|
&& y.getMonitorunitType().equals(x.getMonitorunittypeId()))
|
|
|
|
.collect(Collectors.toList());
|
|
|
|
.collect(Collectors.toList());
|
|
|
|
BaseMonitorunitInfoDto info = new BaseMonitorunitInfoDto();
|
|
|
|
BaseMonitorunitInfoDto info = new BaseMonitorunitInfoDto();
|
|
|
@ -396,6 +396,9 @@ public class IndexController {
|
|
|
|
@GetMapping("/quantityStatistics")
|
|
|
|
@GetMapping("/quantityStatistics")
|
|
|
|
@ResponseBody
|
|
|
|
@ResponseBody
|
|
|
|
public String quantityStatistics() {
|
|
|
|
public String quantityStatistics() {
|
|
|
|
|
|
|
|
List<Integer> result = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
List<BaseSensorInfoDto> baseSensorInfoDtos = new ArrayList<>();
|
|
|
|
List<BaseSensorInfoDto> baseSensorInfoDtos = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
|
|
List<BaseMonitorunitInfoDto> baseMonitorunitInfoDtoList = new ArrayList<BaseMonitorunitInfoDto>();
|
|
|
|
List<BaseMonitorunitInfoDto> baseMonitorunitInfoDtoList = new ArrayList<BaseMonitorunitInfoDto>();
|
|
|
@ -429,17 +432,21 @@ public class IndexController {
|
|
|
|
baseMonitorunitInfoDtoList.addAll(baseMonitorunitInfoDtos);
|
|
|
|
baseMonitorunitInfoDtoList.addAll(baseMonitorunitInfoDtos);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
List<Integer> result =
|
|
|
|
result =
|
|
|
|
new ArrayList<Integer>() {
|
|
|
|
new ArrayList<Integer>() {
|
|
|
|
{
|
|
|
|
{
|
|
|
|
this.add(baseSensorInfoDtos.size());
|
|
|
|
this.add(baseSensorInfoDtos.size());
|
|
|
|
this.add(
|
|
|
|
this.add(
|
|
|
|
baseMonitorunitInfoDtoList.stream()
|
|
|
|
baseMonitorunitInfoDtoList.stream()
|
|
|
|
.filter(x -> !x.getParentId().isEmpty() && x.getEnableFlag() == 0L)
|
|
|
|
.filter(x -> x.getParentId() != null && x.getEnableFlag() == 0L)
|
|
|
|
.collect(Collectors.toList())
|
|
|
|
.collect(Collectors.toList())
|
|
|
|
.size());
|
|
|
|
.size());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
}catch (Exception ex) {
|
|
|
|
|
|
|
|
System.out.println(ex.getMessage());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return JSONArray.toJSONString(result);
|
|
|
|
return JSONArray.toJSONString(result);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -454,6 +461,7 @@ public class IndexController {
|
|
|
|
@ResponseBody
|
|
|
|
@ResponseBody
|
|
|
|
public String getAlarmAmount() {
|
|
|
|
public String getAlarmAmount() {
|
|
|
|
List<String> info = new ArrayList<>();
|
|
|
|
List<String> info = new ArrayList<>();
|
|
|
|
|
|
|
|
try{
|
|
|
|
List<RecordAlarm> recordAlarms = new ArrayList<>();
|
|
|
|
List<RecordAlarm> recordAlarms = new ArrayList<>();
|
|
|
|
SysUser sysUser = ShiroUtils.getSysUser();
|
|
|
|
SysUser sysUser = ShiroUtils.getSysUser();
|
|
|
|
|
|
|
|
|
|
|
@ -479,6 +487,9 @@ public class IndexController {
|
|
|
|
info.add("--");
|
|
|
|
info.add("--");
|
|
|
|
info.add("--");
|
|
|
|
info.add("--");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}catch (Exception ex) {
|
|
|
|
|
|
|
|
System.out.println(ex.getMessage());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return JSONArray.toJSONString(info);
|
|
|
|
return JSONArray.toJSONString(info);
|
|
|
|
}
|
|
|
|
}
|
|
|
|