liu
23 小时以前 cdf5605fb5caa0da0f134893bac350785250ea8a
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
package cn.iocoder.yudao.module.mes.controller.admin.pro.process.vo.param;
 
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
 
import java.util.List;
 
@Schema(description = "管理后台 - MES 工序工艺参数绑定新增/修改 Request VO")
@Data
public class MesProProcessParamSaveReqVO {
 
    @Schema(description = "工序编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    @NotNull(message = "工序编号不能为空")
    private Long processId;
 
    @Schema(description = "绑定的工艺参数列表(全量覆盖保存)")
    private List<Item> items;
 
    @Data
    public static class Item {
 
        @Schema(description = "工艺参数编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
        @NotNull(message = "工艺参数不能为空")
        private Long processParamId;
 
        @Schema(description = "是否必填(可覆盖参数默认值)", example = "true")
        private Boolean required;
 
        @Schema(description = "排序", example = "1")
        private Integer sort;
 
        @Schema(description = "备注", example = "备注")
        private String remark;
    }
 
}