记得上下班打卡 | 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
2a101a8e
Commit
2a101a8e
authored
Apr 12, 2022
by
张国柄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
~api:藏品管理:添加藏品+校验藏品名称不可重复;
parent
12727f1e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
0 deletions
+9
-0
GoblinStoreMgtGoodsController.java
...blin/controller/manage/GoblinStoreMgtGoodsController.java
+3
-0
GoblinMongoUtils.java
...a/com/liquidnet/service/goblin/util/GoblinMongoUtils.java
+5
-0
errors.properties
...-service-goblin-impl/src/main/resources/errors.properties
+1
-0
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 @
2a101a8e
...
@@ -1037,6 +1037,9 @@ public class GoblinStoreMgtGoodsController {
...
@@ -1037,6 +1037,9 @@ public class GoblinStoreMgtGoodsController {
if
(
goodsInfoVo
.
getSpuType
()
==
0
)
{
if
(
goodsInfoVo
.
getSpuType
()
==
0
)
{
return
ResponseDto
.
failure
(
ErrorCode
.
HTTP_PARAM_ERROR
.
getCode
(),
"无效操作,该商品非数字藏品"
);
return
ResponseDto
.
failure
(
ErrorCode
.
HTTP_PARAM_ERROR
.
getCode
(),
"无效操作,该商品非数字藏品"
);
}
}
if
(
goblinMongoUtils
.
countMgtGoodsSkuInfoVo
(
mgtDigitalGoodsAddSkuParam
.
getName
(),
1
)
>
0
)
{
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
"149018"
));
}
if
(
StringUtils
.
isBlank
(
mgtDigitalGoodsAddSkuParam
.
getProductId
()))
{
// TODO: 2022/4/8 ==zhanggb.del
if
(
StringUtils
.
isBlank
(
mgtDigitalGoodsAddSkuParam
.
getProductId
()))
{
// TODO: 2022/4/8 ==zhanggb.del
mgtDigitalGoodsAddSkuParam
.
setProductId
(
"NGoods1"
);
mgtDigitalGoodsAddSkuParam
.
setProductId
(
"NGoods1"
);
}
}
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/util/GoblinMongoUtils.java
View file @
2a101a8e
...
@@ -589,6 +589,11 @@ public class GoblinMongoUtils {
...
@@ -589,6 +589,11 @@ public class GoblinMongoUtils {
GoblinGoodsInfoVo
.
class
.
getSimpleName
());
GoblinGoodsInfoVo
.
class
.
getSimpleName
());
}
}
public
long
countMgtGoodsSkuInfoVo
(
String
name
,
int
skuType
)
{
return
mongoTemplate
.
count
(
Query
.
query
(
Criteria
.
where
(
"name"
).
is
(
name
).
and
(
"delFlg"
).
is
(
"0"
).
and
(
"skuType"
).
is
(
skuType
)),
GoblinGoodsSkuInfoVo
.
class
.
getSimpleName
());
}
// SPU信息
// SPU信息
public
boolean
updateGoodsInfoVo
(
GoblinGoodsInfoVo
vo
)
{
public
boolean
updateGoodsInfoVo
(
GoblinGoodsInfoVo
vo
)
{
return
mongoTemplate
.
getCollection
(
GoblinGoodsInfoVo
.
class
.
getSimpleName
()).
updateOne
(
return
mongoTemplate
.
getCollection
(
GoblinGoodsInfoVo
.
class
.
getSimpleName
()).
updateOne
(
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/resources/errors.properties
View file @
2a101a8e
...
@@ -45,6 +45,7 @@
...
@@ -45,6 +45,7 @@
149015
=
SKU添加失败,重复的规格信息
149015
=
SKU添加失败,重复的规格信息
149016
=
请先将商品下架后操作
149016
=
请先将商品下架后操作
149017
=
请先将活动停用后操作
149017
=
请先将活动停用后操作
149018
=
藏品名称重复,请核实
148001
=
正在下单库存不足
148001
=
正在下单库存不足
...
...
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