package com.zt.plat.module.qms.resource.record.controller.admin.recordapply.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.zt.plat.module.qms.core.aspect.annotation.Dict;
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 RecordApplyPageReqVO extends PageParam {

    @Schema(description = "申请标题,【字典】【jy_record_apply_bsn_type】分发、查看申请、作废、评审")
    private String title;

    @Schema(description = "业务类型", example = "1")
    private String businessType;

    @Schema(description = "业务状态")
    @Dict(dicCode = "flow_status")
    private String businessStatus;

    @Schema(description = "申请人id", example = "15000")
    private Long applyUserId;

    @Schema(description = "申请人姓名", example = "张三")
    private String applyUserName;

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

    @Schema(description = "部门名称", example = "研发部")
    private String applyDepartmentName;

    @Schema(description = "评审时间")
    private LocalDateTime reviewTime;

    @Schema(description = "评审范围")
    private String reviewRange;

    @Schema(description = "修改标识")
    private String modifyFlag;

    @Schema(description = "参加评审部门")
    private String targetDepartmentIds;

    @Schema(description = "参加评审人员id")
    private String targetUserIds;

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

    @Schema(description = "申请事由")
    private String applyContent;

    @Schema(description = "更改前内容")
    private String changeBefore;

    @Schema(description = "更改后内容")
    private String changeAfter;

    @Schema(description = "是否长期有效")
    private String permanently;

    @Schema(description = "开始日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] applyStartDate;

    @Schema(description = "截止日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] applyEndDate;

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

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

    @Schema(description = "是否提交")
    private Integer isSubmit;

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

}