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
9c226612
Commit
9c226612
authored
Sep 30, 2021
by
chenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改错误的参数取值
parent
c426fa09
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
WorkFlowEnum.java
.../com/yeejoin/amos/boot/biz/common/enums/WorkFlowEnum.java
+1
-1
WorkflowExcuteServiceImpl.java
...ot/biz/common/service/impl/WorkflowExcuteServiceImpl.java
+3
-3
No files found.
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/enums/WorkFlowEnum.java
View file @
9c226612
...
...
@@ -18,7 +18,7 @@ public enum WorkFlowEnum {
GROUPNAME
(
"groupName"
,
"角色组的key"
),
NAME
(
"name"
,
"任务节点的key"
),
PROCESSINSTANCEID
(
"processInstanceId"
,
""
),
ASSIGN
(
"assign"
,
"角色执行人key"
);
ASSIGN
(
"assign
ee
"
,
"角色执行人key"
);
private
String
code
;
//对应菜单组件名称
private
String
desc
;
//描述
...
...
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/service/impl/WorkflowExcuteServiceImpl.java
View file @
9c226612
...
...
@@ -56,7 +56,7 @@ public class WorkflowExcuteServiceImpl implements IWorkflowExcuteService {
public
Map
<
String
,
Object
>
checkTaskAuthMap
(
String
processInstanceId
,
ReginParams
userInfo
)
{
// 获取当前登录用户的角色
String
currentLoginUserRole
=
userInfo
.
getRole
().
getRoleName
();
String
currentLoginUser
Id
=
userInfo
.
getUserModel
().
getUserId
();
String
currentLoginUser
Name
=
userInfo
.
getUserModel
().
getUserName
();
Map
<
String
,
Object
>
map
=
new
HashMap
<
String
,
Object
>();
map
.
put
(
WorkFlowEnum
.
CHECKFLAG
.
getCode
(),
false
);
JSONObject
teskObject
=
workflowFeignService
.
getTaskList
(
processInstanceId
);
...
...
@@ -86,7 +86,7 @@ public class WorkflowExcuteServiceImpl implements IWorkflowExcuteService {
.
getString
(
WorkFlowEnum
.
ASSIGN
.
getCode
());
if
(
StringUtils
.
isNotBlank
(
assignUser
))
{
// 如果当前登录人与当前任务的设定人不一定,则直接返回权限校验失败
if
(!
assignUser
.
contains
(
currentLoginUser
Id
))
{
if
(!
assignUser
.
contains
(
currentLoginUser
Name
))
{
return
map
;
}
map
.
put
(
WorkFlowEnum
.
TASKID
.
getCode
(),
detail
.
getString
(
WorkFlowEnum
.
ID
.
getCode
()));
...
...
@@ -144,7 +144,7 @@ public class WorkflowExcuteServiceImpl implements IWorkflowExcuteService {
.
getTaskGroupName
(
detail
.
getString
(
WorkFlowEnum
.
ID
.
getCode
()));
try
{
if
(
taskGroupNameObject
.
getJSONArray
(
WorkFlowEnum
.
DATA
.
getCode
())
==
null
&&
taskGroupNameObject
.
getJSONArray
(
WorkFlowEnum
.
DATA
.
getCode
()).
size
()
<
1
)
{
||
taskGroupNameObject
.
getJSONArray
(
WorkFlowEnum
.
DATA
.
getCode
()).
size
()
<
1
)
{
workflowFeignService
.
setTaskUser
(
detail
.
getString
(
WorkFlowEnum
.
ID
.
getCode
()),
userId
);
}
}
catch
(
Exception
e
)
{
...
...
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