From 4d8d084d57d147b3d3d62b41d4ab9b2800225cb4 Mon Sep 17 00:00:00 2001 From: Burce Date: Wed, 28 Aug 2019 19:04:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E6=88=B7=E6=B3=A8=E5=88=B8->=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E9=94=99=E8=AF=AF=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/iformall/service/impl/WxCouponServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java index 74fa7a8f5..97e1b9f02 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java @@ -649,7 +649,7 @@ import java.util.stream.Collectors; public void reduceRemainInventory(Long id, Integer remainInventory, Integer number) { int num = wxCouponMapper.reduceRemainInventory(id, remainInventory, number); if (num == 0) { - throw new MallinkException(ErrorCode.ORDER_IS_FAIL); + throw new MallinkException(ErrorCode.ORDER_SAVE_ERR); } } @@ -658,7 +658,7 @@ import java.util.stream.Collectors; public void backRemainInventory(Long id, Integer remainInventory, Integer number) { int num = wxCouponMapper.backRemainInventory(id, remainInventory, number); if (num == 0) { - throw new MallinkException(ErrorCode.ORDER_IS_FAIL); + throw new MallinkException(ErrorCode.REMAIN_BACK_FAIL); } } }