Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
项目统一框架
amos-boot-biz
Commits
c426fa09
Commit
c426fa09
authored
Sep 28, 2021
by
chenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改权限筛选时出现指定角色为空的情况
parent
5ba7b5e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
WorkflowExcuteServiceImpl.java
...ot/biz/common/service/impl/WorkflowExcuteServiceImpl.java
+5
-1
No files found.
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/service/impl/WorkflowExcuteServiceImpl.java
View file @
c426fa09
...
...
@@ -79,7 +79,7 @@ public class WorkflowExcuteServiceImpl implements IWorkflowExcuteService {
// 获取流程中原本设置的当前节点的执行权限
JSONArray
taskGroupNameDetail
=
taskGroupNameObject
.
getJSONArray
(
WorkFlowEnum
.
DATA
.
getCode
());
// 如果拿不到当前任务的执行角色,再去获取当前任务有没有默认的执行人,如果都没有则返回校验失败
if
(
ObjectUtils
.
isEmpty
(
taskGroupNameDetail
.
getJSONObject
(
0
)
))
{
if
(
ObjectUtils
.
isEmpty
(
taskGroupNameDetail
))
{
JSONObject
taskAssignObject
=
workflowFeignService
.
getTaskAssign
(
detail
.
getString
(
WorkFlowEnum
.
ID
.
getCode
()));
String
assignUser
=
taskAssignObject
.
getJSONObject
(
WorkFlowEnum
.
DATA
.
getCode
())
...
...
@@ -99,6 +99,10 @@ public class WorkflowExcuteServiceImpl implements IWorkflowExcuteService {
}
String
defaultExecutionRoleProcess
=
taskGroupNameDetail
.
getJSONObject
(
0
)
.
getString
(
WorkFlowEnum
.
GROUPID
.
getCode
());
if
(
StringUtils
.
isBlank
(
defaultExecutionRoleProcess
))
{
continue
;
}
// 判断当前登录人的角色是不是与流程中设置的当前任务节点权限一致,一致则执行,不一致则退出
if
(!
defaultExecutionRoleProcess
.
equals
(
currentLoginUserRole
))
{
continue
;
...
...
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