记得上下班打卡 | 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
b9f4cc94
Commit
b9f4cc94
authored
Nov 17, 2022
by
张国柄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
~api:商品管理:删除商品:+mongo.del sku逻辑;
parent
1f69d6a3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
10 deletions
+1
-10
GoblinStoreMgtGoodsServiceImpl.java
...n/service/impl/manage/GoblinStoreMgtGoodsServiceImpl.java
+1
-1
GoblinMongoUtils.java
...a/com/liquidnet/service/goblin/util/GoblinMongoUtils.java
+0
-9
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 @
b9f4cc94
...
@@ -1320,7 +1320,6 @@ public class GoblinStoreMgtGoodsServiceImpl implements IGoblinstoreMgtGoodsServi
...
@@ -1320,7 +1320,6 @@ public class GoblinStoreMgtGoodsServiceImpl implements IGoblinstoreMgtGoodsServi
spuIdList
.
addAll
(
goblinMongoUtils
.
getMgtSpuIdsForMarketBySpuNos
(
spuNoList
,
"0"
,
"1"
,
"2"
));
spuIdList
.
addAll
(
goblinMongoUtils
.
getMgtSpuIdsForMarketBySpuNos
(
spuNoList
,
"0"
,
"1"
,
"2"
));
if
(
goblinMongoUtils
.
delGoodsInfoVoBySpuIds
(
storeId
,
spuIdList
,
uid
,
now
))
{
if
(
goblinMongoUtils
.
delGoodsInfoVoBySpuIds
(
storeId
,
spuIdList
,
uid
,
now
))
{
goblinMongoUtils
.
delGoodsSkuInfoVoBySpuIdList
(
spuIdList
,
uid
,
now
);
log
.
info
(
"商品管理:SPU管理:删除处理[UID={},PARAMS={}]"
,
uid
,
JsonUtils
.
toJson
(
mgtGoodsActionParam
));
log
.
info
(
"商品管理:SPU管理:删除处理[UID={},PARAMS={}]"
,
uid
,
JsonUtils
.
toJson
(
mgtGoodsActionParam
));
goblinRedisUtils
.
deleteKeyForSelectGoods
();
// 精选商品:商品上架、下架、删除 调用的方法
goblinRedisUtils
.
deleteKeyForSelectGoods
();
// 精选商品:商品上架、下架、删除 调用的方法
...
@@ -1337,6 +1336,7 @@ public class GoblinStoreMgtGoodsServiceImpl implements IGoblinstoreMgtGoodsServi
...
@@ -1337,6 +1336,7 @@ public class GoblinStoreMgtGoodsServiceImpl implements IGoblinstoreMgtGoodsServi
goblinRedisUtils
.
delGoodsSkuInfoVo
(
skuId
);
goblinRedisUtils
.
delGoodsSkuInfoVo
(
skuId
);
goblinRedisUtils
.
delGoodsSkuInfoVoByUnShelves
(
skuId
);
goblinRedisUtils
.
delGoodsSkuInfoVoByUnShelves
(
skuId
);
});
});
goblinMongoUtils
.
delGoodsSkuInfoVo
(
skuIdList
,
uid
,
now
);
LinkedList
<
String
>
toMqSqls
=
CollectionUtil
.
linkedListString
();
LinkedList
<
String
>
toMqSqls
=
CollectionUtil
.
linkedListString
();
toMqSqls
.
add
(
SqlMapping
.
get
(
"goblin_goods.update_by_del"
));
toMqSqls
.
add
(
SqlMapping
.
get
(
"goblin_goods.update_by_del"
));
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/util/GoblinMongoUtils.java
View file @
b9f4cc94
...
@@ -820,15 +820,6 @@ public class GoblinMongoUtils {
...
@@ -820,15 +820,6 @@ public class GoblinMongoUtils {
).
getModifiedCount
()
>
0
;
).
getModifiedCount
()
>
0
;
}
}
public
boolean
delGoodsSkuInfoVoBySpuIdList
(
List
<
String
>
spuIdList
,
String
operator
,
LocalDateTime
time
)
{
Object
timeMdbObj
=
mongoConverter
.
convertToMongoType
(
time
);
return
mongoTemplate
.
getCollection
(
GoblinGoodsSkuInfoVo
.
class
.
getSimpleName
()).
updateMany
(
Query
.
query
(
Criteria
.
where
(
"spuId"
).
in
(
spuIdList
).
and
(
"delFlg"
).
is
(
"0"
)).
getQueryObject
(),
Update
.
update
(
"delFlg"
,
"1"
).
set
(
"updatedBy"
,
operator
).
set
(
"updatedAt"
,
timeMdbObj
)
.
set
(
"deletedBy"
,
operator
).
set
(
"deletedAt"
,
timeMdbObj
).
getUpdateObject
()
).
getModifiedCount
()
>
0
;
}
public
List
<
String
>
delGoodsSkuInfoVoByStoreId
(
String
storeId
,
String
uid
,
LocalDateTime
time
)
{
public
List
<
String
>
delGoodsSkuInfoVoByStoreId
(
String
storeId
,
String
uid
,
LocalDateTime
time
)
{
Query
query
=
Query
.
query
(
Criteria
.
where
(
"storeId"
).
is
(
storeId
).
and
(
"delFlg"
).
is
(
"0"
).
and
(
"shelvesStatus"
).
is
(
"3"
));
Query
query
=
Query
.
query
(
Criteria
.
where
(
"storeId"
).
is
(
storeId
).
and
(
"delFlg"
).
is
(
"0"
).
and
(
"shelvesStatus"
).
is
(
"3"
));
query
.
fields
().
include
(
"skuId"
);
query
.
fields
().
include
(
"skuId"
);
...
...
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