package com.hssx.pcbms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 吴涛涛
 * @since 2019-11-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TaskExamine extends Model<TaskExamine> {

    private static final long serialVersionUID=1L;

    /**
     * 任务审核表主键
     */
    @TableId(value = "id",type = IdType.ID_WORKER_STR )
    private String id;

    /**
     * 发布人id
     */
    @TableField("publisher_id")
    private Integer publisherId;

    /**
     * 发布者名字
     */
    @TableField("publisher")
    private String publisher;

    /**
     * 发布内容
     */
    @TableField("publish_content")
    private String publishContent;

    /**
     * 回复者
     */
    @TableField("responder")
    private String responder;

    /**
     * 回复者id
     */
    @TableField("responder_id")
    private Integer responderId;

    /**
     * 回复内容
     */
    @TableField("respond_content")
    private String respondContent;

    /**
     * 发布日期
     */
    @TableField("publish_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime publishDate;

    /**
     * 回复日期
     */
    @TableField("respond_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime respondDate;

    /**
     * 是否通过0-不通过，1-通过
     */
    @TableField("is_pass")
    private Integer isPass;

    /**
     * 评分
     */
    @TableField("score")
    private Double score;

    /**
     * 任务id
     */
    @TableField("task_id")
    private String taskId;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
