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;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName(value = "REPORT_REFERENCES")
public class ReportReferences extends BaseEntity<ReportReferences> {
    @Schema(description = "报告ID")
    @TableField(value = "REPORT_ID")
    private Integer reportID;
    @Schema(description = "路径")
    @TableField(value = "FILE_URL")
    private String fileUrl;

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

    @Schema(description = "创建时间")
    @TableField(value = "CREATION_TIME")
    private Date creationTime;

    @Schema(description = "创建人id")
    @TableField(value = "CREATION_MAN_ID")
    private Integer creationManId;

    @Schema(description = "类型")
    @TableField(value = "TEPY")
    private String type;

    @Schema(description = "参考资料名称")
    @TableField(value = "REFERENCES_NAME")
    private String referName;

    @Schema(description = "文件名称")
    @TableField(value = "FILE_NAME")
    private String fileName;
    /**
     * 每页条数
     */
    @Schema(description = "每页条数")
    @TableField(exist = false)
    private Integer size;

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

    /**
     * 数据总数
     */
    @Schema(description = "数据总数")
    @TableField(exist = false)
    private Integer total;

    /**
     * 文件
     */
    @TableField(exist = false)
    private List<ReportFiles> reportFiles;
    @TableField(exist = false)
    private String personName;
    @TableField(exist = false)
    private String reportName;



}
