Commit 1a4e62a3 by 周晓航

Merge branch 'qa' of gitlab.freemud.com:order-group-application/order-group into qa

parents 35b59d67 703c1b9f
......@@ -2645,7 +2645,7 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
qty += cartGoods.getQty();
}
int limitCount = queryLimitCount(partnerId,appid);
if (qty > limitCount) {
if (limitCount != 0 && qty > limitCount) {
throw new ServiceException(ResponseResult.SHOPPING_CART_LIMIT_ADD);
}
return qty;
......@@ -2715,7 +2715,7 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
}
}
int cartLimitCount = queryLimitCount(partnerId,appid);
if (checkQty + sendQty > cartLimitCount) {
if (cartLimitCount != 0 && checkQty + sendQty > cartLimitCount) {
assortmentSdkService.setShoppingCart(partnerId, storeId, userId, oldCartGoodsList, null, tableNumber, shoppingCartService,bizType);
throw new ServiceException(ResponseResult.SHOPPING_CART_LIMIT_ADD);
}
......@@ -2741,7 +2741,7 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
}
}
}
if (updateQty + sendQty > cartLimitCount) {
if (cartLimitCount != 0 && updateQty + sendQty > cartLimitCount) {
assortmentSdkService.updateGoodsQtyBySdk(partnerId, userId, storeId, cartGoodsUid, goodsQty, "", shoppingCartBaseService,bizType);
throw new ServiceException(ResponseResult.SHOPPING_CART_LIMIT_ADD);
}
......
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