コード例 #1
0
ファイル: GiftService.java プロジェクト: kkme/mall-domain
  /**
   * 保存编辑后的礼品对象
   *
   * @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);
    }
  }
コード例 #2
0
ファイル: GiftService.java プロジェクト: kkme/mall-domain
  public void createGift(SucExchangeGift gift) throws SucGiftException {

    try {
      exchangeGiftDao.saveOrUpdate(gift);

      // 更新礼品活动
      updateGiftActivity();

    } catch (Exception e) {
      logger.error("createGift", e);
      throw new SucGiftException(e);
    }
  }