|
@@ -9,6 +9,8 @@ import com.aizuda.core.api.PageParam;
|
|
|
import com.baomidou.kisso.annotation.Permission;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
+import io.swagger.v3.oas.annotations.Parameter;
|
|
|
+import io.swagger.v3.oas.annotations.Parameters;
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
import org.simpleframework.xml.core.Validate;
|
|
@@ -72,6 +74,13 @@ public class ProcessTaskController extends ApiController {
|
|
|
return processTaskService.approvalInfo(taskId);
|
|
|
}
|
|
|
|
|
|
+ @Operation(summary = "以前的节点名称列表")
|
|
|
+ @Permission("flw:processTask:approval")
|
|
|
+ @PostMapping("/previous-node-names/{taskId}")
|
|
|
+ public List<String> previousNodeNames(@PathVariable("taskId") Long taskId) {
|
|
|
+ return processTaskService.listPreviousNodeNames(taskId);
|
|
|
+ }
|
|
|
+
|
|
|
@Operation(summary = "审批评论")
|
|
|
@Permission("flw:processTask:approval")
|
|
|
@PostMapping("/comment")
|
|
@@ -121,6 +130,17 @@ public class ProcessTaskController extends ApiController {
|
|
|
return processTaskService.withdraw(taskId, FlowHelper.getFlowCreator());
|
|
|
}
|
|
|
|
|
|
+ @Operation(summary = "跳到指定节点任务")
|
|
|
+ @Parameters({
|
|
|
+ @Parameter(name = "taskId", description = "任务ID"),
|
|
|
+ @Parameter(name = "nodeName", description = "节点名称")
|
|
|
+ })
|
|
|
+ @Permission("flw:processTask:withdraw")
|
|
|
+ @PostMapping("/jump-{taskId}")
|
|
|
+ public boolean jump(@PathVariable("taskId") Long taskId, @RequestParam String nodeName) {
|
|
|
+ return processTaskService.jump(taskId, nodeName);
|
|
|
+ }
|
|
|
+
|
|
|
@Operation(summary = "转交任务")
|
|
|
@Permission("flw:processTask:transfer")
|
|
|
@PostMapping("/transfer")
|