Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
order-group-application
order-group
Commits
6dc96389
Commit
6dc96389
authored
May 20, 2021
by
周晓航
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
一键加购 需求 逻辑修改
parent
8a6919b5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/ShoppingCartNewServiceImpl.java
+4
-1
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/ShoppingCartNewServiceImpl.java
View file @
6dc96389
...
@@ -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是否包含
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment