liyong
4 天以前 be5783c8a7e13bbc76d33c95643d75779cce21db
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
package cn.iocoder.yudao.module.mes.controller.admin.pro.mps.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;
 
@Schema(description = "管理后台 - MES 生产主计划新增/修改 Request VO")
@Data
public class MesProMpsSaveReqVO {
 
    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    private Long id;
 
    @Schema(description = "MPS 编码(新增时不填自动生成)", example = "MPS-001")
    private String code;
 
    // ========== 来源信息 ==========
 
    @Schema(description = "销售订单ID", example = "100")
    private Long saleOrderId;
 
    @Schema(description = "销售订单号", example = "SO-001")
    private String saleOrderNo;
 
    @Schema(description = "销售订单明细ID", example = "200")
    private Long saleOrderItemId;
 
    // ========== 产品信息 ==========
 
    @Schema(description = "产品编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "100")
    @NotNull(message = "产品不能为空")
    private Long productId;
 
    @Schema(description = "计划生产数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "100.00")
    @NotNull(message = "计划生产数量不能为空")
    private BigDecimal quantity;
 
    @Schema(description = "计量单位ID", example = "1")
    private Long unitMeasureId;
 
    // ========== 客户信息 ==========
 
    @Schema(description = "客户编号", example = "300")
    private Long clientId;
 
    // ========== 时间信息 ==========
 
    @Schema(description = "需求日期")
    private LocalDateTime requestDate;
 
    @Schema(description = "备注", example = "备注")
    private String remark;
 
}