| | |
| | | @GetMapping("/sceneManageStatistics") |
| | | @ApiOperationSupport(order = 6) |
| | | @ApiOperation(value = "场景管理统计", notes = "返回场景管理数量与区域数量") |
| | | public R<SceneManageStatisticsVO> getSceneManageStatistics() { |
| | | SceneManageStatisticsVO statistics = cockpitService.statisticsSceneManageAndArea(); |
| | | 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); |
| | | } |
| | | |