From 25951a668f8aff05f12cfe85ff1a5bb52be9a58e Mon Sep 17 00:00:00 2001 From: chenhao Date: Thu, 16 Oct 2025 09:05:01 +0800 Subject: [PATCH] =?UTF-8?q?feat(flowable):=E4=BC=98=E5=8C=96=E5=AE=A1?= =?UTF-8?q?=E6=89=B9=E6=B5=81=E7=A8=8B=E4=B8=8E=E7=95=8C=E9=9D=A2=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改审批状态显示格式,增加“审批状态 :”前缀 - 更新流程监听器中用户名拼接符号为顿号“、” - 在项目信息页面引入bootstrap-select组件支持多选筛选- 调整项目阶段筛选下拉框为多选模式并移除默认选项 -重置按钮功能增强,支持刷新多选组件状态 - 动态加载行业类型下拉列表内容 -修复订单查询时权限SQL拼接问题 - 增加基于数据权限的查询控制注解- 实现通过businessKey追踪流程图接口-优化角色名称及审批人名称连接符为斜杠“/”和顿号“、” --- .../flowable/FlowMonitorController.java | 13 ++++++++ .../templates/project/info/project.html | 31 ++++++++++++++++--- .../templates/project/order/edit.html | 2 +- .../com/ruoyi/sip/domain/ProjectInfo.java | 1 + .../ruoyi/sip/domain/ProjectOrderInfo.java | 1 + .../flowable/listener/ProcessListener.java | 2 +- .../service/impl/TodoServiceImpl.java | 4 +-- .../service/impl/ProjectInfoServiceImpl.java | 2 ++ .../impl/ProjectOrderInfoServiceImpl.java | 6 +++- .../mapper/sip/ProjectInfoMapper.xml | 4 ++- .../mapper/sip/ProjectOrderInfoMapper.xml | 2 +- 11 files changed, 57 insertions(+), 11 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/flowable/FlowMonitorController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/flowable/FlowMonitorController.java index 85d3e655..8540925f 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/flowable/FlowMonitorController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/flowable/FlowMonitorController.java @@ -6,6 +6,8 @@ import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.utils.StringUtils; import com.ruoyi.common.utils.bean.BeanUtils; +import com.ruoyi.sip.flowable.domain.Todo; +import com.ruoyi.sip.flowable.service.TodoService; import com.ruoyi.system.domain.ActRuExecution; import com.ruoyi.system.domain.FlowInfo; import com.ruoyi.system.domain.TaskInfo; @@ -25,6 +27,7 @@ import org.flowable.engine.runtime.ProcessInstanceQuery; import org.flowable.engine.task.Comment; import org.flowable.task.api.Task; import org.flowable.variable.api.history.HistoricVariableInstance; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; import org.springframework.web.bind.annotation.*; @@ -68,6 +71,8 @@ public class FlowMonitorController extends BaseController { private String prefix = "flowable/monitor"; + @Autowired + private TodoService todoService; @GetMapping("/instance") public String processList() { @@ -278,6 +283,14 @@ public class FlowMonitorController extends BaseController { public void traceprocess(@RequestParam String processInstanceId, HttpServletResponse response) throws IOException { activitiTracingChart.generateFlowChart(processInstanceId, response.getOutputStream()); } + @ApiOperation("流程图进度追踪") + @RequestMapping(value = {"/traceProcessKey"}, method = RequestMethod.GET) + public void traceProcessKey(@RequestParam String businessKey, HttpServletResponse response) throws IOException { + Todo todo = new Todo(); + todo.setBusinessKey(businessKey); + Todo todo1 = todoService.selectTodo(todo); + activitiTracingChart.generateFlowChart(todo1.getProcessInstanceId(), response.getOutputStream()); + } @ApiOperation("挂起一个流程实例") @RequestMapping(value = "/suspend/{processInstanceId}", method = RequestMethod.GET) diff --git a/ruoyi-admin/src/main/resources/templates/project/info/project.html b/ruoyi-admin/src/main/resources/templates/project/info/project.html index be15939a..7cb16324 100644 --- a/ruoyi-admin/src/main/resources/templates/project/info/project.html +++ b/ruoyi-admin/src/main/resources/templates/project/info/project.html @@ -45,6 +45,7 @@ } +
@@ -67,7 +68,7 @@
  • - @@ -141,7 +141,7 @@
  •  搜索 -  重置
  • @@ -172,6 +172,8 @@
    + +