From 0d9ac58dc11f54351e5e18dba8e950717d78019f Mon Sep 17 00:00:00 2001 From: yujian <yujian@123.com> Date: 星期一, 09 九月 2019 14:55:24 +0800 Subject: [PATCH] 搜索发现 --- fanli/src/main/java/com/yeshi/fanli/service/inter/user/UserSystemCouponService.java | 108 +++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 102 insertions(+), 6 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 6eeb35d..b8f30a7 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,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); /** * 閫�鍥炲埜 @@ -205,4 +201,104 @@ */ 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; + + + /** + * 鍒稿垪琛� 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; + + + /** + * 璧犻�佸埜鐢熸垚鍙d护 + * @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); + } -- Gitblit v1.8.0