Commit 94c86e6c authored by chenzhao's avatar chenzhao

修改代码

parent 99c595c3
......@@ -11,7 +11,7 @@ public interface AlarmEventMapper extends BaseMapper<AlarmEvent> {
String getLastDataBySort(String gatewayId);
List <AlarmEventDto> getAlarmEventList(String gatewayId,String stationId,int current, int size);
List <AlarmEventDto> getAlarmEventList(String gatewayId,String stationId);
List<String> getOldAlarmsBySort(String gatewayId, String sort);
......
......@@ -961,7 +961,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
public ResultsData getAlarmEventList(int current, int size, String stationId) {
List<AlarmEventDto> alarmEventList = alarmEventMapper.getAlarmEventList(null, stationId, current, size);
List<AlarmEventDto> alarmEventList = alarmEventMapper.getAlarmEventList(null, stationId);
// List<AlarmEventDto> sorrtedAlarmEventList = alarmEventList.stream().sorted(Comparator.comparing(AlarmEventDto::getCreatedTime).reversed()).collect(Collectors.toList());
ArrayList<Map<String, String>> resultList = new ArrayList<>();
......
......@@ -22,7 +22,7 @@
station_id = #{stationId}
</if>
</where>
order by sort desc limit #{current},#{size}
order by event_time desc
</select>
......
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