From 9b55262bb45c81c997ab04e55e8de13e14b8ca7d Mon Sep 17 00:00:00 2001 From: yujian <yujian@123.com> Date: 星期二, 29 十月 2019 15:11:37 +0800 Subject: [PATCH] 商品最高返 --- fanli/src/main/java/com/yeshi/fanli/service/inter/user/UserSystemCouponService.java | 44 +++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 41 insertions(+), 3 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/inter/user/UserSystemCouponService.java b/fanli/src/main/java/com/yeshi/fanli/service/inter/user/UserSystemCouponService.java index 59f32e3..09f4a6b 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/inter/user/UserSystemCouponService.java +++ b/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; + + + + /** * 娣诲姞鍒� @@ -221,7 +238,7 @@ * @throws UserSystemCouponException * @throws Exception */ - public List<UserSystemCouponVO> getCouponList(long start, int count, Long uid) throws UserSystemCouponException, Exception; + public List<UserSystemCouponVO> getCouponList(AcceptData acceptData, long start, int count, Long uid) throws UserSystemCouponException, Exception; /** @@ -293,5 +310,26 @@ * @return */ public long countUsableFreeCouponForBuy(Long uid); + + /** + * 缁熻鍙娇鐢ㄧ殑濂栧姳鍒� + * @param uid + * @return + */ + public long countUsableRewardCoupon(Long uid); + + /** + * 鏌ヨ鍏嶅埜鏁伴噺 + * @param uid + * @param type + * @return + */ + public List<UserSystemCoupon> getFreeCouponByType(Long uid, String type); + + /** + * 婵�娲诲厤鍗曞埜---璁㈠崟宸插埌璐� TODO 寰呰皟鐢� + * @param uid + */ + public void activateFreeCoupon(Long uid); } -- Gitblit v1.8.0