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;
|
|
}
|
|
}
|