Commit 6dc96389 by 周晓航

一键加购 需求 逻辑修改

parent 8a6919b5
...@@ -2955,6 +2955,10 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService { ...@@ -2955,6 +2955,10 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
if (CollectionUtils.isEmpty(excludeGoods)) { if (CollectionUtils.isEmpty(excludeGoods)) {
return ResponseUtil.error(ResponseResult.SHOPPING_CART_REPLACE_GOODS_AND_CLEAR); return ResponseUtil.error(ResponseResult.SHOPPING_CART_REPLACE_GOODS_AND_CLEAR);
} }
boolean fullReplace = true;
if (excludeGoods.size()!=allCartGoodsList.size()) {
fullReplace = false;
}
// 拿出 spu sku 校验 当前店铺是否有 商品 // 拿出 spu sku 校验 当前店铺是否有 商品
ShoppingCartGoodsResponseVo shoppingCartGoodsResponseVo = new ShoppingCartGoodsResponseVo(); ShoppingCartGoodsResponseVo shoppingCartGoodsResponseVo = new ShoppingCartGoodsResponseVo();
String storeId = replaceGoodsRequestVo.getShopId(); String storeId = replaceGoodsRequestVo.getShopId();
...@@ -2972,7 +2976,6 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService { ...@@ -2972,7 +2976,6 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
// 校验 获取到的商品数量 规格是否和 上家门店规格一直 sku spu // 校验 获取到的商品数量 规格是否和 上家门店规格一直 sku spu
List<String> productIds = productBeanListSpuClass.stream().map(ProductBean::getPid).collect(toList()); List<String> productIds = productBeanListSpuClass.stream().map(ProductBean::getPid).collect(toList());
boolean fullReplace = true;
// if (productIds.containsAll(spuIds)) { // if (productIds.containsAll(spuIds)) {
// // 全部包含的情况 再次校验 sku是否包含 // // 全部包含的情况 再次校验 sku是否包含
......
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