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
3db714ef
Commit
3db714ef
authored
Nov 18, 2021
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
5cb44c11
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
StartLoader.java
.../yeejoin/amos/boot/module/jcs/biz/config/StartLoader.java
+4
-4
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/config/StartLoader.java
View file @
3db714ef
...
...
@@ -50,10 +50,10 @@ public class StartLoader implements ApplicationRunner {
if
(!
ValidationUtil
.
isEmpty
(
obj
))
{
JSONObject
json
=
JSON
.
parseObject
(
obj
);
AlertNewsDto
alertNewsDto
=
new
AlertNewsDto
(
"物联警情"
,
"物联设备发生警情,发生位置:"
+
json
.
get
(
"address"
)!=
null
?
json
.
get
(
"address"
).
toString
():
""
+
",事发单位:"
+
json
.
get
(
"unitInvolvedName"
)!=
null
?
json
.
get
(
"unitInvolvedName"
).
toString
():
""
+
",联系人:"
+
json
.
get
(
"contactUser"
)!=
null
?
json
.
get
(
"contactUser"
).
toString
():
""
+
",联系电话:"
+
json
.
get
(
"contactPhone"
)!=
null
?
json
.
get
(
"contactPhone"
).
toString
():
""
+
".请尽快处理!"
,
"物联设备发生警情,发生位置:"
+
(
json
.
get
(
"address"
)!=
null
?
json
.
get
(
"address"
).
toString
():
""
)
+
",事发单位:"
+
(
json
.
get
(
"unitInvolvedName"
)!=
null
?
json
.
get
(
"unitInvolvedName"
).
toString
():
""
)
+
",联系人:"
+
(
json
.
get
(
"contactUser"
)!=
null
?
json
.
get
(
"contactUser"
).
toString
():
""
)
+
",联系电话:"
+
(
json
.
get
(
"contactPhone"
)!=
null
?
json
.
get
(
"contactPhone"
).
toString
():
""
)
+
".请尽快处理!"
,
json
.
get
(
"id"
).
toString
(),
json
);
emqKeeper
.
getMqttClient
().
publish
(
topicweb
,
JSONObject
.
toJSON
(
alertNewsDto
).
toString
().
getBytes
(
"UTF-8"
),
1
,
false
);
}
...
...
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