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 io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.util.*;

import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 文件记录通用申请明细 Response VO")
@Data
@ExcelIgnoreUnannotated
public class RecordApplyDetailRespVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "23921")
    @ExcelProperty("主键")
    private Long id;

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

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

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

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

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

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

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

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

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

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

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

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

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

    @Schema(description = "开始日期")
    @ExcelProperty("开始日期")
    private LocalDateTime applyStartDate;

    @Schema(description = "截止日期")
    @ExcelProperty("截止日期")
    private LocalDateTime applyEndDate;

    @Schema(description = "排序号")
    @ExcelProperty("排序号")
    private String sortNo;

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

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

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    // =================临时数据======================
    @Schema(description = "文件名称")
    private String recordName;

    @Schema(description = "文件编号")
    private String recordCode;

    @Schema(description = "版本号")
    private String version;

    @Schema(description = "文件记录-是否长期有效")
    private String recordPermanently;

    @Schema(description = "文件过期时间")
    private LocalDateTime expirationDate;

}