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
bf87e185
Commit
bf87e185
authored
Oct 29, 2021
by
kongfm
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
39c6a8f1
9d1a8805
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
LatentDangerServiceImpl.java
...danger/business/service/impl/LatentDangerServiceImpl.java
+10
-2
application.properties
...tem-supervision/src/main/resources/application.properties
+2
-0
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 @
bf87e185
...
...
@@ -1172,8 +1172,16 @@ public class LatentDangerServiceImpl extends BaseService<LatentDangerBo, LatentD
// 第一次处于待现场确认时,启动工作流
if
(
ValidationUtil
.
isEmpty
(
processInstanceId
))
{
// 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
.
setMsg
(
"没有执行权限"
);
return
executeSubmitDto
;
...
...
amos-boot-system-supervision/src/main/resources/application.properties
View file @
bf87e185
...
...
@@ -29,6 +29,8 @@ mybatis.configuration.mapUnderscoreToCamelCase=true
mybatis-plus.configuration.call-setters-on-nulls
=
true
spring.liquibase.change-log
=
classpath:/db/changelog/changelog-master.xml
spring.liquibase.enabled
=
true
feign.client.config.default.read-timeout
=
60000
feign.client.config.default.connect-timeout
=
30000
mybatis.configuration.log-impl
=
org.apache.ibatis.logging.stdout.StdOutImpl
...
...
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