yujian
2019-02-28 70c9043f312a52a922cb15490d90a172b3515060
fanli/src/main/java/com/yeshi/fanli/service/inter/user/UserSystemCouponService.java
@@ -1,5 +1,6 @@
package com.yeshi.fanli.service.inter.user;
import java.math.BigDecimal;
import java.util.List;
import com.yeshi.fanli.entity.bus.user.UserSystemCoupon;
@@ -70,12 +71,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 +125,56 @@
    */
   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);
   /**
    * 更新券记录 ——匹配免单券
    * @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;
   
}