feat:允许0

This commit is contained in:
suzhuhong
2026-04-08 09:51:12 +08:00
parent 321939c954
commit c85e78527d

View File

@@ -1527,7 +1527,7 @@ public class MiniStoreOrderServiceImpl implements MiniStoreOrderService {
for (MiniStoreWishlistSaveRequest.SelectedOption selected : request.getSelectedOptions()) {
if (selected == null || selected.getOptionId() == null || selected.getQuantity() == null
|| selected.getQuantity().compareTo(BigDecimal.ZERO) <= 0) {
|| selected.getQuantity().compareTo(BigDecimal.ZERO) < 0) {
throw new ServiceException(ErrorCodeEnum.PARAMS_VALIDATE_ERROR);
}
StoreTypeOptionDO binding = bindingMap.get(selected.getOptionId());