package com.zt.plat.module.qms.resource.device.controller.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import com.zt.plat.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 设备-检定校准分页 Request VO")
@Data
public class DeviceCalibrationPageReqVO extends PageParam {

    @Schema(description = "ID")
    private Long id;

    @Schema(description = "检定校准计划id", example = "22068")
    private Long planId;

    @Schema(description = "有效标识")
    private String effectiveFlag;

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

    @Schema(description = "供应商名称", example = "赵六")
    private String supplierName;

    @Schema(description = "供应商ID", example = "24250")
    private Long supplierId;

    @Schema(description = "校准点/范围")
    private String specification;

    @Schema(description = "计划检定校准日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] planCheckDate;

    @Schema(description = "上次检定校准日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] lastCheckDate;

    @Schema(description = "频次")
    private String frequencyRemark;

    @Schema(description = "类型：检定|校准", example = "2")
    private String checkType;

    @Schema(description = "检定校准日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] checkDate;

    @Schema(description = "检定校准单位")
    private String agent;

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

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

    @Schema(description = "确认情况（理由）")
    private String checkContent;

    @Schema(description = "确认结果")
    private String checkResult;

    @Schema(description = "检定校准状态", example = "2")
    private String flowStatus;

    @Schema(description = "流程实例id", example = "24905")
    private String flowInstanceId;

    @Schema(description = "表单id")
    private Long formId;

    @Schema(description = "作废状态")
    private Integer cancelFlag;

    @Schema(description = "所属部门")
    private String systemDepartmentCode;

    @Schema(description = "备注")
    private String remark;

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


    //======================设备大类字段==============================



    //======================设备字段==============================



    //======================查询字段==============================
    @Schema(description = "流程状态列表")
    private List<String> flowStatusList;

    @Schema(description = "设备名称")
    private String deviceName;

//    @Schema(description = "计划id列表")
//    private List<Long> planIdList;

    @Schema(description = "设备大类id")
    private Long productId;

    @Schema(description = "设备大类id列表")
    private List<Long> productIdList;

    @Schema(description = "部门id列表")
    private List<Long> deptIdList;

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

}