/** * 保存断电告警单信息 * * @param oeDispatchTask OeDispatchTask 输入的断电告警派单信息 * @return String 断电告警单编号 */ private String saveOeOutageAlarm(OeDispatchTask oeDispatchTask) { OeOutageAlarm oeOutageAlarm; if (StringUtils.isBlank(oeDispatchTask.getAlarmId())) { return ""; } oeOutageAlarm = oeOutageAlarmDao.get(oeDispatchTask.getAlarmId()); oeOutageAlarmDao.save(oeOutageAlarm); return oeOutageAlarm.getId(); }
/** * 根据断电告警派单编号读取断电告警派单详细信息 * * @param id String 断电告警派单编号 * @return OeDispatchTask 断电告警派单详细信息 */ @Transactional(readOnly = true) @Override public OeDispatchTask viewOeDispatchTask(String id) { OeDispatchTask oeDispatchTask = oeDispatchTaskDao.get(id); String orgName = super.getOrgName(oeDispatchTask.getMaintenanceId()); oeDispatchTask.setOrgName(orgName); String createrName = super.getUserName(oeDispatchTask.getCreator()); oeDispatchTask.setCreaterName(createrName); String resourceName = super.getResourceName(oeDispatchTask); oeDispatchTask.setStationName(resourceName); return oeDispatchTask; }