|
|
@@ -344,7 +344,7 @@ public class IotBoardServiceImpl implements IotBoardService {
|
|
|
//物联设备最近90天的告警数据
|
|
|
List<Map<String, String>> alarmCountMap = alarmDataService.selectAlarmCount(orgPath);
|
|
|
//计算alarmCountMap 所有nums的总和
|
|
|
- int nums = alarmCountMap.stream().mapToInt(m -> Integer.parseInt(m.get(MAP_VALUE))).sum();
|
|
|
+ int nums = alarmCountMap.stream().filter(m -> ObjectUtil.notEqual(Integer.parseInt(m.get(DEVICE_TYPE)), SensorType.ALARM_SENSOR.getCode())).mapToInt(m -> Integer.parseInt(m.get(MAP_VALUE))).sum();
|
|
|
totalData.setTotalAlerts(nums);
|
|
|
|
|
|
//传感器数据
|
|
|
@@ -407,7 +407,7 @@ public class IotBoardServiceImpl implements IotBoardService {
|
|
|
List<MediatorVideoIntegrityCheckLog> videoIntegrityCheckLogs = iotBoardMapper.selectVideoCheckSelf(org.getPath(), DateUtil.format(offsetDay, "yyyy-MM-dd"), DateUtil.format(now, "yyyy-MM-dd"));
|
|
|
if (ObjectUtil.isEmpty(videoIntegrityCheckLogs)) {
|
|
|
videoInspection.setLostRate("-");
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
videoInspection.setUpdateTime(videoIntegrityCheckLogs.get(0).getUpdateTime());
|
|
|
}
|
|
|
//获取通道数量
|