admin
2019-09-06 2012b3b5db3c6b06535a68f775bcc81b16151b90
fanli/src/main/java/com/yeshi/fanli/service/inter/user/UserSystemCouponService.java
@@ -4,6 +4,7 @@
import java.util.List;
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.exception.user.UserSystemCouponException;
import com.yeshi.fanli.vo.user.UserSystemCouponRecordVO;
@@ -133,13 +134,8 @@
    * @throws UserSystemCouponException
    * @throws Exception
    */
   public void insertUserCoupon(Long uid, String couponType, String source) throws UserSystemCouponException, Exception;
   public UserSystemCoupon insertUserCoupon(Long uid, String couponType, String source, BigDecimal percent) throws UserSystemCouponException, Exception;
   /**
    * 券已过期更新
    * @param uid
    */
   public void updateCounponInvalid(Long uid);
   /**
    * 退回券
@@ -212,11 +208,97 @@
    * @param source
    * @throws UserSystemCouponException
    */
   public void exchangeCoupon(Long uid, String couponType, String source, boolean give,
   public void exchangeCoupon(Long uid, String couponType, String source,
         BigDecimal percent) throws UserSystemCouponException, Exception;
   
   /**
    * 券列表 1.6.5
    * @param start
    * @param count
    * @param uid
    * @return
    * @throws UserSystemCouponException
    * @throws Exception
    */
   public List<UserSystemCouponVO> getCouponList(long start, int count, Long uid) throws UserSystemCouponException, Exception;
   /**
    * 赠送券生成口令
    * @param uid
    * @param id
    * @return
    * @throws UserSystemCouponException
    */
   public UserSystemCouponVO giveCoupon(Long uid, Long id) throws UserSystemCouponException;
   /**
    * 赠送退回
    * @param id
    */
   public void sendBackGiveCoupon(List<UserSystemCouponGiveRecord> overdueList);
   /**
    * 查询需要过期的
    * @param count
    * @return
    */
   public List<UserSystemCoupon> getCounponNowInvalid(int count);
   /**
    * 过期券
    * @param list
    */
   public void updateCounponInvalid(List<UserSystemCoupon> list);
   /**
    * 兑换
    * @param uid
    * @return
    */
   public boolean getIncludeExchange(Long uid);
   /**
    * 非兑换
    * @param uid
    * @return
    */
   public boolean getIncludeNotExchange(Long uid);
   /**
    * 查询1.6.5之前的  不等于35%
    * @param uid
    * @return
    */
   public List<UserSystemCouponVO> listIncludeNotExchange(Long uid) throws Exception;
   public long countCouponOld(Long uid);
   /**
    * 更新用户过期券
    * @param uid
    */
   public void updateInvalidSate(Long uid);
   /*
    * 赠送券
    */
   public void sendBackGiveUser(Long uid);
   /**
    * 统计可使用的免单券
    * @param uid
    * @return
    */
   public long countUsableFreeCouponForBuy(Long uid);
   /**
    * 统计可使用的奖励券
    * @param uid
    * @return
    */
   public long countUsableRewardCoupon(Long uid);
}