Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YeeAmosFireAutoSysRoot
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
station
YeeAmosFireAutoSysRoot
Commits
95f60d8e
Commit
95f60d8e
authored
Apr 04, 2023
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
a34f334f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
ContingencyPlanServiceImpl.java
...fas/business/service/impl/ContingencyPlanServiceImpl.java
+9
-9
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/ContingencyPlanServiceImpl.java
View file @
95f60d8e
...
...
@@ -244,15 +244,15 @@ public class ContingencyPlanServiceImpl implements IContingencyPlanService {
result
.
setMessage
(
ReserveEnum
.
RUN
.
getText
());
result
.
setBatchNo
(
batchNo
);
String
topic
=
String
.
format
(
"/%s/%s/%s"
,
serviceName
,
stationName
,
"plan"
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
JSONObject
msgContext
=
new
JSONObject
();
msgContext
.
put
(
"content"
,
"startPlan"
);
map
.
put
(
"contingency"
,
new
ContingencyRo
());
// map.put("msgContext", "{\"content\":\"startPlan\"}");
map
.
put
(
"msgContext"
,
msgContext
);
map
.
put
(
"msgType"
,
"refreshRecord"
);
webMqttComponent
.
publish
(
topic
,
JSON
.
toJSONString
(
map
));
//
String topic = String.format("/%s/%s/%s", serviceName, stationName, "plan");
//
Map<String, Object> map = new HashMap<>();
//
JSONObject msgContext = new JSONObject();
//
msgContext.put("content", "startPlan");
//
map.put("contingency", new ContingencyRo());
//
//
map.put("msgContext", "{\"content\":\"startPlan\"}");
//
map.put("msgContext", msgContext);
//
map.put("msgType", "refreshRecord");
//
webMqttComponent.publish(topic, JSON.toJSONString(map));
}
return
result
;
}
...
...
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