记得上下班打卡 | 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
293994bc
Commit
293994bc
authored
Jan 05, 2022
by
张国柄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+API:商品编辑(SKU、SPU);
parent
9953d5bc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
27 deletions
+31
-27
GoblinStoreMgtGoodsEditSkuParam.java
...ce/goblin/dto/manage/GoblinStoreMgtGoodsEditSkuParam.java
+18
-16
IGoblinstoreMgtGoodsService.java
...ce/goblin/service/manage/IGoblinstoreMgtGoodsService.java
+11
-9
GoblinStoreMgtGoodsController.java
...blin/controller/manage/GoblinStoreMgtGoodsController.java
+1
-1
GoblinStoreMgtGoodsServiceImpl.java
...n/service/impl/manage/GoblinStoreMgtGoodsServiceImpl.java
+1
-1
No files found.
liquidnet-bus-api/liquidnet-service-goblin-api/src/main/java/com/liquidnet/service/goblin/dto/manage/GoblinStoreMgtGoodsEditSkuParam.java
View file @
293994bc
...
...
@@ -15,39 +15,41 @@ import java.util.List;
@Data
public
class
GoblinStoreMgtGoodsEditSkuParam
implements
Serializable
{
private
static
final
long
serialVersionUID
=
6657596593310537491L
;
@ApiModelProperty
(
position
=
10
,
required
=
false
,
value
=
"单品ID[编辑时必传]"
)
@ApiModelProperty
(
position
=
10
,
required
=
true
,
value
=
"店铺ID[64]"
)
private
String
storeId
;
@ApiModelProperty
(
position
=
11
,
required
=
false
,
value
=
"单品ID[编辑时必传]"
)
private
String
skuId
;
@ApiModelProperty
(
position
=
1
1
,
required
=
true
,
value
=
"单品默认图片的url[256]"
)
@ApiModelProperty
(
position
=
1
2
,
required
=
true
,
value
=
"单品默认图片的url[256]"
)
private
String
skuPic
;
@ApiModelProperty
(
position
=
1
2
,
required
=
true
,
value
=
"单品规格信息"
)
@ApiModelProperty
(
position
=
1
3
,
required
=
true
,
value
=
"单品规格信息"
)
private
List
<
GoblinGoodsSpecDto
>
skuSpecList
;
@ApiModelProperty
(
position
=
1
3
,
required
=
false
,
value
=
"单品销售价[20,2]"
)
@ApiModelProperty
(
position
=
1
4
,
required
=
false
,
value
=
"单品销售价[20,2]"
)
private
BigDecimal
sellPrice
;
@ApiModelProperty
(
position
=
1
4
,
required
=
true
,
value
=
"单品价格[20,2]"
)
@ApiModelProperty
(
position
=
1
5
,
required
=
true
,
value
=
"单品价格[20,2]"
)
private
BigDecimal
price
;
@ApiModelProperty
(
position
=
1
5
,
required
=
true
,
value
=
"单品会员价格[20,2]"
)
@ApiModelProperty
(
position
=
1
6
,
required
=
true
,
value
=
"单品会员价格[20,2]"
)
private
BigDecimal
priceMember
;
@ApiModelProperty
(
position
=
1
6
,
required
=
false
,
value
=
"单品的重量[20,2]"
)
@ApiModelProperty
(
position
=
1
7
,
required
=
false
,
value
=
"单品的重量[20,2]"
)
private
BigDecimal
weight
;
@ApiModelProperty
(
position
=
1
7
,
required
=
true
,
value
=
"总库存"
)
@ApiModelProperty
(
position
=
1
8
,
required
=
true
,
value
=
"总库存"
)
private
Integer
stock
;
@ApiModelProperty
(
position
=
1
8
,
required
=
false
,
value
=
"预警库存"
)
@ApiModelProperty
(
position
=
1
9
,
required
=
false
,
value
=
"预警库存"
)
private
Integer
warningStock
;
@ApiModelProperty
(
position
=
19
,
value
=
"自定义展示[0-默认展示|1-隐藏不可购买]"
)
@ApiModelProperty
(
position
=
20
,
value
=
"自定义展示[0-默认展示|1-隐藏不可购买]"
)
private
String
skuAppear
;
@ApiModelProperty
(
position
=
2
0
,
required
=
false
,
value
=
"ISBN,针对CD/图书等[100]"
)
@ApiModelProperty
(
position
=
2
1
,
required
=
false
,
value
=
"ISBN,针对CD/图书等[100]"
)
private
String
skuIsbn
;
@ApiModelProperty
(
position
=
2
1
,
required
=
true
,
value
=
"购买限制[0-全部用户|1-仅会员|2-指定用户]"
)
@ApiModelProperty
(
position
=
2
2
,
required
=
true
,
value
=
"购买限制[0-全部用户|1-仅会员|2-指定用户]"
)
private
String
buyFactor
;
@ApiModelProperty
(
position
=
2
2
,
required
=
false
,
value
=
"购买限制人员名单[购买限制为2-指定用户时必填]"
)
@ApiModelProperty
(
position
=
2
3
,
required
=
false
,
value
=
"购买限制人员名单[购买限制为2-指定用户时必填]"
)
private
String
buyRoster
;
@ApiModelProperty
(
position
=
2
3
,
required
=
false
,
value
=
"限量[0-无限制|X:限购数量]"
)
@ApiModelProperty
(
position
=
2
4
,
required
=
false
,
value
=
"限量[0-无限制|X:限购数量]"
)
private
Integer
buyLimit
;
@ApiModelProperty
(
position
=
2
4
,
required
=
false
,
value
=
"单品有效期[yyyy-MM-dd HH:mm:ss]"
)
@ApiModelProperty
(
position
=
2
5
,
required
=
false
,
value
=
"单品有效期[yyyy-MM-dd HH:mm:ss]"
)
@Pattern
(
regexp
=
LnsRegex
.
Valid
.
DATETIME_FULL
,
message
=
"单品有效期格式有误"
)
private
String
skuValidity
;
@ApiModelProperty
(
position
=
2
5
,
required
=
false
,
value
=
"加减库存"
)
@ApiModelProperty
(
position
=
2
6
,
required
=
false
,
value
=
"加减库存"
)
private
Integer
operStock
;
}
liquidnet-bus-api/liquidnet-service-goblin-api/src/main/java/com/liquidnet/service/goblin/service/manage/IGoblinstoreMgtGoodsService.java
View file @
293994bc
...
...
@@ -15,7 +15,7 @@ public interface IGoblinstoreMgtGoodsService {
PagedResult
<
GoblinStoreMgtGoodsListVo
>
goodsList
(
GoblinStoreMgtGoodsFilterParam
storeMgtGoodsFilterParam
);
/**
* 商品管理:
添加SPU
* 商品管理:
SPU添加
*
* @param storeMgtGoodsAddParam GoblinStoreMgtGoodsAddParam
*/
...
...
@@ -30,28 +30,28 @@ public interface IGoblinstoreMgtGoodsService {
GoblinStoreMgtGoodsInfoVo
goodsInfo
(
String
spuId
);
/**
* 商品管理:商品编辑:
编辑SPU
* 商品管理:商品编辑:
SPU编辑
*
* @param storeMgtGoodsAddParam GoblinStoreMgtGoodsAddParam
*/
void
goodsEditSpu
(
GoblinStoreMgtGoodsAddParam
storeMgtGoodsAddParam
);
/**
* 商品管理:商品编辑:
编辑SKU
* 商品管理:商品编辑:
SKU编辑
*
* @param storeMgtGoodsEditSkuParam GoblinStoreMgtGoodsEditSkuParam
*/
void
goodsEditSku
(
GoblinStoreMgtGoodsEditSkuParam
storeMgtGoodsEditSkuParam
);
/**
* 商品管理:商品编辑:
添加SKU
* 商品管理:商品编辑:
SKU添加
*
* @param storeMgtGoodsEditSkuParam GoblinStoreMgtGoodsEditSkuParam
*/
void
goodsEditSkuAdd
(
GoblinStoreMgtGoodsEditSkuParam
storeMgtGoodsEditSkuParam
);
/**
* 商品管理:商品编辑:
删除SKU
* 商品管理:商品编辑:
SKU删除
*
* @param skuId 单品ID
* @return boolean
...
...
@@ -59,12 +59,14 @@ public interface IGoblinstoreMgtGoodsService {
boolean
goodsEditSkuDel
(
String
skuId
);
/**
* 商品管理:商品编辑:
批量修改SKU
* 商品管理:商品编辑:
SKU批改
*
* @param spuId
* @return
* @param spuId 商品ID
* @param batField 批量修改属性
* @param batFieldVal 批量修改属性值
* @return boolean
*/
boolean
goodsEditSkuBat
(
String
spuId
);
boolean
goodsEditSkuBat
(
String
spuId
,
String
batField
,
String
batFieldVal
);
/**
* 商品管理:上架商品
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/controller/manage/GoblinStoreMgtGoodsController.java
View file @
293994bc
...
...
@@ -142,7 +142,7 @@ public class GoblinStoreMgtGoodsController {
@NotBlank
(
message
=
"商品ID不能为空"
)
String
spuId
,
@NotBlank
(
message
=
"批量修改属性不能为空"
)
String
batField
,
@NotBlank
(
message
=
"批量修改属性值不能为空"
)
String
batFieldVal
)
{
return
ResponseDto
.
success
(
goblinstoreMgtGoodsService
.
goodsEditSkuBat
(
spuId
));
return
ResponseDto
.
success
(
goblinstoreMgtGoodsService
.
goodsEditSkuBat
(
spuId
,
batField
,
batFieldVal
));
}
@ApiOperationSupport
(
order
=
10
)
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/service/impl/manage/GoblinStoreMgtGoodsServiceImpl.java
View file @
293994bc
...
...
@@ -134,7 +134,7 @@ public class GoblinStoreMgtGoodsServiceImpl implements IGoblinstoreMgtGoodsServi
}
@Override
public
boolean
goodsEditSkuBat
(
String
spuId
)
{
public
boolean
goodsEditSkuBat
(
String
spuId
,
String
batField
,
String
batFieldVal
)
{
// TODO: 2022/1/5 zhanggb
return
false
;
}
...
...
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