From 7e7db2fa55a9a3af46d4fd8ede0dee147f101d64 Mon Sep 17 00:00:00 2001 From: yujian <yujian@163.com> Date: 星期六, 09 五月 2020 21:41:27 +0800 Subject: [PATCH] 2.1需求 --- fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserSystemCouponServiceImpl.java | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserSystemCouponServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserSystemCouponServiceImpl.java index e5a1a6f..38dc60c 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserSystemCouponServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserSystemCouponServiceImpl.java @@ -952,6 +952,7 @@ } BigDecimal hongBao = orderVO.getHongBao(); + // 绾㈠寘鐘舵�� Integer hongBaoState = orderVO.getHongBaoState(); // 绾㈠寘绫诲瀷 @@ -964,6 +965,11 @@ if (order == null) throw new UserSystemCouponException(1, "璇ヨ鍗曚笉瀛樺湪"); + // 浣跨敤濂栧姳鍒� 閲戦棰濋檺鍒� + if (hongBao.compareTo(Constant.REWARD_COUPON_LIMIT_MONEY) > 0){ + throw new UserSystemCouponException(1, "璇ヨ鍗曚笉鑳戒娇鐢ㄥ鍔卞埜"); + } + /* 濂栭噾璁$畻 浠ュ強鐩稿叧绾㈠寘淇℃伅澶勭悊 */ // 杞崲鎴愬皬鏁扮偣 @@ -1564,7 +1570,7 @@ if (couponType == CouponTypeEnum.freeCoupon.name()) { stateActivated = 0; // } else if (couponType == CouponTypeEnum.welfareFreeCoupon.name() - && threeSaleSerivce.countSuccessFirstTeam(uid) <= 0) { + && threeSaleSerivce.countFirstTeam(uid) <= 0) { stateActivated = 0; // 鏃犱笅绾ч槦鍛� --寰呮縺娲� } -- Gitblit v1.8.0