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
cdba7aa2
Commit
cdba7aa2
authored
Mar 05, 2021
by
孙昱
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sunyu::update::每次请求listcartgoods接口都更新券信息缓存
parent
4fe34404
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
20 deletions
+3
-20
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/mcoffee/ShoppingCartMCoffeeServiceImpl.java
+3
-20
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/mcoffee/ShoppingCartMCoffeeServiceImpl.java
View file @
cdba7aa2
...
@@ -644,27 +644,10 @@ public class ShoppingCartMCoffeeServiceImpl {
...
@@ -644,27 +644,10 @@ public class ShoppingCartMCoffeeServiceImpl {
assortmentSdkService
.
setShoppingCart
(
partnerId
,
storeId
,
userId
,
cartGoodsList
,
sessionId
,
""
,
shoppingCartBaseService
);
assortmentSdkService
.
setShoppingCart
(
partnerId
,
storeId
,
userId
,
cartGoodsList
,
sessionId
,
""
,
shoppingCartBaseService
);
}
}
/**
// 门店列表页面无法获取到购物车行id导致前端需求,不管券信息是否为空,都更新到缓存
* 如果couponCode为空,则从缓存里尝试获取
assortmentSdkService
.
setShoppingCartCouponCode
(
partnerId
,
storeId
,
userId
,
couponCode
,
shoppingCartBaseService
,
SaveCouponType
.
COUPON
.
getCode
());
* 如果couponCode不为空,则设置到缓存里
assortmentSdkService
.
setShoppingCartCouponCode
(
partnerId
,
storeId
,
userId
,
freightCouponCode
,
shoppingCartBaseService
,
SaveCouponType
.
FREIGHT_COUPON
.
getCode
());
*/
if
(
StringUtils
.
isEmpty
(
couponCode
))
{
// couponCode = assortmentSdkService.getShoppingCartCoupon(partnerId, storeId, userId, shoppingCartBaseService, SaveCouponType.COUPON.getCode());
// } else {
// if("remove".equals(couponCode)) {
// couponCode = "";
// }
assortmentSdkService
.
setShoppingCartCouponCode
(
partnerId
,
storeId
,
userId
,
couponCode
,
shoppingCartBaseService
,
SaveCouponType
.
COUPON
.
getCode
());
}
if
(
StringUtils
.
isEmpty
(
freightCouponCode
))
{
// freightCouponCode = assortmentSdkService.getShoppingCartCoupon(partnerId, storeId, userId, shoppingCartBaseService, SaveCouponType.FREIGHT_COUPON.getCode());
// } else {
// if("remove".equals(freightCouponCode)) {
// freightCouponCode = "";
// }
assortmentSdkService
.
setShoppingCartCouponCode
(
partnerId
,
storeId
,
userId
,
freightCouponCode
,
shoppingCartBaseService
,
SaveCouponType
.
FREIGHT_COUPON
.
getCode
());
}
//放到参数里
//放到参数里
if
(
StringUtils
.
isNotEmpty
(
couponCode
)
)
{
if
(
StringUtils
.
isNotEmpty
(
couponCode
)
)
{
...
...
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