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
3f60cf1f
Commit
3f60cf1f
authored
Jun 12, 2020
by
maoying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
巡检消息规则推送
parent
b7cb0761
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
1 deletion
+24
-1
RiskSourceController.java
...in/amos/fas/business/controller/RiskSourceController.java
+2
-1
RiskSourceServiceImpl.java
...amos/fas/business/service/impl/RiskSourceServiceImpl.java
+19
-0
IRiskSourceService.java
...n/amos/fas/business/service/intfc/IRiskSourceService.java
+3
-0
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/controller/RiskSourceController.java
View file @
3f60cf1f
...
@@ -568,7 +568,8 @@ public class RiskSourceController extends BaseController {
...
@@ -568,7 +568,8 @@ public class RiskSourceController extends BaseController {
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"上传巡检数据"
,
notes
=
"上传巡检数据"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"上传巡检数据"
,
notes
=
"上传巡检数据"
)
@RequestMapping
(
value
=
"/data/patroldata"
,
produces
=
"application/json;charset=UTF-8"
,
method
=
RequestMethod
.
PUT
)
@RequestMapping
(
value
=
"/data/patroldata"
,
produces
=
"application/json;charset=UTF-8"
,
method
=
RequestMethod
.
PUT
)
public
CommonResponse
postPatrolData
(
@RequestBody
ProtalDataRo
protalData
)
throws
Exception
{
public
CommonResponse
postPatrolData
(
@RequestBody
ProtalDataRo
protalData
)
throws
Exception
{
riskSourceService
.
processProtalData
(
getToken
(),
getProduct
(),
getAppKey
(),
protalData
);
riskSourceService
.
protalRuleMessagePush
(
protalData
);
riskSourceService
.
processProtalData
(
getToken
(),
getProduct
(),
getAppKey
(),
protalData
);
return
CommonResponseUtil
.
success
();
return
CommonResponseUtil
.
success
();
}
}
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/RiskSourceServiceImpl.java
View file @
3f60cf1f
...
@@ -620,6 +620,25 @@ public class RiskSourceServiceImpl implements IRiskSourceService {
...
@@ -620,6 +620,25 @@ public class RiskSourceServiceImpl implements IRiskSourceService {
}
}
iDataRefreshService
.
refreshViewData
(
DataRefreshTypeEum
.
check
.
getCode
());
iDataRefreshService
.
refreshViewData
(
DataRefreshTypeEum
.
check
.
getCode
());
}
}
/**
* 巡检消息规则推送
* @param protalData
*/
@Override
@Async
public
void
protalRuleMessagePush
(
ProtalDataRo
protalData
){
String
bacthNo
=
UUID
.
randomUUID
().
toString
();
protalData
.
setBatchNo
(
bacthNo
);
protalData
.
setOriginalNodeState
(
protalData
.
getNodeState
());
protalData
.
setUserName
(
protalData
.
getCheckUser
());
try
{
ruleTrigger
.
publish
(
protalData
,
"风险管控/patrol"
,
null
);
}
catch
(
Exception
e
)
{
// TODO Auto-generated catch block
e
.
printStackTrace
();
}
}
@Override
@Override
public
RiskSourceTreeResponse
queryRiskSourceDetailById
(
Long
id
)
{
public
RiskSourceTreeResponse
queryRiskSourceDetailById
(
Long
id
)
{
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/intfc/IRiskSourceService.java
View file @
3f60cf1f
...
@@ -78,6 +78,9 @@ public interface IRiskSourceService {
...
@@ -78,6 +78,9 @@ public interface IRiskSourceService {
void
processProtalData
(
String
toke
,
String
product
,
String
appKey
,
ProtalDataRo
protalData
)
throws
Exception
;
void
processProtalData
(
String
toke
,
String
product
,
String
appKey
,
ProtalDataRo
protalData
)
throws
Exception
;
void
protalRuleMessagePush
(
ProtalDataRo
protalData
);
RiskSourceTreeResponse
queryRiskSourceDetailById
(
Long
id
);
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