| | |
| | | } |
| | | |
| | | /** |
| | | * 自定义分页 |
| | | */ |
| | | @GetMapping("/page_az") |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "分页", notes = "传入alarm") |
| | | public R<IPage<AlarmVO>> page_az(AlarmVO alarm, Query query) { |
| | | IPage<AlarmVO> pages = alarmService.selectazPage(Condition.getPage(query), alarm); |
| | | return R.data(pages); |
| | | } |
| | | |
| | | /** |
| | | * 安装任务图表接口 |
| | | */ |
| | | @GetMapping("/getChartData") |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "分页", notes = "传入alarm") |
| | | public R<List> getChartData(AlarmVO alarm) { |
| | | List<Map<String,Object>> list = alarmService.getChartData(alarm); |
| | | return R.data(list); |
| | | } |
| | | |
| | | /** |
| | | * 查询所有 |
| | | * @return |
| | | */ |
| | |
| | | response.setHeader("Access-Control-Allow-Origin", "*"); |
| | | response.setHeader("Access-Control-Allow-Methods", "POST, GET, OPTIONS, DELETE"); |
| | | response.setHeader("Access-Control-Allow-Credentials","true"); |
| | | alarmService.updateJtype(operation.getJid(),operation.getJtype(),operation.getBz(),operation.getSecurityArr()); |
| | | |
| | | String bs = null; |
| | | if (operation.getZc() !=null && operation.getZc() !=""){ |
| | | if (operation.getZc().equals("派送保安")){ |
| | | bs = "0"; |
| | | }else if(operation.getZc().equals("办结")){ |
| | | bs = "1"; |
| | | }else if(operation.getZc().equals("推送110")){ |
| | | bs = "2"; |
| | | } |
| | | } |
| | | |
| | | alarmService.updateJtype(operation.getJid(),operation.getJtype(),operation.getBz(),operation.getSecurityArr(),bs); |
| | | alarmService.updatePoliceStatus(operation.getRid(),"0"); |
| | | operationService.save(operation); |
| | | //如果警情处理完成,则修改设备状态为正常 |