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 com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


/**
 * 审查历史表
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName(value = "REVIEW_HISTORY")
public class ReviewHistory extends BaseEntity<ReviewHistory> {
    /**
     * 时间
     */
    @TableField(value = "REVIEW_TIME")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private String time;

    /**
     * 事件
     */
    @Schema(description = "事件")
    @TableField(value = "REVIEW_EVENT")
    private String event;

    /**
     * 说明
     */
    @Schema(description = "说明")
    @TableField(value = "REVIEW_EXPLAIN")
    private String reviewExplain;

    /**
     * 文件ID
     */
    @Schema(description = "文件ID")
    @TableField(value = "FILE_ID")
    private Integer fileId;

    /**
     * 所属报告ID
     */
    @Schema(description = "所属报告ID")
    @TableField(value = "REPORT_ID")
    private Integer reportId;
    /**
     * 专利号
     */
    @Schema(description = "专利号")
    @TableField(value = "PATENT_NO")
    private String patentNo;

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

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

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


}
