From 398f41e16c0230a94d277e297eba17b5839db71c Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期二, 20 八月 2019 18:40:13 +0800 Subject: [PATCH] 金币获取 --- fanli/src/main/java/com/yeshi/fanli/service/inter/user/UserSystemCouponService.java | 63 ++++++++++++++++++++++++++----- 1 files changed, 52 insertions(+), 11 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 039d972..ba6730e 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 @@ -4,7 +4,6 @@ import java.util.List; import com.yeshi.fanli.entity.bus.user.UserSystemCoupon; -import com.yeshi.fanli.entity.push.PushCoupon; import com.yeshi.fanli.entity.system.SystemCoupon; import com.yeshi.fanli.exception.user.UserSystemCouponException; import com.yeshi.fanli.vo.user.UserSystemCouponRecordVO; @@ -36,7 +35,7 @@ * @param uid * @return */ - public List<UserSystemCouponVO> getUserCouponVOList(long start, int count, Long uid) throws UserSystemCouponException, Exception; + public List<UserSystemCouponVO> getUserCouponVOList(long start, int count, Long uid, boolean changeJump ) throws UserSystemCouponException, Exception; /** * 缁熻鏁伴噺 @@ -81,7 +80,7 @@ * @throws UserSystemCouponException * @throws Exception */ - public void useGoodsCoupon(Long uid, Long id, Long goodId) throws UserSystemCouponException, Exception; + public void useGoodsCoupon(Long uid, Long id, Long goodId, Integer sourceType) throws UserSystemCouponException, Exception; /** @@ -91,7 +90,7 @@ * @throws UserSystemCouponException * @throws Exception */ - public void useOrderCoupon(Long uid, Long id, String orderNo) throws UserSystemCouponException, Exception; + public void useOrderCoupon(Long uid, Long id, String orderNo, Integer sourceType) throws UserSystemCouponException, Exception; /** * 鏍规嵁璁㈠崟鍙疯幏鍙栧鍔卞埜浣跨敤杩涘害 @@ -100,7 +99,7 @@ * @throws UserSystemCouponException * @throws Exception */ - public UserSystemCouponRecordVO getRewardCouponRecord(String orderNo) throws UserSystemCouponException, Exception; + public UserSystemCouponRecordVO getRewardCouponRecord(String orderNo, Integer sourceType) throws UserSystemCouponException, Exception; /** * 鏄惁瀛樺湪濂栧姳鍒� @@ -116,7 +115,7 @@ * @throws UserSystemCouponException * @throws Exception */ - public UserSystemCouponRecordVO getFreeCouponRecord(String orderNo) throws UserSystemCouponException, Exception; + public UserSystemCouponRecordVO getFreeCouponRecord(String orderNo, Integer sourceType) throws UserSystemCouponException, Exception; /** * 鏍规嵁璁㈠崟鏉ユ簮鏌ヨ @@ -188,19 +187,61 @@ public void copyLotteryPrize(Long uid, int platform, String device) throws Exception; + /** - * 棰嗗彇鍒� + * 缁熻浠婃棩鎶藉涓殑鍒告暟閲� * @param uid + * @param source + * @return + */ + public int countTodatyUserCouponBySource(Long uid, String source); + + /** + * 闅忔満鐢熸垚濂栧姳鍒� + * @param num + * @param uid + * @param source * @throws Exception */ - public void receivedCoupon(Long uid) throws Exception; + public void randomRewardCoupon(int num, Long uid, String source) throws Exception; + + /** + * 娣诲姞鍒� + * @param uid + * @param couponType + * @param source + * @throws UserSystemCouponException + */ + public void exchangeCoupon(Long uid, String couponType, String source, + BigDecimal percent) throws UserSystemCouponException, Exception; + /** - * 鏍规嵁鎺ㄩ�� 鑾峰彇瀵瑰簲鐨勫埜 - * @param pushCoupon + * 鍒稿垪琛� 1.6.5 + * @param start + * @param count * @param uid + * @return + * @throws UserSystemCouponException * @throws Exception */ - public void randomRewardCoupon(PushCoupon pushCoupon, Long uid) throws Exception; + public List<UserSystemCouponVO> getCouponList(long start, int count, Long uid) throws UserSystemCouponException, Exception; + + /** + * 璧犻�佸埜鐢熸垚鍙d护 + * @param uid + * @param id + * @return + * @throws UserSystemCouponException + */ + public String giveCoupon(Long uid, Long id) throws UserSystemCouponException; + + + /** + * 璧犻�侀��鍥� + * @param id + */ + public void sendBackGive(Long id); + } -- Gitblit v1.8.0