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
c67a5154
Commit
c67a5154
authored
Sep 26, 2020
by
zhengjiangtao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
搜索消息优化
parent
1289e612
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
SimpleTipAction.java
...com/yeejoin/amos/fas/business/action/SimpleTipAction.java
+13
-1
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/action/SimpleTipAction.java
View file @
c67a5154
...
...
@@ -6,6 +6,8 @@ import java.util.List;
import
java.util.Map
;
import
java.util.UUID
;
import
com.yeejoin.amos.fas.business.service.model.FireEquimentDataRo
;
import
com.yeejoin.amos.fas.business.service.model.ProtalDataRo
;
import
com.yeejoin.amos.fas.business.service.model.RiskSourceRuleRo
;
import
com.yeejoin.amos.fas.core.common.request.DateUtil
;
import
com.yeejoin.amos.fas.core.util.StringUtil
;
...
...
@@ -44,7 +46,7 @@ public class SimpleTipAction implements CustomerAction
private
IMessageService
messageService
;
//@ExposeAction("消息提示")
public
void
sendMessageTip
(
Object
bizobj
,
String
title
,
String
content
,
String
type
)
public
void
sendMessageTip
(
Object
bizobj
,
String
title
,
String
content
,
String
type
)
{
try
{
...
...
@@ -106,6 +108,16 @@ public class SimpleTipAction implements CustomerAction
message
.
setBizId
(
StringUtil
.
isNotEmpty
(
riskSourceRuleRo
.
getId
())
?
String
.
valueOf
(
riskSourceRuleRo
.
getId
())
:
""
);
}
if
(
abstractActionResult
.
getToipResponse
().
getBizObj
()
instanceof
ProtalDataRo
)
{
ProtalDataRo
protalDataRo
=
(
ProtalDataRo
)
abstractActionResult
.
getToipResponse
().
getBizObj
();
message
.
setTime
(
DateUtil
.
getNow
());
message
.
setBizId
(
StringUtil
.
isNotEmpty
(
protalDataRo
.
getId
())
?
String
.
valueOf
(
protalDataRo
.
getId
())
:
""
);
}
if
(
abstractActionResult
.
getToipResponse
().
getBizObj
()
instanceof
FireEquimentDataRo
)
{
FireEquimentDataRo
fireEquimentDataRo
=
(
FireEquimentDataRo
)
abstractActionResult
.
getToipResponse
().
getBizObj
();
message
.
setTime
(
DateUtil
.
getNow
());
message
.
setBizId
(
StringUtil
.
isNotEmpty
(
fireEquimentDataRo
.
getId
())
?
String
.
valueOf
(
fireEquimentDataRo
.
getId
())
:
""
);
}
message
.
setBizclassName
(
abstractActionResult
.
getToipResponse
().
getBizObj
().
getClass
().
toString
());
message
.
setType
(
type
);
message
.
setId
(
UUID
.
randomUUID
().
toString
());
...
...
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