| | |
| | | }catch (Exception e){ |
| | | |
| | | } |
| | | /* if(result.size()==0){ |
| | | boolean debug =false; |
| | | if(debug && result.size()==0){ |
| | | //------TODO---------测试模拟数据----start----- |
| | | for (int i = 0; i < 5; i++) { |
| | | PageRegionInfoResponse t = new PageRegionInfoResponse(); |
| | |
| | | result.add(t); |
| | | } |
| | | //------TODO---------测试模拟数据----end----- |
| | | }*/ |
| | | } |
| | | return ApiResponse.success(result); |
| | | } |
| | | @ApiOperation("【海康】强制刷新区域、监控、消防设备缓存") |
| | | @PostMapping("/refreshRegionData") |
| | | public ApiResponse<String > refreshRegionData(HttpServletResponse response, @RequestHeader(Constants.HEADER_USER_TOKEN) String token ){ |
| | | boardService.cacheRegionAndDeviceData( ); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | |
| | | |