diff --git a/src/main/java/com/cultural/heritage/service/good/impl/GoodServiceImpl.java b/src/main/java/com/cultural/heritage/service/good/impl/GoodServiceImpl.java index 39b13a0..4f958a0 100644 --- a/src/main/java/com/cultural/heritage/service/good/impl/GoodServiceImpl.java +++ b/src/main/java/com/cultural/heritage/service/good/impl/GoodServiceImpl.java @@ -93,7 +93,7 @@ public class GoodServiceImpl extends ServiceImpl implements Go if (ObjectUtils.isEmpty(inventory) || inventory < 1) { throw new BusinessException(ErrorCode.PARAMS_ERROR, "库存量不能小于1"); } - if (ObjectUtils.isEmpty(festivalOrder) || festivalOrder < 0) { + if (ObjectUtils.isEmpty(festivalOrder) || festivalOrder <= 0) { throw new BusinessException(ErrorCode.PARAMS_ERROR, "节日参数错误"); } if (ObjectUtils.isEmpty(price) || price.compareTo(BigDecimal.ZERO) <= 0) {