Commit 3131809c authored by litengwei's avatar litengwei

绍兴预案修改

parent 5e5495ad
...@@ -292,10 +292,6 @@ public class ContingencyPlanServiceImpl implements IContingencyPlanService { ...@@ -292,10 +292,6 @@ 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", "false", toke.getToke(), toke.getProduct(), toke.getAppKey(), null);
}
} }
return result; return result;
} }
...@@ -445,7 +441,7 @@ public class ContingencyPlanServiceImpl implements IContingencyPlanService { ...@@ -445,7 +441,7 @@ public class ContingencyPlanServiceImpl implements IContingencyPlanService {
if (planEquipment != null) { if (planEquipment != null) {
vo = new ContingencyPlanParamVo(); vo = new ContingencyPlanParamVo();
vo.setPlanId(planEquipment.getPlanId().toString()); vo.setPlanId(planEquipment.getPlanId().toString());
vo.setStatus(ContingencyPlanStatusEnum.ONGOING.getCode()); vo.setStatus(ContingencyPlanStatusEnum.SIMULATION_START.getCode());
vo.setRiskType(riskType); vo.setRiskType(riskType);
return vo; return vo;
} }
......
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