小班相关
This commit is contained in:
@@ -6,6 +6,8 @@ import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Data
|
||||
@TableName("class")
|
||||
@@ -25,6 +27,8 @@ public class ClassEntity {
|
||||
|
||||
private String content;
|
||||
|
||||
private Integer number; //成员数量
|
||||
|
||||
private Integer createUserid;
|
||||
|
||||
private Date createTime;
|
||||
@@ -38,5 +42,12 @@ public class ClassEntity {
|
||||
|
||||
@TableField(exist = false)
|
||||
private Object createUser;
|
||||
@TableField(exist = false)
|
||||
private String type;
|
||||
@TableField(exist = false)
|
||||
private ClassModel classModel;
|
||||
@TableField(exist = false)
|
||||
private List<Map<String,Object>> classUsers;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.peanut.modules.common.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
@@ -16,8 +17,11 @@ public class ClassUser {
|
||||
|
||||
private Integer userId;
|
||||
|
||||
private String role;
|
||||
private String role;//角色0学员1班长2副班长3学习委员4评分员5记分员
|
||||
|
||||
@TableLogic
|
||||
private Integer delFlag;
|
||||
|
||||
@TableField(exist = false)
|
||||
private MyUserEntity user;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user