记得上下班打卡 | 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
3ed78d1d
Commit
3ed78d1d
authored
Jan 25, 2022
by
zhanggb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
~API:商品管理:直接上架、预约上架:+精选商品方法调用;
~API:店铺配置:营业、停业:更新商品spu_appear赋值更正;
parent
3194e341
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletion
+10
-1
GoblinStoreMgtGoodsServiceImpl.java
...n/service/impl/manage/GoblinStoreMgtGoodsServiceImpl.java
+4
-0
GoblinStoreMgtServiceImpl.java
...goblin/service/impl/manage/GoblinStoreMgtServiceImpl.java
+1
-1
PlatformGoblinGoodsService.java
...tform/service/impl/goblin/PlatformGoblinGoodsService.java
+5
-0
No files found.
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/service/impl/manage/GoblinStoreMgtGoodsServiceImpl.java
View file @
3ed78d1d
...
...
@@ -77,6 +77,10 @@ public class GoblinStoreMgtGoodsServiceImpl implements IGoblinstoreMgtGoodsServi
goblinMongoUtils
.
setGoodsInfoVo
(
goodsInfoVo
);
goblinMongoUtils
.
setGoodsSkuInfoVos
(
goodsSkuInfoVoList
);
if
(
goodsInfoVo
.
getShelvesHandle
().
equals
(
"2"
))
{
goblinRedisUtils
.
deleteKeyForSelectGoods
();
// 精选商品:商品上架、下架、删除 调用的方法
}
String
createdBy
=
goodsInfoVo
.
getCreatedBy
();
LocalDateTime
createdAt
=
goodsInfoVo
.
getCreatedAt
();
String
spuId
=
goodsInfoVo
.
getSpuId
();
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/service/impl/manage/GoblinStoreMgtServiceImpl.java
View file @
3ed78d1d
...
...
@@ -80,7 +80,7 @@ public class GoblinStoreMgtServiceImpl implements IGoblinStoreMgtService {
goblinMongoUtils
.
updateStoreInfoVo
(
updateStoreInfoVo
);
// goblinRedisUtils.setStoreInfoVo(updateStoreInfoVo);// TODO: 2022/1/17 zhanggb==redis
goblinMongoUtils
.
updateGoodsInfoVoAppear
(
storeId
,
status
,
now
,
uid
);
goblinMongoUtils
.
updateGoodsInfoVoAppear
(
storeId
,
status
.
equals
(
"4"
)
?
"1"
:
"0"
,
now
,
uid
);
List
<
String
>
spuIdList
=
goblinMongoUtils
.
getMgtGoodsSpuIds
(
storeId
);
spuIdList
.
forEach
(
spuId
->
goblinRedisUtils
.
delGoodsInfoVo
(
spuId
));
...
...
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/service/impl/goblin/PlatformGoblinGoodsService.java
View file @
3ed78d1d
...
...
@@ -64,6 +64,11 @@ public class PlatformGoblinGoodsService extends ServiceImpl<GoblinGoodsMapper, G
if
(
updateSkuResult
.
getModifiedCount
()
>
0
)
{
AbstractRedisUtil
redisGoblinUtil
=
redisDataSourceUtil
.
getRedisGoblinUtil
();
{
// 精选商品:商品上架、下架、删除 调用的方法
redisGoblinUtil
.
del
(
GoblinRedisConst
.
SELECT_GOODS_SPUIDS
);
redisGoblinUtil
.
del
(
GoblinRedisConst
.
SELECT_GOODS_PAGE1
);
}
Query
query
=
Query
.
query
(
Criteria
.
where
(
"delFlg"
).
is
(
"0"
).
and
(
"spuId"
).
in
(
spuIdList
));
query
.
fields
().
include
(
"skuId"
);
List
<
GoblinGoodsSkuInfoVo
>
vos
=
mongoTemplate
.
find
(
query
,
GoblinGoodsSkuInfoVo
.
class
,
GoblinGoodsSkuInfoVo
.
class
.
getSimpleName
());
...
...
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