Commit 88897a99 authored by 赵啸非's avatar 赵啸非

添加告警统计信息

parent ee9d4ab9
......@@ -92,7 +92,7 @@ public class DeviceAlarmInfoServiceImpl extends AbstractCRUDServiceImpl<DeviceAl
Map<String, Long> siteDeviceAlarmCollect = deviceAlarmInfoList.parallelStream().distinct().collect(groupingBy(x -> x.getSiteId(), counting()))
.entrySet().stream().sorted(Map.Entry.comparingByValue(Comparator.reverseOrder()))
.collect(Collectors.toMap(
x -> siteMap.get(x).getSiteName(),
x -> siteMap.get(x)==null?"未知站点":siteMap.get(x).getSiteName(),
Map.Entry::getValue,
(oldVal, newVal) -> oldVal));
deviceAlarmInfo.setSiteDeviceAlarmCollect(siteDeviceAlarmCollect);
......
......@@ -56,6 +56,15 @@ Content-Type: application/json
}
###设备告警统计查看
POST {{baseUrl}}/device/alarm/info/stats
Accept: application/json
Content-Type: application/json
{
"siteId": 1
}
###设备编辑
GET {{baseUrl}}/device/edit?id={{Device_id}}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment