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
0fc3341d
Commit
0fc3341d
authored
Jan 19, 2022
by
helinlin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改巡检消息体存在null的问题
parent
fbac271f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
AsyncTask.java
...in/java/com/yeejoin/amos/patrol/core/async/AsyncTask.java
+3
-2
No files found.
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 @
0fc3341d
...
...
@@ -66,7 +66,7 @@ public class AsyncTask {
private
static
final
String
TAB
=
"\r\n"
;
/**
* 检查消息推送
* @param checkId
...
...
@@ -155,7 +155,6 @@ public class AsyncTask {
if
(
pointName
!=
null
)
{
body
+=
"关联检查点:"
+
pointName
+
TAB
;
}
body
=
body
.
replaceAll
(
null
,
""
).
replaceAll
(
"null"
,
""
);
saveAndSendMsg
(
orgCode
,
informerList
,
msgTypeEnum
.
getTitle
(),
body
,
msgTypeEnum
.
getMsgType
(),
latentDangerId
,
taskId
,
state
,
""
);
}
...
...
@@ -186,6 +185,8 @@ public class AsyncTask {
String
title
,
String
body
,
String
msgType
,
Long
relationId
,
String
taskId
,
Integer
state
,
String
userRealName
)
{
body
=
body
.
replaceAll
(
"null"
,
""
);
//过滤掉所有null
if
(
body
.
startsWith
(
TAB
))
body
=
body
.
replaceFirst
(
TAB
,
""
);
//过滤掉以换行开头的换行符
JSONArray
array
=
JSONArray
.
parseArray
(
informerList
);
Set
<
String
>
sendUserIds
=
new
HashSet
<>();
if
(
array
.
size
()>
0
)
{
...
...
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