| | |
| | | List<AlarmExcel> list = alarmService.exportAlarm(alarmVO); |
| | | ExcelUtil.export(response, "主动报警数据" + DateUtil.time(), "主动报警数据表", list, AlarmExcel.class); |
| | | } |
| | | |
| | | /** |
| | | * APP查询警情 |
| | | * @param alarmVO |
| | | * @param response |
| | | * @return |
| | | */ |
| | | @PostMapping("/APP-getAlarm") |
| | | public R getAlarm(AlarmVO alarmVO, HttpServletResponse response) { |
| | | response.setHeader("Access-Control-Allow-Origin", "*"); |
| | | response.setHeader("Access-Control-Allow-Methods", "POST, GET, OPTIONS, DELETE"); |
| | | response.setHeader("Access-Control-Allow-Credentials","true"); |
| | | return R.data(alarmService.getAlarm(alarmVO)); |
| | | } |
| | | |
| | | } |