Commit 4d612c11 authored by tangwei's avatar tangwei

Merge branch 'developer' of http://172.16.10.76/moa/amos-boot-biz into developer

parents 44f5f2f9 6f65ce96
...@@ -267,10 +267,9 @@ public class RepairConsultServiceImpl extends BaseService<RepairConsultDto,Repai ...@@ -267,10 +267,9 @@ public class RepairConsultServiceImpl extends BaseService<RepairConsultDto,Repai
if(flag) { if(flag) {
// 记录处置记录后修改 案件状态 // 记录处置记录后修改 案件状态
alertCalledServiceImpl.updateAlertStage(alertCalledVo,CZHJ); alertCalledServiceImpl.updateAlertStage(alertCalledVo,CZHJ);
// 警情伤亡消息 矩阵 消息 // 警情伤亡消息 矩阵 消息
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
jsonObject.put("userId",user.getUserId()); jsonObject.put("alertId",String.valueOf(alertCalledVo.getSequenceNbr()));
jsonObject.put("alertId",alertCalledVo.getSequenceNbr());
try { try {
emqKeeper.getMqttClient().publish(alertHeartpushTopic, 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); emqKeeper.getMqttClient().publish(alertMatrixpushTopic, jsonObject.toString().getBytes("UTF-8"), 1, false);
...@@ -280,6 +279,7 @@ public class RepairConsultServiceImpl extends BaseService<RepairConsultDto,Repai ...@@ -280,6 +279,7 @@ public class RepairConsultServiceImpl extends BaseService<RepairConsultDto,Repai
} catch (UnsupportedEncodingException e) { } catch (UnsupportedEncodingException e) {
logger.error("mqtt发送失败" +jsonObject ); logger.error("mqtt发送失败" +jsonObject );
} }
} }
return flag; return flag;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment