大屏分页

develop
Angel 10 months ago
parent b24fb982e0
commit 1b07330b49

@ -293,7 +293,6 @@ public class BigScreenController extends BaseController {
@ApiOperation("警情统计列表,重点警情")
public AjaxResult policeSituationStatisticsList() {
try {
List<MetaAlarmInfoAndHandleAlarmVo> metaAlarmInfos = alarmInfoService.listAlarmAndHandleAlarm();
ArrayList<MetaAlarmInfoAndHandleAlarmVo> alarmVos = new ArrayList<>();
for (MetaAlarmInfoAndHandleAlarmVo metaAlarmInfoAndHandleAlarmVo : metaAlarmInfos){
@ -315,6 +314,7 @@ public class BigScreenController extends BaseController {
metaAlarmInfoAndHandleAlarmVo.setJjxxAlarmResponseTime(dateFormat.format(jjxxAlarmResponse));
}
alarmVos.add(metaAlarmInfoAndHandleAlarmVo);
Collections.sort(alarmVos,Collections.reverseOrder());
}
return AjaxResult.success(alarmVos);
} catch (Exception e) {

@ -90,4 +90,5 @@ public interface MetaAlarmInfoMapper extends BaseMapper<MetaAlarmInfo> {
" AND DATE(informant_time) = CURDATE() " +
" ORDER BY informant_time DESC LIMIT 100) a")
public List<MetaAlarmInfoAndHandleAlarmVo> listAlarmAndHandleAlarm();
}

Loading…
Cancel
Save