package cn.iocoder.yudao.module.mes.controller.admin.moldrecord.vo;

import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 模具维保 Response VO")
@Data
@ExcelIgnoreUnannotated
public class MoldRecordRespVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "30464")
    @ExcelProperty("ID")
    private Long id;
    @Schema(description = "单号")
    @ExcelProperty("单号")
    private String code;
    @Schema(description = "流程ID")
    @ExcelProperty("流程ID")
    private String flowCode;

    @Schema(description = "模具型号ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "17427")
    private Long brandId;
    @Schema(description = "模具型号", requiredMode = Schema.RequiredMode.REQUIRED, example = "17427")
    @ExcelProperty("模具型号")
    private String brandName;
    @Schema(description = "规格", requiredMode = Schema.RequiredMode.REQUIRED, example = "17427")
    @ExcelProperty("规格")
    private String brandType;

    @Schema(description = "模具ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "21232")
    private Long moldId;
    @Schema(description = "模具", requiredMode = Schema.RequiredMode.REQUIRED, example = "21232")
    @ExcelProperty("模具")
    private String moldName;

    @Schema(description = "前模具ID", example = "23487")
    private Long oldMoldId;
    @Schema(description = "前模具", example = "23487")
    @ExcelProperty("前模具")
    private String oldMoldName;

    @Schema(description = "机台ID", example = "1825")
    @ExcelProperty("机台ID")
    private Long machineId;
    @Schema(description = "机台", example = "1825")
    @ExcelProperty("机台")
    private String machineName;

    @Schema(description = "负责人ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "27306")
    private Long userId;
    @Schema(description = "负责人", requiredMode = Schema.RequiredMode.REQUIRED, example = "27306")
    @ExcelProperty("负责人")
    private String userName;

    @Schema(description = "单据类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty(value = "单据类型", converter = DictConvert.class)
    @DictFormat("mes_mold_record_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String recordType;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty(value = "状态", converter = DictConvert.class)
    @DictFormat("mes_mold_record_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String recordStatus;

    @Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED, example = "你猜")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;
    @Schema(description = "开始时间")
    @ExcelProperty("开始时间")
    private LocalDateTime startTime;

    @Schema(description = "结束时间")
    @ExcelProperty("结束时间")
    private LocalDateTime endTime;
}