From 9997cec487151354d789c32290be1a9cde17513d Mon Sep 17 00:00:00 2001 From: chenqi Date: Mon, 8 Jun 2026 09:27:31 +0800 Subject: [PATCH] =?UTF-8?q?feat(workflow):=20=E6=B7=BB=E5=8A=A0=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E6=B5=81=E5=BE=85=E5=8A=9E=E4=BB=BB=E5=8A=A1=E6=8E=A7?= =?UTF-8?q?=E5=88=B6=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 WorkflowController 提供工作流相关接口 - 实现待办任务、已办任务、任务详情查询功能 - 添加任务完成、驳回、转办等操作接口 - 更新应用启动横幅显示系统标语 - 统一代码格式并优化显示效果 --- .../web/controller/WorkflowController.java | 66 +++++++++++++++++++ .../src/main/resources/banner.txt | 32 +++++---- 2 files changed, 84 insertions(+), 14 deletions(-) create mode 100644 healthlink-his-server/healthlink-his-application/src/main/java/com/healthlink/his/web/controller/WorkflowController.java diff --git a/healthlink-his-server/healthlink-his-application/src/main/java/com/healthlink/his/web/controller/WorkflowController.java b/healthlink-his-server/healthlink-his-application/src/main/java/com/healthlink/his/web/controller/WorkflowController.java new file mode 100644 index 000000000..7bd6c7e70 --- /dev/null +++ b/healthlink-his-server/healthlink-his-application/src/main/java/com/healthlink/his/web/controller/WorkflowController.java @@ -0,0 +1,66 @@ +package com.healthlink.his.web.controller; + +import com.core.common.core.domain.AjaxResult; +import com.core.flowable.domain.vo.FlowQueryVo; +import com.core.flowable.domain.vo.FlowTaskVo; +import com.core.flowable.service.IFlowTaskService; +import lombok.extern.slf4j.Slf4j; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +/** + * 工作流待办任务桥接 Controller + * 前端调用 /api/v1/workflow/*,桥接到 FlowTaskService + */ +@Slf4j +@RestController +@RequestMapping("/api/v1/workflow") +public class WorkflowController { + + @Autowired + private IFlowTaskService flowTaskService; + + /** 获取待办任务列表 */ + @GetMapping("/todo") + public AjaxResult todoList(FlowQueryVo queryVo) { + return flowTaskService.todoList(queryVo); + } + + /** 获取已办任务列表 */ + @GetMapping("/done") + public AjaxResult doneList(FlowQueryVo queryVo) { + return flowTaskService.finishedList(queryVo); + } + + /** 获取任务详情 */ + @GetMapping("/task/{id}") + public AjaxResult taskDetail(@PathVariable("id") String id) { + return flowTaskService.processVariables(id); + } + + /** 完成任务 */ + @PostMapping("/task/complete") + public AjaxResult completeTask(@RequestBody FlowTaskVo flowTaskVo) { + return flowTaskService.complete(flowTaskVo); + } + + /** 驳回任务 */ + @PostMapping("/task/reject") + public AjaxResult rejectTask(@RequestBody FlowTaskVo flowTaskVo) { + flowTaskService.taskReject(flowTaskVo); + return AjaxResult.success(); + } + + /** 转办任务 */ + @PostMapping("/task/transfer") + public AjaxResult transferTask(@RequestBody FlowTaskVo flowTaskVo) { + flowTaskService.delegateTask(flowTaskVo); + return AjaxResult.success(); + } + + /** 获取任务统计 */ + @GetMapping("/task/stats") + public AjaxResult taskStats() { + return AjaxResult.success(); + } +} \ No newline at end of file diff --git a/healthlink-his-server/healthlink-his-application/src/main/resources/banner.txt b/healthlink-his-server/healthlink-his-application/src/main/resources/banner.txt index 93e48b616..6ed3f6d35 100755 --- a/healthlink-his-server/healthlink-his-application/src/main/resources/banner.txt +++ b/healthlink-his-server/healthlink-his-application/src/main/resources/banner.txt @@ -1,14 +1,18 @@ - ╔════════════════════════════════════════════════════════════════════════════════════╗ - ║ _ _ ______ _ _______ _ _ _ _____ _ _ _ __ ║ - ║ | | | | ____| /\ | | |__ __| | | | | |_ _| \ | | |/ / ║ - ║ | |__| | |__ / \ | | | | | |__| | | | | | \| | ' / ║ - ║ | __ | __| / /\ \ | | | | | __ | | | | | . ` | < ║ - ║ | | | | |____ / ____ \| |____| | | | | | |____ _| |_| |\ | . \ ║ - ║ |_| |_|______/_/ \_\______|_| |_| |_|______|_____|_| \_|_|\_\ ║ - ╠════════════════════════════════════════════════════════════════════════════════════╣ - ║ Application : HealthLink-HIS ║ - ║ Version : ${application.version} ║ - ║ Spring Boot : ${spring-boot.version} ║ - ║ JDK : ${java.version} ║ - ║ Database : PostgreSQL ║ - ╚════════════════════════════════════════════════════════════════════════════════════╝ +╔═════════════════════════════════════════════════════════════════════════╗ +║ _ _ ______ _ _______ _ _ _ _____ _ _ _ __ ║ +║ | | | | ____| /\ | | |__ __| | | | | |_ _| \ | | |/ / ║ +║ | |__| | |__ / \ | | | | | |__| | | | | | \| | ' / ║ +║ | __ | __| / /\ \ | | | | | __ | | | | | . ` | < ║ +║ | | | | |____ / ____ \| |____| | | | | | |____ _| |_| |\ | . \ ║ +║ |_| |_|______/_/ \_\______|_| |_| |_|______|_____|_| \_|_|\_\ ║ +║ ║ +║ ║ +╠═════════════════════════════════════════════════════════════════════════╣ +║ Application : HealthLink-HIS ║ +║ Version : 0.0.1-SNAPSHOT ║ +║ Spring Boot : 4.0.6 ║ +║ JDK : 25.0.3 ║ +║ Database : PostgreSQL ║ +╠═════════════════════════════════════════════════════════════════════════╣ +║ 模块化 HIS · 智慧医疗 · 数据安全 · 合规优先 ║ +╚═════════════════════════════════════════════════════════════════════════╝