|
|
@ -394,7 +394,7 @@ public class DcEmergencyPlansServiceImpl implements DcEmergencyPlansService { |
|
|
|
* @return 结果 |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public int executionEventConfirmation(DcEventAnDcEmergencyPlans dcEventAnDcEmergencyPlans) { |
|
|
|
public JSONArray executionEventConfirmation(DcEventAnDcEmergencyPlans dcEventAnDcEmergencyPlans) { |
|
|
|
// 获取事件数据
|
|
|
|
DcEvent dcEvent = dcEventAnDcEmergencyPlans.getDcEvent(); |
|
|
|
// 方向
|
|
|
@ -497,7 +497,7 @@ public class DcEmergencyPlansServiceImpl implements DcEmergencyPlansService { |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public int executionWarningConfirmation(DcEventAnDcEmergencyPlans dcEventAnDcEmergencyPlans) { |
|
|
|
public JSONArray executionWarningConfirmation(DcEventAnDcEmergencyPlans dcEventAnDcEmergencyPlans) { |
|
|
|
// 获取事件数据
|
|
|
|
DcWarning dcWarning = dcEventAnDcEmergencyPlans.getDcWarning(); |
|
|
|
|
|
|
@ -514,7 +514,7 @@ public class DcEmergencyPlansServiceImpl implements DcEmergencyPlansService { |
|
|
|
* @param dcEventAnDcEmergencyPlans 事件数据 和 事件预案数据 |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
public int executionConfirmation(DcEventAnDcEmergencyPlans dcEventAnDcEmergencyPlans, |
|
|
|
public JSONArray executionConfirmation(DcEventAnDcEmergencyPlans dcEventAnDcEmergencyPlans, |
|
|
|
String stakeMark, |
|
|
|
String direction, |
|
|
|
String id) { |
|
|
@ -572,14 +572,15 @@ public class DcEmergencyPlansServiceImpl implements DcEmergencyPlansService { |
|
|
|
eventPlanAssoc.setExecutingControlDevice(deviceIds.toString().replaceFirst(";", "")); |
|
|
|
eventPlanAssoc.setExecutingControlResult(resultArray.toJSONString()); |
|
|
|
eventPlanAssoc.setCreateTime(DateUtils.getNowDate()); |
|
|
|
return eventPlanAssocMapper.insertEventPlanAssoc(eventPlanAssoc); |
|
|
|
eventPlanAssocMapper.insertEventPlanAssoc(eventPlanAssoc); |
|
|
|
} else { |
|
|
|
EventPlanAssoc selectEventPlanAssoc = eventPlanAssocMapper.selectByEventId(eventPlanAssoc); |
|
|
|
selectEventPlanAssoc.setUpdateTime(DateUtils.getNowDate()); |
|
|
|
selectEventPlanAssoc.setRecoveredControlDevice(deviceIds.toString().replaceFirst(";", "")); |
|
|
|
selectEventPlanAssoc.setRecoveredControlResult(resultArray.toJSONString()); |
|
|
|
return eventPlanAssocMapper.updateEventPlanAssoc(selectEventPlanAssoc); |
|
|
|
eventPlanAssocMapper.updateEventPlanAssoc(selectEventPlanAssoc); |
|
|
|
} |
|
|
|
return resultArray; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|