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
fc5dc020
Commit
fc5dc020
authored
Nov 23, 2021
by
tianbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
巡检bug修改
parent
b07ae56a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
7 deletions
+21
-7
LatentDangerServiceImpl.java
...patrol/business/service/impl/LatentDangerServiceImpl.java
+21
-7
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/LatentDangerServiceImpl.java
View file @
fc5dc020
...
...
@@ -7,6 +7,7 @@ import com.google.common.base.Joiner;
import
com.google.common.collect.Lists
;
import
com.google.common.collect.Maps
;
import
com.google.common.collect.Sets
;
import
com.google.gson.JsonObject
;
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.service.impl.WorkflowExcuteServiceImpl
;
...
...
@@ -1232,6 +1233,10 @@ public class LatentDangerServiceImpl implements ILatentDangerService {
saveFlowRecord
(
executeJson
.
getString
(
"id"
),
data
.
getString
(
"name"
),
userId
,
departmentId
,
executeParam
.
getFlowJson
(),
executeParam
.
getDangerId
(),
role
,
executeTypeEnum
.
getName
(),
executeParam
.
getRemark
());
}
else
{
if
(
executeTypeEnum
.
equals
(
LatentDangerExcuteTypeEnum
.
隐患评审通过
))
{
// 将制定的治理人保存在日志记录
executeParam
.
getFlowJson
().
put
(
"governUserId"
,
governUserId
);
}
LatentDangerFlowRecordBo
flowRecord
=
saveFlowRecord
(
executeJson
.
getString
(
"id"
),
data
.
getString
(
"name"
),
userId
,
departmentId
,
executeParam
.
getFlowJson
(),
executeParam
.
getDangerId
(),
role
,
executeTypeEnum
.
getName
(),
executeParam
.
getRemark
());
latentDangerBo
.
setCurrentFlowRecordId
(
flowRecord
.
getId
());
...
...
@@ -1244,10 +1249,10 @@ public class LatentDangerServiceImpl implements ILatentDangerService {
latentDangerBo
.
setReasonAnalysis
(
executeParam
.
getReasonAnalysis
());
}
else
if
(
executeTypeEnum
.
equals
(
LatentDangerExcuteTypeEnum
.
隐患延期治理
))
{
latentDangerBo
.
setReformType
(
LatentDangerReformTypeEnum
.
延期治理
.
getCode
().
toString
());
latentDangerBo
.
setReformJson
(
executeParam
.
getFlowJson
().
toJSONString
());
latentDangerBo
.
setInferOtherThings
(
executeParam
.
getInferOtherThings
());
latentDangerBo
.
setProblemDescription
(
executeParam
.
getRemark
());
latentDangerBo
.
setReasonAnalysis
(
executeParam
.
getReasonAnalysis
());
//
latentDangerBo.setReformJson(executeParam.getFlowJson().toJSONString());
//
latentDangerBo.setInferOtherThings(executeParam.getInferOtherThings());
//
latentDangerBo.setProblemDescription(executeParam.getRemark());
//
latentDangerBo.setReasonAnalysis(executeParam.getReasonAnalysis());
latentDangerBo
.
setDelayLimitDate
(
DateUtil
.
str2Date
(
executeParam
.
getDelayLimitDate
(),
DateUtil
.
DATETIME_DEFAULT_FORMAT
));
}
if
(
executeTypeEnum
.
equals
(
LatentDangerExcuteTypeEnum
.
隐患评审通过
))
{
...
...
@@ -1274,14 +1279,23 @@ public class LatentDangerServiceImpl implements ILatentDangerService {
recordBo
.
setFlowJson
(
flowJson
.
toJSONString
());
latentDangerFlowRecordMapper
.
update
(
recordBo
);
}
}
else
if
(
executeTypeEnum
.
equals
(
LatentDangerExcuteTypeEnum
.
隐患延期治理车间部门审核拒绝
))
{
}
else
if
(
LatentDangerExcuteTypeEnum
.
隐患延期治理车间部门审核拒绝
.
equals
(
executeTypeEnum
)
||
LatentDangerExcuteTypeEnum
.
隐患延期治理公司审核拒绝
.
equals
(
executeTypeEnum
)
||
LatentDangerExcuteTypeEnum
.
隐患验证拒绝
.
equals
(
executeTypeEnum
))
{
latentDangerBo
.
setDangerState
(
LatentDangerStateEnum
.
待治理
.
getCode
().
toString
());
// 获取第一次评审时选择的治理人
LatentDangerFlowRecordBo
record
=
latentDangerFlowRecordMapper
.
getByDangerIdAndActionFlag
(
latentDangerBo
.
getId
(),
"隐患评审"
);
JSONObject
recordObj
=
JSONObject
.
parseObject
(
record
.
getFlowJson
());
if
(!
ValidationUtil
.
isEmpty
(
recordObj
.
get
(
"governUserId"
)))
{
workflowExecuteService
.
setTaskAssign
(
latentDangerBo
.
getInstanceId
(),
(
String
)
recordObj
.
get
(
"governUserId"
));
}
}
else
if
(
executeTypeEnum
.
equals
(
LatentDangerExcuteTypeEnum
.
隐患延期治理公司审核通过
))
{
latentDangerBo
.
setDangerState
(
LatentDangerStateEnum
.
延期治理申请
.
getCode
().
toString
());
latentDangerBo
.
setReformLimitDate
(
latentDangerBo
.
getDelayLimitDate
());
}
else
if
(
executeTypeEnum
.
equals
(
LatentDangerExcuteTypeEnum
.
隐患延期治理公司审核拒绝
))
{
}
/**else if (executeTypeEnum.equals(LatentDangerExcuteTypeEnum.隐患延期治理公司审核拒绝)) {
// TODO 待需求确认是回到部门审核还是回到隐患治理节点
latentDangerBo.setDangerState(LatentDangerStateEnum.延期治理申请待车间部门审核.getCode().toString());
}
}
**/
latentDangerMapper
.
update
(
latentDangerBo
);
if
(
patrolBo
!=
null
)
{
executeSubmitDto
.
setPointOriginalId
(
patrolBo
.
getPointOriginalId
());
...
...
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