package cn.iocoder.yudao.module.common.controller.admin.mold.vo;

import com.alibaba.excel.annotation.write.style.ColumnWidth;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.util.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;


@Schema(description = "管理后台 - 模具型号 Response VO")
@Data
@ExcelIgnoreUnannotated
public class MoldBrandRespVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "24140")
    @ExcelProperty("ID")
    private Long id;

    @Schema(description = "型号编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("型号编码")
    private String code;

    @Schema(description = "型号名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @ExcelProperty("型号名称")
    private String name;

    @Schema(description = "规格", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty("规格")
    private String moldType;

    @Schema(description = "产品ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "2336")
    private Long productId;
    @Schema(description = "产品", requiredMode = Schema.RequiredMode.REQUIRED, example = "2336")
//    @ExcelProperty("产品")
    private String productName;

    @Schema(description = "预期寿命/次")
    @ExcelProperty("预期寿命/次")
    private BigDecimal useTime;

    @Schema(description = "维保模式", example = "2")
//    @ExcelProperty(value = "维保模式", converter = DictConvert.class)
    @DictFormat("maintain_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer maintainType;

    @Schema(description = "维保周期")
//    @ExcelProperty("维保周期")
    private BigDecimal maintainTime;

    @Schema(description = "模穴数", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("模穴数")
    private Long moldSize;

    @Schema(description = "备注", example = "你说的对")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "是否启用", requiredMode = Schema.RequiredMode.REQUIRED)
//    @ExcelProperty("是否启用")
    private Boolean isEnable;

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

    @Schema(description = "工序", example = "reya")
    @ExcelProperty(value = "工序", converter = DictConvert.class)
    @DictFormat("mes_org_type")
    private String orgType;
//    , converter = OrgTypeConverter.class
}