From c1becf4cbd2e99601ce011c14b8742427249cfb4 Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期二, 09 一月 2024 17:25:05 +0800
Subject: [PATCH] 1. 多项调整

---
 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