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

import com.baomidou.mybatisplus.annotation.TableField;
import com.zt.plat.module.qms.core.aspect.annotation.Dict;
import jakarta.validation.constraints.NotEmpty;
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 RecordApplyDetailPageReqVO extends PageParam {

    @Schema(description = "父id", example = "28812")
    private Long applyId;

    @Schema(description = "文件id", example = "3188")
    private Long documentId;

    @Schema(description = "授权类型")
    private String targetType;

    @Schema(description = "授权Id")
    private Long targetId;

    @Schema(description = "授权名称")
    private String targetName;

    @Schema(description = "是否需要更改")
    @Dict(dicCode = "yes_or_no")
    private Integer isModify;

    @Schema(description = "更改原因")
    private String modifyCause;

    @Schema(description = "是否保留")
    private String saveFlag;

    @Schema(description = "分发号")
    private String assignCode;

    @Schema(description = "分发编号")
    private String assignId;

    @Schema(description = "结束日期")
    private LocalDateTime endDate;

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

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

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

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

}