Commit 7ed96c4c6c5b247a791357ff78ada94e11061aff
1 parent
8ed30665
review: 重构组装下一个节点审批人方法
Showing
1 changed file
with
3 additions
and
3 deletions
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/service/task/BpmProcessInstanceServiceImpl.java
| ... | ... | @@ -289,9 +289,9 @@ public class BpmProcessInstanceServiceImpl implements BpmProcessInstanceService |
| 289 | 289 | // 4.2 组装候选用户信息 |
| 290 | 290 | List<UserSimpleBaseVO> candidateUsers = new ArrayList<>(); |
| 291 | 291 | for (Long userId : candidateUserIds) { |
| 292 | - AdminUserRespDTO user = userMap.get(userId); | |
| 293 | - if (user != null) { | |
| 294 | - candidateUsers.add(BpmProcessInstanceConvert.INSTANCE.buildUser(userId, userMap, deptMap)); | |
| 292 | + UserSimpleBaseVO user = BpmProcessInstanceConvert.INSTANCE.buildUser(userId, userMap, deptMap); | |
| 293 | + if (user != null){ | |
| 294 | + candidateUsers.add(user); | |
| 295 | 295 | } |
| 296 | 296 | } |
| 297 | 297 | ... | ... |