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
f5485362
Commit
f5485362
authored
May 26, 2023
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新消息发送
parent
3a830e74
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
3 deletions
+9
-3
MqttReceiveServiceImpl.java
...join/equipmanage/service/impl/MqttReceiveServiceImpl.java
+0
-1
CheckController.java
...join/amos/patrol/business/controller/CheckController.java
+5
-2
TopicEntityVo.java
...a/com/yeejoin/amos/patrol/business/dto/TopicEntityVo.java
+2
-0
application.properties
...t-system-patrol/src/main/resources/application.properties
+2
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/MqttReceiveServiceImpl.java
View file @
f5485362
...
@@ -1468,7 +1468,6 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
...
@@ -1468,7 +1468,6 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
topicEntityVo
.
setTopic
(
"equip/risk/trigger"
);
topicEntityVo
.
setTopic
(
"equip/risk/trigger"
);
detailVo
.
setEquipInfo
(
equipInfoVo
);
detailVo
.
setEquipInfo
(
equipInfoVo
);
detailVo
.
setAlarmInfo
(
alarmInfoVo
);
detailVo
.
setAlarmInfo
(
alarmInfoVo
);
// topicEntityVo.setMessage(JSON.toJSONString(detailVo));
topicEntityVo
.
setData
(
JSON
.
toJSONString
(
detailVo
));
topicEntityVo
.
setData
(
JSON
.
toJSONString
(
detailVo
));
mqttSendGateway
.
sendToMqtt
(
riskTopicCreate
,
JSON
.
toJSONString
(
topicEntityVo
));
mqttSendGateway
.
sendToMqtt
(
riskTopicCreate
,
JSON
.
toJSONString
(
topicEntityVo
));
});
});
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/controller/CheckController.java
View file @
f5485362
...
@@ -105,6 +105,9 @@ public class CheckController extends AbstractBaseController {
...
@@ -105,6 +105,9 @@ public class CheckController extends AbstractBaseController {
@Value
(
"${patrol.message.create.topic}"
)
@Value
(
"${patrol.message.create.topic}"
)
private
String
patrolRiskCreateTopic
;
private
String
patrolRiskCreateTopic
;
@Value
(
"${patrol.center.risk.topic}"
)
private
String
riskTopic
;
@Autowired
@Autowired
private
CheckMapper
checkMapper
;
private
CheckMapper
checkMapper
;
...
@@ -288,10 +291,10 @@ public class CheckController extends AbstractBaseController {
...
@@ -288,10 +291,10 @@ public class CheckController extends AbstractBaseController {
alarmInfoVo
.
setValue
(
String
.
valueOf
(
map
.
get
(
"input_value"
)));
alarmInfoVo
.
setValue
(
String
.
valueOf
(
map
.
get
(
"input_value"
)));
TopicEntityVo
topicEntityVo
=
new
TopicEntityVo
();
TopicEntityVo
topicEntityVo
=
new
TopicEntityVo
();
topicEntityVo
.
setTopic
(
patrolRiskCreate
Topic
);
topicEntityVo
.
setTopic
(
risk
Topic
);
detailVo
.
setEquipInfo
(
equipInfoVo
);
detailVo
.
setEquipInfo
(
equipInfoVo
);
detailVo
.
setAlarmInfo
(
alarmInfoVo
);
detailVo
.
setAlarmInfo
(
alarmInfoVo
);
topicEntityVo
.
set
Message
(
JSON
.
toJSONString
(
detailVo
));
topicEntityVo
.
set
Data
(
JSON
.
toJSONString
(
detailVo
));
try
{
try
{
webMqttComponent
.
publish
(
patrolRiskCreateTopic
,
JSON
.
toJSONString
(
topicEntityVo
));
webMqttComponent
.
publish
(
patrolRiskCreateTopic
,
JSON
.
toJSONString
(
topicEntityVo
));
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/dto/TopicEntityVo.java
View file @
f5485362
...
@@ -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-system-patrol/src/main/resources/application.properties
View file @
f5485362
...
@@ -53,6 +53,8 @@ patrol.point.classify.topic=patrol/point/classify
...
@@ -53,6 +53,8 @@ patrol.point.classify.topic=patrol/point/classify
patrol.topic
=
patrol/#
patrol.topic
=
patrol/#
# \u7AD9\u7AEFmessage\u76D1\u542C\u4E3B\u9898
# \u7AD9\u7AEFmessage\u76D1\u542C\u4E3B\u9898
patrol.message.create.topic
=
emq.risk.created
patrol.message.create.topic
=
emq.risk.created
# \u4E2D\u5FC3\u7EA7\u76D1\u542C\u4E3B\u9898
patrol.center.risk.topic
=
patrol/risk/trigger
#\u505C\u6B62\u901A\u8FC7WEB\u516C\u5F00\u6240\u6709\u7AEF\u70B9
#\u505C\u6B62\u901A\u8FC7WEB\u516C\u5F00\u6240\u6709\u7AEF\u70B9
#management.endpoints.web.exposure.exclude=*
#management.endpoints.web.exposure.exclude=*
## redis\u5931\u6548\u65F6\u95F4
## redis\u5931\u6548\u65F6\u95F4
...
...
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