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
4440e97c
Commit
4440e97c
authored
Jun 07, 2021
by
ping.wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
缓存时间与产品协商修改
parent
e661f0e3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
20 deletions
+2
-20
assortment-shoppingcart-sdk/src/main/java/com/freemud/sdk/api/assortment/shoppingcart/service/impl/ShoppingCartBaseServiceImpl.java
+1
-1
assortment-shoppingcart-sdk/src/main/java/com/freemud/sdk/api/assortment/shoppingcart/service/impl/ShoppingCartMallBaseServiceImpl.java
+1
-1
shopping-cart-application-service/src/main/java/cn/freemud/controller/ShoppingCartController.java
+0
-18
No files found.
assortment-shoppingcart-sdk/src/main/java/com/freemud/sdk/api/assortment/shoppingcart/service/impl/ShoppingCartBaseServiceImpl.java
View file @
4440e97c
...
@@ -133,7 +133,7 @@ public class ShoppingCartBaseServiceImpl implements ShoppingCartBaseService {
...
@@ -133,7 +133,7 @@ public class ShoppingCartBaseServiceImpl implements ShoppingCartBaseService {
.
filter
(
k
->
StringUtils
.
isNotEmpty
(
k
.
getCartGoodsUid
()))
.
filter
(
k
->
StringUtils
.
isNotEmpty
(
k
.
getCartGoodsUid
()))
.
collect
(
Collectors
.
toMap
(
CartGoods:
:
getCartGoodsUid
,
Function
.
identity
(),
(
k1
,
k2
)
->
k1
));
.
collect
(
Collectors
.
toMap
(
CartGoods:
:
getCartGoodsUid
,
Function
.
identity
(),
(
k1
,
k2
)
->
k1
));
operations
.
putAll
(
cartGoodsMap
);
operations
.
putAll
(
cartGoodsMap
);
long
expire
=
7
;
long
expire
=
3
;
operations
.
expire
(
expire
,
TimeUnit
.
DAYS
);
operations
.
expire
(
expire
,
TimeUnit
.
DAYS
);
return
CartResponseUtil
.
success
();
return
CartResponseUtil
.
success
();
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
assortment-shoppingcart-sdk/src/main/java/com/freemud/sdk/api/assortment/shoppingcart/service/impl/ShoppingCartMallBaseServiceImpl.java
View file @
4440e97c
...
@@ -80,7 +80,7 @@ public class ShoppingCartMallBaseServiceImpl implements ShoppingCartBaseService
...
@@ -80,7 +80,7 @@ public class ShoppingCartMallBaseServiceImpl implements ShoppingCartBaseService
.
filter
(
k
->
StringUtils
.
isNotEmpty
(
k
.
getCartGoodsUid
()))
.
filter
(
k
->
StringUtils
.
isNotEmpty
(
k
.
getCartGoodsUid
()))
.
collect
(
Collectors
.
toMap
(
CartGoods:
:
getCartGoodsUid
,
Function
.
identity
(),
(
k1
,
k2
)
->
k1
));
.
collect
(
Collectors
.
toMap
(
CartGoods:
:
getCartGoodsUid
,
Function
.
identity
(),
(
k1
,
k2
)
->
k1
));
operations
.
putAll
(
cartGoodsMap
);
operations
.
putAll
(
cartGoodsMap
);
long
expire
=
7
;
long
expire
=
30
;
operations
.
expire
(
expire
,
TimeUnit
.
DAYS
);
operations
.
expire
(
expire
,
TimeUnit
.
DAYS
);
return
this
.
getCartGoodsList
(
cartParamDto
,
trackingNo
);
return
this
.
getCartGoodsList
(
cartParamDto
,
trackingNo
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
shopping-cart-application-service/src/main/java/cn/freemud/controller/ShoppingCartController.java
View file @
4440e97c
...
@@ -267,22 +267,4 @@ public class ShoppingCartController {
...
@@ -267,22 +267,4 @@ public class ShoppingCartController {
return
SDKCommonBaseContextWare
.
getBean
(
ShoppingCartNewServiceImpl
.
class
).
replaceGoodsByShop
(
request
);
return
SDKCommonBaseContextWare
.
getBean
(
ShoppingCartNewServiceImpl
.
class
).
replaceGoodsByShop
(
request
);
}
}
/**
* 工具代码,后续删除
*/
@Autowired
private
RedisTemplate
redisTemplate
;
@PostMapping
(
value
=
"/deleteRedis"
)
@LogIgnore
(
excludeStatusCodes
=
{
ResponseCodeConstant
.
RESPONSE_SUCCESS_STR
},
logMessage
=
"/replaceGoodsByShop"
)
public
BaseResponse
deleteRedis
(
@LogParams
@RequestBody
ShopGoodsReplaceVo
request
)
{
String
keys
=
request
.
getAppId
()
!=
null
?
request
.
getAppId
()
:
"saas:user:info:cart"
;
Integer
number
=
redisTemplate
.
keys
(
keys
+
"*"
).
size
();
if
(
request
.
getHook
()!=
null
){
Long
delete
=
redisTemplate
.
delete
(
redisTemplate
.
keys
(
keys
+
"*"
));
return
new
BaseResponse
(
"2"
,
"100"
,
delete
);
}
return
new
BaseResponse
(
"1"
,
"100"
,
number
);
}
}
}
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