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 | 50 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 49 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 9a24d68..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 @@ -134,7 +134,7 @@ * @throws UserSystemCouponException * @throws Exception */ - public void insertUserCoupon(Long uid, String couponType, String source, BigDecimal percent) throws UserSystemCouponException, Exception; + public UserSystemCoupon insertUserCoupon(Long uid, String couponType, String source, BigDecimal percent) throws UserSystemCouponException, Exception; /** @@ -253,4 +253,52 @@ */ 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