记得上下班打卡 | 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
03a48153
Commit
03a48153
authored
Jan 21, 2022
by
张国柄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
~API:商品管理:添加SKU库存校验调整;
parent
dac9d249
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
GoblinStoreMgtGoodsController.java
...blin/controller/manage/GoblinStoreMgtGoodsController.java
+2
-3
No files found.
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/controller/manage/GoblinStoreMgtGoodsController.java
View file @
03a48153
...
@@ -90,7 +90,7 @@ public class GoblinStoreMgtGoodsController {
...
@@ -90,7 +90,7 @@ public class GoblinStoreMgtGoodsController {
}
}
log
.
info
(
"商品管理:SPU导出..."
);
log
.
info
(
"商品管理:SPU导出..."
);
// TODO: 2021/12/28 zhanggb
// TODO: 2021/12/28 zhanggb
==
}
}
@ApiOperationSupport
(
order
=
3
)
@ApiOperationSupport
(
order
=
3
)
...
@@ -104,7 +104,6 @@ public class GoblinStoreMgtGoodsController {
...
@@ -104,7 +104,6 @@ public class GoblinStoreMgtGoodsController {
if
(
log
.
isDebugEnabled
())
{
if
(
log
.
isDebugEnabled
())
{
log
.
debug
(
"商品管理:SPU管理:[GoblinStoreMgtGoodsActionParam={}]"
,
JsonUtils
.
toJson
(
storeMgtGoodsActionParam
));
log
.
debug
(
"商品管理:SPU管理:[GoblinStoreMgtGoodsActionParam={}]"
,
JsonUtils
.
toJson
(
storeMgtGoodsActionParam
));
}
}
// TODO: 2021/12/28 zhanggb 逻辑校验
switch
(
storeMgtGoodsActionParam
.
getAction
())
{
switch
(
storeMgtGoodsActionParam
.
getAction
())
{
case
"ONSHELVES"
:
case
"ONSHELVES"
:
...
@@ -402,7 +401,7 @@ public class GoblinStoreMgtGoodsController {
...
@@ -402,7 +401,7 @@ public class GoblinStoreMgtGoodsController {
||
storeMgtGoodsEditSkuParam
.
getPriceMember
().
compareTo
(
BigDecimal
.
ZERO
)
<=
0
)
{
||
storeMgtGoodsEditSkuParam
.
getPriceMember
().
compareTo
(
BigDecimal
.
ZERO
)
<=
0
)
{
return
ResponseDto
.
failure
(
ErrorCode
.
HTTP_PARAM_ERROR
.
getCode
(),
"价格无效"
);
return
ResponseDto
.
failure
(
ErrorCode
.
HTTP_PARAM_ERROR
.
getCode
(),
"价格无效"
);
}
}
if
(
storeMgtGoodsEditSkuParam
.
getStock
()
<=
0
||
storeMgtGoodsEditSkuParam
.
getSkuStock
()
<=
0
)
{
if
(
storeMgtGoodsEditSkuParam
.
getStock
()
<=
0
)
{
return
ResponseDto
.
failure
(
ErrorCode
.
HTTP_PARAM_ERROR
.
getCode
(),
"库存无效"
);
return
ResponseDto
.
failure
(
ErrorCode
.
HTTP_PARAM_ERROR
.
getCode
(),
"库存无效"
);
}
}
GoblinGoodsInfoVo
goodsInfoVo
=
goblinRedisUtils
.
getMgtGoodsInfoVo
(
storeMgtGoodsEditSkuParam
.
getSpuId
());
GoblinGoodsInfoVo
goodsInfoVo
=
goblinRedisUtils
.
getMgtGoodsInfoVo
(
storeMgtGoodsEditSkuParam
.
getSpuId
());
...
...
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