feat:允许0
This commit is contained in:
@@ -1527,7 +1527,7 @@ public class MiniStoreOrderServiceImpl implements MiniStoreOrderService {
|
|||||||
|
|
||||||
for (MiniStoreWishlistSaveRequest.SelectedOption selected : request.getSelectedOptions()) {
|
for (MiniStoreWishlistSaveRequest.SelectedOption selected : request.getSelectedOptions()) {
|
||||||
if (selected == null || selected.getOptionId() == null || selected.getQuantity() == null
|
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);
|
throw new ServiceException(ErrorCodeEnum.PARAMS_VALIDATE_ERROR);
|
||||||
}
|
}
|
||||||
StoreTypeOptionDO binding = bindingMap.get(selected.getOptionId());
|
StoreTypeOptionDO binding = bindingMap.get(selected.getOptionId());
|
||||||
|
|||||||
Reference in New Issue
Block a user