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

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 DvCheckRespVO {

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

    @Schema(description = "计划编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("计划编码")
    private String planCode;

    @Schema(description = "计划名称", example = "张三")
    @ExcelProperty("计划名称")
    private String planName;

    @Schema(description = "计划类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty("计划类型")
    private String planType;

    @Schema(description = "开始日期")
    @ExcelProperty("开始日期")
    private LocalDateTime startDate;

    @Schema(description = "结束日期")
    @ExcelProperty("结束日期")
    private LocalDateTime endDate;

    @Schema(description = "状态", example = "1")
    @ExcelProperty("状态")
    private String status;

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

    @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("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "频率单位")
    @ExcelProperty(value = "频率单位", converter = DictConvert.class)
    @DictFormat("mes_maintain_time_unit") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String cycleUnit;

    @Schema(description = "频率", example = "16646")
    @ExcelProperty("频率")
    private BigDecimal cycleCount;

    @Schema(description = "维保等级")
    @ExcelProperty(value = "维保等级", converter = DictConvert.class)
    @DictFormat("mes_mantain_level") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String planLevel;

    @Schema(description = "上次执行时间")
    @ExcelProperty("上次执行时间")
    private LocalDateTime lastTime;

    @Schema(description = "计算公式")
    @ExcelProperty("计算公式")
    private String formulaCode;

}