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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
package cn.iocoder.yudao.module.mes.controller.admin.pd.processparamtemplate.vo;
 
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import cn.iocoder.yudao.module.mes.enums.DictTypeConstants;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
 
import java.time.LocalDateTime;
import java.util.List;
 
@Schema(description = "管理后台 - MES 工艺参数模板 Response VO")
@Data
@ExcelIgnoreUnannotated
public class MesPdProcessParamTemplateRespVO {
 
    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    @ExcelProperty("编号")
    private Long id;
 
    @Schema(description = "模板编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "PPT2024001")
    @ExcelProperty("模板编码")
    private String templateCode;
 
    @Schema(description = "模板名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "注塑工艺参数模板")
    @ExcelProperty("模板名称")
    private String templateName;
 
    @Schema(description = "模板类型", example = "1")
    @ExcelProperty(value = "模板类型", converter = DictConvert.class)
    @DictFormat(DictTypeConstants.MES_PD_PROCESS_PARAM_TEMPLATE_TYPE)
    private Integer templateType;
 
    @Schema(description = "备注", example = "测试备注")
    @ExcelProperty("备注")
    private String remark;
 
    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;
 
    @Schema(description = "模板明细列表")
    private List<DetailResp> details;
 
    @Schema(description = "模板明细")
    @Data
    public static class DetailResp {
 
        @Schema(description = "明细编号", example = "1")
        private Long id;
 
        @Schema(description = "模板ID", example = "1")
        private Long templateId;
 
        @Schema(description = "工艺参数ID", example = "1")
        private Long processParamId;
 
        @Schema(description = "参数编码", example = "PP2024001")
        private String paramCode;
 
        @Schema(description = "参数名称", example = "温度")
        private String paramName;
 
        @Schema(description = "参数类型", example = "1")
        private Integer paramType;
 
        @Schema(description = "计量单位ID", example = "1")
        private Long unitMeasureId;
 
        @Schema(description = "计量单位名称", example = "℃")
        private String unitMeasureName;
 
        @Schema(description = "是否必填", example = "true")
        private Boolean required;
 
        @Schema(description = "备注", example = "测试备注")
        private String remark;
 
    }
 
}