记得上下班打卡 | 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
82edbbfa
Commit
82edbbfa
authored
Feb 21, 2022
by
张国柄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
~BUG:SKU上架状态初始值设置更正;
~BUG:SKU调整后SPU详情缓存清楚;
parent
c1699a43
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
GoblinStoreMgtGoodsAddParam.java
...ervice/goblin/dto/manage/GoblinStoreMgtGoodsAddParam.java
+1
-1
GoblinStoreMgtGoodsController.java
...blin/controller/manage/GoblinStoreMgtGoodsController.java
+1
-1
GoblinStoreMgtGoodsServiceImpl.java
...n/service/impl/manage/GoblinStoreMgtGoodsServiceImpl.java
+2
-0
No files found.
liquidnet-bus-api/liquidnet-service-goblin-api/src/main/java/com/liquidnet/service/goblin/dto/manage/GoblinStoreMgtGoodsAddParam.java
View file @
82edbbfa
...
@@ -259,7 +259,7 @@ public class GoblinStoreMgtGoodsAddParam implements Serializable {
...
@@ -259,7 +259,7 @@ public class GoblinStoreMgtGoodsAddParam implements Serializable {
skuInfoVo
.
setVirtualFlg
(
goodsInfoVo
.
getVirtualFlg
());
skuInfoVo
.
setVirtualFlg
(
goodsInfoVo
.
getVirtualFlg
());
skuInfoVo
.
setStatus
(
"3"
);
// 没有审核流程,默认通过
skuInfoVo
.
setStatus
(
"3"
);
// 没有审核流程,默认通过
// skuInfoVo.setReason();
// skuInfoVo.setReason();
skuInfoVo
.
setShelvesStatus
(
"0"
);
skuInfoVo
.
setShelvesStatus
(
goodsInfoVo
.
getShelvesStatus
()
);
skuInfoVo
.
setSkuAppear
(
StringUtils
.
isBlank
(
addSkuParam
.
getSkuAppear
())
?
"0"
:
addSkuParam
.
getSkuAppear
());
skuInfoVo
.
setSkuAppear
(
StringUtils
.
isBlank
(
addSkuParam
.
getSkuAppear
())
?
"0"
:
addSkuParam
.
getSkuAppear
());
skuInfoVo
.
setDelFlg
(
"0"
);
skuInfoVo
.
setDelFlg
(
"0"
);
// skuInfoVo.setShelvesAt();
// skuInfoVo.setShelvesAt();
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/controller/manage/GoblinStoreMgtGoodsController.java
View file @
82edbbfa
...
@@ -423,7 +423,7 @@ public class GoblinStoreMgtGoodsController {
...
@@ -423,7 +423,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
)
{
if
(
null
==
storeMgtGoodsEditSkuParam
.
getStock
()
||
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
());
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/service/impl/manage/GoblinStoreMgtGoodsServiceImpl.java
View file @
82edbbfa
...
@@ -482,6 +482,7 @@ public class GoblinStoreMgtGoodsServiceImpl implements IGoblinstoreMgtGoodsServi
...
@@ -482,6 +482,7 @@ public class GoblinStoreMgtGoodsServiceImpl implements IGoblinstoreMgtGoodsServi
goodsInfoVo
.
setUpdatedAt
(
now
);
goodsInfoVo
.
setUpdatedAt
(
now
);
goblinMongoUtils
.
updateGoodsInfoVo
(
goodsInfoVo
);
goblinMongoUtils
.
updateGoodsInfoVo
(
goodsInfoVo
);
goblinRedisUtils
.
delGoodsInfoVo
(
spuId
);
updateGoodsObjs
.
add
(
new
Object
[]{
priceGe
,
priceLe
,
uid
,
now
,
spuId
});
updateGoodsObjs
.
add
(
new
Object
[]{
priceGe
,
priceLe
,
uid
,
now
,
spuId
});
}
}
...
@@ -558,6 +559,7 @@ public class GoblinStoreMgtGoodsServiceImpl implements IGoblinstoreMgtGoodsServi
...
@@ -558,6 +559,7 @@ public class GoblinStoreMgtGoodsServiceImpl implements IGoblinstoreMgtGoodsServi
goblinMongoUtils
.
updateGoodsInfoVo
(
goodsInfoVo
);
goblinMongoUtils
.
updateGoodsInfoVo
(
goodsInfoVo
);
goblinRedisUtils
.
delGoodsSkuInfoVo
(
spuId
);
goblinRedisUtils
.
delGoodsSkuInfoVo
(
spuId
);
goblinRedisUtils
.
delGoodsInfoVo
(
spuId
);
goblinRedisUtils
.
setSkuStock
(
null
,
addSkuInfoVo
.
getSkuId
(),
addSkuInfoVo
.
getSkuStock
());
goblinRedisUtils
.
setSkuStock
(
null
,
addSkuInfoVo
.
getSkuId
(),
addSkuInfoVo
.
getSkuStock
());
...
...
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