package cn.cslg.report.entity;

import cn.cslg.report.common.model.BaseEntity;
import cn.cslg.report.entity.asso.AssoRecordsFeature;
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 java.util.List;

/**
 * 对比记录表
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName(value = "COMPARE_RECORDS")
public class CompareRecords extends BaseEntity<CompareRecords> {
    /**
     * 专利号
     */
    @Schema(description ="专利号")
    @TableField(value = "PATENT_NO")
    private String patentNo;

    /**
     * 位置
     */
    @Schema(description = "位置")
    @TableField(value = "POSITION")
    private String position;
    /*
    栏位
     */

    @Schema(description = "栏位")
    @TableField(value = "FIELDS")
    private String fields;
    /**
     * 内容
     */

    @Schema(description = "内容")
    @TableField(value = "CONTENT")
    private String content;


    @TableField(exist = false)
    private List<Integer> featuresIdList;




    @TableField(exist = false)
    private List<Features> features;


    /**
     * 对比人ID
     */
    @Schema(description = "对比人ID")
    @TableField(value = "PERSON_ID")
    private Integer personId;

    /**
     * 解析过程
     */
    @Schema(description = "解析过程")
    @TableField(value = "PARESING_PROCESS")
    private String paresingProcess;

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


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

    @Schema(description = "任务ID")
    @TableField(value = "TASK_ID")
    private Integer taskId;

    /**
     * 结果
     */
    @Schema(description = "0公开1部分公开")
    @TableField(exist = false)
    private List<AssoRecordsFeature> assoRecordsFeatures;


}
