package cn.iocoder.yudao.module.pms.controller.admin.qhse.devicecert.vo;

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 = "管理后台 - QHSE应检设备证书 Response VO")
@Data
@ExcelIgnoreUnannotated
public class QhseDeviceCertRespVO {

    @Schema(description = "主键id", requiredMode = Schema.RequiredMode.REQUIRED, example = "28348")
    @ExcelProperty("主键id")
    private Long id;

    @Schema(description = "设备id", requiredMode = Schema.RequiredMode.REQUIRED, example = "9166")
//    @ExcelProperty("设备id")
    private Long deviceId;

    @Schema(description = "部门id", example = "20873")
//    @ExcelProperty("部门id")
    private Long deptId;

    @Schema(description = "设备编码", example = "芋艿")
    @ExcelProperty("设备编码")
    private String deviceCode;

    @Schema(description = "设备名称", example = "芋艿")
    @ExcelProperty("设备名称")
    private String deviceName;

    @Schema(description = "序列号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("序列号")
    private String certNo;

    @Schema(description = "证书类别")
    @ExcelProperty("证书类别")
    private String certType;

    @Schema(description = "检测单位", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("检测单位")
    private String certOrg;

    @Schema(description = "检测日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("检测日期")
    private LocalDateTime certTime;

    @Schema(description = "有效期", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("有效期")
    private LocalDateTime certExpire;

    @Schema(description = "附件", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("附件")
    private String file;

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

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "部门名称", example = "赵六")
    @ExcelProperty("部门名称")
    private String deptName;
    @Schema(description = "预警")
    private Boolean alertWarn;
    @Schema(description = "过期")
    private Boolean expired;

}