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