feat:接口调整
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user