| | |
| | | import org.sxkj.fw.cockpit.service.ICockpitService; |
| | | import org.sxkj.fw.cockpit.vo.AlarmStatisticsVO; |
| | | import org.sxkj.fw.cockpit.vo.DeviceStatisticsVO; |
| | | import org.sxkj.fw.cockpit.vo.SceneManageStatisticsVO; |
| | | import org.sxkj.fw.detection.param.FwEffectEvalParam; |
| | | import org.sxkj.fw.device.dto.FwDeviceDTO; |
| | | import org.sxkj.fw.device.vo.CockpitFwDeviceVO; |
| | |
| | | } |
| | | |
| | | /** |
| | | * 场景管理与区域数量统计 |
| | | */ |
| | | @GetMapping("/sceneManageStatistics") |
| | | @ApiOperationSupport(order = 6) |
| | | @ApiOperation(value = "场景管理统计", notes = "返回场景管理数量与区域数量") |
| | | public R<SceneManageStatisticsVO> getSceneManageStatistics( |
| | | @ApiParam(value = "时间筛选(yyyy-MM-dd HH:mm:ss)") @RequestParam(required = false) @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") Date time) { |
| | | Date filterTime = time == null ? new Date() : time; |
| | | SceneManageStatisticsVO statistics = cockpitService.statisticsSceneManageAndArea(filterTime); |
| | | return R.data(statistics); |
| | | } |
| | | |
| | | /** |
| | | * 信号干扰,诱导驱离 |
| | | */ |
| | | @PostMapping("/interferenceAndExpulsion") |
| | |
| | | @ApiParam(value = "区域类型key集合(逗号分隔)") @RequestParam(required = false) String areaTypeKeys, |
| | | @ApiParam(value = "是否按场景管理过滤(1是 0或空否)") @RequestParam(required = false) Integer isSetSceneManage, |
| | | @ApiParam(value = "时间筛选(yyyy-MM-dd HH:mm:ss)") @RequestParam(required = false) @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") LocalDateTime flyTime) { |
| | | List<FwAreaDivideVO> list = cockpitService.selectFwAreaDivideList(filterSelected, sceneId, areaTypeKeys, isSetSceneManage, flyTime); |
| | | LocalDateTime filterFlyTime = flyTime; |
| | | if (isSetSceneManage != null && isSetSceneManage == 1 && flyTime == null) { |
| | | filterFlyTime = LocalDateTime.now(); |
| | | } |
| | | List<FwAreaDivideVO> list = cockpitService.selectFwAreaDivideList(filterSelected, sceneId, areaTypeKeys, isSetSceneManage, filterFlyTime); |
| | | return R.data(list); |
| | | } |
| | | |