admin
2019-10-22 32f925357776c46bd9e35cf9aad4fdd0f6535d1d
fanli/src/main/java/com/yeshi/fanli/service/inter/user/UserSystemCouponService.java
@@ -3,6 +3,7 @@
import java.math.BigDecimal;
import java.util.List;
import com.yeshi.fanli.entity.accept.AcceptData;
import com.yeshi.fanli.entity.bus.user.UserSystemCoupon;
import com.yeshi.fanli.entity.bus.user.UserSystemCouponGiveRecord;
import com.yeshi.fanli.entity.system.SystemCoupon;
@@ -91,7 +92,7 @@
    * @throws UserSystemCouponException
    * @throws Exception
    */
   public void useOrderCoupon(Long uid, Long id, String orderNo, Integer sourceType) throws UserSystemCouponException, Exception;
   public void useOrderCoupon(Long uid, Long id, String orderNo, Integer sourceType, AcceptData acceptData) throws UserSystemCouponException, Exception;
   /**
    * 根据订单号获取奖励券使用进度
@@ -134,7 +135,7 @@
    * @throws UserSystemCouponException
    * @throws Exception
    */
   public UserSystemCoupon insertUserCoupon(Long uid, String couponType, String source, BigDecimal percent) throws UserSystemCouponException, Exception;
   public UserSystemCoupon insertUserCoupon(Long uid, String couponType, String source, BigDecimal percent,Boolean needNotify) throws UserSystemCouponException, Exception;
   /**
@@ -200,6 +201,22 @@
    * @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;
   /**
    * 添加券
@@ -301,4 +318,12 @@
    */
   public long countUsableRewardCoupon(Long uid);
   /**
    * 查询免券数量
    * @param uid
    * @param type
    * @return
    */
   public List<UserSystemCoupon> getFreeCouponByType(Long uid, String type);
}