package cn.cslg.report.entity;

import cn.cslg.report.common.model.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 报告文件导出表
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName(value = "REPORT_DOCUMENT")
public class ReportDocument extends BaseEntity<ReportDocument> {

    /**
     * 报告ID
     */
    @Schema(description = "报告ID")
    @TableField(value = "REPORT_ID")
    private Integer reportId;

    /**
     * 文件名称
     */
    @Schema(description = "文件名称")
    @TableField(value = "FILE_NAME")
    private String fileName;

    /**
     * 导出人
     */
    @Schema(description = "导出人Id")
    @TableField(value = "PERSON_ID")
    private Integer personId;

    /**
     * 导出人名
     */
    @Schema(description = "导出人")
    @TableField(value = "PERSON_NAME")
    private String personName;
    /**
     * 模板名称
     */
    @Schema(description = "模板名称")
    @TableField(value = "TEMPLATE_NAME")
    private String templateName;

    /**
     * 模板
     */
    @Schema(description = "模板")
    @TableField(value = "TEMPLATE_ID")
    private Integer templateId;

    @Schema(description = "文件路径")
    @TableField(value = "FILE_PATH")
    private String filePath;

    @Schema(description = "导出时间")
    @TableField(value = "CREATE_TIME")
    private String createTime;

    /**
     * 每页条数
     */
    @Schema(description = "每页条数")
    @TableField(exist = false)
    private Integer size;

    /**
     * 当前页数
     */
    @Schema(description = "当前页数")
    @TableField(exist = false)
    private Integer current;
}
