|  |  |  | 
|---|
|  |  |  | List<GlobalAlarmData> result = globalAlarmService.selectAlarmLogs(condition); | 
|---|
|  |  |  | return AjaxResult.success(result); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | @GetMapping("/AllList") | 
|---|
|  |  |  | @ApiOperation(value = "实时报警聚合接口(all)",notes = "按报警刷新时间聚合查询") | 
|---|
|  |  |  | @ApiOperationSupport(includeParameters = {"command"},order = 1) | 
|---|
|  |  |  | public AjaxResult selectAlarmLogAll() { | 
|---|
|  |  |  | List<GlobalAlarmData> result = globalAlarmService.selectAlarmLogsAll(); | 
|---|
|  |  |  | return AjaxResult.success(result); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | @PostMapping("/view") | 
|---|
|  |  |  | @ApiOperation(value = "查看报警接口",notes = "指定查看某个报警数据") | 
|---|
|  |  |  | @ApiOperationSupport(includeParameters = {"command","id"},order = 3) | 
|---|
|  |  |  | 
|---|
|  |  |  | @ApiImplicitParam(name="pageNum",value="页码",dataType="integer",paramType="query",example="1",required=true,dataTypeClass = Integer.class), | 
|---|
|  |  |  | @ApiImplicitParam(name="pageSize",value="页数量",dataType="integer",paramType="query",example="10",required=true,dataTypeClass = Integer.class) | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | public TableDataInfo selectAlarmList(Integer command, String beginTime, String endTime,Integer pageNum,Integer pageSize) { | 
|---|
|  |  |  | public TableDataInfo selectAlarmList(String name,Integer command, String beginTime, String endTime,Integer pageNum,Integer pageSize) { | 
|---|
|  |  |  | startPage(); | 
|---|
|  |  |  | Object alarmList = globalAlarmService.selectAlarmList(command,beginTime,endTime, pageNum, pageSize); | 
|---|
|  |  |  | Object alarmList = globalAlarmService.selectAlarmList(name,command,beginTime,endTime, pageNum, pageSize); | 
|---|
|  |  |  | return getDataTable((List)alarmList); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | Map<String, PriorityBlockingQueue<GuideTask>> cameraQueueMap = GuidePriorityQueue.cameraQueueMap; | 
|---|
|  |  |  | return AjaxResult.success(cameraQueueMap); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @PostMapping("/ThermalMapList") | 
|---|
|  |  |  | @ApiOperation(value = "热力图接口",notes = "按报警刷新时间按报警类别聚合查询") | 
|---|
|  |  |  | @ApiOperationSupport(includeParameters = {"command","refreshTime"},order = 1) | 
|---|
|  |  |  | public AjaxResult selectThermalMap(@RequestBody GlobalAlarmCondition condition) { | 
|---|
|  |  |  | List<GlobalAlarmData> result = globalAlarmService.selectThermalMap(condition); | 
|---|
|  |  |  | return AjaxResult.success(result); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|