feat:接口调整

This commit is contained in:
suzhuhong
2026-04-03 15:16:26 +08:00
parent ba382bc1fe
commit 777c0c2126

View File

@@ -237,11 +237,11 @@ public class MiniStoreOrderServiceImpl implements MiniStoreOrderService {
//校验选项数量不能修改
BigDecimal defaultQty = binding.getDefaultQuantity();
if (binding.getAllowQuantityEdit() != null && binding.getAllowQuantityEdit() == 0) {
if (defaultQty != null && defaultQty.compareTo(quantity)!=0) {
throw new ServiceException(ErrorCodeEnum.THE_NUMBER_OF_OPTIONS_IS_NOT_MODIFIABLE);
}
}
// if (binding.getAllowQuantityEdit() != null && binding.getAllowQuantityEdit() == 0) {
// if (defaultQty != null && defaultQty.compareTo(quantity)!=0) {
// throw new ServiceException(ErrorCodeEnum.THE_NUMBER_OF_OPTIONS_IS_NOT_MODIFIABLE);
// }
// }
BigDecimal price = binding.getOptionPrice() == null ? BigDecimal.ZERO : binding.getOptionPrice();
BigDecimal originalPrice = template.getOriginalOptionPrice() == null ? BigDecimal.ZERO : template.getOriginalOptionPrice();