From 0f7b47105d80fb9a260486270cf925a232e74791 Mon Sep 17 00:00:00 2001
From: Riku <risaku@163.com>
Date: 星期一, 22 十二月 2025 21:20:13 +0800
Subject: [PATCH] 2025.12.22 1. 修改日任务统计接口,新增当天内整改问题数和48小时内整改问题数统计

---
 src/main/kotlin/cn/flightfeather/supervision/lightshare/web/BgTaskController.kt |   21 +++++++++++++--------
 1 files changed, 13 insertions(+), 8 deletions(-)

diff --git a/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/BgTaskController.kt b/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/BgTaskController.kt
index 5db3784..c151def 100644
--- a/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/BgTaskController.kt
+++ b/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/BgTaskController.kt
@@ -1,37 +1,42 @@
 package cn.flightfeather.supervision.lightshare.web
 
 import cn.flightfeather.supervision.common.executor.BgTaskConditionVo
+import cn.flightfeather.supervision.common.executor.BgTaskStatus
 import cn.flightfeather.supervision.lightshare.service.BgTaskService
 import io.swagger.annotations.Api
 import io.swagger.annotations.ApiOperation
+import io.swagger.annotations.ApiParam
 import org.springframework.web.bind.annotation.*
 
-@Api(tags = ["BgTaskController"], description = "鍚庡彴鑰楁椂浠诲姟API鎺ュ彛")
+@Api(tags = ["鍚庡彴浠诲姟绠$悊"], description = "鍚庡彴鑰楁椂浠诲姟API鎺ュ彛")
 @RestController
 @RequestMapping("/bgTask")
-class BgTaskController(val bgTaskService: BgTaskService){
+class BgTaskController(val bgTaskService: BgTaskService) {
 
     @ApiOperation(value = "鑾峰彇鍚庡彴浠诲姟鐘舵��")
     @PostMapping("/status")
-    fun getTaskStatus(@RequestBody condition: BgTaskConditionVo) = resPack { bgTaskService.getTaskStatus(condition) }
+    fun getTaskStatus(
+        @RequestBody condition: BgTaskConditionVo
+    ) = bgTaskService.getTaskStatus(condition)
 
     @ApiOperation(value = "杩愯涓�涓换鍔�")
     @PutMapping("/start")
-    fun startTask(@RequestBody condition: BgTaskConditionVo) = resPack { bgTaskService.startTask(condition) }
+    fun startTask(@RequestBody condition: BgTaskConditionVo) = bgTaskService.startTask(condition)
 
     @ApiOperation(value = "寮哄埗鍏抽棴浠诲姟")
     @PutMapping("/shutDown")
-    fun shutDownTask(@RequestBody condition: BgTaskConditionVo) = resPack { bgTaskService.shutDownTask(condition) }
+    fun shutDownTask(@RequestBody condition: BgTaskConditionVo) = bgTaskService.shutDownTask(condition)
 
     @ApiOperation(value = "绉婚櫎涓�涓换鍔�")
     @PutMapping("/remove")
-    fun removeTask(@RequestBody condition: BgTaskConditionVo) = resPack { bgTaskService.removeTask(condition) }
+    fun removeTask(@RequestBody condition: BgTaskConditionVo) = bgTaskService.removeTask(condition)
 
     @ApiOperation(value = "鏂板缓骞惰繍琛屼竴涓祴璇曚换鍔�")
     @PutMapping("/newTask/test/start")
-    fun startNewTestTask(@RequestParam taskId: String) = resPack { bgTaskService.startNewTestTask(taskId) }
+    fun startNewTestTask(@RequestParam taskId: String) = bgTaskService.startNewTestTask(taskId)
 
     @ApiOperation(value = "鏂板缓涓�涓祴璇曚换鍔�")
     @PutMapping("/newTask/test")
-    fun newTestTask(@RequestParam taskId: String) = resPack { bgTaskService.newTestTask(taskId) }
+    fun newTestTask(@ApiParam(value = "鍚庡彴浠诲姟id") @RequestParam taskId: String) =
+        bgTaskService.newTestTask(taskId)
 }
\ No newline at end of file

--
Gitblit v1.9.3