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
ea45878b
Commit
ea45878b
authored
May 24, 2023
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
d38e16ff
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
2 deletions
+13
-2
TopicEntityVo.java
...java/com/yeejoin/equipmanage/common/vo/TopicEntityVo.java
+2
-0
MqttReceiveServiceImpl.java
...join/equipmanage/service/impl/MqttReceiveServiceImpl.java
+5
-2
topic.json
...mos-boot-utils-message/src/main/resources/json/topic.json
+6
-0
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/vo/TopicEntityVo.java
View file @
ea45878b
...
@@ -21,6 +21,8 @@ public class TopicEntityVo {
...
@@ -21,6 +21,8 @@ public class TopicEntityVo {
private
String
message
;
private
String
message
;
private
String
data
;
private
String
type
;
private
String
type
;
// 若是车辆返回车牌号
// 若是车辆返回车牌号
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/MqttReceiveServiceImpl.java
View file @
ea45878b
...
@@ -1465,8 +1465,11 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
...
@@ -1465,8 +1465,11 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
TopicEntityVo
topicEntityVo
=
new
TopicEntityVo
();
TopicEntityVo
topicEntityVo
=
new
TopicEntityVo
();
topicEntityVo
.
setIotCode
(
equipmentSpeIndex
.
getIotCode
());
topicEntityVo
.
setIotCode
(
equipmentSpeIndex
.
getIotCode
());
topicEntityVo
.
setTopic
(
riskTopicCreate
);
topicEntityVo
.
setTopic
(
"equip/risk/trigger"
);
topicEntityVo
.
setMessage
(
JSON
.
toJSONString
(
detailVo
));
detailVo
.
setEquipInfo
(
equipInfoVo
);
detailVo
.
setAlarmInfo
(
alarmInfoVo
);
// topicEntityVo.setMessage(JSON.toJSONString(detailVo));
topicEntityVo
.
setData
(
JSON
.
toJSONString
(
detailVo
));
mqttSendGateway
.
sendToMqtt
(
riskTopicCreate
,
JSON
.
toJSONString
(
topicEntityVo
));
mqttSendGateway
.
sendToMqtt
(
riskTopicCreate
,
JSON
.
toJSONString
(
topicEntityVo
));
});
});
}
}
...
...
amos-boot-utils/amos-boot-utils-message/src/main/resources/json/topic.json
View file @
ea45878b
...
@@ -28,5 +28,10 @@
...
@@ -28,5 +28,10 @@
"code"
:
"xf"
,
"code"
:
"xf"
,
"emqTopic"
:
"emq.xf.created"
,
"emqTopic"
:
"emq.xf.created"
,
"akkaTopic"
:
"JKXT2BP-XF-Topic"
"akkaTopic"
:
"JKXT2BP-XF-Topic"
},
{
"code"
:
"risk"
,
"emqTopic"
:
"emq.risk.created"
,
"akkaTopic"
:
"JKXT2BP-RISK-Topic"
}
}
]
]
\ No newline at end of file
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