yujian
2020-06-29 ec60e757d358636dcac1589c44a66f3e276fe58c
fanli/src/main/java/com/yeshi/fanli/service/inter/user/UserSystemCouponService.java
@@ -7,6 +7,7 @@
import com.yeshi.fanli.entity.bus.user.UserSystemCoupon;
import com.yeshi.fanli.entity.bus.user.UserSystemCouponGiveRecord;
import com.yeshi.fanli.entity.system.SystemCoupon;
import com.yeshi.fanli.entity.system.SystemCoupon.CouponTypeEnum;
import com.yeshi.fanli.exception.user.UserSystemCouponException;
import com.yeshi.fanli.vo.user.UserSystemCouponRecordVO;
import com.yeshi.fanli.vo.user.UserSystemCouponVO;
@@ -66,14 +67,6 @@
    */
   public List<UserSystemCouponVO> getOrderCouponList(Long uid) throws UserSystemCouponException, Exception;
   /**
    * 查询商品使用相关券
    * @param uid
    * @return
    * @throws UserSystemCouponException
    * @throws Exception
    */
   public List<UserSystemCouponVO> getGoodsCouponList(Long uid, Long auctionId) throws UserSystemCouponException, Exception;
   /**
    * 更新券使用记录
@@ -127,15 +120,6 @@
    */
   public List<UserSystemCoupon> getUserCouponBySource(Long uid, String source);
   /**
    * 插入券信息
    * @param uid
    * @param couponType
    * @param source  来源
    * @throws UserSystemCouponException
    * @throws Exception
    */
   public UserSystemCoupon insertUserCoupon(Long uid, String couponType, String source, BigDecimal percent,Boolean needNotify) throws UserSystemCouponException, Exception;
   /**
@@ -144,11 +128,6 @@
    */
   public void sendBackTimeOutCoupon(Long uid);
   /**
    * 激活福利免单券
    * @param uid
    */
   public void activatedWelfareFreeCoupon(Long uid, String from);
   /**
    * 更新券记录 ——匹配免单券
@@ -174,14 +153,6 @@
    */
   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;
   
@@ -192,29 +163,6 @@
    * @return
    */
   public int countTodatyUserCouponBySource(Long uid, String source);
   /**
    * 随机生成奖励券
    * @param num
    * @param uid
    * @param source
    * @throws Exception
    */
   public void randomRewardCoupon(int num, Long uid, String source) throws Exception;
   /**
    * 系统赠送奖励券
    * @param num
    * @param uid
    * @param source
    * @throws Exception
    */
   public void systemGiveRewardCoupon(Long uid,int num,String orderId,Integer orderType,String reason) throws Exception;
   
   
@@ -339,4 +287,57 @@
    */
   public long countGiveFreeCoupon(Long uid);
   /**
    * 免单券获得
    * @param uid
    * @param typeEnum 类型
    * @param source  来源
    * @param num     数量
    * @param notify  是否发送消息
    * @return
    * @throws UserSystemCouponException
    */
   public UserSystemCoupon freeCouponWin(Long uid, CouponTypeEnum typeEnum, String source, int num, boolean notify)
         throws UserSystemCouponException, Exception;
   /**
    * 奖励券券获得
    * @param uid
    * @param typeEnum
    * @param source
    * @param num
    * @param notify
    * @param percent
    * @return
    * @throws UserSystemCouponException
    * @throws Exception
    */
   public UserSystemCoupon rewardCouponWin(Long uid, String source, int num, boolean notify,
         BigDecimal percent) throws UserSystemCouponException, Exception;
   /**
    * 免单券获得
    * @param uid
    * @param typeEnum
    * @param source
    * @param num
    * @param notify
    * @param expiryDay
    * @return
    * @throws UserSystemCouponException
    * @throws Exception
    */
   public UserSystemCoupon freeCouponWinBySystem(Long uid, CouponTypeEnum typeEnum, String source, int num, boolean notify,
         Integer expiryDay) throws UserSystemCouponException, Exception;
   /**
    * 获取有效免单券列表
    * @param uid
    * @return
    */
   public List<UserSystemCouponVO> getFreeCouponList(Long uid);
   public List<UserSystemCouponVO> getGoodsCouponList(Long uid, Long auctionId) throws UserSystemCouponException, Exception;
}