Commit 95f60d8e authored by KeYong's avatar KeYong

更新

parent a34f334f
......@@ -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;
}
......
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