Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-api-boot-master
Commits
c34bfa19
Commit
c34bfa19
authored
Aug 06, 2024
by
332784038@qq.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
e868005e
bc7217ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
BpmTaskAssignLeaderAbstractScript.java
...havior/script/impl/BpmTaskAssignLeaderAbstractScript.java
+9
-2
No files found.
yudao-module-bpm/yudao-module-bpm-impl-flowable/src/main/java/cn/iocoder/yudao/module/bpm/framework/flowable/core/behavior/script/impl/BpmTaskAssignLeaderAbstractScript.java
View file @
c34bfa19
...
...
@@ -7,10 +7,8 @@ import cn.iocoder.yudao.module.system.api.dept.DeptApi;
import
cn.iocoder.yudao.module.system.api.dept.dto.DeptRespDTO
;
import
cn.iocoder.yudao.module.system.api.user.AdminUserApi
;
import
cn.iocoder.yudao.module.system.api.user.dto.AdminUserRespDTO
;
import
org.flowable.engine.delegate.DelegateExecution
;
import
org.flowable.engine.runtime.ProcessInstance
;
import
org.flowable.task.service.impl.persistence.entity.TaskEntity
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.util.Assert
;
...
...
@@ -49,6 +47,15 @@ public abstract class BpmTaskAssignLeaderAbstractScript implements BpmTaskAssign
dept
=
getStartUserDept
(
startUserId
);
if
(
dept
==
null
)
{
// 找不到发起人的部门,所以无法使用该规则
return
emptySet
();
}
else
{
if
(
dept
.
getLeaderUserId
().
equals
(
startUserId
))
{
DeptRespDTO
parentDept
=
deptApi
.
getDept
(
dept
.
getParentId
());
if
(
parentDept
!=
null
)
{
// 找不到父级部门,所以只好结束寻找。原因是:例如说,级别比较高的人,所在部门层级比较少
dept
=
parentDept
;
}
else
{
return
emptySet
();
}
}
}
}
else
{
DeptRespDTO
parentDept
=
deptApi
.
getDept
(
dept
.
getParentId
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment