记得上下班打卡 | 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
2acf665e
Commit
2acf665e
authored
Mar 23, 2022
by
胡佳晨
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/pre' into pre
parents
7ba24a05
01227d6b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
PlatformGoblinGoodsTaskController.java
...roller/goblin/task/PlatformGoblinGoodsTaskController.java
+1
-1
PlatformGoblinGoodsService.java
...tform/service/impl/goblin/PlatformGoblinGoodsService.java
+8
-2
No files found.
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/controller/goblin/task/PlatformGoblinGoodsTaskController.java
View file @
2acf665e
...
...
@@ -54,7 +54,7 @@ public class PlatformGoblinGoodsTaskController {
try
{
platformGoblinGoodsService
.
shelvesProcessing
(
spuIdList
);
}
catch
(
Exception
e
)
{
log
.
error
(
"
商品上架处理[totalCount={},spuIdList={}]"
,
totalCount
,
JsonUtils
.
toJson
(
spuIdList
));
log
.
error
(
"
Ex.商品上架处理[totalCount={},spuIdList={}],{}"
,
totalCount
,
JsonUtils
.
toJson
(
spuIdList
),
e
.
getMessage
(
));
return
ResponseDto
.
failure
(
String
.
format
(
"商品上架处理失败[totalCount=%s]"
,
totalCount
));
}
}
...
...
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/service/impl/goblin/PlatformGoblinGoodsService.java
View file @
2acf665e
...
...
@@ -51,9 +51,10 @@ public class PlatformGoblinGoodsService extends ServiceImpl<GoblinGoodsMapper, G
updateSkuWrapper
.
in
(
GoblinGoodsSku:
:
getSpuId
,
spuIdList
);
updateSkuWrapper
.
eq
(
GoblinGoodsSku:
:
getDelFlg
,
"0"
);
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"
).
i
s
(
"0
"
).
and
(
"shelvesHandle"
).
is
(
"3"
)).
getQueryObject
(),
Query
.
query
(
Criteria
.
where
(
"spuId"
).
in
(
spuIdList
).
and
(
"shelvesStatus"
).
i
n
(
"0"
,
"1
"
).
and
(
"shelvesHandle"
).
is
(
"3"
)).
getQueryObject
(),
Update
.
update
(
"shelvesStatus"
,
"3"
).
set
(
"shelvesAt"
,
now
).
getUpdateObject
()
);
if
(
updateSpuResult
.
getModifiedCount
()
>
0
)
{
...
...
@@ -83,10 +84,15 @@ public class PlatformGoblinGoodsService extends ServiceImpl<GoblinGoodsMapper, G
Query
.
query
(
Criteria
.
where
(
"spuId"
).
in
(
spuIdList
).
and
(
"shelvesAt"
).
is
(
now
)).
getQueryObject
(),
Update
.
update
(
"shelvesStatus"
,
"0"
).
set
(
"shelvesAt"
,
of
).
getUpdateObject
()
);
liquidnetServiceException
.
setMessage
(
"更新失败:Mongo.GoblinGoodsSkuInfoVo"
);
}
}
else
{
liquidnetServiceException
.
setMessage
(
"更新失败:Mongo.GoblinGoodsInfoVo"
);
}
}
else
{
liquidnetServiceException
.
setMessage
(
"更新失败:Mysql.GoblinGoodsSku"
);
}
throw
new
LiquidnetServiceException
()
;
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