记得上下班打卡 | 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
4111af4f
Commit
4111af4f
authored
Mar 28, 2022
by
张国柄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
~API:藏品上架处理;
parent
e09b0338
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
PlatformGoblinGoodsService.java
...tform/service/impl/goblin/PlatformGoblinGoodsService.java
+1
-1
PlatformGoblinGoodsSkuService.java
...rm/service/impl/goblin/PlatformGoblinGoodsSkuService.java
+4
-4
No files found.
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/service/impl/goblin/PlatformGoblinGoodsService.java
View file @
4111af4f
...
...
@@ -71,7 +71,7 @@ public class PlatformGoblinGoodsService extends ServiceImpl<GoblinGoodsMapper, G
LiquidnetServiceException
liquidnetServiceException
=
new
LiquidnetServiceException
();
if
(
goblinGoodsSkuMapper
.
update
(
updateSku
,
updateSkuWrapper
)
>
0
)
{
UpdateResult
updateSpuResult
=
mongoTemplate
.
getCollection
(
GoblinGoodsInfoVo
.
class
.
getSimpleName
()).
updateMany
(
Query
.
query
(
Criteria
.
where
(
"spuId"
).
in
(
spuIdList
).
and
(
"shelvesStatus"
).
in
(
"0"
,
"1"
).
and
(
"shelvesHandle"
).
is
(
"3"
)).
getQueryObject
(),
Query
.
query
(
Criteria
.
where
(
"spuId"
).
in
(
spuIdList
).
and
(
"
delFlg"
).
is
(
"0"
).
and
(
"
shelvesStatus"
).
in
(
"0"
,
"1"
).
and
(
"shelvesHandle"
).
is
(
"3"
)).
getQueryObject
(),
Update
.
update
(
"shelvesStatus"
,
"3"
).
set
(
"shelvesAt"
,
now
).
getUpdateObject
()
);
if
(
updateSpuResult
.
getModifiedCount
()
>
0
)
{
...
...
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/service/impl/goblin/PlatformGoblinGoodsSkuService.java
View file @
4111af4f
...
...
@@ -71,7 +71,7 @@ public class PlatformGoblinGoodsSkuService extends ServiceImpl<GoblinGoodsSkuMap
LiquidnetServiceException
liquidnetServiceException
=
new
LiquidnetServiceException
();
if
(
goblinGoodsMapper
.
update
(
updateSpu
,
updateSpuWrapper
)
>
0
)
{
UpdateResult
updateSkuResult
=
mongoTemplate
.
getCollection
(
GoblinGoodsSkuInfoVo
.
class
.
getSimpleName
()).
updateMany
(
Query
.
query
(
Criteria
.
where
(
"skuId"
).
in
(
skuIdList
).
and
(
"delFlg"
).
is
(
"0"
)).
getQueryObject
(),
Query
.
query
(
Criteria
.
where
(
"skuId"
).
in
(
skuIdList
).
and
(
"delFlg"
).
is
(
"0"
)
.
and
(
"shelvesStatus"
).
in
(
"0"
,
"1"
).
and
(
"shelvesHandle"
).
is
(
"3"
)
).
getQueryObject
(),
Update
.
update
(
"shelvesStatus"
,
"3"
).
set
(
"shelvesAt"
,
now
).
getUpdateObject
()
);
if
(
updateSkuResult
.
getModifiedCount
()
>
0
)
{
...
...
@@ -97,13 +97,13 @@ public class PlatformGoblinGoodsSkuService extends ServiceImpl<GoblinGoodsSkuMap
Query
.
query
(
Criteria
.
where
(
"skuId"
).
in
(
skuIdList
).
and
(
"shelvesAt"
).
is
(
now
)).
getQueryObject
(),
Update
.
update
(
"shelvesStatus"
,
"0"
).
set
(
"shelvesAt"
,
of
).
getUpdateObject
()
);
liquidnetServiceException
.
setMessage
(
"更新失败:Mongo.GoblinGoods
Sku
InfoVo"
);
liquidnetServiceException
.
setMessage
(
"更新失败:Mongo.GoblinGoodsInfoVo"
);
}
}
else
{
liquidnetServiceException
.
setMessage
(
"更新失败:Mongo.GoblinGoodsInfoVo"
);
liquidnetServiceException
.
setMessage
(
"更新失败:Mongo.GoblinGoods
Sku
InfoVo"
);
}
}
else
{
liquidnetServiceException
.
setMessage
(
"更新失败:Mysql.GoblinGoods
Sku
"
);
liquidnetServiceException
.
setMessage
(
"更新失败:Mysql.GoblinGoods"
);
}
throw
liquidnetServiceException
;
}
...
...
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