Browse Source

增加:告警统计列表告警时间排序

zhongwei
ty 7 months ago
parent
commit
fc93aeb313
  1. 2
      hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/show/service/impl/AlarmServiceImpl.java

2
hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/show/service/impl/AlarmServiceImpl.java

@ -65,7 +65,7 @@ public class AlarmServiceImpl extends BaseServiceImpl<AlarmMapper, AlarmEntity>
// 参数过滤 :站点、告警来源、告警子类 // 参数过滤 :站点、告警来源、告警子类
QueryWrapper wrapper = new QueryWrapper<>(); QueryWrapper wrapper = new QueryWrapper<>();
wrapper.orderByDesc("CREATE_TIME"); wrapper.orderByDesc("ALARM_TIME");
wrapper.eq("IS_RIGHT_TABULATION",0); wrapper.eq("IS_RIGHT_TABULATION",0);
wrapper.eq("STATUS",0); wrapper.eq("STATUS",0);
wrapper.in("STATION_ID",stations.stream().map(StationEntity::getCode).collect(Collectors.toList())); wrapper.in("STATION_ID",stations.stream().map(StationEntity::getCode).collect(Collectors.toList()));

Loading…
Cancel
Save