package cn.iocoder.yudao.module.pms.controller.admin.qhse.emergency.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 QhseEmergencyCertPageReqVO extends PageParam {

    @Schema(description = "设备id", example = "12399")
    private Long emergencyId;

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

    @Schema(description = "设备名称", example = "王五")
    private String emergencyName;

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

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

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

    @Schema(description = "有效期")
    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 expired;
    @Schema(description = "预警")
    private Boolean alertWarn;
}