package com.xxl.job.executor.entity.json;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.IsKey;
import lombok.Data;

import java.util.List;

/**
 * 人民网-留言板-领导人信息表
 */
@Data
@TableName("rmw_leaderinfo")
public class LeaderInfoJson {

    @TableId
    @IsKey
    @Column(comment = "领导人ID")
    private int fid;

    @Column(comment = "父fid",isNull = false)
    private int fup;

    @Column(comment = "地区上级ID")
    private String topIds;

    @Column(comment = "名称",length = 30,isNull = false)
    private String name;//名称
    private int forumState;

    @Column(comment = "排序")
    private int sort;

    @Column(comment = "是否有子项")
    private int hasChild;//是否有子项，领导人没有子项，盟市有子项
    private int threadsNum;
    private int answersNum;
    private int tnumYear;
    private int anumYear;
    private int threadsNumExclude;
    private int answersNumExclude;
    private int tnumYearExclude;
    private int anumYearExclude;
    private int top;
    private double satisfaction;
    private int lastYearSatisfaction;
    private int dateline;
    private int lastupdate;
    private int position;
    private int publicFlag;

    @TableField(typeHandler = FastjsonTypeHandler.class)
    private List<String> pForumNames;


}
