3 天以前 3be684af887afe4c0e45f281cc53adfef6f12b78
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
package cn.iocoder.yudao.module.mes.controller.admin.pro.workorder.vo.paramrecord;
 
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
 
import java.util.List;
 
@Schema(description = "管理后台 - MES 生产工单参数记录新增/修改 Request VO")
@Data
public class MesProWorkOrderParamRecordSaveReqVO {
 
    @Schema(description = "编号(修改时必传)", example = "1024")
    private Long id;
 
    @Schema(description = "参数模板编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "参数模板不能为空")
    private Long templateId;
 
    @Schema(description = "记录序号/批次号", example = "BATCH-001")
    private String recordNo;
 
    @Schema(description = "参数明细列表", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "参数明细不能为空")
    @Valid
    private List<DetailItem> details;
 
    @Schema(description = "备注", example = "备注")
    private String remark;
 
    @Schema(description = "参数明细项")
    @Data
    public static class DetailItem {
 
        @Schema(description = "模板明细编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
        @NotNull(message = "模板明细编号不能为空")
        private Long templateDetailId;
 
        @Schema(description = "参数值", example = "200")
        private String paramValue;
 
    }
 
}