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 DevicePeriodCheckPageReqVO extends PageParam {

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

    @Schema(description = "期间核查计划id", example = "21407")
    private Long planId;

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

    @Schema(description = "设备ID", example = "31026")
    private Long deviceId;

    @Schema(description = "期间核查执行人")
    private String checkPersonRemark;

    @Schema(description = "核查人姓名", example = "张三")
    private String checkPersonName;

    @Schema(description = "核查人id", example = "29695")
    private Long checkPersonId;

    @Schema(description = "复核人姓名", example = "赵六")
    private String recheckPersonName;

    @Schema(description = "复核人id", example = "10898")
    private Long recheckPersonId;

    @Schema(description = "核查方法")
    private String checkAccording;

    @Schema(description = "核查方法描述")
    private String checkAccordingRemark;

    @Schema(description = "核查记录")
    private String checkContent;

    @Schema(description = "核查结论")
    private String checkResult;

    @Schema(description = "核查备注")
    private String checkRemark;

    @Schema(description = "实际检查日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] checkDate;

    @Schema(description = "核查对象类型")
    private String checkTarget;

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

    @Schema(description = "计划检查日期-开始")
    private LocalDateTime planCheckDateStart;

    @Schema(description = "计划检查日期-截止")
    private LocalDateTime planCheckDateEnd;

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

    @Schema(description = "审批状态", example = "2")
    private String flowStatus;

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

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

    @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;

}