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