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

import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
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 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 DvSubjectRespVO{

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

    @Schema(description = "项目编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("项目编码")
    private String subjectCode;

    @Schema(description = "项目名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @ExcelProperty("项目名称")
    private String subjectName;

    @Schema(description = "项目类型", example = "2")
//    @ExcelProperty("项目类型")
    private String subjectType;

    @Schema(description = "项目内容", requiredMode = Schema.RequiredMode.REQUIRED)
//    @ExcelProperty("项目内容")
    private String subjectContent;

    @Schema(description = "标准")
//    @ExcelProperty("标准")
    private String subjectStandard;

    @Schema(description = "是否启用", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "是否启用", converter = DictConvert.class)
    @DictFormat("infra_boolean_string") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Boolean isEnable;

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

    @Schema(description = "检验方式")
    @ExcelProperty(value = "检验方式", converter = DictConvert.class)
    @DictFormat("Inspection_method") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String inspectionMethod;

    @Schema(description = "值类型")
    @ExcelProperty(value = "值类型", converter = DictConvert.class)
    @DictFormat("value_types") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String valueType;

    @Schema(description = "判定基准")
    @ExcelProperty("判定基准")
    private String judgmentCriteria;

    @Schema(description = "创建人")
    private String creator;

    @Schema(description = "创建人名字")
    @ExcelProperty("创建人名字")
    private String creatorName;

    /**
     * 上限值
     */
    @Schema(description = "上限值")
    @ExcelProperty("上限值")
    private Double upperVal;

    /**
     * 下限值
     */
    @Schema(description = "下限值")
    @ExcelProperty("下限值")
    private Double lowerVal;

}