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 attachmentList; @Schema(description = "附件项") @Data public static class Attachment { private Long id; private String name; private String url; } }