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
80ac3fea
Commit
80ac3fea
authored
Nov 09, 2021
by
kongfm
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
2fc0d704
0b84614b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
20 deletions
+13
-20
LatentDangerServiceImpl.java
...patrol/business/service/impl/LatentDangerServiceImpl.java
+4
-13
AsyncTask.java
...in/java/com/yeejoin/amos/patrol/core/async/AsyncTask.java
+9
-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 @
80ac3fea
...
...
@@ -1098,6 +1098,7 @@ public class LatentDangerServiceImpl implements ILatentDangerService {
danger
.
getOrgCode
(),
danger
.
getDangerName
(),
DateUtil
.
date2Str
(
danger
.
getReformLimitDate
(),
DateUtil
.
DATETIME_DEFAULT_FORMAT
),
danger
.
getDangerId
(),
danger
.
getInstanceId
(),
danger
.
getDangerState
(),
""
);
});
}
...
...
@@ -1275,23 +1276,12 @@ public class LatentDangerServiceImpl implements ILatentDangerService {
Set
<
String
>
sendUserIds
=
Sets
.
newHashSet
(
latentDangerBo
.
getDiscovererUserId
());
asyncTask
.
pushLatentDangerExecuteMessage
(
informerList
,
latentDangerBo
.
getOrgCode
(),
latentDangerBo
.
getDangerName
(),
pointName
,
departmentName
,
latentDangerBo
.
getId
(),
userRealName
,
departmentName
,
latentDangerBo
.
getId
(),
latentDangerBo
.
getInstanceId
(),
userRealName
,
flowTaskName
,
ExecuteStateEnum
.
驳回
.
getName
(),
DateUtil
.
date2Str
(
new
Date
(),
DateUtil
.
DATETIME_DEFAULT_FORMAT
),
Integer
.
parseInt
(
latentDangerBo
.
getDangerState
()));
}
else
if
(
excuteTypeEnum
.
equals
(
LatentDangerExcuteTypeEnum
.
隐患验证通过
))
{
if
(
patrolBo
!=
null
)
{
// RiskFactorBo riskFactorBo = riskFactorMapper.getById(Long.valueOf(patrolBo.getClassifyOriginalId()));
// Set<String> sendUserIds = Sets.newHashSet();
// if (riskFactorBo != null) {
// sendUserIds.addAll(Arrays.asList(riskFactorBo.getUserIds().split(",")));
// sendUserIds.add(riskFactorBo.getFirstEvaluateUserId());
// sendUserIds.add(riskFactorBo.getSecondEvaluateUserId());
// asyncTask.pushRiskWarnMessage(sendUserIds, latentDangerBo.getOrgCode(),
// latentDangerBo.getDangerName(), riskFactorBo.getId(),
// riskFactorBo.getName(), patrolBo.getPointName(),
// DateUtil.date2Str(new Date(), DateUtil.DATETIME_DEFAULT_FORMAT));
// }
// 更新p_check_input表state字段
updateCheckInputDangerState
(
latentDangerBo
.
getBizId
(),
DangerHandleStateEnum
.
COMPLETED
.
getCode
());
DangerResultBo
dangerResultBo
=
new
DangerResultBo
();
...
...
@@ -1308,7 +1298,7 @@ public class LatentDangerServiceImpl implements ILatentDangerService {
}
asyncTask
.
pushLatentDangerExecuteMessage
(
informerList
,
latentDangerBo
.
getOrgCode
(),
latentDangerBo
.
getDangerName
(),
pointName
,
departmentName
,
latentDangerBo
.
getId
(),
userRealName
,
departmentName
,
latentDangerBo
.
getId
(),
latentDangerBo
.
getInstanceId
(),
userRealName
,
flowTaskName
,
excuteTypeEnum
.
getExcuteState
().
getName
(),
DateUtil
.
date2Str
(
new
Date
(),
DateUtil
.
DATETIME_DEFAULT_FORMAT
),
Integer
.
parseInt
(
latentDangerBo
.
getDangerState
()));
...
...
@@ -1320,6 +1310,7 @@ public class LatentDangerServiceImpl implements ILatentDangerService {
latentDangerBo
.
getOrgCode
(),
latentDangerBo
.
getDangerName
(),
DateUtil
.
date2Str
(
latentDangerBo
.
getReformLimitDate
(),
DateUtil
.
DATETIME_DEFAULT_FORMAT
),
latentDangerBo
.
getId
(),
latentDangerBo
.
getInstanceId
(),
Integer
.
parseInt
(
latentDangerBo
.
getDangerState
()),
userRealName
);
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/core/async/AsyncTask.java
View file @
80ac3fea
...
...
@@ -123,7 +123,7 @@ public class AsyncTask {
@Async
(
"asyncTaskExecutor"
)
public
void
pushLatentDangerReformLimitDateExpireMessage
(
String
informerList
,
String
orgCode
,
String
latentDangerName
,
String
reformLimitDate
,
Long
latentDangerId
,
Integer
state
,
Long
latentDangerId
,
String
taskId
,
Integer
state
,
String
userRealName
)
{
// if (CollectionUtils.isEmpty(receiverIds)) {
// return;
...
...
@@ -133,7 +133,7 @@ public class AsyncTask {
body
+=
"隐患治理提醒:您好,隐患治理即将到期,请及时处理!"
+
TAB
;
body
+=
"隐患名称:"
+
latentDangerName
+
TAB
;
body
+=
"治理日期:"
+
reformLimitDate
;
saveAndSendMsg
(
orgCode
,
informerList
,
msgTypeEnum
.
getTitle
(),
body
,
msgTypeEnum
.
getMsgType
(),
latentDangerId
,
state
,
userRealName
);
saveAndSendMsg
(
orgCode
,
informerList
,
msgTypeEnum
.
getTitle
(),
body
,
msgTypeEnum
.
getMsgType
(),
latentDangerId
,
taskId
,
state
,
userRealName
);
}
/**
...
...
@@ -143,6 +143,7 @@ public class AsyncTask {
public
void
pushLatentDangerExecuteMessage
(
String
informerList
,
String
orgCode
,
String
latentDangerName
,
String
pointName
,
String
exeDeptName
,
Long
latentDangerId
,
String
taskId
,
String
exeUserRealName
,
String
flowName
,
String
flowResult
,
String
executeDate
,
Integer
state
)
{
...
...
@@ -154,7 +155,7 @@ public class AsyncTask {
if
(
pointName
!=
null
)
{
body
+=
"关联检查点:"
+
pointName
+
TAB
;
}
saveAndSendMsg
(
orgCode
,
informerList
,
msgTypeEnum
.
getTitle
(),
body
,
msgTypeEnum
.
getMsgType
(),
latentDangerId
,
state
,
""
);
saveAndSendMsg
(
orgCode
,
informerList
,
msgTypeEnum
.
getTitle
(),
body
,
msgTypeEnum
.
getMsgType
(),
latentDangerId
,
taskId
,
state
,
""
);
}
/**
...
...
@@ -162,7 +163,7 @@ public class AsyncTask {
*/
@Async
(
"asyncTaskExecutor"
)
public
void
pushRiskWarnMessage
(
String
informerList
,
String
orgCode
,
String
latentDangerName
,
Long
riskFactorId
,
String
latentDangerName
,
Long
riskFactorId
,
String
taskId
,
String
riskFactorName
,
String
pointName
,
String
executeDate
)
{
// if (CollectionUtils.isEmpty(sendUserIds)) {
...
...
@@ -177,12 +178,12 @@ public class AsyncTask {
if
(
pointName
!=
null
)
{
body
+=
"关联检查点:"
+
pointName
+
TAB
;
}
saveAndSendMsg
(
orgCode
,
informerList
,
msgTypeEnum
.
getTitle
(),
body
,
msgTypeEnum
.
getMsgType
(),
riskFactorId
,
null
,
""
);
saveAndSendMsg
(
orgCode
,
informerList
,
msgTypeEnum
.
getTitle
(),
body
,
msgTypeEnum
.
getMsgType
(),
riskFactorId
,
taskId
,
null
,
""
);
}
private
void
saveAndSendMsg
(
String
orgCode
,
String
informerList
,
String
title
,
String
body
,
String
msgType
,
Long
relationId
,
Integer
state
,
Long
relationId
,
String
taskId
,
Integer
state
,
String
userRealName
)
{
JSONArray
array
=
JSONArray
.
parseArray
(
informerList
);
Set
<
String
>
sendUserIds
=
new
HashSet
<>();
...
...
@@ -211,6 +212,7 @@ public class AsyncTask {
Map
<
String
,
String
>
extras
=
Maps
.
newHashMap
();
extras
.
put
(
"type"
,
msgType
);
extras
.
put
(
"id"
,
String
.
valueOf
(
relationId
));
extras
.
put
(
"taskId"
,
taskId
);
if
(
state
!=
null
)
{
extras
.
put
(
"state"
,
String
.
valueOf
(
state
));
}
...
...
@@ -249,7 +251,7 @@ public class AsyncTask {
body
+=
riskJudgmentName
+
":"
+
dataStr
+
TAB
;
body
+=
departmentName
+
TAB
;
body
+=
"状态:"
+
statusDesc
+
TAB
;
saveAndSendMsg
(
orgCode
,
informerList
,
msgTypeEnum
.
getTitle
(),
body
,
msgTypeEnum
.
getMsgType
(),
taskId
,
state
,
""
);
//
saveAndSendMsg(orgCode, informerList, msgTypeEnum.getTitle(), body, msgTypeEnum.getMsgType(), taskId, state,"");
MsgSubscribeEnum
eamilMsgTypeEnum
=
MsgSubscribeEnum
.
推送风险研判消息
;
Set
<
String
>
emailAfterFilterUserIds
=
userIdFilter
(
sendUserIds
,
eamilMsgTypeEnum
.
getMsgType
());
sendEmail
(
emailAfterFilterUserIds
,
msgTypeEnum
.
getTitle
(),
body
);
...
...
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