ClassGroupTeacherSalary.java 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. package com.ym.mec.education.entity;
  2. import com.baomidou.mybatisplus.enums.IdType;
  3. import java.math.BigDecimal;
  4. import java.util.Date;
  5. import com.baomidou.mybatisplus.annotations.TableId;
  6. import com.baomidou.mybatisplus.annotations.TableField;
  7. import com.baomidou.mybatisplus.activerecord.Model;
  8. import com.baomidou.mybatisplus.annotations.TableName;
  9. import java.io.Serializable;
  10. /**
  11. * <p>
  12. * 班级与老师课酬表
  13. * </p>
  14. *
  15. * @author lemeng
  16. * @since 2019-09-25
  17. */
  18. @TableName("class_group_teacher_salary")
  19. public class ClassGroupTeacherSalary extends Model<ClassGroupTeacherSalary> {
  20. private static final long serialVersionUID = 1L;
  21. @TableId(value = "id_", type = IdType.AUTO)
  22. private Long id;
  23. @TableField("music_group_id_")
  24. private Integer musicGroupId;
  25. @TableField("class_group_id_")
  26. private Integer classGroupId;
  27. /**
  28. * 老师角色(主教、助教)
  29. */
  30. @TableField("teacher_role_")
  31. private String teacherRole;
  32. @TableField("user_id_")
  33. private Integer userId;
  34. /**
  35. * 课时长(分钟)
  36. */
  37. @TableField("duration_")
  38. private Integer duration;
  39. /**
  40. * 薪酬
  41. */
  42. @TableField("salary_")
  43. private BigDecimal salary;
  44. @TableField("create_time_")
  45. private Date createTime;
  46. @TableField("update_time_")
  47. private Date updateTime;
  48. public Long getId() {
  49. return id;
  50. }
  51. public ClassGroupTeacherSalary setId(Long id) {
  52. this.id = id;
  53. return this;
  54. }
  55. public Integer getMusicGroupId() {
  56. return musicGroupId;
  57. }
  58. public ClassGroupTeacherSalary setMusicGroupId(Integer musicGroupId) {
  59. this.musicGroupId = musicGroupId;
  60. return this;
  61. }
  62. public Integer getClassGroupId() {
  63. return classGroupId;
  64. }
  65. public ClassGroupTeacherSalary setClassGroupId(Integer classGroupId) {
  66. this.classGroupId = classGroupId;
  67. return this;
  68. }
  69. public String getTeacherRole() {
  70. return teacherRole;
  71. }
  72. public ClassGroupTeacherSalary setTeacherRole(String teacherRole) {
  73. this.teacherRole = teacherRole;
  74. return this;
  75. }
  76. public Integer getUserId() {
  77. return userId;
  78. }
  79. public ClassGroupTeacherSalary setUserId(Integer userId) {
  80. this.userId = userId;
  81. return this;
  82. }
  83. public Integer getDuration() {
  84. return duration;
  85. }
  86. public ClassGroupTeacherSalary setDuration(Integer duration) {
  87. this.duration = duration;
  88. return this;
  89. }
  90. public BigDecimal getSalary() {
  91. return salary;
  92. }
  93. public ClassGroupTeacherSalary setSalary(BigDecimal salary) {
  94. this.salary = salary;
  95. return this;
  96. }
  97. public Date getCreateTime() {
  98. return createTime;
  99. }
  100. public ClassGroupTeacherSalary setCreateTime(Date createTime) {
  101. this.createTime = createTime;
  102. return this;
  103. }
  104. public Date getUpdateTime() {
  105. return updateTime;
  106. }
  107. public ClassGroupTeacherSalary setUpdateTime(Date updateTime) {
  108. this.updateTime = updateTime;
  109. return this;
  110. }
  111. @Override
  112. protected Serializable pkVal() {
  113. return this.id;
  114. }
  115. @Override
  116. public String toString() {
  117. return "ClassGroupTeacherSalary{" +
  118. ", id=" + id +
  119. ", musicGroupId=" + musicGroupId +
  120. ", classGroupId=" + classGroupId +
  121. ", teacherRole=" + teacherRole +
  122. ", userId=" + userId +
  123. ", duration=" + duration +
  124. ", salary=" + salary +
  125. ", createTime=" + createTime +
  126. ", updateTime=" + updateTime +
  127. "}";
  128. }
  129. }