gaoluyang
3 天以前 8c65f898ed6e5b0c7a94c792c4562f6ec831dccd
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
package cn.iocoder.yudao.module.mes.controller.admin.wm.salesnotice.vo;
 
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;
 
import java.math.BigDecimal;
import java.time.LocalDateTime;
 
@Schema(description = "管理后台 - MES 发货通知单新增/修改 Request VO")
@Data
public class MesWmSalesNoticeSaveReqVO {
 
    @Schema(description = "编号", example = "1024")
    private Long id;
 
    @Schema(description = "通知单编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "SN202603010001")
    @NotEmpty(message = "通知单编码不能为空")
    private String code;
 
    @Schema(description = "通知单名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "测试发货通知")
    @NotEmpty(message = "通知单名称不能为空")
    private String name;
 
    @Schema(description = "客户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "客户编号不能为空")
    private Long clientId;
 
    @Schema(description = "销售订单ID", example = "1")
    private Long saleOrderId;
 
    @Schema(description = "销售订单号", example = "SO202603010001")
    private String saleOrderCode;
 
    @Schema(description = "发货日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "发货日期不能为空")
    private LocalDateTime salesDate;
 
    @Schema(description = "收货人", example = "张三")
    private String recipientName;
 
    @Schema(description = "联系方式", example = "13800138000")
    private String recipientTelephone;
 
    @Schema(description = "收货地址", example = "北京市朝阳区xxx")
    private String recipientAddress;
 
    @Schema(description = "物流公司", example = "顺丰速运")
    @Size(max = 128, message = "物流公司名称不能超过 128 个字符")
    private String logisticsCompany;
 
    @Schema(description = "快递费", example = "25.00")
    @DecimalMin(value = "0", message = "快递费不能小于 0")
    private BigDecimal expressFee;
 
    @Schema(description = "开票状态:0 未开票 1 部分开票 2 已开票", example = "0")
    private Integer invoiceStatus;
 
    @Schema(description = "备注", example = "备注")
    private String remark;
 
}