/** * 保存编辑后的礼品对象 * * @see com.sohu.suc.gift.service.GiftService#updateExchangeGift(com.sohu.suc.gift.model.SucGift) */ public void updateExchangeGift(SucExchangeGift gift) throws SucGiftException { try { exchangeGiftDao.saveOrUpdate(gift); updateGiftActivity(); // 更新礼品活动 // RsyncCmd.rsycCmd(); //TODO 需要明白是做什么的 } catch (Exception e) { logger.error(e.getMessage(), e); throw new SucGiftException(e); } }
public void createGift(SucExchangeGift gift) throws SucGiftException { try { exchangeGiftDao.saveOrUpdate(gift); // 更新礼品活动 updateGiftActivity(); } catch (Exception e) { logger.error("createGift", e); throw new SucGiftException(e); } }