问题单修复
This commit is contained in:
@@ -95,6 +95,12 @@ public class DeviceAbnormaStatisticsServiceImpl implements DeviceAbnormalStatist
|
||||
topMsg.setFlowFlag(1);
|
||||
topMsg.setOnlineRateFlag(1);
|
||||
topMsg.setAlarmCountFlag(1);
|
||||
try {
|
||||
topMsg.setTime(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse(param.getTime()));
|
||||
} catch (ParseException e) {
|
||||
log.error("ParseException: "+e);
|
||||
e.printStackTrace();
|
||||
}
|
||||
int deviceLevel = devEntry.getValue().stream().mapToInt(AlarmPO::getLevel).min().orElse(-1);
|
||||
// 装置等级
|
||||
topMsg.setDeviceLevel(deviceLevel);
|
||||
|
||||
Reference in New Issue
Block a user