Commit fb60eb0b authored by 赵啸非's avatar 赵啸非

添加告警统计信息

parent 6ba44a3b
package com.mortals.xhx.module.device.service.impl;
import cn.hutool.core.date.DatePattern;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.NumberUtil;
import com.mortals.framework.common.Rest;
......@@ -129,7 +130,7 @@ public class DeviceAlarmInfoServiceImpl extends AbstractCRUDServiceImpl<DeviceAl
HashMap<String, Object> map = new HashMap<>();
map.put("deviceName", item.getDeviceName());
map.put("count", deviceAlarmCountMap.getOrDefault(item.getAlarmDevice(), 1L));
map.put("alarmTime", item.getAlarmTime());
map.put("alarmTime", DateUtil.format(item.getAlarmTime(), DatePattern.NORM_TIME_PATTERN));
map.put("alarmType", AlarmTypeEnum.getByValue(item.getAlarmType()).getDesc());
return map;
}).collect(Collectors.toList());
......
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