班级管理

This commit is contained in:
wuchunlei
2024-07-26 17:50:42 +08:00
parent 01c3c49747
commit 8503e4dfb4
14 changed files with 286 additions and 54 deletions

View File

@@ -12,7 +12,7 @@ public class ClassCourse {
@TableId
private Integer id;
private Integer classId;
private Integer modelId;
private Integer courseId;

View File

@@ -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;
@@ -13,6 +14,8 @@ public class ClassEntity {
@TableId
private Integer id;
private Integer modelId;
private String title;
//小班状态 0待开班1进行中2完成
@@ -22,15 +25,18 @@ public class ClassEntity {
private String content;
private Integer create_user;
private Integer createUserid;
private Date createTime;
private Date start_time;
private Date startTime;
private Date end_time;
private Date endTime;
@TableLogic
private Integer delFlag;
@TableField(exist = false)
private Object createUser;
}

View File

@@ -0,0 +1,37 @@
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;
import lombok.Data;
import java.util.List;
@Data
@TableName("class_model")
public class ClassModel {
@TableId
private Integer id;
private String title;
private Integer directorId;
private Integer ddirectorId;
private String type;//班类型 0小班 1联合班 2精英班
@TableLogic
private Integer delFlag;
@TableField(exist = false)
private Object director;
@TableField(exist = false)
private Object ddirector;
@TableField(exist = false)
private String courseIds;
@TableField(exist = false)
private List<CourseEntity> courseList;
}

View File

@@ -21,10 +21,6 @@ public class CourseEntity {
private String title;
private Integer director;
private Integer ddirector;
private Integer sort;
private String image;