大屏分页

develop
Angel 10 months ago
parent b24fb982e0
commit 1b07330b49

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

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

Loading…
Cancel
Save