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
28bdce61
Commit
28bdce61
authored
Mar 24, 2021
by
孙昱
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sunyu::update::fix bug about clear couponInfo for switchCartGoods method
parent
ebfb86ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/mcoffee/ShoppingCartMCoffeeServiceImpl.java
+32
-0
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/mcoffee/ShoppingCartMCoffeeServiceImpl.java
View file @
28bdce61
...
@@ -1006,6 +1006,22 @@ public class ShoppingCartMCoffeeServiceImpl {
...
@@ -1006,6 +1006,22 @@ public class ShoppingCartMCoffeeServiceImpl {
assortmentSdkService
.
setShoppingCart
(
partnerId
,
toStoreId
,
userId
,
cartGoodsList
,
sessionId
,
""
,
shoppingCartBaseService
);
assortmentSdkService
.
setShoppingCart
(
partnerId
,
toStoreId
,
userId
,
cartGoodsList
,
sessionId
,
""
,
shoppingCartBaseService
);
//清空商品券商品
//清空商品券商品
clearCartCouponGoods
(
partnerId
,
toStoreId
,
userId
,
sessionId
,
cartGoodsList
);
clearCartCouponGoods
(
partnerId
,
toStoreId
,
userId
,
sessionId
,
cartGoodsList
);
//当购物车列表里只有一个商品券商品时,clearCartCouponGoods方法不会清空缓存,这里调用clear方法来清空
if
(
CollectionUtils
.
isEmpty
(
cartGoodsList
)){
ShoppingCartClearRequestVo
clearRequestVo
=
new
ShoppingCartClearRequestVo
();
clearRequestVo
.
setAppId
(
appId
);
clearRequestVo
.
setUserId
(
userId
);
clearRequestVo
.
setOperationType
(
3
);
clearRequestVo
.
setTableNumber
(
null
);
clearRequestVo
.
setCreateCollageUserId
(
null
);
clearRequestVo
.
setReceiveId
(
receiveId
);
clearRequestVo
.
setSessionId
(
sessionId
);
clearRequestVo
.
setPartnerId
(
partnerId
);
clearRequestVo
.
setShopId
(
toStoreId
);
clearRequestVo
.
setOrderType
(
orderType
);
clearRequestVo
.
setChannelType
(
menuType
);
this
.
clear
(
clearRequestVo
);
}
// 当couponCode不为空时,需参与价格计算
// 当couponCode不为空时,需参与价格计算
List
<
ActivityCalculationDiscountRequestDto
.
CalculationDiscountCoupon
>
coupons
=
getCoupon
(
couponCode
,
null
,
cartGoodsList
,
null
,
null
);
List
<
ActivityCalculationDiscountRequestDto
.
CalculationDiscountCoupon
>
coupons
=
getCoupon
(
couponCode
,
null
,
cartGoodsList
,
null
,
null
);
...
@@ -1023,6 +1039,22 @@ public class ShoppingCartMCoffeeServiceImpl {
...
@@ -1023,6 +1039,22 @@ public class ShoppingCartMCoffeeServiceImpl {
assortmentSdkService
.
setShoppingCart
(
partnerId
,
toStoreId
,
userId
,
cartGoodsList
,
sessionId
,
""
,
shoppingCartBaseService
);
assortmentSdkService
.
setShoppingCart
(
partnerId
,
toStoreId
,
userId
,
cartGoodsList
,
sessionId
,
""
,
shoppingCartBaseService
);
//清空商品券商品
//清空商品券商品
clearCartCouponGoods
(
partnerId
,
toStoreId
,
userId
,
sessionId
,
cartGoodsList
);
clearCartCouponGoods
(
partnerId
,
toStoreId
,
userId
,
sessionId
,
cartGoodsList
);
//当购物车列表里只有一个商品券商品时,clearCartCouponGoods方法不会清空缓存,这里调用clear方法来清空
if
(
CollectionUtils
.
isEmpty
(
cartGoodsList
)){
ShoppingCartClearRequestVo
clearRequestVo
=
new
ShoppingCartClearRequestVo
();
clearRequestVo
.
setAppId
(
appId
);
clearRequestVo
.
setUserId
(
userId
);
clearRequestVo
.
setOperationType
(
3
);
clearRequestVo
.
setTableNumber
(
null
);
clearRequestVo
.
setCreateCollageUserId
(
null
);
clearRequestVo
.
setReceiveId
(
receiveId
);
clearRequestVo
.
setSessionId
(
sessionId
);
clearRequestVo
.
setPartnerId
(
partnerId
);
clearRequestVo
.
setShopId
(
toStoreId
);
clearRequestVo
.
setOrderType
(
orderType
);
clearRequestVo
.
setChannelType
(
menuType
);
this
.
clear
(
clearRequestVo
);
}
// 当couponCode不为空时,需参与价格计算
// 当couponCode不为空时,需参与价格计算
List
<
ActivityCalculationDiscountRequestDto
.
CalculationDiscountCoupon
>
coupons
=
getCoupon
(
couponCode
,
null
,
cartGoodsList
,
null
,
null
);
List
<
ActivityCalculationDiscountRequestDto
.
CalculationDiscountCoupon
>
coupons
=
getCoupon
(
couponCode
,
null
,
cartGoodsList
,
null
,
null
);
...
...
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