记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董敬伟
liquidnet-bus-v1
Commits
a953f0be
Commit
a953f0be
authored
Jan 24, 2022
by
胡佳晨
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev_goblin' into dev_goblin
parents
474cbc22
bb0d985b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
GoblinFrontLoginController.java
...service/goblin/controller/GoblinFrontLoginController.java
+8
-0
GoblinFrontServiceImpl.java
...t/service/goblin/service/impl/GoblinFrontServiceImpl.java
+3
-1
No files found.
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/controller/GoblinFrontLoginController.java
View file @
a953f0be
...
...
@@ -3,6 +3,7 @@ package com.liquidnet.service.goblin.controller;
import
com.liquidnet.common.cache.redis.util.RedisUtil
;
import
com.liquidnet.commons.lang.util.CurrentUtil
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.goblin.constant.GoblinRedisConst
;
import
com.liquidnet.service.goblin.dto.vo.GoblinShoppingCartVoo
;
import
com.liquidnet.service.goblin.service.impl.GoblinFrontServiceImpl
;
import
com.liquidnet.service.goblin.util.GoblinRedisUtils
;
...
...
@@ -73,6 +74,13 @@ public class GoblinFrontLoginController {
String
userId
=
CurrentUtil
.
getCurrentUid
();
return
ResponseDto
.
success
(
goblinFrontService
.
getShoppCart
(
userId
,
type
));
}
@GetMapping
(
"deleteShopCart"
)
@ApiOperation
(
"请勿调用,测试用"
)
public
ResponseDto
<
GoblinShoppingCartVoo
>
deleteShopCart
(
@RequestParam
(
name
=
"type"
,
required
=
true
)
String
type
)
{
String
userId
=
CurrentUtil
.
getCurrentUid
();
redisUtil
.
del
(
GoblinRedisConst
.
FRONT_SHOPCART
.
concat
(
userId
).
concat
(
type
));
return
ResponseDto
.
success
(
null
);
}
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/service/impl/GoblinFrontServiceImpl.java
View file @
a953f0be
...
...
@@ -989,7 +989,9 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
}
//遍历里面信息
for
(
GoblinShoppingCartVo
goblinShoppingCartVo:
goblinShoppingCartVoo
.
getShopList
()){
goblinShoppingCartVo
.
setStoreName
(
goblinRedisUtils
.
getStoreInfoVo
(
goblinShoppingCartVo
.
getStoreId
()).
getStoreName
());
if
(
null
!=
goblinRedisUtils
.
getStoreInfoVo
(
goblinShoppingCartVo
.
getStoreId
())){
goblinShoppingCartVo
.
setStoreName
(
goblinRedisUtils
.
getStoreInfoVo
(
goblinShoppingCartVo
.
getStoreId
()).
getStoreName
());
}
for
(
GoblinShoppingCartVoDetail
goblinShoppingCartVoDetail:
goblinShoppingCartVo
.
getSkuList
()){
//找到对应的 spu 和 sku
GoblinGoodsInfoVo
goblinGoodsInfoVo
=
goblinRedisUtils
.
getGoodsInfoVo
(
goblinShoppingCartVoDetail
.
getSpuId
());
...
...
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