package com.ssj.bean.sys.assessment.domain;

import org.springframework.format.annotation.DateTimeFormat;

import com.ssj.bean.common.framework.core.domain.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * @author Mount Liu
 * @date 2019/2/26
 */
@Entity
@Table(name = "tb_teacher_assessment")
public class TeacherAssess extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 家长id
     */
    private String parentId;
    /**
     * 老师id
     */
    private String teacherId;
    private String homeworkId;
    /**
     * 评价标签
     */
    private String judgeLabel;
    /**
     * 家长评星
     */
    private int judgeLevel;
    /**
     * 1难题老师，2在线批改老师
     */
    private int type;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 科目（评价难题老师需要）
     */
    private String subject;

    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Column(updatable=false)
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(String teacherId) {
        this.teacherId = teacherId;
    }

    public String getHomeworkId() {
        return homeworkId;
    }

    public void setHomeworkId(String homeworkId) {
        this.homeworkId = homeworkId;
    }

    public String getJudgeLabel() {
        return judgeLabel;
    }

    public void setJudgeLabel(String judgeLabel) {
        this.judgeLabel = judgeLabel;
    }

    public int getJudgeLevel() {
        return judgeLevel;
    }

    public void setJudgeLevel(int judgeLevel) {
        this.judgeLevel = judgeLevel;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }
}
