Commit ab3bce4b by ping.wu

商品券行商品不可增加数量

parent cc085a29
......@@ -16,6 +16,7 @@ public enum ResponseResult {
NOT_LOGIN("40001", "用户未登录"),
PARAMETER_MISSING("40002", "缺少必要参数"),
OPERATE_TOO_OFTEN("40003", "忙不过来了,请稍后再试"),
NOT_SUPPORTED("40004", "操作不支持"),
/**
* 用户信息状态码
......
......@@ -242,6 +242,11 @@ public class ShoppingCartMCoffeeServiceImpl {
throw new ServiceException(ResponseResult.SHOPPING_CART_UPDATE_ERROR);
}
//商品券行商品数量不可增加
if (cartGoods.getCouponCode() != null && qty >1) {
throw new ServiceException(ResponseResult.NOT_SUPPORTED);
}
// 检查购物车商品库存数量
// checkUpdateStock(partnerId, storeId, menuType, qty, cartGoods);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment