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
0d9374dd
Commit
0d9374dd
authored
Sep 30, 2021
by
李腾威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
地图消息接口
parent
b8a109d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
RepairConsultServiceImpl.java
...module/tzs/biz/service/impl/RepairConsultServiceImpl.java
+13
-11
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/RepairConsultServiceImpl.java
View file @
0d9374dd
...
@@ -267,18 +267,20 @@ public class RepairConsultServiceImpl extends BaseService<RepairConsultDto,Repai
...
@@ -267,18 +267,20 @@ public class RepairConsultServiceImpl extends BaseService<RepairConsultDto,Repai
if
(
flag
)
{
if
(
flag
)
{
// 记录处置记录后修改 案件状态
// 记录处置记录后修改 案件状态
alertCalledServiceImpl
.
updateAlertStage
(
alertCalledVo
,
CZHJ
);
alertCalledServiceImpl
.
updateAlertStage
(
alertCalledVo
,
CZHJ
);
// 警情伤亡消息 矩阵 消息
if
(
null
!=
user
)
{
JSONObject
jsonObject
=
new
JSONObject
();
// 警情伤亡消息 矩阵 消息
jsonObject
.
put
(
"userId"
,
user
.
getUserId
());
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"alertId"
,
alertCalledVo
.
getSequenceNbr
());
jsonObject
.
put
(
"userId"
,
user
.
getUserId
());
try
{
jsonObject
.
put
(
"alertId"
,
String
.
valueOf
(
alertCalledVo
.
getSequenceNbr
()));
emqKeeper
.
getMqttClient
().
publish
(
alertHeartpushTopic
,
jsonObject
.
toString
().
getBytes
(
"UTF-8"
),
1
,
false
);
try
{
emqKeeper
.
getMqttClient
().
publish
(
alertMatrixpushTopic
,
jsonObject
.
toString
().
getBytes
(
"UTF-8"
),
1
,
false
);
emqKeeper
.
getMqttClient
().
publish
(
alertHeartpushTopic
,
jsonObject
.
toString
().
getBytes
(
"UTF-8"
),
1
,
false
);
emqKeeper
.
getMqttClient
().
publish
(
alertMatrixpushTopic
,
jsonObject
.
toString
().
getBytes
(
"UTF-8"
),
1
,
false
);
}
catch
(
MqttException
e
)
{
}
catch
(
MqttException
e
)
{
logger
.
error
(
"mqtt发送失败"
+
jsonObject
);
logger
.
error
(
"mqtt发送失败"
+
jsonObject
);
}
catch
(
UnsupportedEncodingException
e
)
{
}
catch
(
UnsupportedEncodingException
e
)
{
logger
.
error
(
"mqtt发送失败"
+
jsonObject
);
logger
.
error
(
"mqtt发送失败"
+
jsonObject
);
}
}
}
}
}
return
flag
;
return
flag
;
...
...
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