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
63
64
65
66
67
package cn.iocoder.yudao.module.mes.controller.admin.wm.packages.vo;
 
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
 
import java.math.BigDecimal;
import java.time.LocalDateTime;
 
/**
 * MES 装箱单新增/修改 Request VO
 *
 * @author 芋道源码
 */
@Schema(description = "管理后台 - MES 装箱单新增/修改 Request VO")
@Data
public class MesWmPackageSaveReqVO {
 
    @Schema(description = "编号", example = "1024")
    private Long id;
 
    @Schema(description = "装箱单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "PKG20260307001")
    @NotEmpty(message = "装箱单编号不能为空")
    private String code;
 
    @Schema(description = "装箱日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "装箱日期不能为空")
    private LocalDateTime packageDate;
 
    @Schema(description = "销售订单编号", example = "SO20260301")
    private String salesOrderCode;
 
    @Schema(description = "发票编号", example = "INV20260301")
    private String invoiceCode;
 
    @Schema(description = "客户 ID", example = "1")
    private Long clientId;
 
    @Schema(description = "箱长度", example = "60.00")
    private BigDecimal length;
 
    @Schema(description = "箱宽度", example = "40.00")
    private BigDecimal width;
 
    @Schema(description = "箱高度", example = "30.00")
    private BigDecimal height;
 
    @Schema(description = "尺寸单位 ID", example = "1")
    private Long sizeUnitId;
 
    @Schema(description = "净重", example = "10.00")
    private BigDecimal netWeight;
 
    @Schema(description = "毛重", example = "12.00")
    private BigDecimal grossWeight;
 
    @Schema(description = "重量单位 ID", example = "2")
    private Long weightUnitId;
 
    @Schema(description = "检查员用户 ID", example = "1")
    private Long inspectorUserId;
 
    @Schema(description = "备注", example = "备注")
    private String remark;
 
}