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
af7dbd8f
Commit
af7dbd8f
authored
Oct 29, 2021
by
tianbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
隐患执行角色优化
parent
8a80f977
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
LatentDangerServiceImpl.java
...danger/business/service/impl/LatentDangerServiceImpl.java
+10
-2
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-latentdanger-biz/src/main/java/com/yeejoin/amos/latentdanger/business/service/impl/LatentDangerServiceImpl.java
View file @
af7dbd8f
...
@@ -1172,8 +1172,16 @@ public class LatentDangerServiceImpl extends BaseService<LatentDangerBo, LatentD
...
@@ -1172,8 +1172,16 @@ public class LatentDangerServiceImpl extends BaseService<LatentDangerBo, LatentD
// 第一次处于待现场确认时,启动工作流
// 第一次处于待现场确认时,启动工作流
if
(
ValidationUtil
.
isEmpty
(
processInstanceId
))
{
if
(
ValidationUtil
.
isEmpty
(
processInstanceId
))
{
// 1、校验是否有启动后执行现场确认的权限
// 1、校验是否有启动后执行现场确认的权限
RoleBo
roleBo
=
reginParams
.
getRole
();
// 获取当前登录用户的所有角色
if
(!
onSiteConfirmRole
.
equals
(
roleBo
.
getRoleName
()))
{
Set
<
String
>
roleNameSet
=
Sets
.
newHashSet
();
if
(!
ValidationUtil
.
isEmpty
(
reginParams
.
getUserModel
().
getOrgRoles
()))
{
reginParams
.
getUserModel
().
getOrgRoles
().
values
().
forEach
(
i
->
{
i
.
forEach
(
e
->
{
roleNameSet
.
add
(
e
.
getRoleName
());
});
});
}
if
(!
roleNameSet
.
contains
(
onSiteConfirmRole
))
{
executeSubmitDto
.
setIsOk
(
false
);
executeSubmitDto
.
setIsOk
(
false
);
executeSubmitDto
.
setMsg
(
"没有执行权限"
);
executeSubmitDto
.
setMsg
(
"没有执行权限"
);
return
executeSubmitDto
;
return
executeSubmitDto
;
...
...
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