From 4bf96fb425e655e1a099aa750bb4bd6c9e158261 Mon Sep 17 00:00:00 2001
From: yujian <yujian@163.com>
Date: 星期四, 16 四月 2020 17:34:35 +0800
Subject: [PATCH] 奖励券使用限制

---
 fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserSystemCouponServiceImpl.java |    6 ++++++
 1 files changed, 6 insertions(+), 0 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..0742917 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, "璇ヨ鍗曚笉鑳戒娇鐢ㄥ鍔卞埜");
+			}
+			
 			/* 濂栭噾璁$畻 浠ュ強鐩稿叧绾㈠寘淇℃伅澶勭悊 */
 
 			// 杞崲鎴愬皬鏁扮偣

--
Gitblit v1.8.0