package com.nantian.cloud.jljc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 调查（询问）笔录问题及答案
 * @since 2020-10-29
 */
@Data
@TableName("t_supervision_questions")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "调查（询问）笔录问题及答案")
public class TSupervisionQuestions extends Model<TSupervisionQuestions> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    private Integer userid;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    /**
     * 注销状态（1：未删除，4：已删除）
     */
    @ApiModelProperty(value = "注销状态（1：未删除，4：已删除）")
    private String delFlag;

    /**
     * 部门id
     */
    @ApiModelProperty(value = "部门id")
    private Integer deptId;


    /**
     * 问题
     */
    @ApiModelProperty(value = "问题")
    private String question;

    /**
     * 回答
     */
    @ApiModelProperty(value = "回答")
    private String answers;

    /**
     * 调查（询问）笔录主键
     */
    @ApiModelProperty(value = "调查（询问）笔录主键")
    private Integer pid;

    /**
     * 序号
     */
    @ApiModelProperty(value = "序号")
    private Integer num;

    /**
     * 监察编号
     */
    @ApiModelProperty(value = "监察编号")
    private String monitorId;

    /**
     *页码记录
     */
    @ApiModelProperty(value = "页面记录")
    private Integer pageIndex;

    /**
     * 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
