Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YeeAmosFireAutoSysRoot
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
station
YeeAmosFireAutoSysRoot
Commits
03db73c5
Commit
03db73c5
authored
Jun 12, 2020
by
maoying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
规则消息推送调整
parent
3f60cf1f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
+4
-6
RiskSourceController.java
...in/amos/fas/business/controller/RiskSourceController.java
+0
-1
RiskSourceServiceImpl.java
...amos/fas/business/service/impl/RiskSourceServiceImpl.java
+4
-2
IRiskSourceService.java
...n/amos/fas/business/service/intfc/IRiskSourceService.java
+0
-3
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/controller/RiskSourceController.java
View file @
03db73c5
...
...
@@ -568,7 +568,6 @@ public class RiskSourceController extends BaseController {
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"上传巡检数据"
,
notes
=
"上传巡检数据"
)
@RequestMapping
(
value
=
"/data/patroldata"
,
produces
=
"application/json;charset=UTF-8"
,
method
=
RequestMethod
.
PUT
)
public
CommonResponse
postPatrolData
(
@RequestBody
ProtalDataRo
protalData
)
throws
Exception
{
riskSourceService
.
protalRuleMessagePush
(
protalData
);
riskSourceService
.
processProtalData
(
getToken
(),
getProduct
(),
getAppKey
(),
protalData
);
return
CommonResponseUtil
.
success
();
}
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/RiskSourceServiceImpl.java
View file @
03db73c5
...
...
@@ -586,6 +586,8 @@ public class RiskSourceServiceImpl implements IRiskSourceService {
@Override
@Async
public
void
processProtalData
(
String
toke
,
String
product
,
String
appKey
,
ProtalDataRo
protalData
)
{
//巡检消息规则推送
protalRuleMessagePush
(
protalData
);
if
(!
CollectionUtils
.
isEmpty
(
protalData
.
getPointInputitems
()))
{
Long
pointId
=
protalData
.
getId
();
List
<
Long
>
inputIds
=
Lists
.
newArrayList
();
...
...
@@ -625,13 +627,13 @@ public class RiskSourceServiceImpl implements IRiskSourceService {
* 巡检消息规则推送
* @param protalData
*/
@Override
@Async
p
ublic
void
protalRuleMessagePush
(
ProtalDataRo
protalData
){
p
rivate
void
protalRuleMessagePush
(
ProtalDataRo
protalData
){
String
bacthNo
=
UUID
.
randomUUID
().
toString
();
protalData
.
setBatchNo
(
bacthNo
);
protalData
.
setOriginalNodeState
(
protalData
.
getNodeState
());
protalData
.
setUserName
(
protalData
.
getCheckUser
());
protalData
.
setPointName
(
protalData
.
getName
());
try
{
ruleTrigger
.
publish
(
protalData
,
"风险管控/patrol"
,
null
);
}
catch
(
Exception
e
)
{
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/intfc/IRiskSourceService.java
View file @
03db73c5
...
...
@@ -78,9 +78,6 @@ public interface IRiskSourceService {
void
processProtalData
(
String
toke
,
String
product
,
String
appKey
,
ProtalDataRo
protalData
)
throws
Exception
;
void
protalRuleMessagePush
(
ProtalDataRo
protalData
);
RiskSourceTreeResponse
queryRiskSourceDetailById
(
Long
id
);
/**
...
...
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