Commit f665e526 authored by litengwei's avatar litengwei

预案增加首节点自动执行

parent c276a15e
...@@ -289,6 +289,10 @@ public class ContingencyPlanServiceImpl implements IContingencyPlanService { ...@@ -289,6 +289,10 @@ public class ContingencyPlanServiceImpl implements IContingencyPlanService {
map.put("msgContext", msgContext); map.put("msgContext", msgContext);
map.put("msgType", "refreshRecord"); map.put("msgType", "refreshRecord");
webMqttComponent.publish(topic, JSON.toJSONString(map)); webMqttComponent.publish(topic, JSON.toJSONString(map));
if(vo.getTriggerMode().equals("automatic")) {
iContingencyInstance.fire(batchNo, "0", "", instanceInfo.getId(), "FIRE_CONFIRM", "CONFIRM", "0", "true", "true", toke.getToke(), toke.getProduct(), toke.getAppKey(), null);
}
} }
return result; 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