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

import lombok.*;
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 DeviceApplyPageReqVO extends PageParam {

    @Schema(description = "业务名称,【字典】【jy_device_lifecycle_bsn_type】验收、降级、停用、报废、还原、启用等", example = "王五")
    private String businessName;

    @Schema(description = "申请部门", example = "王五")
    private String applyDepartmentName;

    @Schema(description = "申请部门ID")
    private String applyDepartment;

    @Schema(description = "申请人", example = "ZT")
    private String applyUserName;

    @Schema(description = "申请人ID")
    private String applyUser;

    @Schema(description = "申请标题")
    private String title;

    @Schema(description = "业务编码")
    private String businessCode;

    @Schema(description = "业务日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] businessDate;

    @Schema(description = "业务原因")
    private String businessReason;

    @Schema(description = "业务状态", example = "1")
    private String businessStatus;

    @Schema(description = "借用人")
    private String businessUser;

    @Schema(description = "借用人id", example = "30865")
    private Long businessUserId;

    @Schema(description = "借用部门")
    private String businessDepartment;

    @Schema(description = "借用部门id", example = "3852")
    private Long businessDepartmentId;

    @Schema(description = "计划归还日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] planGivebackDate;

    @Schema(description = "归还接收人")
    private String givebackReceiveUser;

    @Schema(description = "归还接收人id", example = "1499")
    private Long givebackReceiveUserId;

    @Schema(description = "表单模板ID", example = "23422")
    private String templateId;

    @Schema(description = "表单组件")
    private String formComponent;

    @Schema(description = "数据集配置ID", example = "17263")
    private Long dataCollectionId;

    @Schema(description = "表单数据")
    private String formData;

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

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

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

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

}