fix(flow) todolist by candidate group id

approve-sys
bob 2 years ago
parent 43d08448de
commit d0da9ac6ff

@ -2,35 +2,9 @@
基RuoYi-vue + flowable 6.7.2 的工作流管理 ~ 基RuoYi-vue + flowable 6.7.2 的工作流管理 ~
记得右上角点个 star 持续关注更新哟~~ ## 软件说明
Java 1.8
一直想学习和入门flowable, 期间大量面向百度编程解决了很多问题, 感谢 [flowable初级使用手册](https://www.shangmayuan.com/a/538a0b230dbe4798b273305b.html)
,零基础学习很值得一看。最后感谢 [若依框架](https://gitee.com/y_project/RuoYi-Vue) ,快速集成开发爽到飞起 ~~~
## 需求收集
[有好的idea, 点击这里提交吧!](https://www.yuque.com/u1024153/icipor/lmnloc)
## 演示地址
- 学习版本演示http://www.tony2y.top
- 完善版本演示http://pro.tony2y.top
- 使用文档https://www.yuque.com/u1024153/icipor
##### 为了方便体验,请勿删除和改动初始化的几个流程和表单,感谢!有其它流程实现,请自行定义新流程、表单。
## 其它业务系统
- [[ 智慧农业认养系统 ]](https://gitee.com/tony2y/smart-breed)基于Java + SpringBoot + Mybatis Plus + Redis + Vue + antdv支持认养、商城、营销、会员、进销存、多租户等功能包含小程序系统管理后台。
## 工作流交流群
QQ群 [![加入QQ群](https://img.shields.io/badge/782924350-blue.svg)](https://jq.qq.com/?_wv=1027&k=2zE87c2G) 点击按钮入群。
## 项目地址
Giteehttps://gitee.com/tony2y/RuoYi-flowable.git
GitHubhttps://github.com/tony2y/RuoYi-flowable.git
* 前端采用Vue、Element UI。 * 前端采用Vue、Element UI。
* 后端采用Spring Boot、Spring Security、Redis & Jwt。 * 后端采用Spring Boot、Spring Security、Redis & Jwt。
@ -47,20 +21,3 @@ GitHubhttps://github.com/tony2y/RuoYi-flowable.git
* 表单配置 * 表单配置
* 流程发起 * 流程发起
* 流转处理 * 流转处理
## 请作者喝杯咖啡 ~ (*^▽^*)
![img.png](img.png)
## 演示图
<img src="https://images.gitee.com/uploads/images/2022/0422/180426_04bd32d8_2042292.png"/>
<img src="https://images.gitee.com/uploads/images/2022/0422/180458_bdb091eb_2042292.png"/>
<img src="https://images.gitee.com/uploads/images/2022/0422/180008_90859a48_2042292.png"/>
<img src="https://images.gitee.com/uploads/images/2022/0422/180040_cbfd08db_2042292.png"/>
<img src="https://images.gitee.com/uploads/images/2022/0422/180059_b43a6ebe_2042292.png"/>
<img src="https://images.gitee.com/uploads/images/2022/0422/180232_f940c940_2042292.png"/>
<img src="https://images.gitee.com/uploads/images/2022/0422/182121_31ed0d5a_2042292.png"/>
<img src="https://images.gitee.com/uploads/images/2022/0422/180315_122eb523_2042292.png"/>
<img src="https://images.gitee.com/uploads/images/2022/0422/180200_6092c5e2_2042292.png"/>

@ -0,0 +1,10 @@
//package com.ruoyi.flowable.service;
//
//import static org.junit.jupiter.api.Assertions.*;
//
//class IFlowTaskServiceTest {
//
// @org.junit.jupiter.api.Test
// void todoList() {
// }
//}

@ -569,11 +569,12 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
@Override @Override
public AjaxResult todoList(Integer pageNum, Integer pageSize) { public AjaxResult todoList(Integer pageNum, Integer pageSize) {
Page<FlowTaskDto> page = new Page<>(); Page<FlowTaskDto> page = new Page<>();
Long userId = SecurityUtils.getLoginUser().getUser().getUserId(); SysUser user = SecurityUtils.getLoginUser().getUser();
List<String > roleIds = user.getRoles().stream().map(e->e.getRoleId().toString()).collect(Collectors.toList());
TaskQuery taskQuery = taskService.createTaskQuery() TaskQuery taskQuery = taskService.createTaskQuery()
.active() .active()
.includeProcessVariables() .includeProcessVariables()
// .taskAssignee(userId.toString()) .taskCandidateGroupIn(roleIds)
.orderByTaskCreateTime().desc(); .orderByTaskCreateTime().desc();
page.setTotal(taskQuery.count()); page.setTotal(taskQuery.count());
List<Task> taskList = taskQuery.listPage(pageSize * (pageNum - 1), pageSize); List<Task> taskList = taskQuery.listPage(pageSize * (pageNum - 1), pageSize);

@ -7,9 +7,6 @@ git clone https://gitee.com/y_project/RuoYi-Vue
# 进入项目目录 # 进入项目目录
cd ruoyi-ui cd ruoyi-ui
# 安装依赖
npm install
# 建议不要直接使用 cnpm 安装依赖,会有各种诡异的 bug。可以通过如下操作解决 npm 下载速度慢的问题 # 建议不要直接使用 cnpm 安装依赖,会有各种诡异的 bug。可以通过如下操作解决 npm 下载速度慢的问题
npm install --registry=https://registry.npm.taobao.org npm install --registry=https://registry.npm.taobao.org

Loading…
Cancel
Save