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
19f0436f
Commit
19f0436f
authored
Sep 24, 2021
by
tianbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
隐患修改
parent
cb52528d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
LatentDangerController.java
...entdanger/business/controller/LatentDangerController.java
+1
-1
LatentDangerServiceImpl.java
...danger/business/service/impl/LatentDangerServiceImpl.java
+7
-1
EnumFillAop.java
...a/com/yeejoin/amos/latentdanger/core/aop/EnumFillAop.java
+3
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-latentdanger-biz/src/main/java/com/yeejoin/amos/latentdanger/business/controller/LatentDangerController.java
View file @
19f0436f
...
...
@@ -246,7 +246,7 @@ public class LatentDangerController extends BaseController {
}
@ApiOperation
(
value
=
"获取隐患整改方式"
,
notes
=
"获取隐患整改方式"
)
@GetMapping
(
value
=
"/danger
/g
overnance"
)
@GetMapping
(
value
=
"/danger
G
overnance"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
public
CommonResponse
getDangerGovernance
()
{
return
CommonResponseUtil
.
success
(
iLatentDangerService
.
getDangerGovernance
());
...
...
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 @
19f0436f
...
...
@@ -13,6 +13,7 @@ import com.google.common.collect.Sets;
import
com.yeejoin.amos.boot.biz.common.bo.DepartmentBo
;
import
com.yeejoin.amos.boot.biz.common.bo.RoleBo
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.biz.common.workflow.feign.WorkflowFeignService
;
import
com.yeejoin.amos.boot.module.common.api.feign.EquipFeignClient
;
import
com.yeejoin.amos.boot.module.common.api.feign.SupervisionFeignClient
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
...
...
@@ -164,6 +165,9 @@ public class LatentDangerServiceImpl extends BaseService<LatentDangerBo, LatentD
@Autowired
private
RedisUtils
redisUtils
;
@Autowired
private
WorkflowFeignService
workflowFeignService
;
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Override
public
CommonResponse
saveNormal
(
LatentDangerNormalParam
latentDangerDto
,
String
userId
,
String
userRealName
,
String
departmentId
,
String
departmentName
,
String
companyId
,
String
orgCode
,
RoleBo
role
)
{
...
...
@@ -353,6 +357,7 @@ public class LatentDangerServiceImpl extends BaseService<LatentDangerBo, LatentD
LatentDangerTypeEnum
dangerTypeEnum
)
{
LatentDanger
latentDanger
=
new
LatentDanger
();
Bean
.
copyExistPropertis
(
param
,
latentDanger
);
latentDanger
.
setDangerName
(
param
.
getName
());
if
(
ValidationUtil
.
isEmpty
(
param
.
getId
()))
{
// 新增
latentDanger
.
setBusinessKey
(
businessKey
);
...
...
@@ -1106,7 +1111,8 @@ public class LatentDangerServiceImpl extends BaseService<LatentDangerBo, LatentD
}
private
DangerExecuteSubmitDto
executeSupervisionBiz
(
LatentDangerExecuteParam
param
,
LatentDanger
latentDanger
,
String
userId
,
String
userRealName
,
String
departmentId
,
String
departmentName
,
DangerExecuteSubmitDto
executeSubmitDto
,
RoleBo
role
)
{
// 1、开启工作流
JSONObject
result
=
workflowFeignService
.
startByVariable
(
latentDanger
.
getId
());
return
executeSubmitDto
;
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-latentdanger-biz/src/main/java/com/yeejoin/amos/latentdanger/core/aop/EnumFillAop.java
View file @
19f0436f
...
...
@@ -47,6 +47,9 @@ public class EnumFillAop {
if
(!
redisUtils
.
hasKey
(
Constants
.
DANGER_BIZ_TYPE_KEY
))
{
redisUtils
.
set
(
Constants
.
DANGER_BIZ_TYPE_KEY
,
bizType
);
}
if
(
bizType
==
null
)
{
bizType
=
redisUtils
.
get
(
Constants
.
DANGER_BIZ_TYPE_KEY
).
toString
();
}
// 获取隐患等级枚举
if
(
ValidationUtil
.
isEmpty
(
LatentDangerLevelEnum
.
enumMap
))
{
...
...
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