LIVE_YE 2 gadi atpakaļ
vecāks
revīzija
9737a64397

+ 104 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/course/CourseTableController.java

@@ -0,0 +1,104 @@
+package com.ruoyi.web.controller.course;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.ruoyi.common.annotation.Log;
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.system.domain.CourseTable;
+import com.ruoyi.system.service.ICourseTableService;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 课程Controller
+ * 
+ * @author ruoyi
+ * @date 2023-05-24
+ */
+@RestController
+@RequestMapping("/course/table")
+public class CourseTableController extends BaseController
+{
+    @Autowired
+    private ICourseTableService courseTableService;
+
+    /**
+     * 查询课程列表
+     */
+    @PreAuthorize("@ss.hasPermi('course:table:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(CourseTable courseTable)
+    {
+        startPage();
+        List<CourseTable> list = courseTableService.selectCourseTableList(courseTable);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出课程列表
+     */
+    @PreAuthorize("@ss.hasPermi('course:table:export')")
+    @Log(title = "课程", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, CourseTable courseTable)
+    {
+        List<CourseTable> list = courseTableService.selectCourseTableList(courseTable);
+        ExcelUtil<CourseTable> util = new ExcelUtil<CourseTable>(CourseTable.class);
+        util.exportExcel(response, list, "课程数据");
+    }
+
+    /**
+     * 获取课程详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('course:table:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(courseTableService.selectCourseTableById(id));
+    }
+
+    /**
+     * 新增课程
+     */
+    @PreAuthorize("@ss.hasPermi('course:table:add')")
+    @Log(title = "课程", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody CourseTable courseTable)
+    {
+        return toAjax(courseTableService.insertCourseTable(courseTable));
+    }
+
+    /**
+     * 修改课程
+     */
+    @PreAuthorize("@ss.hasPermi('course:table:edit')")
+    @Log(title = "课程", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody CourseTable courseTable)
+    {
+        return toAjax(courseTableService.updateCourseTable(courseTable));
+    }
+
+    /**
+     * 删除课程
+     */
+    @PreAuthorize("@ss.hasPermi('course:table:remove')")
+    @Log(title = "课程", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(courseTableService.deleteCourseTableByIds(ids));
+    }
+}

+ 104 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/course/CourseTableTimeController.java

@@ -0,0 +1,104 @@
+package com.ruoyi.web.controller.course;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.ruoyi.common.annotation.Log;
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.system.domain.CourseTableTime;
+import com.ruoyi.system.service.ICourseTableTimeService;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 课程-时间Controller
+ * 
+ * @author ruoyi
+ * @date 2023-05-24
+ */
+@RestController
+@RequestMapping("/course/time")
+public class CourseTableTimeController extends BaseController
+{
+    @Autowired
+    private ICourseTableTimeService courseTableTimeService;
+
+    /**
+     * 查询课程-时间列表
+     */
+    @PreAuthorize("@ss.hasPermi('course:time:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(CourseTableTime courseTableTime)
+    {
+        startPage();
+        List<CourseTableTime> list = courseTableTimeService.selectCourseTableTimeList(courseTableTime);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出课程-时间列表
+     */
+    @PreAuthorize("@ss.hasPermi('course:time:export')")
+    @Log(title = "课程-时间", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, CourseTableTime courseTableTime)
+    {
+        List<CourseTableTime> list = courseTableTimeService.selectCourseTableTimeList(courseTableTime);
+        ExcelUtil<CourseTableTime> util = new ExcelUtil<CourseTableTime>(CourseTableTime.class);
+        util.exportExcel(response, list, "课程-时间数据");
+    }
+
+    /**
+     * 获取课程-时间详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('course:time:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(courseTableTimeService.selectCourseTableTimeById(id));
+    }
+
+    /**
+     * 新增课程-时间
+     */
+    @PreAuthorize("@ss.hasPermi('course:time:add')")
+    @Log(title = "课程-时间", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody CourseTableTime courseTableTime)
+    {
+        return toAjax(courseTableTimeService.insertCourseTableTime(courseTableTime));
+    }
+
+    /**
+     * 修改课程-时间
+     */
+    @PreAuthorize("@ss.hasPermi('course:time:edit')")
+    @Log(title = "课程-时间", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody CourseTableTime courseTableTime)
+    {
+        return toAjax(courseTableTimeService.updateCourseTableTime(courseTableTime));
+    }
+
+    /**
+     * 删除课程-时间
+     */
+    @PreAuthorize("@ss.hasPermi('course:time:remove')")
+    @Log(title = "课程-时间", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(courseTableTimeService.deleteCourseTableTimeByIds(ids));
+    }
+}

+ 334 - 0
ruoyi-system/src/main/java/com/ruoyi/system/domain/CourseTable.java

@@ -0,0 +1,334 @@
+package com.ruoyi.system.domain;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.ruoyi.common.annotation.Excel;
+import com.ruoyi.common.core.domain.BaseEntity;
+
+/**
+ * 课程对象 course_table
+ * 
+ * @author ruoyi
+ * @date 2023-05-24
+ */
+public class CourseTable extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** ID */
+    private Long id;
+
+    /** 学校id */
+    private String schoolId;
+
+    /** 学校名称 */
+    @Excel(name = "学校名称")
+    private String schoolName;
+
+    /** 班级id */
+    private String classId;
+
+    /** 班级名称 */
+    @Excel(name = "班级名称")
+    private String className;
+
+    /** 周几:1:周一,2:周二,3:周三,4:周四,5:周五 */
+    @Excel(name = "周几:1:周一,2:周二,3:周三,4:周四,5:周五")
+    private String week;
+
+    /** 第一节课 */
+    @Excel(name = "第一节课")
+    private String oneClass;
+
+    /** 第一节课老师 */
+    @Excel(name = "第一节课老师")
+    private String oneTeacher;
+
+    /** 第二节课 */
+    @Excel(name = "第二节课")
+    private String twoClass;
+
+    /** 第二节课老师 */
+    @Excel(name = "第二节课老师")
+    private String twoTeacher;
+
+    /** 第三节课 */
+    @Excel(name = "第三节课")
+    private String threeClass;
+
+    /** 第三节课老师 */
+    @Excel(name = "第三节课老师")
+    private String threeTeacher;
+
+    /** 第四节课 */
+    @Excel(name = "第四节课")
+    private String fourClass;
+
+    /** 第四节课老师 */
+    @Excel(name = "第四节课老师")
+    private String fourTeacher;
+
+    /** 第五节课 */
+    @Excel(name = "第五节课")
+    private String fiveClass;
+
+    /** 第五节课老师 */
+    @Excel(name = "第五节课老师")
+    private String fiveTeacher;
+
+    /** 第六节课 */
+    @Excel(name = "第六节课")
+    private String sixClass;
+
+    /** 第六节课老师 */
+    @Excel(name = "第六节课老师")
+    private String sixTeacher;
+
+    /** 第七节课 */
+    @Excel(name = "第七节课")
+    private String sevenClass;
+
+    /** 第七节课老师 */
+    @Excel(name = "第七节课老师")
+    private String sevenTeacher;
+
+    /** 第八节课 */
+    @Excel(name = "第八节课")
+    private String eightClass;
+
+    /** 第八节课老师 */
+    @Excel(name = "第八节课老师")
+    private String eightTeacher;
+
+    public void setId(Long id) 
+    {
+        this.id = id;
+    }
+
+    public Long getId() 
+    {
+        return id;
+    }
+    public void setSchoolId(String schoolId) 
+    {
+        this.schoolId = schoolId;
+    }
+
+    public String getSchoolId() 
+    {
+        return schoolId;
+    }
+    public void setSchoolName(String schoolName) 
+    {
+        this.schoolName = schoolName;
+    }
+
+    public String getSchoolName() 
+    {
+        return schoolName;
+    }
+    public void setClassId(String classId) 
+    {
+        this.classId = classId;
+    }
+
+    public String getClassId() 
+    {
+        return classId;
+    }
+    public void setClassName(String className) 
+    {
+        this.className = className;
+    }
+
+    public String getClassName() 
+    {
+        return className;
+    }
+    public void setWeek(String week) 
+    {
+        this.week = week;
+    }
+
+    public String getWeek() 
+    {
+        return week;
+    }
+    public void setOneClass(String oneClass) 
+    {
+        this.oneClass = oneClass;
+    }
+
+    public String getOneClass() 
+    {
+        return oneClass;
+    }
+    public void setOneTeacher(String oneTeacher) 
+    {
+        this.oneTeacher = oneTeacher;
+    }
+
+    public String getOneTeacher() 
+    {
+        return oneTeacher;
+    }
+    public void setTwoClass(String twoClass) 
+    {
+        this.twoClass = twoClass;
+    }
+
+    public String getTwoClass() 
+    {
+        return twoClass;
+    }
+    public void setTwoTeacher(String twoTeacher) 
+    {
+        this.twoTeacher = twoTeacher;
+    }
+
+    public String getTwoTeacher() 
+    {
+        return twoTeacher;
+    }
+    public void setThreeClass(String threeClass) 
+    {
+        this.threeClass = threeClass;
+    }
+
+    public String getThreeClass() 
+    {
+        return threeClass;
+    }
+    public void setThreeTeacher(String threeTeacher) 
+    {
+        this.threeTeacher = threeTeacher;
+    }
+
+    public String getThreeTeacher() 
+    {
+        return threeTeacher;
+    }
+    public void setFourClass(String fourClass) 
+    {
+        this.fourClass = fourClass;
+    }
+
+    public String getFourClass() 
+    {
+        return fourClass;
+    }
+    public void setFourTeacher(String fourTeacher) 
+    {
+        this.fourTeacher = fourTeacher;
+    }
+
+    public String getFourTeacher() 
+    {
+        return fourTeacher;
+    }
+    public void setFiveClass(String fiveClass) 
+    {
+        this.fiveClass = fiveClass;
+    }
+
+    public String getFiveClass() 
+    {
+        return fiveClass;
+    }
+    public void setFiveTeacher(String fiveTeacher) 
+    {
+        this.fiveTeacher = fiveTeacher;
+    }
+
+    public String getFiveTeacher() 
+    {
+        return fiveTeacher;
+    }
+    public void setSixClass(String sixClass) 
+    {
+        this.sixClass = sixClass;
+    }
+
+    public String getSixClass() 
+    {
+        return sixClass;
+    }
+    public void setSixTeacher(String sixTeacher) 
+    {
+        this.sixTeacher = sixTeacher;
+    }
+
+    public String getSixTeacher() 
+    {
+        return sixTeacher;
+    }
+    public void setSevenClass(String sevenClass) 
+    {
+        this.sevenClass = sevenClass;
+    }
+
+    public String getSevenClass() 
+    {
+        return sevenClass;
+    }
+    public void setSevenTeacher(String sevenTeacher) 
+    {
+        this.sevenTeacher = sevenTeacher;
+    }
+
+    public String getSevenTeacher() 
+    {
+        return sevenTeacher;
+    }
+    public void setEightClass(String eightClass) 
+    {
+        this.eightClass = eightClass;
+    }
+
+    public String getEightClass() 
+    {
+        return eightClass;
+    }
+    public void setEightTeacher(String eightTeacher) 
+    {
+        this.eightTeacher = eightTeacher;
+    }
+
+    public String getEightTeacher() 
+    {
+        return eightTeacher;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("schoolId", getSchoolId())
+            .append("schoolName", getSchoolName())
+            .append("classId", getClassId())
+            .append("className", getClassName())
+            .append("week", getWeek())
+            .append("oneClass", getOneClass())
+            .append("oneTeacher", getOneTeacher())
+            .append("twoClass", getTwoClass())
+            .append("twoTeacher", getTwoTeacher())
+            .append("threeClass", getThreeClass())
+            .append("threeTeacher", getThreeTeacher())
+            .append("fourClass", getFourClass())
+            .append("fourTeacher", getFourTeacher())
+            .append("fiveClass", getFiveClass())
+            .append("fiveTeacher", getFiveTeacher())
+            .append("sixClass", getSixClass())
+            .append("sixTeacher", getSixTeacher())
+            .append("sevenClass", getSevenClass())
+            .append("sevenTeacher", getSevenTeacher())
+            .append("eightClass", getEightClass())
+            .append("eightTeacher", getEightTeacher())
+            .append("createBy", getCreateBy())
+            .append("createTime", getCreateTime())
+            .append("updateBy", getUpdateBy())
+            .append("updateTime", getUpdateTime())
+            .append("remark", getRemark())
+            .toString();
+    }
+}

+ 293 - 0
ruoyi-system/src/main/java/com/ruoyi/system/domain/CourseTableTime.java

@@ -0,0 +1,293 @@
+package com.ruoyi.system.domain;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.ruoyi.common.annotation.Excel;
+import com.ruoyi.common.core.domain.BaseEntity;
+
+/**
+ * 课程-时间对象 course_table_time
+ * 
+ * @author ruoyi
+ * @date 2023-05-24
+ */
+public class CourseTableTime extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** ID */
+    private Long id;
+
+    /** 学校id */
+    private String schoolId;
+
+    /** 学校名称 */
+    @Excel(name = "学校名称")
+    private String schoolName;
+
+    /** 第一节课开始时间 */
+    @Excel(name = "第一节课开始时间")
+    private String oneStartTime;
+
+    /** 第一节课结束时间 */
+    @Excel(name = "第一节课结束时间")
+    private String oneEndTime;
+
+    /** 第二节课开始时间 */
+    @Excel(name = "第二节课开始时间")
+    private String twoStartTime;
+
+    /** 第二节课结束时间 */
+    @Excel(name = "第二节课结束时间")
+    private String twoEndTime;
+
+    /** 第三节课开始时间 */
+    @Excel(name = "第三节课开始时间")
+    private String threeStartTime;
+
+    /** 第三节课结束时间 */
+    @Excel(name = "第三节课结束时间")
+    private String threeEndTime;
+
+    /** 第四节课开始时间 */
+    @Excel(name = "第四节课开始时间")
+    private String fourStartTime;
+
+    /** 第四节课结束时间 */
+    @Excel(name = "第四节课结束时间")
+    private String fourEndTime;
+
+    /** 第五节课开始时间 */
+    @Excel(name = "第五节课开始时间")
+    private String fiveStartTime;
+
+    /** 第五节课结束时间 */
+    @Excel(name = "第五节课结束时间")
+    private String fiveEndTime;
+
+    /** 第六节课开始时间 */
+    @Excel(name = "第六节课开始时间")
+    private String sixStartTime;
+
+    /** 第六节课结束时间 */
+    @Excel(name = "第六节课结束时间")
+    private String sixEndTime;
+
+    /** 第七节课开始时间 */
+    @Excel(name = "第七节课开始时间")
+    private String sevenStartTime;
+
+    /** 第七节课结束时间 */
+    @Excel(name = "第七节课结束时间")
+    private String sevenEndTime;
+
+    /** 第八节课开始时间 */
+    @Excel(name = "第八节课开始时间")
+    private String eightStartTime;
+
+    /** 第八节课结束时间 */
+    @Excel(name = "第八节课结束时间")
+    private String eightEndTime;
+
+    public void setId(Long id) 
+    {
+        this.id = id;
+    }
+
+    public Long getId() 
+    {
+        return id;
+    }
+    public void setSchoolId(String schoolId) 
+    {
+        this.schoolId = schoolId;
+    }
+
+    public String getSchoolId() 
+    {
+        return schoolId;
+    }
+    public void setSchoolName(String schoolName) 
+    {
+        this.schoolName = schoolName;
+    }
+
+    public String getSchoolName() 
+    {
+        return schoolName;
+    }
+    public void setOneStartTime(String oneStartTime) 
+    {
+        this.oneStartTime = oneStartTime;
+    }
+
+    public String getOneStartTime() 
+    {
+        return oneStartTime;
+    }
+    public void setOneEndTime(String oneEndTime) 
+    {
+        this.oneEndTime = oneEndTime;
+    }
+
+    public String getOneEndTime() 
+    {
+        return oneEndTime;
+    }
+    public void setTwoStartTime(String twoStartTime) 
+    {
+        this.twoStartTime = twoStartTime;
+    }
+
+    public String getTwoStartTime() 
+    {
+        return twoStartTime;
+    }
+    public void setTwoEndTime(String twoEndTime) 
+    {
+        this.twoEndTime = twoEndTime;
+    }
+
+    public String getTwoEndTime() 
+    {
+        return twoEndTime;
+    }
+    public void setThreeStartTime(String threeStartTime) 
+    {
+        this.threeStartTime = threeStartTime;
+    }
+
+    public String getThreeStartTime() 
+    {
+        return threeStartTime;
+    }
+    public void setThreeEndTime(String threeEndTime) 
+    {
+        this.threeEndTime = threeEndTime;
+    }
+
+    public String getThreeEndTime() 
+    {
+        return threeEndTime;
+    }
+    public void setFourStartTime(String fourStartTime) 
+    {
+        this.fourStartTime = fourStartTime;
+    }
+
+    public String getFourStartTime() 
+    {
+        return fourStartTime;
+    }
+    public void setFourEndTime(String fourEndTime) 
+    {
+        this.fourEndTime = fourEndTime;
+    }
+
+    public String getFourEndTime() 
+    {
+        return fourEndTime;
+    }
+    public void setFiveStartTime(String fiveStartTime) 
+    {
+        this.fiveStartTime = fiveStartTime;
+    }
+
+    public String getFiveStartTime() 
+    {
+        return fiveStartTime;
+    }
+    public void setFiveEndTime(String fiveEndTime) 
+    {
+        this.fiveEndTime = fiveEndTime;
+    }
+
+    public String getFiveEndTime() 
+    {
+        return fiveEndTime;
+    }
+    public void setSixStartTime(String sixStartTime) 
+    {
+        this.sixStartTime = sixStartTime;
+    }
+
+    public String getSixStartTime() 
+    {
+        return sixStartTime;
+    }
+    public void setSixEndTime(String sixEndTime) 
+    {
+        this.sixEndTime = sixEndTime;
+    }
+
+    public String getSixEndTime() 
+    {
+        return sixEndTime;
+    }
+    public void setSevenStartTime(String sevenStartTime) 
+    {
+        this.sevenStartTime = sevenStartTime;
+    }
+
+    public String getSevenStartTime() 
+    {
+        return sevenStartTime;
+    }
+    public void setSevenEndTime(String sevenEndTime) 
+    {
+        this.sevenEndTime = sevenEndTime;
+    }
+
+    public String getSevenEndTime() 
+    {
+        return sevenEndTime;
+    }
+    public void setEightStartTime(String eightStartTime) 
+    {
+        this.eightStartTime = eightStartTime;
+    }
+
+    public String getEightStartTime() 
+    {
+        return eightStartTime;
+    }
+    public void setEightEndTime(String eightEndTime) 
+    {
+        this.eightEndTime = eightEndTime;
+    }
+
+    public String getEightEndTime() 
+    {
+        return eightEndTime;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("schoolId", getSchoolId())
+            .append("schoolName", getSchoolName())
+            .append("oneStartTime", getOneStartTime())
+            .append("oneEndTime", getOneEndTime())
+            .append("twoStartTime", getTwoStartTime())
+            .append("twoEndTime", getTwoEndTime())
+            .append("threeStartTime", getThreeStartTime())
+            .append("threeEndTime", getThreeEndTime())
+            .append("fourStartTime", getFourStartTime())
+            .append("fourEndTime", getFourEndTime())
+            .append("fiveStartTime", getFiveStartTime())
+            .append("fiveEndTime", getFiveEndTime())
+            .append("sixStartTime", getSixStartTime())
+            .append("sixEndTime", getSixEndTime())
+            .append("sevenStartTime", getSevenStartTime())
+            .append("sevenEndTime", getSevenEndTime())
+            .append("eightStartTime", getEightStartTime())
+            .append("eightEndTime", getEightEndTime())
+            .append("createBy", getCreateBy())
+            .append("createTime", getCreateTime())
+            .append("updateBy", getUpdateBy())
+            .append("updateTime", getUpdateTime())
+            .append("remark", getRemark())
+            .toString();
+    }
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/system/mapper/CourseTableMapper.java

@@ -0,0 +1,61 @@
+package com.ruoyi.system.mapper;
+
+import java.util.List;
+import com.ruoyi.system.domain.CourseTable;
+
+/**
+ * 课程Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2023-05-24
+ */
+public interface CourseTableMapper 
+{
+    /**
+     * 查询课程
+     * 
+     * @param id 课程主键
+     * @return 课程
+     */
+    public CourseTable selectCourseTableById(Long id);
+
+    /**
+     * 查询课程列表
+     * 
+     * @param courseTable 课程
+     * @return 课程集合
+     */
+    public List<CourseTable> selectCourseTableList(CourseTable courseTable);
+
+    /**
+     * 新增课程
+     * 
+     * @param courseTable 课程
+     * @return 结果
+     */
+    public int insertCourseTable(CourseTable courseTable);
+
+    /**
+     * 修改课程
+     * 
+     * @param courseTable 课程
+     * @return 结果
+     */
+    public int updateCourseTable(CourseTable courseTable);
+
+    /**
+     * 删除课程
+     * 
+     * @param id 课程主键
+     * @return 结果
+     */
+    public int deleteCourseTableById(Long id);
+
+    /**
+     * 批量删除课程
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteCourseTableByIds(Long[] ids);
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/system/mapper/CourseTableTimeMapper.java

@@ -0,0 +1,61 @@
+package com.ruoyi.system.mapper;
+
+import java.util.List;
+import com.ruoyi.system.domain.CourseTableTime;
+
+/**
+ * 课程-时间Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2023-05-24
+ */
+public interface CourseTableTimeMapper 
+{
+    /**
+     * 查询课程-时间
+     * 
+     * @param id 课程-时间主键
+     * @return 课程-时间
+     */
+    public CourseTableTime selectCourseTableTimeById(Long id);
+
+    /**
+     * 查询课程-时间列表
+     * 
+     * @param courseTableTime 课程-时间
+     * @return 课程-时间集合
+     */
+    public List<CourseTableTime> selectCourseTableTimeList(CourseTableTime courseTableTime);
+
+    /**
+     * 新增课程-时间
+     * 
+     * @param courseTableTime 课程-时间
+     * @return 结果
+     */
+    public int insertCourseTableTime(CourseTableTime courseTableTime);
+
+    /**
+     * 修改课程-时间
+     * 
+     * @param courseTableTime 课程-时间
+     * @return 结果
+     */
+    public int updateCourseTableTime(CourseTableTime courseTableTime);
+
+    /**
+     * 删除课程-时间
+     * 
+     * @param id 课程-时间主键
+     * @return 结果
+     */
+    public int deleteCourseTableTimeById(Long id);
+
+    /**
+     * 批量删除课程-时间
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteCourseTableTimeByIds(Long[] ids);
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/ICourseTableService.java

@@ -0,0 +1,61 @@
+package com.ruoyi.system.service;
+
+import java.util.List;
+import com.ruoyi.system.domain.CourseTable;
+
+/**
+ * 课程Service接口
+ * 
+ * @author ruoyi
+ * @date 2023-05-24
+ */
+public interface ICourseTableService 
+{
+    /**
+     * 查询课程
+     * 
+     * @param id 课程主键
+     * @return 课程
+     */
+    public CourseTable selectCourseTableById(Long id);
+
+    /**
+     * 查询课程列表
+     * 
+     * @param courseTable 课程
+     * @return 课程集合
+     */
+    public List<CourseTable> selectCourseTableList(CourseTable courseTable);
+
+    /**
+     * 新增课程
+     * 
+     * @param courseTable 课程
+     * @return 结果
+     */
+    public int insertCourseTable(CourseTable courseTable);
+
+    /**
+     * 修改课程
+     * 
+     * @param courseTable 课程
+     * @return 结果
+     */
+    public int updateCourseTable(CourseTable courseTable);
+
+    /**
+     * 批量删除课程
+     * 
+     * @param ids 需要删除的课程主键集合
+     * @return 结果
+     */
+    public int deleteCourseTableByIds(Long[] ids);
+
+    /**
+     * 删除课程信息
+     * 
+     * @param id 课程主键
+     * @return 结果
+     */
+    public int deleteCourseTableById(Long id);
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/ICourseTableTimeService.java

@@ -0,0 +1,61 @@
+package com.ruoyi.system.service;
+
+import java.util.List;
+import com.ruoyi.system.domain.CourseTableTime;
+
+/**
+ * 课程-时间Service接口
+ * 
+ * @author ruoyi
+ * @date 2023-05-24
+ */
+public interface ICourseTableTimeService 
+{
+    /**
+     * 查询课程-时间
+     * 
+     * @param id 课程-时间主键
+     * @return 课程-时间
+     */
+    public CourseTableTime selectCourseTableTimeById(Long id);
+
+    /**
+     * 查询课程-时间列表
+     * 
+     * @param courseTableTime 课程-时间
+     * @return 课程-时间集合
+     */
+    public List<CourseTableTime> selectCourseTableTimeList(CourseTableTime courseTableTime);
+
+    /**
+     * 新增课程-时间
+     * 
+     * @param courseTableTime 课程-时间
+     * @return 结果
+     */
+    public int insertCourseTableTime(CourseTableTime courseTableTime);
+
+    /**
+     * 修改课程-时间
+     * 
+     * @param courseTableTime 课程-时间
+     * @return 结果
+     */
+    public int updateCourseTableTime(CourseTableTime courseTableTime);
+
+    /**
+     * 批量删除课程-时间
+     * 
+     * @param ids 需要删除的课程-时间主键集合
+     * @return 结果
+     */
+    public int deleteCourseTableTimeByIds(Long[] ids);
+
+    /**
+     * 删除课程-时间信息
+     * 
+     * @param id 课程-时间主键
+     * @return 结果
+     */
+    public int deleteCourseTableTimeById(Long id);
+}

+ 96 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/CourseTableServiceImpl.java

@@ -0,0 +1,96 @@
+package com.ruoyi.system.service.impl;
+
+import java.util.List;
+import com.ruoyi.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.ruoyi.system.mapper.CourseTableMapper;
+import com.ruoyi.system.domain.CourseTable;
+import com.ruoyi.system.service.ICourseTableService;
+
+/**
+ * 课程Service业务层处理
+ * 
+ * @author ruoyi
+ * @date 2023-05-24
+ */
+@Service
+public class CourseTableServiceImpl implements ICourseTableService 
+{
+    @Autowired
+    private CourseTableMapper courseTableMapper;
+
+    /**
+     * 查询课程
+     * 
+     * @param id 课程主键
+     * @return 课程
+     */
+    @Override
+    public CourseTable selectCourseTableById(Long id)
+    {
+        return courseTableMapper.selectCourseTableById(id);
+    }
+
+    /**
+     * 查询课程列表
+     * 
+     * @param courseTable 课程
+     * @return 课程
+     */
+    @Override
+    public List<CourseTable> selectCourseTableList(CourseTable courseTable)
+    {
+        return courseTableMapper.selectCourseTableList(courseTable);
+    }
+
+    /**
+     * 新增课程
+     * 
+     * @param courseTable 课程
+     * @return 结果
+     */
+    @Override
+    public int insertCourseTable(CourseTable courseTable)
+    {
+        courseTable.setCreateTime(DateUtils.getNowDate());
+        return courseTableMapper.insertCourseTable(courseTable);
+    }
+
+    /**
+     * 修改课程
+     * 
+     * @param courseTable 课程
+     * @return 结果
+     */
+    @Override
+    public int updateCourseTable(CourseTable courseTable)
+    {
+        courseTable.setUpdateTime(DateUtils.getNowDate());
+        return courseTableMapper.updateCourseTable(courseTable);
+    }
+
+    /**
+     * 批量删除课程
+     * 
+     * @param ids 需要删除的课程主键
+     * @return 结果
+     */
+    @Override
+    public int deleteCourseTableByIds(Long[] ids)
+    {
+        return courseTableMapper.deleteCourseTableByIds(ids);
+    }
+
+    /**
+     * 删除课程信息
+     * 
+     * @param id 课程主键
+     * @return 结果
+     */
+    @Override
+    public int deleteCourseTableById(Long id)
+    {
+        return courseTableMapper.deleteCourseTableById(id);
+    }
+}

+ 96 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/CourseTableTimeServiceImpl.java

@@ -0,0 +1,96 @@
+package com.ruoyi.system.service.impl;
+
+import java.util.List;
+import com.ruoyi.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.ruoyi.system.mapper.CourseTableTimeMapper;
+import com.ruoyi.system.domain.CourseTableTime;
+import com.ruoyi.system.service.ICourseTableTimeService;
+
+/**
+ * 课程-时间Service业务层处理
+ * 
+ * @author ruoyi
+ * @date 2023-05-24
+ */
+@Service
+public class CourseTableTimeServiceImpl implements ICourseTableTimeService 
+{
+    @Autowired
+    private CourseTableTimeMapper courseTableTimeMapper;
+
+    /**
+     * 查询课程-时间
+     * 
+     * @param id 课程-时间主键
+     * @return 课程-时间
+     */
+    @Override
+    public CourseTableTime selectCourseTableTimeById(Long id)
+    {
+        return courseTableTimeMapper.selectCourseTableTimeById(id);
+    }
+
+    /**
+     * 查询课程-时间列表
+     * 
+     * @param courseTableTime 课程-时间
+     * @return 课程-时间
+     */
+    @Override
+    public List<CourseTableTime> selectCourseTableTimeList(CourseTableTime courseTableTime)
+    {
+        return courseTableTimeMapper.selectCourseTableTimeList(courseTableTime);
+    }
+
+    /**
+     * 新增课程-时间
+     * 
+     * @param courseTableTime 课程-时间
+     * @return 结果
+     */
+    @Override
+    public int insertCourseTableTime(CourseTableTime courseTableTime)
+    {
+        courseTableTime.setCreateTime(DateUtils.getNowDate());
+        return courseTableTimeMapper.insertCourseTableTime(courseTableTime);
+    }
+
+    /**
+     * 修改课程-时间
+     * 
+     * @param courseTableTime 课程-时间
+     * @return 结果
+     */
+    @Override
+    public int updateCourseTableTime(CourseTableTime courseTableTime)
+    {
+        courseTableTime.setUpdateTime(DateUtils.getNowDate());
+        return courseTableTimeMapper.updateCourseTableTime(courseTableTime);
+    }
+
+    /**
+     * 批量删除课程-时间
+     * 
+     * @param ids 需要删除的课程-时间主键
+     * @return 结果
+     */
+    @Override
+    public int deleteCourseTableTimeByIds(Long[] ids)
+    {
+        return courseTableTimeMapper.deleteCourseTableTimeByIds(ids);
+    }
+
+    /**
+     * 删除课程-时间信息
+     * 
+     * @param id 课程-时间主键
+     * @return 结果
+     */
+    @Override
+    public int deleteCourseTableTimeById(Long id)
+    {
+        return courseTableTimeMapper.deleteCourseTableTimeById(id);
+    }
+}

+ 174 - 0
ruoyi-system/src/main/resources/mapper/system/CourseTableMapper.xml

@@ -0,0 +1,174 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ruoyi.system.mapper.CourseTableMapper">
+    
+    <resultMap type="CourseTable" id="CourseTableResult">
+        <result property="id"    column="id"    />
+        <result property="schoolId"    column="school_id"    />
+        <result property="schoolName"    column="school_name"    />
+        <result property="classId"    column="class_id"    />
+        <result property="className"    column="class_name"    />
+        <result property="week"    column="week"    />
+        <result property="oneClass"    column="one_class"    />
+        <result property="oneTeacher"    column="one_teacher"    />
+        <result property="twoClass"    column="two_class"    />
+        <result property="twoTeacher"    column="two_teacher"    />
+        <result property="threeClass"    column="three_class"    />
+        <result property="threeTeacher"    column="three_teacher"    />
+        <result property="fourClass"    column="four_class"    />
+        <result property="fourTeacher"    column="four_teacher"    />
+        <result property="fiveClass"    column="five_class"    />
+        <result property="fiveTeacher"    column="five_teacher"    />
+        <result property="sixClass"    column="six_class"    />
+        <result property="sixTeacher"    column="six_teacher"    />
+        <result property="sevenClass"    column="seven_class"    />
+        <result property="sevenTeacher"    column="seven_teacher"    />
+        <result property="eightClass"    column="eight_class"    />
+        <result property="eightTeacher"    column="eight_teacher"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="remark"    column="remark"    />
+    </resultMap>
+
+    <sql id="selectCourseTableVo">
+        select id, school_id, school_name, class_id, class_name, week, one_class, one_teacher, two_class, two_teacher, three_class, three_teacher, four_class, four_teacher, five_class, five_teacher, six_class, six_teacher, seven_class, seven_teacher, eight_class, eight_teacher, create_by, create_time, update_by, update_time, remark from course_table
+    </sql>
+
+    <select id="selectCourseTableList" parameterType="CourseTable" resultMap="CourseTableResult">
+        <include refid="selectCourseTableVo"/>
+        <where>  
+            <if test="schoolName != null  and schoolName != ''"> and school_name like concat('%', #{schoolName}, '%')</if>
+            <if test="className != null  and className != ''"> and class_name like concat('%', #{className}, '%')</if>
+            <if test="week != null  and week != ''"> and week = #{week}</if>
+            <if test="oneClass != null  and oneClass != ''"> and one_class = #{oneClass}</if>
+            <if test="oneTeacher != null  and oneTeacher != ''"> and one_teacher = #{oneTeacher}</if>
+            <if test="twoClass != null  and twoClass != ''"> and two_class = #{twoClass}</if>
+            <if test="twoTeacher != null  and twoTeacher != ''"> and two_teacher = #{twoTeacher}</if>
+            <if test="threeClass != null  and threeClass != ''"> and three_class = #{threeClass}</if>
+            <if test="threeTeacher != null  and threeTeacher != ''"> and three_teacher = #{threeTeacher}</if>
+            <if test="fourClass != null  and fourClass != ''"> and four_class = #{fourClass}</if>
+            <if test="fourTeacher != null  and fourTeacher != ''"> and four_teacher = #{fourTeacher}</if>
+            <if test="fiveClass != null  and fiveClass != ''"> and five_class = #{fiveClass}</if>
+            <if test="fiveTeacher != null  and fiveTeacher != ''"> and five_teacher = #{fiveTeacher}</if>
+            <if test="sixClass != null  and sixClass != ''"> and six_class = #{sixClass}</if>
+            <if test="sixTeacher != null  and sixTeacher != ''"> and six_teacher = #{sixTeacher}</if>
+            <if test="sevenClass != null  and sevenClass != ''"> and seven_class = #{sevenClass}</if>
+            <if test="sevenTeacher != null  and sevenTeacher != ''"> and seven_teacher = #{sevenTeacher}</if>
+            <if test="eightClass != null  and eightClass != ''"> and eight_class = #{eightClass}</if>
+            <if test="eightTeacher != null  and eightTeacher != ''"> and eight_teacher = #{eightTeacher}</if>
+        </where>
+    </select>
+    
+    <select id="selectCourseTableById" parameterType="Long" resultMap="CourseTableResult">
+        <include refid="selectCourseTableVo"/>
+        where id = #{id}
+    </select>
+        
+    <insert id="insertCourseTable" parameterType="CourseTable" useGeneratedKeys="true" keyProperty="id">
+        insert into course_table
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="schoolId != null">school_id,</if>
+            <if test="schoolName != null">school_name,</if>
+            <if test="classId != null">class_id,</if>
+            <if test="className != null">class_name,</if>
+            <if test="week != null">week,</if>
+            <if test="oneClass != null">one_class,</if>
+            <if test="oneTeacher != null">one_teacher,</if>
+            <if test="twoClass != null">two_class,</if>
+            <if test="twoTeacher != null">two_teacher,</if>
+            <if test="threeClass != null">three_class,</if>
+            <if test="threeTeacher != null">three_teacher,</if>
+            <if test="fourClass != null">four_class,</if>
+            <if test="fourTeacher != null">four_teacher,</if>
+            <if test="fiveClass != null">five_class,</if>
+            <if test="fiveTeacher != null">five_teacher,</if>
+            <if test="sixClass != null">six_class,</if>
+            <if test="sixTeacher != null">six_teacher,</if>
+            <if test="sevenClass != null">seven_class,</if>
+            <if test="sevenTeacher != null">seven_teacher,</if>
+            <if test="eightClass != null">eight_class,</if>
+            <if test="eightTeacher != null">eight_teacher,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="remark != null">remark,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="schoolId != null">#{schoolId},</if>
+            <if test="schoolName != null">#{schoolName},</if>
+            <if test="classId != null">#{classId},</if>
+            <if test="className != null">#{className},</if>
+            <if test="week != null">#{week},</if>
+            <if test="oneClass != null">#{oneClass},</if>
+            <if test="oneTeacher != null">#{oneTeacher},</if>
+            <if test="twoClass != null">#{twoClass},</if>
+            <if test="twoTeacher != null">#{twoTeacher},</if>
+            <if test="threeClass != null">#{threeClass},</if>
+            <if test="threeTeacher != null">#{threeTeacher},</if>
+            <if test="fourClass != null">#{fourClass},</if>
+            <if test="fourTeacher != null">#{fourTeacher},</if>
+            <if test="fiveClass != null">#{fiveClass},</if>
+            <if test="fiveTeacher != null">#{fiveTeacher},</if>
+            <if test="sixClass != null">#{sixClass},</if>
+            <if test="sixTeacher != null">#{sixTeacher},</if>
+            <if test="sevenClass != null">#{sevenClass},</if>
+            <if test="sevenTeacher != null">#{sevenTeacher},</if>
+            <if test="eightClass != null">#{eightClass},</if>
+            <if test="eightTeacher != null">#{eightTeacher},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="remark != null">#{remark},</if>
+         </trim>
+    </insert>
+
+    <update id="updateCourseTable" parameterType="CourseTable">
+        update course_table
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="schoolId != null">school_id = #{schoolId},</if>
+            <if test="schoolName != null">school_name = #{schoolName},</if>
+            <if test="classId != null">class_id = #{classId},</if>
+            <if test="className != null">class_name = #{className},</if>
+            <if test="week != null">week = #{week},</if>
+            <if test="oneClass != null">one_class = #{oneClass},</if>
+            <if test="oneTeacher != null">one_teacher = #{oneTeacher},</if>
+            <if test="twoClass != null">two_class = #{twoClass},</if>
+            <if test="twoTeacher != null">two_teacher = #{twoTeacher},</if>
+            <if test="threeClass != null">three_class = #{threeClass},</if>
+            <if test="threeTeacher != null">three_teacher = #{threeTeacher},</if>
+            <if test="fourClass != null">four_class = #{fourClass},</if>
+            <if test="fourTeacher != null">four_teacher = #{fourTeacher},</if>
+            <if test="fiveClass != null">five_class = #{fiveClass},</if>
+            <if test="fiveTeacher != null">five_teacher = #{fiveTeacher},</if>
+            <if test="sixClass != null">six_class = #{sixClass},</if>
+            <if test="sixTeacher != null">six_teacher = #{sixTeacher},</if>
+            <if test="sevenClass != null">seven_class = #{sevenClass},</if>
+            <if test="sevenTeacher != null">seven_teacher = #{sevenTeacher},</if>
+            <if test="eightClass != null">eight_class = #{eightClass},</if>
+            <if test="eightTeacher != null">eight_teacher = #{eightTeacher},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="remark != null">remark = #{remark},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteCourseTableById" parameterType="Long">
+        delete from course_table where id = #{id}
+    </delete>
+
+    <delete id="deleteCourseTableByIds" parameterType="String">
+        delete from course_table where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 160 - 0
ruoyi-system/src/main/resources/mapper/system/CourseTableTimeMapper.xml

@@ -0,0 +1,160 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ruoyi.system.mapper.CourseTableTimeMapper">
+    
+    <resultMap type="CourseTableTime" id="CourseTableTimeResult">
+        <result property="id"    column="id"    />
+        <result property="schoolId"    column="school_id"    />
+        <result property="schoolName"    column="school_name"    />
+        <result property="oneStartTime"    column="one_start_time"    />
+        <result property="oneEndTime"    column="one_end_time"    />
+        <result property="twoStartTime"    column="two_start_time"    />
+        <result property="twoEndTime"    column="two__end_time"    />
+        <result property="threeStartTime"    column="three_start_time"    />
+        <result property="threeEndTime"    column="three_end_time"    />
+        <result property="fourStartTime"    column="four_start_time"    />
+        <result property="fourEndTime"    column="four_end_time"    />
+        <result property="fiveStartTime"    column="five_start_time"    />
+        <result property="fiveEndTime"    column="five_end_time"    />
+        <result property="sixStartTime"    column="six_start_time"    />
+        <result property="sixEndTime"    column="six_end_time"    />
+        <result property="sevenStartTime"    column="seven_start_time"    />
+        <result property="sevenEndTime"    column="seven_end_time"    />
+        <result property="eightStartTime"    column="eight_start_time"    />
+        <result property="eightEndTime"    column="eight_end_time"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="remark"    column="remark"    />
+    </resultMap>
+
+    <sql id="selectCourseTableTimeVo">
+        select id, school_id, school_name, one_start_time, one_end_time, two_start_time, two__end_time, three_start_time, three_end_time, four_start_time, four_end_time, five_start_time, five_end_time, six_start_time, six_end_time, seven_start_time, seven_end_time, eight_start_time, eight_end_time, create_by, create_time, update_by, update_time, remark from course_table_time
+    </sql>
+
+    <select id="selectCourseTableTimeList" parameterType="CourseTableTime" resultMap="CourseTableTimeResult">
+        <include refid="selectCourseTableTimeVo"/>
+        <where>  
+            <if test="schoolName != null  and schoolName != ''"> and school_name like concat('%', #{schoolName}, '%')</if>
+            <if test="oneStartTime != null  and oneStartTime != ''"> and one_start_time = #{oneStartTime}</if>
+            <if test="oneEndTime != null  and oneEndTime != ''"> and one_end_time = #{oneEndTime}</if>
+            <if test="twoStartTime != null  and twoStartTime != ''"> and two_start_time = #{twoStartTime}</if>
+            <if test="twoEndTime != null  and twoEndTime != ''"> and two__end_time = #{twoEndTime}</if>
+            <if test="threeStartTime != null  and threeStartTime != ''"> and three_start_time = #{threeStartTime}</if>
+            <if test="threeEndTime != null  and threeEndTime != ''"> and three_end_time = #{threeEndTime}</if>
+            <if test="fourStartTime != null  and fourStartTime != ''"> and four_start_time = #{fourStartTime}</if>
+            <if test="fourEndTime != null  and fourEndTime != ''"> and four_end_time = #{fourEndTime}</if>
+            <if test="fiveStartTime != null  and fiveStartTime != ''"> and five_start_time = #{fiveStartTime}</if>
+            <if test="fiveEndTime != null  and fiveEndTime != ''"> and five_end_time = #{fiveEndTime}</if>
+            <if test="sixStartTime != null  and sixStartTime != ''"> and six_start_time = #{sixStartTime}</if>
+            <if test="sixEndTime != null  and sixEndTime != ''"> and six_end_time = #{sixEndTime}</if>
+            <if test="sevenStartTime != null  and sevenStartTime != ''"> and seven_start_time = #{sevenStartTime}</if>
+            <if test="sevenEndTime != null  and sevenEndTime != ''"> and seven_end_time = #{sevenEndTime}</if>
+            <if test="eightStartTime != null  and eightStartTime != ''"> and eight_start_time = #{eightStartTime}</if>
+            <if test="eightEndTime != null  and eightEndTime != ''"> and eight_end_time = #{eightEndTime}</if>
+        </where>
+    </select>
+    
+    <select id="selectCourseTableTimeById" parameterType="Long" resultMap="CourseTableTimeResult">
+        <include refid="selectCourseTableTimeVo"/>
+        where id = #{id}
+    </select>
+        
+    <insert id="insertCourseTableTime" parameterType="CourseTableTime" useGeneratedKeys="true" keyProperty="id">
+        insert into course_table_time
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="schoolId != null">school_id,</if>
+            <if test="schoolName != null">school_name,</if>
+            <if test="oneStartTime != null">one_start_time,</if>
+            <if test="oneEndTime != null">one_end_time,</if>
+            <if test="twoStartTime != null">two_start_time,</if>
+            <if test="twoEndTime != null">two__end_time,</if>
+            <if test="threeStartTime != null">three_start_time,</if>
+            <if test="threeEndTime != null">three_end_time,</if>
+            <if test="fourStartTime != null">four_start_time,</if>
+            <if test="fourEndTime != null">four_end_time,</if>
+            <if test="fiveStartTime != null">five_start_time,</if>
+            <if test="fiveEndTime != null">five_end_time,</if>
+            <if test="sixStartTime != null">six_start_time,</if>
+            <if test="sixEndTime != null">six_end_time,</if>
+            <if test="sevenStartTime != null">seven_start_time,</if>
+            <if test="sevenEndTime != null">seven_end_time,</if>
+            <if test="eightStartTime != null">eight_start_time,</if>
+            <if test="eightEndTime != null">eight_end_time,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="remark != null">remark,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="schoolId != null">#{schoolId},</if>
+            <if test="schoolName != null">#{schoolName},</if>
+            <if test="oneStartTime != null">#{oneStartTime},</if>
+            <if test="oneEndTime != null">#{oneEndTime},</if>
+            <if test="twoStartTime != null">#{twoStartTime},</if>
+            <if test="twoEndTime != null">#{twoEndTime},</if>
+            <if test="threeStartTime != null">#{threeStartTime},</if>
+            <if test="threeEndTime != null">#{threeEndTime},</if>
+            <if test="fourStartTime != null">#{fourStartTime},</if>
+            <if test="fourEndTime != null">#{fourEndTime},</if>
+            <if test="fiveStartTime != null">#{fiveStartTime},</if>
+            <if test="fiveEndTime != null">#{fiveEndTime},</if>
+            <if test="sixStartTime != null">#{sixStartTime},</if>
+            <if test="sixEndTime != null">#{sixEndTime},</if>
+            <if test="sevenStartTime != null">#{sevenStartTime},</if>
+            <if test="sevenEndTime != null">#{sevenEndTime},</if>
+            <if test="eightStartTime != null">#{eightStartTime},</if>
+            <if test="eightEndTime != null">#{eightEndTime},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="remark != null">#{remark},</if>
+         </trim>
+    </insert>
+
+    <update id="updateCourseTableTime" parameterType="CourseTableTime">
+        update course_table_time
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="schoolId != null">school_id = #{schoolId},</if>
+            <if test="schoolName != null">school_name = #{schoolName},</if>
+            <if test="oneStartTime != null">one_start_time = #{oneStartTime},</if>
+            <if test="oneEndTime != null">one_end_time = #{oneEndTime},</if>
+            <if test="twoStartTime != null">two_start_time = #{twoStartTime},</if>
+            <if test="twoEndTime != null">two__end_time = #{twoEndTime},</if>
+            <if test="threeStartTime != null">three_start_time = #{threeStartTime},</if>
+            <if test="threeEndTime != null">three_end_time = #{threeEndTime},</if>
+            <if test="fourStartTime != null">four_start_time = #{fourStartTime},</if>
+            <if test="fourEndTime != null">four_end_time = #{fourEndTime},</if>
+            <if test="fiveStartTime != null">five_start_time = #{fiveStartTime},</if>
+            <if test="fiveEndTime != null">five_end_time = #{fiveEndTime},</if>
+            <if test="sixStartTime != null">six_start_time = #{sixStartTime},</if>
+            <if test="sixEndTime != null">six_end_time = #{sixEndTime},</if>
+            <if test="sevenStartTime != null">seven_start_time = #{sevenStartTime},</if>
+            <if test="sevenEndTime != null">seven_end_time = #{sevenEndTime},</if>
+            <if test="eightStartTime != null">eight_start_time = #{eightStartTime},</if>
+            <if test="eightEndTime != null">eight_end_time = #{eightEndTime},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="remark != null">remark = #{remark},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteCourseTableTimeById" parameterType="Long">
+        delete from course_table_time where id = #{id}
+    </delete>
+
+    <delete id="deleteCourseTableTimeByIds" parameterType="String">
+        delete from course_table_time where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>