Commit 4fe3da058c69393f8f99e4f57ccb1b3511ea498d

Authored by YunaiV
1 parent 7ab0dfbe

更新 README 文档

README.md
... ... @@ -23,8 +23,8 @@
23 23 >
24 24 > 😜 给项目点点 Star 吧,这对我们真的很重要!
25 25  
26   -* 前端 vue2 版本采用 [vue-element-admin](https://github.com/PanJiaChen/vue-element-admin)
27   -* 前端 vue3 版本采用 [vue-element-plus-admin](https://gitee.com/kailong110120130/vue-element-plus-admin)
  26 +* 前端 Vue2 版本采用 [vue-element-admin](https://github.com/PanJiaChen/vue-element-admin)
  27 +* 前端 Vue3 版本采用 [vue-element-plus-admin](https://gitee.com/kailong110120130/vue-element-plus-admin)
28 28 * 后端采用 Spring Boot、MySQL + MyBatis Plus、Redis + Redisson。
29 29 * 数据库可使用 MySQL、Oracle、PostgreSQL、SQL Server、MariaDB、国产达梦 DM、TiDB 等
30 30 * 权限认证使用 Spring Security & Token & Redis,支持多终端、多种用户的认证系统。
... ... @@ -100,17 +100,6 @@
100 100  
101 101 ps:核心功能已经实现,正在对接微信小程序中...
102 102  
103   -### 商城系统
104   -
105   -正在开发中,大体计划如下:
106   -* 2022 Q2 => 完成对 <https://github.com/YunaiV/onemall> 的迁移,作为 onemall 的 Spring Boot 单体版本。
107   -* 2022 Q4 => 完成对 <https://github.com/YunaiV/onemall>> 的重构,作为 onemall 的 Spring Cloud 微服务版本。
108   -
109   -### 会员中心
110   -
111   -正在开发中,大体计划如下:
112   -* 2021 Q1 =》完成对 <https://github.com/YunaiV/onemall> 的迁移
113   -
114 103 ### 基础设施
115 104  
116 105 | | 功能 | 描述 |
... ... @@ -135,6 +124,20 @@ ps:核心功能已经实现,正在对接微信小程序中...
135 124 | 🚀 | 日志服务 | 轻量级日志中心,查看远程服务器的日志 |
136 125 | 🚀 | 单元测试 | 基于 JUnit + Mockito 实现单元测试,保证功能的正确性、代码的质量等 |
137 126  
  127 +### 商城系统
  128 +
  129 +建设中...
  130 +
  131 +![功能图](http://static.iocoder.cn/mall%20%E5%8A%9F%E8%83%BD%E5%9B%BE-min.png)
  132 +
  133 +![GIF 图-耐心等待](https://raw.githubusercontent.com/YunaiV/Blog/master/Mall/onemall-admin-min.gif)
  134 +
  135 +![GIF 图-耐心等待](https://raw.githubusercontent.com/YunaiV/Blog/master/Mall/onemall-h5-min.gif)
  136 +
  137 +### 会员中心
  138 +
  139 +和「商城系统」一起开发
  140 +
138 141 ## 🐨 技术栈
139 142  
140 143 | 项目 | 说明 |
... ... @@ -177,14 +180,14 @@ ps:核心功能已经实现,正在对接微信小程序中...
177 180 | [JUnit](https://junit.org/junit5/) | Java 单元测试框架 | 5.8.2 | - |
178 181 | [Mockito](https://github.com/mockito/mockito) | Java Mock 框架 | 4.0.0 | - |
179 182  
180   -### vue2 前端
  183 +### Vue2 前端
181 184  
182 185 | 框架 | 说明 | 版本 |
183 186 |------------------------------------------------------------------------------|---------------|--------|
184 187 | [Vue](https://cn.vuejs.org/index.html) | JavaScript 框架 | 2.6.12 |
185 188 | [Vue Element Admin](https://panjiachen.github.io/vue-element-admin-site/zh/) | 后台前端解决方案 | - |
186 189  
187   -### vue3 前端
  190 +### Vue3 前端
188 191  
189 192 | 框架 | 说明 | 版本 |
190 193 |----------------------------------------------------------------------|---------------------|--------|
... ...
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/service/task/BpmActivityServiceImpl.java
... ... @@ -2,7 +2,6 @@ package cn.iocoder.yudao.module.bpm.service.task;
2 2  
3 3 import cn.iocoder.yudao.module.bpm.controller.admin.task.vo.activity.BpmActivityRespVO;
4 4 import cn.iocoder.yudao.module.bpm.convert.task.BpmActivityConvert;
5   -import cn.iocoder.yudao.module.bpm.dal.mysql.task.BpmActivityMapper;
6 5 import lombok.extern.slf4j.Slf4j;
7 6 import org.flowable.engine.HistoryService;
8 7 import org.flowable.engine.history.HistoricActivityInstance;
... ... @@ -25,8 +24,6 @@ public class BpmActivityServiceImpl implements BpmActivityService {
25 24  
26 25 @Resource
27 26 private HistoryService historyService;
28   - @Resource
29   - private BpmActivityMapper bpmActivityMapper;
30 27  
31 28 @Override
32 29 public List<BpmActivityRespVO> getActivityListByProcessInstanceId(String processInstanceId) {
... ...
yudao-ui-admin/src/components/bpmnProcessDesigner/package/designer/ProcessViewer.vue
... ... @@ -120,20 +120,21 @@ export default {
120 120 this.bpmnModeler.getDefinitions().rootElements[0].flowElements?.forEach(n => {
121 121 let activity = activityList.find(m => m.key === n.id) // 找到对应的活动
122 122 if (n.$type === 'bpmn:UserTask') { // 用户任务
123   - debugger
124 123 if (!activity) {
125 124 return;
126 125 }
127 126 // 处理用户任务的高亮
128 127 const task = this.taskList.find(m => m.id === activity.taskId); // 找到活动对应的 taskId
129   - if (task) {
130   - canvas.addMarker(n.id, this.getResultCss(task.result));
131   - // 如果非通过,就不走后面的线条了
132   - if (task.result !== 2) {
133   - return;
134   - }
  128 + if (!task) {
  129 + return;
135 130 }
  131 + // 高亮任务
  132 + canvas.addMarker(n.id, this.getResultCss(task.result));
136 133  
  134 + // 如果非通过,就不走后面的线条了
  135 + if (task.result !== 2) {
  136 + return;
  137 + }
137 138 // 处理 outgoing 出线
138 139 const outgoing = this.getActivityOutgoing(activity);
139 140 outgoing?.forEach(nn => {
... ... @@ -219,13 +220,13 @@ export default {
219 220 return activity.endTime ? 'highlight' : 'highlight-todo';
220 221 },
221 222 getResultCss(result) {
222   - if (result === 1) {
  223 + if (result === 1) { // 审批中
223 224 return 'highlight-todo';
224   - } else if (result === 2) {
  225 + } else if (result === 2) { // 已通过
225 226 return 'highlight';
226   - } else if (result === 3) {
  227 + } else if (result === 3) { // 不通过
227 228 return 'highlight-reject';
228   - } else if (result === 4) {
  229 + } else if (result === 4) { // 已取消
229 230 return 'highlight-cancel';
230 231 }
231 232 return '';
... ...