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

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - QHSE应检设备证书分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class QhseDeviceCertPageReqVO extends PageParam {

    @Schema(description = "设备id", example = "9166")
    private Long deviceId;

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

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

    @Schema(description = "证书编号")
    private String certNo;

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

    @Schema(description = "检测单位")
    private String certOrg;

    @Schema(description = "检测日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] certTime;

    @Schema(description = "有效期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] certExpire;

    @Schema(description = "附件")
    private String file;

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

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

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