From 99be60a4c8c1f39eb01d414460cbe0ac76ca97d3 Mon Sep 17 00:00:00 2001 From: feiyu02 <risaku@163.com> Date: 星期四, 21 七月 2022 17:47:40 +0800 Subject: [PATCH] 1. 巡查汇总报告功能添加整改跟踪提醒统计列; 2. 新增获取巡查任务统计信息接口; --- src/main/kotlin/cn/flightfeather/supervision/lightshare/web/SubtaskController.kt | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/SubtaskController.kt b/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/SubtaskController.kt index 21c7c54..69d5aa6 100644 --- a/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/SubtaskController.kt +++ b/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/SubtaskController.kt @@ -5,6 +5,7 @@ import cn.flightfeather.supervision.lightshare.vo.AreaVo import cn.flightfeather.supervision.lightshare.vo.TaskVo import io.swagger.annotations.Api +import io.swagger.annotations.ApiOperation import org.springframework.web.bind.annotation.* @Api(tags = ["SubtaskController"], description = "宸℃煡瀛愪换鍔PI鎺ュ彛") @@ -58,8 +59,15 @@ @GetMapping("/getSubTask") fun getByTopTaskAndDate( @RequestParam("topTaskId") topTaskId: String, - @RequestParam("startTime") startTime: String, - @RequestParam("endTime") endTime: String, + @RequestParam(value = "startTime", required = false) startTime: String?, + @RequestParam(value = "endTime", required = false) endTime: String?, @RequestParam(value = "sceneTypeId", required = false) sceneTypeId: Int? ) = subtaskService.getByTopTaskAndDate(topTaskId, startTime, endTime, sceneTypeId) + + @ApiOperation("鑾峰彇鏌愮被鍦烘櫙鐨勫贰鏌ヤ换鍔$粺璁′俊鎭�") + @GetMapping("/summary") + fun getByTopTaskAndDate( + @RequestParam("topTaskId") topTaskId: String, + @RequestParam(value = "sceneTypeId", required = false) sceneTypeId: Int? + ) = subtaskService.getSummary(topTaskId, sceneTypeId) } \ No newline at end of file -- Gitblit v1.9.3