package com.ym.mec.education.entity;

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 com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 班级与老师课酬表
 * </p>
 *
 * @author lemeng
 * @since 2019-09-25
 */
@TableName("class_group_teacher_salary")
public class ClassGroupTeacherSalary extends Model<ClassGroupTeacherSalary> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id_", type = IdType.AUTO)
    private Long id;
    @TableField("music_group_id_")
    private Integer musicGroupId;
    @TableField("class_group_id_")
    private Integer classGroupId;
    /**
     * 老师角色（主教、助教）
     */
    @TableField("teacher_role_")
    private String teacherRole;
    @TableField("user_id_")
    private Integer userId;
    /**
     * 课时长(分钟)
     */
    @TableField("duration_")
    private Integer duration;
    /**
     * 薪酬
     */
    @TableField("salary_")
    private BigDecimal salary;
    @TableField("create_time_")
    private Date createTime;
    @TableField("update_time_")
    private Date updateTime;


    public Long getId() {
        return id;
    }

    public ClassGroupTeacherSalary setId(Long id) {
        this.id = id;
        return this;
    }

    public Integer getMusicGroupId() {
        return musicGroupId;
    }

    public ClassGroupTeacherSalary setMusicGroupId(Integer musicGroupId) {
        this.musicGroupId = musicGroupId;
        return this;
    }

    public Integer getClassGroupId() {
        return classGroupId;
    }

    public ClassGroupTeacherSalary setClassGroupId(Integer classGroupId) {
        this.classGroupId = classGroupId;
        return this;
    }

    public String getTeacherRole() {
        return teacherRole;
    }

    public ClassGroupTeacherSalary setTeacherRole(String teacherRole) {
        this.teacherRole = teacherRole;
        return this;
    }

    public Integer getUserId() {
        return userId;
    }

    public ClassGroupTeacherSalary setUserId(Integer userId) {
        this.userId = userId;
        return this;
    }

    public Integer getDuration() {
        return duration;
    }

    public ClassGroupTeacherSalary setDuration(Integer duration) {
        this.duration = duration;
        return this;
    }

    public BigDecimal getSalary() {
        return salary;
    }

    public ClassGroupTeacherSalary setSalary(BigDecimal salary) {
        this.salary = salary;
        return this;
    }

    public Date getCreateTime() {
        return createTime;
    }

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

    public Date getUpdateTime() {
        return updateTime;
    }

    public ClassGroupTeacherSalary setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
        return this;
    }

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

    @Override
    public String toString() {
        return "ClassGroupTeacherSalary{" +
        ", id=" + id +
        ", musicGroupId=" + musicGroupId +
        ", classGroupId=" + classGroupId +
        ", teacherRole=" + teacherRole +
        ", userId=" + userId +
        ", duration=" + duration +
        ", salary=" + salary +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
