From 8b8c347b921846ed07b310bba2d7646333bf98cb Mon Sep 17 00:00:00 2001
From: skyouc <creaycat@gmail.com>
Date: 星期三, 26 十一月 2025 13:09:50 +0800
Subject: [PATCH] 任务下发功能优化

---
 rsf-server/src/main/java/com/vincent/rsf/server/manager/controller/TaskController.java |   22 ++++++++++------------
 1 files changed, 10 insertions(+), 12 deletions(-)

diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/manager/controller/TaskController.java b/rsf-server/src/main/java/com/vincent/rsf/server/manager/controller/TaskController.java
index b7ca780..cac4b90 100644
--- a/rsf-server/src/main/java/com/vincent/rsf/server/manager/controller/TaskController.java
+++ b/rsf-server/src/main/java/com/vincent/rsf/server/manager/controller/TaskController.java
@@ -37,15 +37,6 @@
 
     @Autowired
     private TaskService taskService;
-    @Autowired
-    private TaskItemService taskItemService;
-    @Autowired
-    private WaitPakinService waitPakinService;
-    @Autowired
-    private LocService locService;
-    @Autowired
-    private ConfigServiceImpl configService;
-
 
     @PreAuthorize("hasAuthority('manager:task:list')")
     @PostMapping("/task/page")
@@ -101,7 +92,6 @@
     }
 
     @PreAuthorize("hasAuthority('manager:task:remove')")
-    @OperationLog("鍙栨秷/鍒犻櫎宸ヤ綔鏋佹。")
     @ApiOperation("鍙栨秷/鍒犻櫎宸ヤ綔鏋佹。")
     @PostMapping("/task/remove/{ids}")
     public R remove(@PathVariable Long[] ids) {
@@ -109,7 +99,6 @@
             return R.error("鍙傛暟涓嶈兘涓虹┖锛侊紒");
         }
         return taskService.removeTask(ids, getLoginUserId());
-//        return R.ok("Delete Success").add(ids);
     }
 
     @PreAuthorize("hasAuthority('manager:task:list')")
@@ -142,7 +131,6 @@
         return R.ok("瀹屾垚浠诲姟鎴愬姛").add(taskService.operateComplete(id, getLoginUserId()));
     }
 
-
     /**
      * 鎷f枡鍑哄簱锛堢敤浜庢祴璇曟嫞鏂欏嚭搴擄級
      * @return
@@ -161,6 +149,16 @@
         }
     }
 
+    @PreAuthorize("hasAuthority('manager:task:update')")
+    @ApiOperation("鎵嬪姩涓嬪彂鎵ц")
+    @PostMapping("/task/menual/exce/{ids}")
+    public R pubExce(@PathVariable Long[] ids) {
+        if (Objects.isNull(ids)) {
+            return R.error("鎵嬪姩涓嬪彂鎵ц锛�");
+        }
+        return taskService.menualExceTask(Arrays.asList(ids));
+    }
+
     /**
      * 鐩樼偣鍑哄簱锛堢敤浜庢祴璇曠洏鐐瑰嚭搴擄級
      *

--
Gitblit v1.9.1