记得上下班打卡 | 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
aa4be889
Commit
aa4be889
authored
Jan 03, 2023
by
zhanggb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
~api:商品管理:商品编辑:SKU批量更新逻辑调整;
parent
d95b769d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
GoblinStoreMgtGoodsServiceImpl.java
...n/service/impl/manage/GoblinStoreMgtGoodsServiceImpl.java
+2
-1
GoblinMongoUtils.java
...a/com/liquidnet/service/goblin/util/GoblinMongoUtils.java
+11
-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 @
aa4be889
...
...
@@ -485,7 +485,8 @@ public class GoblinStoreMgtGoodsServiceImpl implements IGoblinstoreMgtGoodsServi
});
}
goblinMongoUtils
.
updateGoodsSkuInfoVoBySpuId
(
updateSkuInfoVo
);
// goblinMongoUtils.updateGoodsSkuInfoVoBySpuId(updateSkuInfoVo);
goblinMongoUtils
.
updateGoodsSkuInfoVoPropBySpuId
(
updateSkuInfoVo
);
goblinRedisUtils
.
delGoodsInfoVo
(
updateSpuInfoVo
.
getSpuId
());
LinkedList
<
String
>
toMqSqls
=
CollectionUtil
.
linkedListString
();
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/util/GoblinMongoUtils.java
View file @
aa4be889
...
...
@@ -972,6 +972,17 @@ public class GoblinMongoUtils {
).
getModifiedCount
()
>
0
;
}
public
boolean
updateGoodsSkuInfoVoPropBySpuId
(
GoblinGoodsSkuInfoVo
vo
)
{
return
mongoTemplate
.
getCollection
(
GoblinGoodsSkuInfoVo
.
class
.
getSimpleName
()).
updateMany
(
Query
.
query
(
Criteria
.
where
(
"spuId"
).
is
(
vo
.
getSpuId
()).
and
(
"delFlg"
).
is
(
"0"
)).
getQueryObject
(),
Update
.
update
(
"skuNo"
,
vo
.
getSkuNo
())
.
set
(
"virtualFlg"
,
vo
.
getVirtualFlg
())
.
set
(
"logisticsTemplate"
,
vo
.
getLogisticsTemplate
())
.
set
(
"updatedBy"
,
vo
.
getUpdatedBy
())
.
set
(
"updatedAt"
,
mongoConverter
.
convertToMongoType
(
vo
.
getUpdatedAt
())).
getUpdateObject
()
).
getModifiedCount
()
>
0
;
}
public
boolean
updateGoodsSkuInfoVoByShelves
(
String
storeId
,
List
<
String
>
spuIdList
,
boolean
shelvesFlg
,
String
uid
,
LocalDateTime
time
)
{
return
mongoTemplate
.
updateMulti
(
Query
.
query
(
Criteria
.
where
(
"storeId"
).
is
(
storeId
).
and
(
"delFlg"
).
is
(
"0"
).
and
(
"spuId"
).
in
(
spuIdList
.
toArray
())),
Update
.
update
(
"shelvesStatus"
,
shelvesFlg
?
"3"
:
"1"
).
set
(
"shelvesAt"
,
time
).
set
(
"updatedBy"
,
uid
).
set
(
"updatedAt"
,
time
),
...
...
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