package cn.cslg.pas.domain;

import cn.cslg.pas.common.model.BaseEntity;
import cn.cslg.pas.common.model.vo.KeyValueVO;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.swing.text.html.ObjectView;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 专利信息事务信息表
 * </p>
 *
 * @author 王岩
 * @since 2022-02-24
 */
@Data
@TableName("os_patent_affair")
public class PatentAffair extends BaseEntity<PatentAffair> {

    /**
     * 发生日期
     */
    @TableField("datetime")
    private Integer dateTime;

    /**
     * 法律状态
     */
    private String status;

    /**
     * 简单法律状态
     */
    @TableField("simplestatus")
    private Integer simpleStatus;

    /**
     * 事务内容（INPADOC法律状态）
     */
    private String content;

    /**
     * 备注
     */
    private String remark;

    /**
     * 专利信息ID
     */
    @TableField("pid")
    private Integer patentId;

    @TableField(exist = false)
    private String createTime;

    @TableField(exist = false)
    private String createStatus;

    @TableField(exist = false)
    private String createSimpleStatus;

    @TableField(exist = false)
    private List<KeyValueVO> inpadoc;

    @Data
    public static class INPADOC {
        private String year;
        private String content;
        private String country;
    }
}
