记得上下班打卡 | 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
0f60fdac
Commit
0f60fdac
authored
Apr 07, 2022
by
张国柄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
~api:mgt.商品列表+条件spuType:商品类型[0-常规|1-数字藏品];
parent
e054f495
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
6 deletions
+16
-6
GoblinStoreMgtGoodsFilterParam.java
...ice/goblin/dto/manage/GoblinStoreMgtGoodsFilterParam.java
+2
-0
GoblinStoreMgtGoodsListVo.java
...rvice/goblin/dto/manage/vo/GoblinStoreMgtGoodsListVo.java
+3
-1
GoblinStoreMgtGoodsController.java
...blin/controller/manage/GoblinStoreMgtGoodsController.java
+5
-5
GoblinStoreMgtGoodsServiceImpl.java
...n/service/impl/manage/GoblinStoreMgtGoodsServiceImpl.java
+1
-0
GoblinMongoUtils.java
...a/com/liquidnet/service/goblin/util/GoblinMongoUtils.java
+5
-0
No files found.
liquidnet-bus-api/liquidnet-service-goblin-api/src/main/java/com/liquidnet/service/goblin/dto/manage/GoblinStoreMgtGoodsFilterParam.java
View file @
0f60fdac
...
...
@@ -41,4 +41,6 @@ public class GoblinStoreMgtGoodsFilterParam implements Serializable {
private
BigDecimal
priceGe
;
@ApiModelProperty
(
position
=
20
,
required
=
false
,
value
=
"价格区间MAX"
)
private
BigDecimal
priceLe
;
@ApiModelProperty
(
position
=
21
,
required
=
false
,
value
=
"商品类型[0-常规|1-数字藏品]"
)
private
int
spuType
;
}
liquidnet-bus-api/liquidnet-service-goblin-api/src/main/java/com/liquidnet/service/goblin/dto/manage/vo/GoblinStoreMgtGoodsListVo.java
View file @
0f60fdac
package
com
.
liquidnet
.
service
.
goblin
.
dto
.
manage
.
vo
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
...
...
@@ -7,8 +8,9 @@ import lombok.Data;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
@ApiModel
(
value
=
"GoblinStoreMgtGoodsVo"
,
description
=
"商品管理:商品列表信息"
)
@ApiModel
(
value
=
"GoblinStoreMgtGoods
List
Vo"
,
description
=
"商品管理:商品列表信息"
)
@Data
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
public
class
GoblinStoreMgtGoodsListVo
implements
Serializable
,
Cloneable
{
private
static
final
long
serialVersionUID
=
-
5926827517337445529L
;
@ApiModelProperty
(
position
=
10
,
value
=
"店铺ID[64]"
)
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/controller/manage/GoblinStoreMgtGoodsController.java
View file @
0f60fdac
...
...
@@ -212,7 +212,7 @@ public class GoblinStoreMgtGoodsController {
return
resultFlg
?
ResponseDto
.
success
()
:
ResponseDto
.
failure
();
}
@ApiOperationSupport
(
order
=
31
)
@ApiOperationSupport
(
order
=
3
0
1
)
@ApiOperation
(
value
=
"SKU管理-数字藏品"
)
@PostMapping
(
"digital/operate"
)
public
ResponseDto
<
Object
>
digitalAction
(
@Valid
@RequestBody
GoblinStoreMgtGoodsSkuActionParam
mgtGoodsSkuActionParam
)
{
...
...
@@ -469,7 +469,7 @@ public class GoblinStoreMgtGoodsController {
return
ResponseDto
.
success
(
goodsInfoVo
.
getSpuId
());
}
@ApiOperationSupport
(
order
=
41
)
@ApiOperationSupport
(
order
=
4
0
1
)
@ApiOperation
(
value
=
"SPU添加-数字藏品"
)
@PostMapping
(
"digital/add"
)
public
ResponseDto
<
Object
>
digitalAdd
(
@Valid
@RequestBody
GoblinStoreMgtDigitalGoodsAddParam
mgtDigitalGoodsAddParam
)
{
...
...
@@ -613,7 +613,7 @@ public class GoblinStoreMgtGoodsController {
return
resultFlg
?
ResponseDto
.
success
()
:
ResponseDto
.
failure
();
}
@ApiOperationSupport
(
order
=
61
)
@ApiOperationSupport
(
order
=
6
0
1
)
@ApiOperation
(
value
=
"SPU编辑-数字藏品"
,
notes
=
"只修改商品信息,不包含价格库存相关信息"
)
@PutMapping
(
"digital/edit_spu"
)
public
ResponseDto
<
Object
>
digitalEditSpu
(
@Valid
@RequestBody
GoblinStoreMgtDigitalGoodsAddParam
mgtDigitalGoodsEditParam
)
{
...
...
@@ -850,7 +850,7 @@ public class GoblinStoreMgtGoodsController {
}
}
@ApiOperationSupport
(
order
=
71
)
@ApiOperationSupport
(
order
=
7
0
1
)
@ApiOperation
(
value
=
"商品编辑:SKU编辑-数字藏品"
,
notes
=
"只修改单品信息,不包含商品信息"
)
@PutMapping
(
"digital/edit_sku"
)
public
ResponseDto
<
Object
>
digitalEditSku
(
@Valid
@RequestBody
GoblinStoreMgtDigitalGoodsAddSkuParam
mgtDigitalGoodsEditSkuParam
)
{
...
...
@@ -1022,7 +1022,7 @@ public class GoblinStoreMgtGoodsController {
return
ResponseDto
.
success
();
}
@ApiOperationSupport
(
order
=
81
)
@ApiOperationSupport
(
order
=
8
0
1
)
@ApiOperation
(
value
=
"商品编辑:SKU添加-数字藏品"
)
@PostMapping
(
"digital/add_sku"
)
public
ResponseDto
<
Object
>
digitalSkuAdd
(
@Valid
@RequestBody
GoblinStoreMgtDigitalGoodsAddSkuParam
mgtDigitalGoodsAddSkuParam
)
{
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/service/impl/manage/GoblinStoreMgtGoodsServiceImpl.java
View file @
0f60fdac
...
...
@@ -962,6 +962,7 @@ public class GoblinStoreMgtGoodsServiceImpl implements IGoblinstoreMgtGoodsServi
List
<
String
>
skuIdList
=
mgtGoodsInfoVo
.
getSkuIdList
();
if
(
CollectionUtils
.
isEmpty
(
skuIdList
))
{
skuIdList
=
CollectionUtil
.
linkedListString
();
mgtGoodsInfoVo
.
setCoverPic
(
initGoodsSkuInfoVo
.
getSkuPic
());
// 默认使用第一个SKU图片作为SPU封面图
}
skuIdList
.
add
(
initGoodsSkuInfoVo
.
getSkuId
());
mgtGoodsInfoVo
.
setSkuIdList
(
skuIdList
);
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/util/GoblinMongoUtils.java
View file @
0f60fdac
...
...
@@ -359,6 +359,11 @@ public class GoblinMongoUtils {
// SPU分页
public
PagedResult
<
GoblinStoreMgtGoodsListVo
>
getMgtGoodsInfoVos
(
GoblinStoreMgtGoodsFilterParam
filterParam
)
{
Criteria
criteria
=
Criteria
.
where
(
"delFlg"
).
is
(
"0"
).
and
(
"storeId"
).
is
(
filterParam
.
getStoreId
()).
and
(
"marketId"
).
exists
(
false
);
if
(
0
==
filterParam
.
getSpuType
())
{
criteria
.
andOperator
(
Criteria
.
where
(
"spuType"
).
exists
(
false
).
orOperator
(
Criteria
.
where
(
"spuType"
).
is
(
0
)));
}
else
{
criteria
.
and
(
"spuType"
).
is
(
1
);
}
if
(
StringUtils
.
isNotBlank
(
filterParam
.
getKeyword
()))
{
Pattern
pattern
=
Pattern
.
compile
(
"^.*"
+
filterParam
.
getKeyword
()
+
".*$"
,
Pattern
.
CASE_INSENSITIVE
);
criteria
.
and
(
"name"
).
regex
(
pattern
);
...
...
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