xiaoyi
3 天以前 abf1c0a35d85d38239ff5d2ed746a4e4b797c9d1
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
package cn.iocoder.yudao.module.mes.controller.admin.qc.outsourcetest.vo;
 
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
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 MesQcOutsourceTestRespVO {
 
    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("编号")
    private Long id;
 
    @Schema(description = "单据编码", example = "WT20260818001")
    @ExcelProperty("单据编码")
    private String code;
 
    @Schema(description = "单据名称", example = "变压器第三方检测")
    @ExcelProperty("单据名称")
    private String name;
 
    @Schema(description = "检测类型", example = "1")
    @ExcelProperty(value = "检测类型", converter = DictConvert.class)
    @DictFormat(cn.iocoder.yudao.module.mes.enums.DictTypeConstants.MES_QC_OUTSOURCE_TEST_TYPE)
    private Integer testType;
 
    @Schema(description = "检测对象(物料/设备编号)", example = "1")
    private Long itemId;
 
    @Schema(description = "检测对象名称", example = "变压器A")
    @ExcelProperty("检测对象")
    private String itemName;
 
    @Schema(description = "检测机构", example = "国家变压器质检中心")
    @ExcelProperty("检测机构")
    private String testOrg;
 
    @Schema(description = "检测日期")
    @ExcelProperty("检测日期")
    private LocalDateTime testDate;
 
    @Schema(description = "检测结果", example = "1")
    @ExcelProperty(value = "检测结果", converter = DictConvert.class)
    @DictFormat(cn.iocoder.yudao.module.mes.enums.DictTypeConstants.MES_QC_OUTSOURCE_TEST_RESULT)
    private Integer result;
 
    @Schema(description = "检测报告编号", example = "BG-2026-0001")
    @ExcelProperty("报告编号")
    private String reportNo;
 
    @Schema(description = "状态(0=草稿,10=已提交,20=已完成)", example = "0")
    private Integer status;
 
    @Schema(description = "备注", example = "备注")
    @ExcelProperty("备注")
    private String remark;
 
    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;
 
    @Schema(description = "附件列表(检测报告/资质文件)")
    private List<Attachment> attachmentList;
 
    @Schema(description = "附件项")
    @Data
    public static class Attachment {
        private Long id;
        private String name;
        private String url;
    }
 
}