feat:允许0

This commit is contained in:
suzhuhong
2026-04-08 10:07:27 +08:00
parent c85e78527d
commit 5b79072fb1

View File

@@ -231,7 +231,7 @@ public class MiniStoreOrderServiceImpl implements MiniStoreOrderService {
if (quantity == null) {
quantity = binding.getDefaultQuantity();
}
if (quantity == null || quantity.compareTo(BigDecimal.ZERO) <= 0) {
if (quantity == null || quantity.compareTo(BigDecimal.ZERO) < 0) {
throw new ServiceException(ErrorCodeEnum.THE_QUANTITY_MUST_BE_GREATER_THAN_0);
}