From 98c7c508c05c765838a4a3318423ff9627b46e17 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期六, 28 九月 2019 10:38:23 +0800 Subject: [PATCH] 自购立减商品规则添加 --- fanli/src/main/java/com/yeshi/fanli/service/inter/user/UserSystemCouponService.java | 33 ++++++++++++++++++++++++++++++++- 1 files changed, 32 insertions(+), 1 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..deb4f71 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 @@ -134,7 +134,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 +200,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; + + + + /** * 娣诲姞鍒� @@ -293,5 +309,20 @@ * @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); } -- Gitblit v1.8.0