Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
custom-server
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lizhonghong
custom-server
Commits
65aef922
Commit
65aef922
authored
Jun 02, 2026
by
HuAnYing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
产品dto
parent
5b81bad6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
305 additions
and
0 deletions
+305
-0
custom-server-app/src/main/java/com/jomalls/custom/app/dto/product/CustomProductInfoDto.java
+305
-0
No files found.
custom-server-app/src/main/java/com/jomalls/custom/app/dto/product/CustomProductInfoDto.java
0 → 100644
View file @
65aef922
package
com
.
jomalls
.
custom
.
app
.
dto
.
product
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
jakarta.validation.constraints.Digits
;
import
jakarta.validation.constraints.Size
;
import
lombok.Data
;
import
java.io.Serial
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
java.util.Date
;
/**
* Entity
*
* @author huanying
* @date 2026-06-02 19:07:12
*/
@Data
public
class
CustomProductInfoDto
implements
Serializable
{
@Serial
private
static
final
long
serialVersionUID
=
1L
;
private
Integer
id
;
/**
* sku
*/
@TableField
(
"sku"
)
@Schema
(
description
=
"sku"
,
example
=
"JM260602001"
)
@Size
(
max
=
20
,
message
=
"sku长度不能超过20个字符"
)
private
String
sku
;
/**
*
*/
@TableField
(
"title"
)
@Schema
(
description
=
"title"
,
example
=
""
)
@Size
(
max
=
255
,
message
=
"title长度不能超过255个字符"
)
private
String
title
;
/**
* 商品名称
*/
@TableField
(
"name"
)
@Schema
(
description
=
"name"
,
example
=
""
)
@Size
(
max
=
255
,
message
=
"sku长度不能超过255个字符"
)
private
String
name
;
/**
* 所属客户
*/
@TableField
(
"namespace"
)
private
String
namespace
;
/**
* 所属工厂
*/
@TableField
(
"affiliated_factory"
)
private
Integer
affiliatedFactory
;
/**
* 第三方SKU
*/
@TableField
(
"third_sku"
)
private
String
thirdSku
;
/**
* 商品主图
*/
@TableField
(
"img_url"
)
@Schema
(
description
=
"图片主图"
,
example
=
""
)
@Size
(
max
=
255
,
message
=
"图片主图长度不能超过255个字符"
)
private
String
imgUrl
;
/**
* 商品类别ID
*/
@TableField
(
"category_id"
)
@Schema
(
description
=
"商品类别ID"
,
example
=
""
)
private
Integer
categoryId
;
/**
* 重量kg
*/
@TableField
(
"weight"
)
@Schema
(
description
=
"重量(kg)"
,
example
=
""
)
@Digits
(
integer
=
15
,
fraction
=
2
,
message
=
"重量(kg)数值最多保留2位小数"
)
private
BigDecimal
weight
;
/**
* 最小采购量
*/
@TableField
(
"purchasing_min"
)
@Schema
(
description
=
"最小采购量"
,
example
=
""
)
private
Integer
purchasingMin
;
/**
* 工厂价(¥)
*/
@TableField
(
"factory_price"
)
@Schema
(
description
=
"工厂价(¥)"
,
example
=
""
)
@Digits
(
integer
=
15
,
fraction
=
2
,
message
=
"工厂价数值最多保留2位小数"
)
private
BigDecimal
factoryPrice
;
/**
* 销售价(¥)
*/
@TableField
(
"sales_price"
)
@Schema
(
description
=
"销售价(¥)"
,
example
=
""
)
@Digits
(
integer
=
15
,
fraction
=
2
,
message
=
"销售价数值最多保留2位小数"
)
private
BigDecimal
salesPrice
;
/**
* 销售价最大值(¥)
*/
@TableField
(
"sales_price_max"
)
@Schema
(
description
=
"销售价最高价(¥)"
,
example
=
""
)
@Digits
(
integer
=
15
,
fraction
=
2
,
message
=
"销售价最高价数值最多保留2位小数"
)
private
BigDecimal
salesPriceMax
;
/**
* 1待上架 10已上架 20已下架 30待下架 40已作废
*/
@TableField
(
"status"
)
@Schema
(
description
=
"状态:1待上架 10已上架 20已下架 30待下架 40已作废"
,
example
=
""
)
private
Integer
status
;
/**
* 挂起前的状态
*/
@TableField
(
"pre_suspend_status"
)
private
Integer
preSuspendStatus
;
/**
*
*/
@TableField
(
"property1_cate_id"
)
private
Integer
property1CateId
;
/**
*
*/
@TableField
(
"property2_cate_id"
)
private
Integer
property2CateId
;
/**
*
*/
@TableField
(
"property3_cate_id"
)
private
Integer
property3CateId
;
/**
*
*/
@TableField
(
"property1_enname"
)
private
String
property1Enname
;
/**
*
*/
@TableField
(
"property2_enname"
)
private
String
property2Enname
;
/**
*
*/
@TableField
(
"property3_enname"
)
private
String
property3Enname
;
/**
* 颜色图
*/
@TableField
(
"color_images"
)
@Schema
(
description
=
"颜色图"
,
example
=
""
)
private
String
colorImages
;
/**
* 材质
*/
@TableField
(
"material"
)
@Schema
(
description
=
"材质"
,
example
=
""
)
@Size
(
max
=
20
,
message
=
"货号长度不能超过20个字符"
)
private
String
material
;
/**
* 印花类型 0满印 1局部印
*/
@TableField
(
"print_type"
)
@Schema
(
description
=
"印花类型 0满印 1局部印"
,
example
=
""
)
private
Integer
printType
;
/**
* 货号
*/
@TableField
(
"product_no"
)
@Schema
(
description
=
"product_no"
,
example
=
""
)
@Size
(
max
=
20
,
message
=
"货号长度不能超过20个字符"
)
private
String
productNo
;
/**
* 产地code
*/
@TableField
(
"origin_code"
)
@Schema
(
description
=
"origin_code"
,
example
=
""
)
@Size
(
max
=
20
,
message
=
"产地编码长度不能超过20个字符"
)
private
String
originCode
;
/**
* 产地中文名字
*/
@TableField
(
"origin_name_cn"
)
@Schema
(
description
=
"origin_name_cn"
,
example
=
""
)
@Size
(
max
=
20
,
message
=
"产地中文名字长度不能超过20个字符"
)
private
String
originNameCn
;
/**
* 产地英文名字
*/
@TableField
(
"origin_name_en"
)
@Schema
(
description
=
"origin_name_en"
,
example
=
""
)
@Size
(
max
=
20
,
message
=
"产地英文名字长度不能超过20个字符"
)
private
String
originNameEn
;
/**
* 币种code
*/
@TableField
(
"currency_code"
)
@Schema
(
description
=
"currency_code"
,
example
=
""
)
@Size
(
max
=
20
,
message
=
"币种编码长度不能超过20个字符"
)
private
String
currencyCode
;
/**
* 币种
*/
@TableField
(
"currency_name"
)
@Schema
(
description
=
"currency_name"
,
example
=
""
)
@Size
(
max
=
20
,
message
=
"币种名称长度不能超过20个字符"
)
private
String
currencyName
;
/**
* 平台直营-platform 客户自营-customer
*/
@TableField
(
"product_type"
)
@Schema
(
description
=
"平台直营-platform 客户自营-customer"
,
example
=
""
)
private
String
productType
;
/**
* 工厂id
*/
@TableField
(
"factory_id"
)
private
Integer
factoryId
;
/**
* 工厂编码
*/
@TableField
(
"factory_code"
)
private
String
factoryCode
;
/**
* 是否九猫处理
*/
@TableField
(
"processing"
)
@Schema
(
description
=
"是否九猫处理"
,
example
=
""
)
private
Boolean
processing
;
/**
* 创建时间
*/
@TableField
(
"create_time"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
createTime
;
/**
*
*/
@TableField
(
"update_time"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
updateTime
;
/**
*
*/
@TableField
(
"sort"
)
private
Integer
sort
;
/**
* 默认模ID
*/
@TableField
(
"diy_id"
)
private
Integer
diyId
;
/**
* 默认模SKU
*/
@TableField
(
"diy_sku"
)
private
String
diySku
;
}
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