package cn.cslg.report.entity;

import cn.cslg.report.common.model.BaseEntity;
import cn.cslg.report.common.model.BaseVO;
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 = "LITIGATION_HISTORY")
public class LitigationHistory extends BaseEntity<LitigationHistory> {
    /**
     * 原告
     */
    @Schema(description = "原告")
    @TableField(value = "PLAINTIFF")
    private String plaintiff;

    /**
     * 被告
     */
    @Schema(description = "被告")
    @TableField(value = "DEFENDANT")
    private String defendant;

    /**
     * 案由
     */
    @Schema(description = "案由")
    @TableField(value = "CAUSE_OF_ACTION")
    private String causeOfAction;

    /**
     * 起诉时间
     */
    @Schema(description = "起诉时间")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    @TableField(value = "PROSECUTORIAL_TIME")
    private String prosecutorialTime;

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

    /**
     * 案件详情
     */
    @Schema(description = "案件详情")
    @TableField(value = "CASE_DETAILS")
    private String caseDetails;

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


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

    @Schema(description = "法院")
    @TableField(value = "COURT")
    private String court;

    @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;

}
