From 27f5533e3609ca5cc9e4d2894d2202410943f799 Mon Sep 17 00:00:00 2001
From: skyouc <creaycat@gmail.com>
Date: 星期三, 26 十一月 2025 13:12:47 +0800
Subject: [PATCH] 添加手动下发任务功能
---
rsf-server/src/main/java/com/vincent/rsf/server/manager/controller/TaskController.java | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 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 1e3df96..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")
@@ -140,7 +131,6 @@
return R.ok("瀹屾垚浠诲姟鎴愬姛").add(taskService.operateComplete(id, getLoginUserId()));
}
-
/**
* 鎷f枡鍑哄簱锛堢敤浜庢祴璇曟嫞鏂欏嚭搴擄級
* @return
@@ -159,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