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;

/**
 * 无效记录表
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName(value = "INVALID_RECORD")
public class InvalidRecord extends BaseEntity<InvalidRecord> {
    /**
     * 专利号
     */
     @TableField(value = "PATENT_NO")
     private String patentNo;
    //NEWPATENT_NO
    @TableField(value = "NEWPATENT_NO")
    private String newPatentNo;


    /**
     * 无效申请人
     */
    @Schema(description = "无效申请人")
    @TableField(value = "PERSON")
    private String person;

    /**
     * 无效申请人ID
     */
    @Schema(description = "无效申请人ID")
    @TableField(value = "PERSON_ID")
    private String personId;

    /**
     * 无效时间
     */
    @Schema(description = "无效时间")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    @TableField(value = "INVALID_TIME")
    private String invalidTime;

    /**
     * 判决时间
     */
    @Schema(description = "判决时间")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    @TableField(value = "JUDGMENT_TIME")
    private String judgmentTime;

    /**
     * 结果
     */
    @Schema(description = "结果")
    @TableField(value = "RESULT")
    private String result;

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

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

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

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

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


}
