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); } } }