|
@@ -258,6 +258,20 @@ public class ActZprocessServiceImpl extends ServiceImpl<ActZprocessMapper, ActZp
|
|
|
users.addAll(collect);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ //根据当前用户配置负责人
|
|
|
+ if(actNodeService.hasChooseDepHeader2(nodeId)){
|
|
|
+ List<LoginUser> allUser = actNodeService.queryAllUser();
|
|
|
+ LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
|
|
+ List<String> departIds = sysBaseAPI.getDepartById(user.getId());
|
|
|
+ for (String departId : departIds) {
|
|
|
+ List<LoginUser> collect = allUser.stream().filter(u -> u.getDepartIds() != null && u.getDepartIds().indexOf(departId) > -1).collect(Collectors.toList());
|
|
|
+ users.addAll(collect);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
// 判断获取发起人
|
|
|
if(actNodeService.hasChooseSponsor(nodeId)){
|
|
|
LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|