yujian
2019-03-07 e6cb7c27384f22b39ccee584028e23b56c30e9ee
fanli/src/main/java/com/yeshi/fanli/service/inter/user/UserSystemCouponService.java
@@ -1,8 +1,10 @@
package com.yeshi.fanli.service.inter.user;
import java.math.BigDecimal;
import java.util.List;
import com.yeshi.fanli.entity.bus.user.UserSystemCoupon;
import com.yeshi.fanli.entity.push.PushCoupon;
import com.yeshi.fanli.entity.system.SystemCoupon;
import com.yeshi.fanli.exception.user.UserSystemCouponException;
import com.yeshi.fanli.vo.user.UserSystemCouponRecordVO;
@@ -70,12 +72,12 @@
    * @throws UserSystemCouponException
    * @throws Exception
    */
   public List<UserSystemCouponVO> getGoodsCouponList(Long uid) throws UserSystemCouponException, Exception;
   public List<UserSystemCouponVO> getGoodsCouponList(Long uid, Long auctionId) throws UserSystemCouponException, Exception;
   /**
    * 更新券使用记录
    * @param uid
    * @param id
    * @param id
    * @throws UserSystemCouponException
    * @throws Exception
    */
@@ -124,5 +126,81 @@
    */
   public List<UserSystemCoupon> getUserCouponBySource(Long uid, String source);
   /**
    * 插入券信息
    * @param uid
    * @param couponType
    * @param source  来源
    * @throws UserSystemCouponException
    * @throws Exception
    */
   public void insertUserCoupon(Long uid, String couponType, String source) throws UserSystemCouponException, Exception;
   /**
    * 券已过期更新
    * @param uid
    */
   public void updateCounponInvalid(Long uid);
   /**
    * 退回券
    * @param uid
    */
   public void sendBackTimeOutCoupon(Long uid);
   /**
    * 激活福利免单券
    * @param uid
    */
   public void activatedWelfareFreeCoupon(Long uid, String from);
   /**
    * 更新券记录 ——匹配免单券
    * @param uid        用户id
    * @param orderNo    订单号
    * @param payment    付款金额
    * @param auctionId  商品id(淘宝)
    * @return           免单成功 true
    * @throws Exception
    */
   public boolean updateCouponRecordUsed(Long uid, String orderNo, BigDecimal payment, Long auctionId) throws  Exception;
   /**
    * 订单退款更新 券记录状态并退回券
    * @param orderNo
    */
   public void updateStateByDrawback(String orderNo) throws Exception;
   /**
    * 红包到账 -- 更新券使用状态 -改为使用成功
    * @param orderNo
    * @throws Exception
    */
   public void updateStateByArrivalAccount(String orderNo) throws Exception;
   /**
    * 领取未登录时已抽奖的礼品
    * @param uid
    * @param platform
    * @param device
    * @throws Exception
    */
   public void copyLotteryPrize(Long uid, int platform, String device) throws Exception;
   /**
    * 领取券
    * @param uid
    * @throws Exception
    */
   public void receivedCoupon(Long uid) throws Exception;
   /**
    * 根据推送 获取对应的券
    * @param pushCoupon
    * @param uid
    * @throws Exception
    */
   public void randomRewardCoupon(PushCoupon pushCoupon, Long uid) throws Exception;
   
}