2026-06-29 940c8481d2fdcf51341db4ccd6fd6fcc2d43debb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
package cn.iocoder.yudao.module.wms.controller.admin.md.item.vo.sku;
 
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
 
import java.math.BigDecimal;
 
@Schema(description = "管理后台 - WMS 商品 SKU 创建/更新 Request VO")
@Data
public class WmsItemSkuSaveReqVO {
 
    @Schema(description = "编号", example = "1024")
    private Long id;
 
    @Schema(description = "规格名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "黑色")
    @NotBlank(message = "规格名称不能为空")
    @Size(max = 255, message = "规格名称长度不能超过 255 个字符")
    private String name;
 
    @Schema(description = "商品编号", example = "1")
    private Long itemId;
 
    @Schema(description = "条码", example = "690000000001")
    @Size(max = 64, message = "条码长度不能超过 64 个字符")
    private String barCode;
 
    @Schema(description = "规格编号", example = "SKU001")
    @Size(max = 64, message = "规格编号长度不能超过 64 个字符")
    private String code;
 
    @Schema(description = "长,单位 cm", example = "10.0")
    @DecimalMin(value = "0", message = "长不能小于 0")
    private BigDecimal length;
 
    @Schema(description = "宽,单位 cm", example = "8.0")
    @DecimalMin(value = "0", message = "宽不能小于 0")
    private BigDecimal width;
 
    @Schema(description = "高,单位 cm", example = "1.0")
    @DecimalMin(value = "0", message = "高不能小于 0")
    private BigDecimal height;
 
    @Schema(description = "毛重,单位 kg", example = "1.000")
    @DecimalMin(value = "0", message = "毛重不能小于 0")
    private BigDecimal grossWeight;
 
    @Schema(description = "净重,单位 kg", example = "0.900")
    @DecimalMin(value = "0", message = "净重不能小于 0")
    private BigDecimal netWeight;
 
    @Schema(description = "成本价,单位元", example = "5000.00")
    @DecimalMin(value = "0", message = "成本价不能小于 0")
    private BigDecimal costPrice;
 
    @Schema(description = "销售价,单位元", example = "5288.00")
    @DecimalMin(value = "0", message = "销售价不能小于 0")
    private BigDecimal sellingPrice;
 
}