package cn.cslg.report.entity;

import cn.cslg.report.common.model.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * <p>
 * 自定义字段多选关联表
 * </p>
 *
 * @author 王岩
 * @since 2021-12-17
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName("OS_PATENT_FILED_OPTION")
public class ReportFieldOption extends BaseEntity<ReportFieldOption> {


    /**
     * 多选选项名称
     */
    @TableField("NAME")
    private String name;

    /**
     * 自定义字段ID
     */
    @TableField("CID")
    private Integer fieldId;

    /**
     * 子节点
     */
    @TableField(exist = false)
    private List<ReportFieldOption> children;

    /**
     * 父节点ID
     */
    @TableField(exist = false)
    private Integer parentId;

    /**
     * 报告ID
     */
    @TableField(exist = false)
    private Integer reportId;

    /**
     * 类型
     */
    @TableField(exist = false)
    private Integer type;

    /**
     * 树形层级
     */
    @TableField(exist = false)
    private Integer level;

    /**
     * 路径
     */
    @TableField(exist = false)
    private String path;

    @TableField(exist = false)
    private Integer order;

    @TableField(exist = false)
    private String remark;

    @TableField(exist = false)
    private Integer total;
//}
}