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 4f958a0..3ddbe74 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 @@ -96,7 +96,7 @@ public class GoodServiceImpl extends ServiceImpl implements Go if (ObjectUtils.isEmpty(festivalOrder) || festivalOrder <= 0) { throw new BusinessException(ErrorCode.PARAMS_ERROR, "节日参数错误"); } - if (ObjectUtils.isEmpty(price) || price.compareTo(BigDecimal.ZERO) <= 0) { + if (ObjectUtils.isEmpty(price) || price.compareTo(BigDecimal.ZERO) < 0) { throw new BusinessException(ErrorCode.PARAMS_ERROR, "商品价格不能小于等于0"); }