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
a3ecc23b
Commit
a3ecc23b
authored
Aug 06, 2024
by
jiuping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
部门负责人发起流程找上级人审批
parent
84569c6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
BpmTaskAssignLeaderAbstractScript.java
...havior/script/impl/BpmTaskAssignLeaderAbstractScript.java
+6
-0
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 @
a3ecc23b
...
...
@@ -7,6 +7,7 @@ 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
lombok.extern.slf4j.Slf4j
;
import
org.flowable.engine.delegate.DelegateExecution
;
import
org.flowable.engine.runtime.ProcessInstance
;
import
org.springframework.context.annotation.Lazy
;
...
...
@@ -24,6 +25,7 @@ import static java.util.Collections.emptySet;
*
* @author 捷道源码
*/
@Slf4j
public
abstract
class
BpmTaskAssignLeaderAbstractScript
implements
BpmTaskAssignScript
{
@Resource
...
...
@@ -48,8 +50,10 @@ public abstract class BpmTaskAssignLeaderAbstractScript implements BpmTaskAssign
if
(
dept
==
null
)
{
// 找不到发起人的部门,所以无法使用该规则
return
emptySet
();
}
else
{
log
.
error
(
"1111:{}-{}"
,
dept
.
getLeaderUserId
(),
startUserId
);
if
(
dept
.
getLeaderUserId
().
equals
(
startUserId
))
{
DeptRespDTO
parentDept
=
deptApi
.
getDept
(
dept
.
getParentId
());
log
.
error
(
"2222:{}"
,
parentDept
);
if
(
parentDept
!=
null
)
{
// 找不到父级部门,所以只好结束寻找。原因是:例如说,级别比较高的人,所在部门层级比较少
dept
=
parentDept
;
}
else
{
...
...
@@ -65,6 +69,8 @@ public abstract class BpmTaskAssignLeaderAbstractScript implements BpmTaskAssign
dept
=
parentDept
;
}
}
log
.
error
(
"3333:{}"
,
dept
);
return
dept
.
getLeaderUserId
()
!=
null
?
asSet
(
dept
.
getLeaderUserId
())
:
emptySet
();
}
...
...
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