diff --git a/cs_student/src/main/java/com/ruoyi/edu/domain/CsStudent.java b/cs_student/src/main/java/com/ruoyi/edu/domain/CsStudent.java deleted file mode 100644 index cb83f99..0000000 --- a/cs_student/src/main/java/com/ruoyi/edu/domain/CsStudent.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.ruoyi.edu.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; - -/** - * 学生管理对象 cs_student - * - * @author ruoyi - * @date 2023-04-17 - */ -public class CsStudent extends BaseEntity -{ - private static final long serialVersionUID = 1L; - - /** id */ - private Long id; - - /** 姓名 */ - @Excel(name = "姓名") - private String name; - - /** 性别 */ - @Excel(name = "性别") - private String sex; - - /** 年龄 */ - @Excel(name = "年龄") - private String age; - - /** 部门 */ - @Excel(name = "部门") - private String depart; - - /** 班级 */ - @Excel(name = "班级") - private String cclass; - - public void setId(Long id) - { - this.id = id; - } - - public Long getId() - { - return id; - } - public void setName(String name) - { - this.name = name; - } - - public String getName() - { - return name; - } - public void setSex(String sex) - { - this.sex = sex; - } - - public String getSex() - { - return sex; - } - public void setAge(String age) - { - this.age = age; - } - - public String getAge() - { - return age; - } - public void setDepart(String depart) - { - this.depart = depart; - } - - public String getDepart() - { - return depart; - } - public void setCclass(String cclass) - { - this.cclass = cclass; - } - - public String getCclass() - { - return cclass; - } - - @Override - public String toString() { - return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) - .append("id", getId()) - .append("name", getName()) - .append("sex", getSex()) - .append("age", getAge()) - .append("depart", getDepart()) - .append("cclass", getCclass()) - .toString(); - } -} diff --git a/cs_student/src/main/java/com/ruoyi/edu/service/impl/CsStudentServiceImpl.java b/cs_student/src/main/java/com/ruoyi/edu/service/impl/CsStudentServiceImpl.java deleted file mode 100644 index bcb2deb..0000000 --- a/cs_student/src/main/java/com/ruoyi/edu/service/impl/CsStudentServiceImpl.java +++ /dev/null @@ -1,94 +0,0 @@ -package com.ruoyi.edu.service.impl; - -import java.util.List; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import com.ruoyi.edu.mapper.CsStudentMapper; -import com.ruoyi.edu.domain.CsStudent; -import com.ruoyi.edu.service.ICsStudentService; -import com.ruoyi.common.core.text.Convert; - -/** - * 学生管理Service业务层处理 - * - * @author ruoyi - * @date 2023-04-17 - */ -@Service -public class CsStudentServiceImpl implements ICsStudentService -{ - @Autowired - private CsStudentMapper csStudentMapper; - - /** - * 查询学生管理 - * - * @param id 学生管理主键 - * @return 学生管理 - */ - @Override - public CsStudent selectCsStudentById(Long id) - { - return csStudentMapper.selectCsStudentById(id); - } - - /** - * 查询学生管理列表 - * - * @param csStudent 学生管理 - * @return 学生管理 - */ - @Override - public List selectCsStudentList(CsStudent csStudent) - { - return csStudentMapper.selectCsStudentList(csStudent); - } - - /** - * 新增学生管理 - * - * @param csStudent 学生管理 - * @return 结果 - */ - @Override - public int insertCsStudent(CsStudent csStudent) - { - return csStudentMapper.insertCsStudent(csStudent); - } - - /** - * 修改学生管理 - * - * @param csStudent 学生管理 - * @return 结果 - */ - @Override - public int updateCsStudent(CsStudent csStudent) - { - return csStudentMapper.updateCsStudent(csStudent); - } - - /** - * 批量删除学生管理 - * - * @param ids 需要删除的学生管理主键 - * @return 结果 - */ - @Override - public int deleteCsStudentByIds(String ids) - { - return csStudentMapper.deleteCsStudentByIds(Convert.toStrArray(ids)); - } - - /** - * 删除学生管理信息 - * - * @param id 学生管理主键 - * @return 结果 - */ - @Override - public int deleteCsStudentById(Long id) - { - return csStudentMapper.deleteCsStudentById(id); - } -} diff --git a/cs_student/src/main/resources/mapper/edu/CsStudentMapper.xml b/cs_student/src/main/resources/mapper/edu/CsStudentMapper.xml deleted file mode 100644 index a423018..0000000 --- a/cs_student/src/main/resources/mapper/edu/CsStudentMapper.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - - - - - - - - - select id, name, sex, age, depart, cclass from cs_student - - - - - - - - insert into cs_student - - name, - sex, - age, - depart, - cclass, - - - #{name}, - #{sex}, - #{age}, - #{depart}, - #{cclass}, - - - - - update cs_student - - name = #{name}, - sex = #{sex}, - age = #{age}, - depart = #{depart}, - cclass = #{cclass}, - - where id = #{id} - - - - delete from cs_student where id = #{id} - - - - delete from cs_student where id in - - #{id} - - - - \ No newline at end of file diff --git a/cs_student/src/main/resources/templates/edu/student/add.html b/cs_student/src/main/resources/templates/edu/student/add.html deleted file mode 100644 index 8916634..0000000 --- a/cs_student/src/main/resources/templates/edu/student/add.html +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - -
-
-
- -
- -
-
-
- -
- - -
-
-
- -
- -
-
-
- -
- - -
-
-
- -
- - -
-
-
-
- - - - \ No newline at end of file diff --git a/cs_student/src/main/resources/templates/edu/student/edit.html b/cs_student/src/main/resources/templates/edu/student/edit.html deleted file mode 100644 index f3ee895..0000000 --- a/cs_student/src/main/resources/templates/edu/student/edit.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - -
-
- -
- -
- -
-
-
- -
- - -
-
-
- -
- -
-
-
- -
- - -
-
-
- -
- - -
-
-
-
- - - - \ No newline at end of file diff --git a/pom.xml b/pom.xml index 18afcc7..c36b40f 100644 --- a/pom.xml +++ b/pom.xml @@ -173,10 +173,11 @@ com.ruoyi - cs_student + ruoyi_edu ${ruoyi.version} + com.ruoyi @@ -210,7 +211,8 @@ ruoyi-common cs_test cs_test1 - cs_student + ruoyi_edu + pom diff --git a/ruoyi-admin/pom.xml b/ruoyi-admin/pom.xml index c9b351a..c404493 100644 --- a/ruoyi-admin/pom.xml +++ b/ruoyi-admin/pom.xml @@ -78,7 +78,7 @@ com.ruoyi - cs_student + ruoyi_edu diff --git a/cs_student/pom.xml b/ruoyi_edu/pom.xml similarity index 93% rename from cs_student/pom.xml rename to ruoyi_edu/pom.xml index 8841431..9e91788 100644 --- a/cs_student/pom.xml +++ b/ruoyi_edu/pom.xml @@ -9,13 +9,12 @@ 4.0.0 - cs_student + ruoyi_edu 8 8 - com.ruoyi diff --git a/ruoyi_edu/src/main/java/com/ruoyi/edu/controller/EduClazzController.java b/ruoyi_edu/src/main/java/com/ruoyi/edu/controller/EduClazzController.java new file mode 100644 index 0000000..2b34130 --- /dev/null +++ b/ruoyi_edu/src/main/java/com/ruoyi/edu/controller/EduClazzController.java @@ -0,0 +1,127 @@ +package com.ruoyi.edu.controller; + +import java.util.List; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.edu.domain.EduClazz; +import com.ruoyi.edu.service.IEduClazzService; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * 班级管理Controller + * + * @author ruoyi + * @date 2023-04-18 + */ +@Controller +@RequestMapping("/edu/clazz") +public class EduClazzController extends BaseController +{ + private String prefix = "edu/clazz"; + + @Autowired + private IEduClazzService eduClazzService; + + @RequiresPermissions("edu:clazz:view") + @GetMapping() + public String clazz() + { + return prefix + "/clazz"; + } + + /** + * 查询班级管理列表 + */ + @RequiresPermissions("edu:clazz:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(EduClazz eduClazz) + { + startPage(); + List list = eduClazzService.selectEduClazzList(eduClazz); + return getDataTable(list); + } + + /** + * 导出班级管理列表 + */ + @RequiresPermissions("edu:clazz:export") + @Log(title = "班级管理", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(EduClazz eduClazz) + { + List list = eduClazzService.selectEduClazzList(eduClazz); + ExcelUtil util = new ExcelUtil(EduClazz.class); + return util.exportExcel(list, "班级管理数据"); + } + + /** + * 新增班级管理 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存班级管理 + */ + @RequiresPermissions("edu:clazz:add") + @Log(title = "班级管理", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(EduClazz eduClazz) + { + return toAjax(eduClazzService.insertEduClazz(eduClazz)); + } + + /** + * 修改班级管理 + */ + @RequiresPermissions("edu:clazz:edit") + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") Long id, ModelMap mmap) + { + EduClazz eduClazz = eduClazzService.selectEduClazzById(id); + mmap.put("eduClazz", eduClazz); + return prefix + "/edit"; + } + + /** + * 修改保存班级管理 + */ + @RequiresPermissions("edu:clazz:edit") + @Log(title = "班级管理", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(EduClazz eduClazz) + { + return toAjax(eduClazzService.updateEduClazz(eduClazz)); + } + + /** + * 删除班级管理 + */ + @RequiresPermissions("edu:clazz:remove") + @Log(title = "班级管理", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(eduClazzService.deleteEduClazzByIds(ids)); + } +} diff --git a/ruoyi_edu/src/main/java/com/ruoyi/edu/controller/EduMenuController.java b/ruoyi_edu/src/main/java/com/ruoyi/edu/controller/EduMenuController.java new file mode 100644 index 0000000..48f17f1 --- /dev/null +++ b/ruoyi_edu/src/main/java/com/ruoyi/edu/controller/EduMenuController.java @@ -0,0 +1,127 @@ +package com.ruoyi.edu.controller; + +import java.util.List; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.edu.domain.EduMenu; +import com.ruoyi.edu.service.IEduMenuService; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * 菜单管理Controller + * + * @author ruoyi + * @date 2023-04-18 + */ +@Controller +@RequestMapping("/edu/menu") +public class EduMenuController extends BaseController +{ + private String prefix = "edu/menu"; + + @Autowired + private IEduMenuService eduMenuService; + + @RequiresPermissions("edu:menu:view") + @GetMapping() + public String menu() + { + return prefix + "/menu"; + } + + /** + * 查询菜单管理列表 + */ + @RequiresPermissions("edu:menu:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(EduMenu eduMenu) + { + startPage(); + List list = eduMenuService.selectEduMenuList(eduMenu); + return getDataTable(list); + } + + /** + * 导出菜单管理列表 + */ + @RequiresPermissions("edu:menu:export") + @Log(title = "菜单管理", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(EduMenu eduMenu) + { + List list = eduMenuService.selectEduMenuList(eduMenu); + ExcelUtil util = new ExcelUtil(EduMenu.class); + return util.exportExcel(list, "菜单管理数据"); + } + + /** + * 新增菜单管理 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存菜单管理 + */ + @RequiresPermissions("edu:menu:add") + @Log(title = "菜单管理", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(EduMenu eduMenu) + { + return toAjax(eduMenuService.insertEduMenu(eduMenu)); + } + + /** + * 修改菜单管理 + */ + @RequiresPermissions("edu:menu:edit") + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") Long id, ModelMap mmap) + { + EduMenu eduMenu = eduMenuService.selectEduMenuById(id); + mmap.put("eduMenu", eduMenu); + return prefix + "/edit"; + } + + /** + * 修改保存菜单管理 + */ + @RequiresPermissions("edu:menu:edit") + @Log(title = "菜单管理", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(EduMenu eduMenu) + { + return toAjax(eduMenuService.updateEduMenu(eduMenu)); + } + + /** + * 删除菜单管理 + */ + @RequiresPermissions("edu:menu:remove") + @Log(title = "菜单管理", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(eduMenuService.deleteEduMenuByIds(ids)); + } +} diff --git a/cs_student/src/main/java/com/ruoyi/edu/controller/CsStudentController.java b/ruoyi_edu/src/main/java/com/ruoyi/edu/controller/EduStudentController.java similarity index 72% rename from cs_student/src/main/java/com/ruoyi/edu/controller/CsStudentController.java rename to ruoyi_edu/src/main/java/com/ruoyi/edu/controller/EduStudentController.java index 5db74f5..2042971 100644 --- a/cs_student/src/main/java/com/ruoyi/edu/controller/CsStudentController.java +++ b/ruoyi_edu/src/main/java/com/ruoyi/edu/controller/EduStudentController.java @@ -12,8 +12,8 @@ import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import com.ruoyi.common.annotation.Log; import com.ruoyi.common.enums.BusinessType; -import com.ruoyi.edu.domain.CsStudent; -import com.ruoyi.edu.service.ICsStudentService; +import com.ruoyi.edu.domain.EduStudent; +import com.ruoyi.edu.service.IEduStudentService; import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.utils.poi.ExcelUtil; @@ -23,16 +23,16 @@ import com.ruoyi.common.core.page.TableDataInfo; * 学生管理Controller * * @author ruoyi - * @date 2023-04-17 + * @date 2023-04-18 */ @Controller @RequestMapping("/edu/student") -public class CsStudentController extends BaseController +public class EduStudentController extends BaseController { private String prefix = "edu/student"; @Autowired - private ICsStudentService csStudentService; + private IEduStudentService eduStudentService; @RequiresPermissions("edu:student:view") @GetMapping() @@ -47,10 +47,10 @@ public class CsStudentController extends BaseController @RequiresPermissions("edu:student:list") @PostMapping("/list") @ResponseBody - public TableDataInfo list(CsStudent csStudent) + public TableDataInfo list(EduStudent eduStudent) { startPage(); - List list = csStudentService.selectCsStudentList(csStudent); + List list = eduStudentService.selectEduStudentList(eduStudent); return getDataTable(list); } @@ -61,10 +61,10 @@ public class CsStudentController extends BaseController @Log(title = "学生管理", businessType = BusinessType.EXPORT) @PostMapping("/export") @ResponseBody - public AjaxResult export(CsStudent csStudent) + public AjaxResult export(EduStudent eduStudent) { - List list = csStudentService.selectCsStudentList(csStudent); - ExcelUtil util = new ExcelUtil(CsStudent.class); + List list = eduStudentService.selectEduStudentList(eduStudent); + ExcelUtil util = new ExcelUtil(EduStudent.class); return util.exportExcel(list, "学生管理数据"); } @@ -84,9 +84,9 @@ public class CsStudentController extends BaseController @Log(title = "学生管理", businessType = BusinessType.INSERT) @PostMapping("/add") @ResponseBody - public AjaxResult addSave(CsStudent csStudent) + public AjaxResult addSave(EduStudent eduStudent) { - return toAjax(csStudentService.insertCsStudent(csStudent)); + return toAjax(eduStudentService.insertEduStudent(eduStudent)); } /** @@ -96,8 +96,8 @@ public class CsStudentController extends BaseController @GetMapping("/edit/{id}") public String edit(@PathVariable("id") Long id, ModelMap mmap) { - CsStudent csStudent = csStudentService.selectCsStudentById(id); - mmap.put("csStudent", csStudent); + EduStudent eduStudent = eduStudentService.selectEduStudentById(id); + mmap.put("eduStudent", eduStudent); return prefix + "/edit"; } @@ -108,9 +108,9 @@ public class CsStudentController extends BaseController @Log(title = "学生管理", businessType = BusinessType.UPDATE) @PostMapping("/edit") @ResponseBody - public AjaxResult editSave(CsStudent csStudent) + public AjaxResult editSave(EduStudent eduStudent) { - return toAjax(csStudentService.updateCsStudent(csStudent)); + return toAjax(eduStudentService.updateEduStudent(eduStudent)); } /** @@ -122,6 +122,6 @@ public class CsStudentController extends BaseController @ResponseBody public AjaxResult remove(String ids) { - return toAjax(csStudentService.deleteCsStudentByIds(ids)); + return toAjax(eduStudentService.deleteEduStudentByIds(ids)); } } diff --git a/ruoyi_edu/src/main/java/com/ruoyi/edu/controller/EduTeacherController.java b/ruoyi_edu/src/main/java/com/ruoyi/edu/controller/EduTeacherController.java new file mode 100644 index 0000000..cb5fd78 --- /dev/null +++ b/ruoyi_edu/src/main/java/com/ruoyi/edu/controller/EduTeacherController.java @@ -0,0 +1,127 @@ +package com.ruoyi.edu.controller; + +import java.util.List; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.edu.domain.EduTeacher; +import com.ruoyi.edu.service.IEduTeacherService; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * 教师管理Controller + * + * @author ruoyi + * @date 2023-04-18 + */ +@Controller +@RequestMapping("/edu/teacher") +public class EduTeacherController extends BaseController +{ + private String prefix = "edu/teacher"; + + @Autowired + private IEduTeacherService eduTeacherService; + + @RequiresPermissions("edu:teacher:view") + @GetMapping() + public String teacher() + { + return prefix + "/teacher"; + } + + /** + * 查询教师管理列表 + */ + @RequiresPermissions("edu:teacher:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(EduTeacher eduTeacher) + { + startPage(); + List list = eduTeacherService.selectEduTeacherList(eduTeacher); + return getDataTable(list); + } + + /** + * 导出教师管理列表 + */ + @RequiresPermissions("edu:teacher:export") + @Log(title = "教师管理", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(EduTeacher eduTeacher) + { + List list = eduTeacherService.selectEduTeacherList(eduTeacher); + ExcelUtil util = new ExcelUtil(EduTeacher.class); + return util.exportExcel(list, "教师管理数据"); + } + + /** + * 新增教师管理 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存教师管理 + */ + @RequiresPermissions("edu:teacher:add") + @Log(title = "教师管理", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(EduTeacher eduTeacher) + { + return toAjax(eduTeacherService.insertEduTeacher(eduTeacher)); + } + + /** + * 修改教师管理 + */ + @RequiresPermissions("edu:teacher:edit") + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") Long id, ModelMap mmap) + { + EduTeacher eduTeacher = eduTeacherService.selectEduTeacherById(id); + mmap.put("eduTeacher", eduTeacher); + return prefix + "/edit"; + } + + /** + * 修改保存教师管理 + */ + @RequiresPermissions("edu:teacher:edit") + @Log(title = "教师管理", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(EduTeacher eduTeacher) + { + return toAjax(eduTeacherService.updateEduTeacher(eduTeacher)); + } + + /** + * 删除教师管理 + */ + @RequiresPermissions("edu:teacher:remove") + @Log(title = "教师管理", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(eduTeacherService.deleteEduTeacherByIds(ids)); + } +} diff --git a/ruoyi_edu/src/main/java/com/ruoyi/edu/domain/EduClazz.java b/ruoyi_edu/src/main/java/com/ruoyi/edu/domain/EduClazz.java new file mode 100644 index 0000000..6a43ff6 --- /dev/null +++ b/ruoyi_edu/src/main/java/com/ruoyi/edu/domain/EduClazz.java @@ -0,0 +1,79 @@ +package com.ruoyi.edu.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; + +/** + * 班级管理对象 edu_clazz + * + * @author ruoyi + * @date 2023-04-18 + */ +public class EduClazz extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** id */ + private Long id; + + /** 班级名字 */ + @Excel(name = "班级名字") + private String clazzName; + + /** 班级人数 */ + @Excel(name = "班级人数") + private String clazzCount; + + /** 状态 */ + @Excel(name = "状态") + private String visible; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setClazzName(String clazzName) + { + this.clazzName = clazzName; + } + + public String getClazzName() + { + return clazzName; + } + public void setClazzCount(String clazzCount) + { + this.clazzCount = clazzCount; + } + + public String getClazzCount() + { + return clazzCount; + } + public void setVisible(String visible) + { + this.visible = visible; + } + + public String getVisible() + { + return visible; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("clazzName", getClazzName()) + .append("clazzCount", getClazzCount()) + .append("visible", getVisible()) + .toString(); + } +} diff --git a/ruoyi_edu/src/main/java/com/ruoyi/edu/domain/EduMenu.java b/ruoyi_edu/src/main/java/com/ruoyi/edu/domain/EduMenu.java new file mode 100644 index 0000000..a1262a2 --- /dev/null +++ b/ruoyi_edu/src/main/java/com/ruoyi/edu/domain/EduMenu.java @@ -0,0 +1,121 @@ +package com.ruoyi.edu.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; + +/** + * 菜单管理对象 edu_menu + * + * @author ruoyi + * @date 2023-04-18 + */ +public class EduMenu extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** */ + private Long id; + + /** 菜单名 */ + @Excel(name = "菜单名") + private String menuName; + + /** 路由 */ + @Excel(name = "路由") + private String menuUrl; + + /** 菜单图标 */ + @Excel(name = "菜单图标") + private String menuImg; + + /** 菜单状态 */ + @Excel(name = "菜单状态") + private String menuVisible; + + /** 隐藏状态(0 学生 ,1 教师,2 管理员) */ + @Excel(name = "隐藏状态", readConverterExp = "0=,学=生,,=1,教=师,2,管=理员") + private Long menuFlag; + + /** 菜单排序 */ + @Excel(name = "菜单排序") + private Long menuOrdernum; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setMenuName(String menuName) + { + this.menuName = menuName; + } + + public String getMenuName() + { + return menuName; + } + public void setMenuUrl(String menuUrl) + { + this.menuUrl = menuUrl; + } + + public String getMenuUrl() + { + return menuUrl; + } + public void setMenuImg(String menuImg) + { + this.menuImg = menuImg; + } + + public String getMenuImg() + { + return menuImg; + } + public void setMenuVisible(String menuVisible) + { + this.menuVisible = menuVisible; + } + + public String getMenuVisible() + { + return menuVisible; + } + public void setMenuFlag(Long menuFlag) + { + this.menuFlag = menuFlag; + } + + public Long getMenuFlag() + { + return menuFlag; + } + public void setMenuOrdernum(Long menuOrdernum) + { + this.menuOrdernum = menuOrdernum; + } + + public Long getMenuOrdernum() + { + return menuOrdernum; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("menuName", getMenuName()) + .append("menuUrl", getMenuUrl()) + .append("menuImg", getMenuImg()) + .append("menuVisible", getMenuVisible()) + .append("menuFlag", getMenuFlag()) + .append("menuOrdernum", getMenuOrdernum()) + .toString(); + } +} diff --git a/ruoyi_edu/src/main/java/com/ruoyi/edu/domain/EduStudent.java b/ruoyi_edu/src/main/java/com/ruoyi/edu/domain/EduStudent.java new file mode 100644 index 0000000..0d5ed54 --- /dev/null +++ b/ruoyi_edu/src/main/java/com/ruoyi/edu/domain/EduStudent.java @@ -0,0 +1,93 @@ +package com.ruoyi.edu.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; + +/** + * 学生管理对象 edu_student + * + * @author ruoyi + * @date 2023-04-18 + */ +public class EduStudent extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** id */ + private Long id; + + /** 学号 */ + @Excel(name = "学号") + private String stuSno; + + /** 姓名 */ + @Excel(name = "姓名") + private String stuName; + + /** 新班级 */ + @Excel(name = "新班级") + private String stuNcid; + + /** 旧班级 */ + @Excel(name = "旧班级") + private String stuOcid; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setStuSno(String stuSno) + { + this.stuSno = stuSno; + } + + public String getStuSno() + { + return stuSno; + } + public void setStuName(String stuName) + { + this.stuName = stuName; + } + + public String getStuName() + { + return stuName; + } + public void setStuNcid(String stuNcid) + { + this.stuNcid = stuNcid; + } + + public String getStuNcid() + { + return stuNcid; + } + public void setStuOcid(String stuOcid) + { + this.stuOcid = stuOcid; + } + + public String getStuOcid() + { + return stuOcid; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("stuSno", getStuSno()) + .append("stuName", getStuName()) + .append("stuNcid", getStuNcid()) + .append("stuOcid", getStuOcid()) + .toString(); + } +} diff --git a/ruoyi_edu/src/main/java/com/ruoyi/edu/domain/EduTeacher.java b/ruoyi_edu/src/main/java/com/ruoyi/edu/domain/EduTeacher.java new file mode 100644 index 0000000..e1b11b2 --- /dev/null +++ b/ruoyi_edu/src/main/java/com/ruoyi/edu/domain/EduTeacher.java @@ -0,0 +1,107 @@ +package com.ruoyi.edu.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; + +/** + * 教师管理对象 edu_teacher + * + * @author ruoyi + * @date 2023-04-18 + */ +public class EduTeacher extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** ID */ + private Long id; + + /** 工号 */ + @Excel(name = "工号") + private Long teaSno; + + /** 教师姓名 */ + @Excel(name = "教师姓名") + private String teaName; + + /** 身份 */ + @Excel(name = "身份") + private String flag; + + /** 职称 */ + @Excel(name = "职称") + private String teaTitle; + + /** 所属部门 */ + @Excel(name = "所属部门") + private Long deptId; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setTeaSno(Long teaSno) + { + this.teaSno = teaSno; + } + + public Long getTeaSno() + { + return teaSno; + } + public void setTeaName(String teaName) + { + this.teaName = teaName; + } + + public String getTeaName() + { + return teaName; + } + public void setFlag(String flag) + { + this.flag = flag; + } + + public String getFlag() + { + return flag; + } + public void setTeaTitle(String teaTitle) + { + this.teaTitle = teaTitle; + } + + public String getTeaTitle() + { + return teaTitle; + } + public void setDeptId(Long deptId) + { + this.deptId = deptId; + } + + public Long getDeptId() + { + return deptId; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("teaSno", getTeaSno()) + .append("teaName", getTeaName()) + .append("flag", getFlag()) + .append("teaTitle", getTeaTitle()) + .append("deptId", getDeptId()) + .toString(); + } +} diff --git a/ruoyi_edu/src/main/java/com/ruoyi/edu/mapper/EduClazzMapper.java b/ruoyi_edu/src/main/java/com/ruoyi/edu/mapper/EduClazzMapper.java new file mode 100644 index 0000000..03d4b2b --- /dev/null +++ b/ruoyi_edu/src/main/java/com/ruoyi/edu/mapper/EduClazzMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.edu.mapper; + +import java.util.List; +import com.ruoyi.edu.domain.EduClazz; + +/** + * 班级管理Mapper接口 + * + * @author ruoyi + * @date 2023-04-18 + */ +public interface EduClazzMapper +{ + /** + * 查询班级管理 + * + * @param id 班级管理主键 + * @return 班级管理 + */ + public EduClazz selectEduClazzById(Long id); + + /** + * 查询班级管理列表 + * + * @param eduClazz 班级管理 + * @return 班级管理集合 + */ + public List selectEduClazzList(EduClazz eduClazz); + + /** + * 新增班级管理 + * + * @param eduClazz 班级管理 + * @return 结果 + */ + public int insertEduClazz(EduClazz eduClazz); + + /** + * 修改班级管理 + * + * @param eduClazz 班级管理 + * @return 结果 + */ + public int updateEduClazz(EduClazz eduClazz); + + /** + * 删除班级管理 + * + * @param id 班级管理主键 + * @return 结果 + */ + public int deleteEduClazzById(Long id); + + /** + * 批量删除班级管理 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteEduClazzByIds(String[] ids); +} diff --git a/ruoyi_edu/src/main/java/com/ruoyi/edu/mapper/EduMenuMapper.java b/ruoyi_edu/src/main/java/com/ruoyi/edu/mapper/EduMenuMapper.java new file mode 100644 index 0000000..15abed6 --- /dev/null +++ b/ruoyi_edu/src/main/java/com/ruoyi/edu/mapper/EduMenuMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.edu.mapper; + +import java.util.List; +import com.ruoyi.edu.domain.EduMenu; + +/** + * 菜单管理Mapper接口 + * + * @author ruoyi + * @date 2023-04-18 + */ +public interface EduMenuMapper +{ + /** + * 查询菜单管理 + * + * @param id 菜单管理主键 + * @return 菜单管理 + */ + public EduMenu selectEduMenuById(Long id); + + /** + * 查询菜单管理列表 + * + * @param eduMenu 菜单管理 + * @return 菜单管理集合 + */ + public List selectEduMenuList(EduMenu eduMenu); + + /** + * 新增菜单管理 + * + * @param eduMenu 菜单管理 + * @return 结果 + */ + public int insertEduMenu(EduMenu eduMenu); + + /** + * 修改菜单管理 + * + * @param eduMenu 菜单管理 + * @return 结果 + */ + public int updateEduMenu(EduMenu eduMenu); + + /** + * 删除菜单管理 + * + * @param id 菜单管理主键 + * @return 结果 + */ + public int deleteEduMenuById(Long id); + + /** + * 批量删除菜单管理 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteEduMenuByIds(String[] ids); +} diff --git a/cs_student/src/main/java/com/ruoyi/edu/mapper/CsStudentMapper.java b/ruoyi_edu/src/main/java/com/ruoyi/edu/mapper/EduStudentMapper.java similarity index 56% rename from cs_student/src/main/java/com/ruoyi/edu/mapper/CsStudentMapper.java rename to ruoyi_edu/src/main/java/com/ruoyi/edu/mapper/EduStudentMapper.java index 8b5e1e1..697c4d9 100644 --- a/cs_student/src/main/java/com/ruoyi/edu/mapper/CsStudentMapper.java +++ b/ruoyi_edu/src/main/java/com/ruoyi/edu/mapper/EduStudentMapper.java @@ -1,15 +1,15 @@ package com.ruoyi.edu.mapper; import java.util.List; -import com.ruoyi.edu.domain.CsStudent; +import com.ruoyi.edu.domain.EduStudent; /** * 学生管理Mapper接口 * * @author ruoyi - * @date 2023-04-17 + * @date 2023-04-18 */ -public interface CsStudentMapper +public interface EduStudentMapper { /** * 查询学生管理 @@ -17,31 +17,31 @@ public interface CsStudentMapper * @param id 学生管理主键 * @return 学生管理 */ - public CsStudent selectCsStudentById(Long id); + public EduStudent selectEduStudentById(Long id); /** * 查询学生管理列表 * - * @param csStudent 学生管理 + * @param eduStudent 学生管理 * @return 学生管理集合 */ - public List selectCsStudentList(CsStudent csStudent); + public List selectEduStudentList(EduStudent eduStudent); /** * 新增学生管理 * - * @param csStudent 学生管理 + * @param eduStudent 学生管理 * @return 结果 */ - public int insertCsStudent(CsStudent csStudent); + public int insertEduStudent(EduStudent eduStudent); /** * 修改学生管理 * - * @param csStudent 学生管理 + * @param eduStudent 学生管理 * @return 结果 */ - public int updateCsStudent(CsStudent csStudent); + public int updateEduStudent(EduStudent eduStudent); /** * 删除学生管理 @@ -49,7 +49,7 @@ public interface CsStudentMapper * @param id 学生管理主键 * @return 结果 */ - public int deleteCsStudentById(Long id); + public int deleteEduStudentById(Long id); /** * 批量删除学生管理 @@ -57,5 +57,5 @@ public interface CsStudentMapper * @param ids 需要删除的数据主键集合 * @return 结果 */ - public int deleteCsStudentByIds(String[] ids); + public int deleteEduStudentByIds(String[] ids); } diff --git a/ruoyi_edu/src/main/java/com/ruoyi/edu/mapper/EduTeacherMapper.java b/ruoyi_edu/src/main/java/com/ruoyi/edu/mapper/EduTeacherMapper.java new file mode 100644 index 0000000..bf88b38 --- /dev/null +++ b/ruoyi_edu/src/main/java/com/ruoyi/edu/mapper/EduTeacherMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.edu.mapper; + +import java.util.List; +import com.ruoyi.edu.domain.EduTeacher; + +/** + * 教师管理Mapper接口 + * + * @author ruoyi + * @date 2023-04-18 + */ +public interface EduTeacherMapper +{ + /** + * 查询教师管理 + * + * @param id 教师管理主键 + * @return 教师管理 + */ + public EduTeacher selectEduTeacherById(Long id); + + /** + * 查询教师管理列表 + * + * @param eduTeacher 教师管理 + * @return 教师管理集合 + */ + public List selectEduTeacherList(EduTeacher eduTeacher); + + /** + * 新增教师管理 + * + * @param eduTeacher 教师管理 + * @return 结果 + */ + public int insertEduTeacher(EduTeacher eduTeacher); + + /** + * 修改教师管理 + * + * @param eduTeacher 教师管理 + * @return 结果 + */ + public int updateEduTeacher(EduTeacher eduTeacher); + + /** + * 删除教师管理 + * + * @param id 教师管理主键 + * @return 结果 + */ + public int deleteEduTeacherById(Long id); + + /** + * 批量删除教师管理 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteEduTeacherByIds(String[] ids); +} diff --git a/ruoyi_edu/src/main/java/com/ruoyi/edu/service/IEduClazzService.java b/ruoyi_edu/src/main/java/com/ruoyi/edu/service/IEduClazzService.java new file mode 100644 index 0000000..ba40b50 --- /dev/null +++ b/ruoyi_edu/src/main/java/com/ruoyi/edu/service/IEduClazzService.java @@ -0,0 +1,61 @@ +package com.ruoyi.edu.service; + +import java.util.List; +import com.ruoyi.edu.domain.EduClazz; + +/** + * 班级管理Service接口 + * + * @author ruoyi + * @date 2023-04-18 + */ +public interface IEduClazzService +{ + /** + * 查询班级管理 + * + * @param id 班级管理主键 + * @return 班级管理 + */ + public EduClazz selectEduClazzById(Long id); + + /** + * 查询班级管理列表 + * + * @param eduClazz 班级管理 + * @return 班级管理集合 + */ + public List selectEduClazzList(EduClazz eduClazz); + + /** + * 新增班级管理 + * + * @param eduClazz 班级管理 + * @return 结果 + */ + public int insertEduClazz(EduClazz eduClazz); + + /** + * 修改班级管理 + * + * @param eduClazz 班级管理 + * @return 结果 + */ + public int updateEduClazz(EduClazz eduClazz); + + /** + * 批量删除班级管理 + * + * @param ids 需要删除的班级管理主键集合 + * @return 结果 + */ + public int deleteEduClazzByIds(String ids); + + /** + * 删除班级管理信息 + * + * @param id 班级管理主键 + * @return 结果 + */ + public int deleteEduClazzById(Long id); +} diff --git a/ruoyi_edu/src/main/java/com/ruoyi/edu/service/IEduMenuService.java b/ruoyi_edu/src/main/java/com/ruoyi/edu/service/IEduMenuService.java new file mode 100644 index 0000000..04dc913 --- /dev/null +++ b/ruoyi_edu/src/main/java/com/ruoyi/edu/service/IEduMenuService.java @@ -0,0 +1,61 @@ +package com.ruoyi.edu.service; + +import java.util.List; +import com.ruoyi.edu.domain.EduMenu; + +/** + * 菜单管理Service接口 + * + * @author ruoyi + * @date 2023-04-18 + */ +public interface IEduMenuService +{ + /** + * 查询菜单管理 + * + * @param id 菜单管理主键 + * @return 菜单管理 + */ + public EduMenu selectEduMenuById(Long id); + + /** + * 查询菜单管理列表 + * + * @param eduMenu 菜单管理 + * @return 菜单管理集合 + */ + public List selectEduMenuList(EduMenu eduMenu); + + /** + * 新增菜单管理 + * + * @param eduMenu 菜单管理 + * @return 结果 + */ + public int insertEduMenu(EduMenu eduMenu); + + /** + * 修改菜单管理 + * + * @param eduMenu 菜单管理 + * @return 结果 + */ + public int updateEduMenu(EduMenu eduMenu); + + /** + * 批量删除菜单管理 + * + * @param ids 需要删除的菜单管理主键集合 + * @return 结果 + */ + public int deleteEduMenuByIds(String ids); + + /** + * 删除菜单管理信息 + * + * @param id 菜单管理主键 + * @return 结果 + */ + public int deleteEduMenuById(Long id); +} diff --git a/cs_student/src/main/java/com/ruoyi/edu/service/ICsStudentService.java b/ruoyi_edu/src/main/java/com/ruoyi/edu/service/IEduStudentService.java similarity index 56% rename from cs_student/src/main/java/com/ruoyi/edu/service/ICsStudentService.java rename to ruoyi_edu/src/main/java/com/ruoyi/edu/service/IEduStudentService.java index 5a028e8..14021d8 100644 --- a/cs_student/src/main/java/com/ruoyi/edu/service/ICsStudentService.java +++ b/ruoyi_edu/src/main/java/com/ruoyi/edu/service/IEduStudentService.java @@ -1,15 +1,15 @@ package com.ruoyi.edu.service; import java.util.List; -import com.ruoyi.edu.domain.CsStudent; +import com.ruoyi.edu.domain.EduStudent; /** * 学生管理Service接口 * * @author ruoyi - * @date 2023-04-17 + * @date 2023-04-18 */ -public interface ICsStudentService +public interface IEduStudentService { /** * 查询学生管理 @@ -17,31 +17,31 @@ public interface ICsStudentService * @param id 学生管理主键 * @return 学生管理 */ - public CsStudent selectCsStudentById(Long id); + public EduStudent selectEduStudentById(Long id); /** * 查询学生管理列表 * - * @param csStudent 学生管理 + * @param eduStudent 学生管理 * @return 学生管理集合 */ - public List selectCsStudentList(CsStudent csStudent); + public List selectEduStudentList(EduStudent eduStudent); /** * 新增学生管理 * - * @param csStudent 学生管理 + * @param eduStudent 学生管理 * @return 结果 */ - public int insertCsStudent(CsStudent csStudent); + public int insertEduStudent(EduStudent eduStudent); /** * 修改学生管理 * - * @param csStudent 学生管理 + * @param eduStudent 学生管理 * @return 结果 */ - public int updateCsStudent(CsStudent csStudent); + public int updateEduStudent(EduStudent eduStudent); /** * 批量删除学生管理 @@ -49,7 +49,7 @@ public interface ICsStudentService * @param ids 需要删除的学生管理主键集合 * @return 结果 */ - public int deleteCsStudentByIds(String ids); + public int deleteEduStudentByIds(String ids); /** * 删除学生管理信息 @@ -57,5 +57,5 @@ public interface ICsStudentService * @param id 学生管理主键 * @return 结果 */ - public int deleteCsStudentById(Long id); + public int deleteEduStudentById(Long id); } diff --git a/ruoyi_edu/src/main/java/com/ruoyi/edu/service/IEduTeacherService.java b/ruoyi_edu/src/main/java/com/ruoyi/edu/service/IEduTeacherService.java new file mode 100644 index 0000000..91dfafe --- /dev/null +++ b/ruoyi_edu/src/main/java/com/ruoyi/edu/service/IEduTeacherService.java @@ -0,0 +1,61 @@ +package com.ruoyi.edu.service; + +import java.util.List; +import com.ruoyi.edu.domain.EduTeacher; + +/** + * 教师管理Service接口 + * + * @author ruoyi + * @date 2023-04-18 + */ +public interface IEduTeacherService +{ + /** + * 查询教师管理 + * + * @param id 教师管理主键 + * @return 教师管理 + */ + public EduTeacher selectEduTeacherById(Long id); + + /** + * 查询教师管理列表 + * + * @param eduTeacher 教师管理 + * @return 教师管理集合 + */ + public List selectEduTeacherList(EduTeacher eduTeacher); + + /** + * 新增教师管理 + * + * @param eduTeacher 教师管理 + * @return 结果 + */ + public int insertEduTeacher(EduTeacher eduTeacher); + + /** + * 修改教师管理 + * + * @param eduTeacher 教师管理 + * @return 结果 + */ + public int updateEduTeacher(EduTeacher eduTeacher); + + /** + * 批量删除教师管理 + * + * @param ids 需要删除的教师管理主键集合 + * @return 结果 + */ + public int deleteEduTeacherByIds(String ids); + + /** + * 删除教师管理信息 + * + * @param id 教师管理主键 + * @return 结果 + */ + public int deleteEduTeacherById(Long id); +} diff --git a/ruoyi_edu/src/main/java/com/ruoyi/edu/service/impl/EduClazzServiceImpl.java b/ruoyi_edu/src/main/java/com/ruoyi/edu/service/impl/EduClazzServiceImpl.java new file mode 100644 index 0000000..776e555 --- /dev/null +++ b/ruoyi_edu/src/main/java/com/ruoyi/edu/service/impl/EduClazzServiceImpl.java @@ -0,0 +1,94 @@ +package com.ruoyi.edu.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.edu.mapper.EduClazzMapper; +import com.ruoyi.edu.domain.EduClazz; +import com.ruoyi.edu.service.IEduClazzService; +import com.ruoyi.common.core.text.Convert; + +/** + * 班级管理Service业务层处理 + * + * @author ruoyi + * @date 2023-04-18 + */ +@Service +public class EduClazzServiceImpl implements IEduClazzService +{ + @Autowired + private EduClazzMapper eduClazzMapper; + + /** + * 查询班级管理 + * + * @param id 班级管理主键 + * @return 班级管理 + */ + @Override + public EduClazz selectEduClazzById(Long id) + { + return eduClazzMapper.selectEduClazzById(id); + } + + /** + * 查询班级管理列表 + * + * @param eduClazz 班级管理 + * @return 班级管理 + */ + @Override + public List selectEduClazzList(EduClazz eduClazz) + { + return eduClazzMapper.selectEduClazzList(eduClazz); + } + + /** + * 新增班级管理 + * + * @param eduClazz 班级管理 + * @return 结果 + */ + @Override + public int insertEduClazz(EduClazz eduClazz) + { + return eduClazzMapper.insertEduClazz(eduClazz); + } + + /** + * 修改班级管理 + * + * @param eduClazz 班级管理 + * @return 结果 + */ + @Override + public int updateEduClazz(EduClazz eduClazz) + { + return eduClazzMapper.updateEduClazz(eduClazz); + } + + /** + * 批量删除班级管理 + * + * @param ids 需要删除的班级管理主键 + * @return 结果 + */ + @Override + public int deleteEduClazzByIds(String ids) + { + return eduClazzMapper.deleteEduClazzByIds(Convert.toStrArray(ids)); + } + + /** + * 删除班级管理信息 + * + * @param id 班级管理主键 + * @return 结果 + */ + @Override + public int deleteEduClazzById(Long id) + { + return eduClazzMapper.deleteEduClazzById(id); + } +} diff --git a/ruoyi_edu/src/main/java/com/ruoyi/edu/service/impl/EduMenuServiceImpl.java b/ruoyi_edu/src/main/java/com/ruoyi/edu/service/impl/EduMenuServiceImpl.java new file mode 100644 index 0000000..f521007 --- /dev/null +++ b/ruoyi_edu/src/main/java/com/ruoyi/edu/service/impl/EduMenuServiceImpl.java @@ -0,0 +1,94 @@ +package com.ruoyi.edu.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.edu.mapper.EduMenuMapper; +import com.ruoyi.edu.domain.EduMenu; +import com.ruoyi.edu.service.IEduMenuService; +import com.ruoyi.common.core.text.Convert; + +/** + * 菜单管理Service业务层处理 + * + * @author ruoyi + * @date 2023-04-18 + */ +@Service +public class EduMenuServiceImpl implements IEduMenuService +{ + @Autowired + private EduMenuMapper eduMenuMapper; + + /** + * 查询菜单管理 + * + * @param id 菜单管理主键 + * @return 菜单管理 + */ + @Override + public EduMenu selectEduMenuById(Long id) + { + return eduMenuMapper.selectEduMenuById(id); + } + + /** + * 查询菜单管理列表 + * + * @param eduMenu 菜单管理 + * @return 菜单管理 + */ + @Override + public List selectEduMenuList(EduMenu eduMenu) + { + return eduMenuMapper.selectEduMenuList(eduMenu); + } + + /** + * 新增菜单管理 + * + * @param eduMenu 菜单管理 + * @return 结果 + */ + @Override + public int insertEduMenu(EduMenu eduMenu) + { + return eduMenuMapper.insertEduMenu(eduMenu); + } + + /** + * 修改菜单管理 + * + * @param eduMenu 菜单管理 + * @return 结果 + */ + @Override + public int updateEduMenu(EduMenu eduMenu) + { + return eduMenuMapper.updateEduMenu(eduMenu); + } + + /** + * 批量删除菜单管理 + * + * @param ids 需要删除的菜单管理主键 + * @return 结果 + */ + @Override + public int deleteEduMenuByIds(String ids) + { + return eduMenuMapper.deleteEduMenuByIds(Convert.toStrArray(ids)); + } + + /** + * 删除菜单管理信息 + * + * @param id 菜单管理主键 + * @return 结果 + */ + @Override + public int deleteEduMenuById(Long id) + { + return eduMenuMapper.deleteEduMenuById(id); + } +} diff --git a/ruoyi_edu/src/main/java/com/ruoyi/edu/service/impl/EduStudentServiceImpl.java b/ruoyi_edu/src/main/java/com/ruoyi/edu/service/impl/EduStudentServiceImpl.java new file mode 100644 index 0000000..f7f589e --- /dev/null +++ b/ruoyi_edu/src/main/java/com/ruoyi/edu/service/impl/EduStudentServiceImpl.java @@ -0,0 +1,94 @@ +package com.ruoyi.edu.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.edu.mapper.EduStudentMapper; +import com.ruoyi.edu.domain.EduStudent; +import com.ruoyi.edu.service.IEduStudentService; +import com.ruoyi.common.core.text.Convert; + +/** + * 学生管理Service业务层处理 + * + * @author ruoyi + * @date 2023-04-18 + */ +@Service +public class EduStudentServiceImpl implements IEduStudentService +{ + @Autowired + private EduStudentMapper eduStudentMapper; + + /** + * 查询学生管理 + * + * @param id 学生管理主键 + * @return 学生管理 + */ + @Override + public EduStudent selectEduStudentById(Long id) + { + return eduStudentMapper.selectEduStudentById(id); + } + + /** + * 查询学生管理列表 + * + * @param eduStudent 学生管理 + * @return 学生管理 + */ + @Override + public List selectEduStudentList(EduStudent eduStudent) + { + return eduStudentMapper.selectEduStudentList(eduStudent); + } + + /** + * 新增学生管理 + * + * @param eduStudent 学生管理 + * @return 结果 + */ + @Override + public int insertEduStudent(EduStudent eduStudent) + { + return eduStudentMapper.insertEduStudent(eduStudent); + } + + /** + * 修改学生管理 + * + * @param eduStudent 学生管理 + * @return 结果 + */ + @Override + public int updateEduStudent(EduStudent eduStudent) + { + return eduStudentMapper.updateEduStudent(eduStudent); + } + + /** + * 批量删除学生管理 + * + * @param ids 需要删除的学生管理主键 + * @return 结果 + */ + @Override + public int deleteEduStudentByIds(String ids) + { + return eduStudentMapper.deleteEduStudentByIds(Convert.toStrArray(ids)); + } + + /** + * 删除学生管理信息 + * + * @param id 学生管理主键 + * @return 结果 + */ + @Override + public int deleteEduStudentById(Long id) + { + return eduStudentMapper.deleteEduStudentById(id); + } +} diff --git a/ruoyi_edu/src/main/java/com/ruoyi/edu/service/impl/EduTeacherServiceImpl.java b/ruoyi_edu/src/main/java/com/ruoyi/edu/service/impl/EduTeacherServiceImpl.java new file mode 100644 index 0000000..db7286b --- /dev/null +++ b/ruoyi_edu/src/main/java/com/ruoyi/edu/service/impl/EduTeacherServiceImpl.java @@ -0,0 +1,94 @@ +package com.ruoyi.edu.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.edu.mapper.EduTeacherMapper; +import com.ruoyi.edu.domain.EduTeacher; +import com.ruoyi.edu.service.IEduTeacherService; +import com.ruoyi.common.core.text.Convert; + +/** + * 教师管理Service业务层处理 + * + * @author ruoyi + * @date 2023-04-18 + */ +@Service +public class EduTeacherServiceImpl implements IEduTeacherService +{ + @Autowired + private EduTeacherMapper eduTeacherMapper; + + /** + * 查询教师管理 + * + * @param id 教师管理主键 + * @return 教师管理 + */ + @Override + public EduTeacher selectEduTeacherById(Long id) + { + return eduTeacherMapper.selectEduTeacherById(id); + } + + /** + * 查询教师管理列表 + * + * @param eduTeacher 教师管理 + * @return 教师管理 + */ + @Override + public List selectEduTeacherList(EduTeacher eduTeacher) + { + return eduTeacherMapper.selectEduTeacherList(eduTeacher); + } + + /** + * 新增教师管理 + * + * @param eduTeacher 教师管理 + * @return 结果 + */ + @Override + public int insertEduTeacher(EduTeacher eduTeacher) + { + return eduTeacherMapper.insertEduTeacher(eduTeacher); + } + + /** + * 修改教师管理 + * + * @param eduTeacher 教师管理 + * @return 结果 + */ + @Override + public int updateEduTeacher(EduTeacher eduTeacher) + { + return eduTeacherMapper.updateEduTeacher(eduTeacher); + } + + /** + * 批量删除教师管理 + * + * @param ids 需要删除的教师管理主键 + * @return 结果 + */ + @Override + public int deleteEduTeacherByIds(String ids) + { + return eduTeacherMapper.deleteEduTeacherByIds(Convert.toStrArray(ids)); + } + + /** + * 删除教师管理信息 + * + * @param id 教师管理主键 + * @return 结果 + */ + @Override + public int deleteEduTeacherById(Long id) + { + return eduTeacherMapper.deleteEduTeacherById(id); + } +} diff --git a/ruoyi_edu/src/main/resources/mapper/edu/EduClazzMapper.xml b/ruoyi_edu/src/main/resources/mapper/edu/EduClazzMapper.xml new file mode 100644 index 0000000..98056b2 --- /dev/null +++ b/ruoyi_edu/src/main/resources/mapper/edu/EduClazzMapper.xml @@ -0,0 +1,67 @@ + + + + + + + + + + + + + select id, clazz_name, clazz_count, visible from edu_clazz + + + + + + + + insert into edu_clazz + + clazz_name, + clazz_count, + visible, + + + #{clazzName}, + #{clazzCount}, + #{visible}, + + + + + update edu_clazz + + clazz_name = #{clazzName}, + clazz_count = #{clazzCount}, + visible = #{visible}, + + where id = #{id} + + + + delete from edu_clazz where id = #{id} + + + + delete from edu_clazz where id in + + #{id} + + + + \ No newline at end of file diff --git a/ruoyi_edu/src/main/resources/mapper/edu/EduMenuMapper.xml b/ruoyi_edu/src/main/resources/mapper/edu/EduMenuMapper.xml new file mode 100644 index 0000000..5988fb4 --- /dev/null +++ b/ruoyi_edu/src/main/resources/mapper/edu/EduMenuMapper.xml @@ -0,0 +1,82 @@ + + + + + + + + + + + + + + + + select id, menu_name, menu_url, menu_img, menu_visible, menu_flag, menu_ordernum from edu_menu + + + + + + + + insert into edu_menu + + menu_name, + menu_url, + menu_img, + menu_visible, + menu_flag, + menu_ordernum, + + + #{menuName}, + #{menuUrl}, + #{menuImg}, + #{menuVisible}, + #{menuFlag}, + #{menuOrdernum}, + + + + + update edu_menu + + menu_name = #{menuName}, + menu_url = #{menuUrl}, + menu_img = #{menuImg}, + menu_visible = #{menuVisible}, + menu_flag = #{menuFlag}, + menu_ordernum = #{menuOrdernum}, + + where id = #{id} + + + + delete from edu_menu where id = #{id} + + + + delete from edu_menu where id in + + #{id} + + + + \ No newline at end of file diff --git a/ruoyi_edu/src/main/resources/mapper/edu/EduStudentMapper.xml b/ruoyi_edu/src/main/resources/mapper/edu/EduStudentMapper.xml new file mode 100644 index 0000000..5cd4e8a --- /dev/null +++ b/ruoyi_edu/src/main/resources/mapper/edu/EduStudentMapper.xml @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + select id, stu_sno, stu_name, stu_ncid, stu_ocid from edu_student + + + + + + + + insert into edu_student + + stu_sno, + stu_name, + stu_ncid, + stu_ocid, + + + #{stuSno}, + #{stuName}, + #{stuNcid}, + #{stuOcid}, + + + + + update edu_student + + stu_sno = #{stuSno}, + stu_name = #{stuName}, + stu_ncid = #{stuNcid}, + stu_ocid = #{stuOcid}, + + where id = #{id} + + + + delete from edu_student where id = #{id} + + + + delete from edu_student where id in + + #{id} + + + + \ No newline at end of file diff --git a/ruoyi_edu/src/main/resources/mapper/edu/EduTeacherMapper.xml b/ruoyi_edu/src/main/resources/mapper/edu/EduTeacherMapper.xml new file mode 100644 index 0000000..4696f4b --- /dev/null +++ b/ruoyi_edu/src/main/resources/mapper/edu/EduTeacherMapper.xml @@ -0,0 +1,77 @@ + + + + + + + + + + + + + + + select id, tea_sno, tea_name, flag, tea_title, dept_id from edu_teacher + + + + + + + + insert into edu_teacher + + tea_sno, + tea_name, + flag, + tea_title, + dept_id, + + + #{teaSno}, + #{teaName}, + #{flag}, + #{teaTitle}, + #{deptId}, + + + + + update edu_teacher + + tea_sno = #{teaSno}, + tea_name = #{teaName}, + flag = #{flag}, + tea_title = #{teaTitle}, + dept_id = #{deptId}, + + where id = #{id} + + + + delete from edu_teacher where id = #{id} + + + + delete from edu_teacher where id in + + #{id} + + + + \ No newline at end of file diff --git a/ruoyi_edu/src/main/resources/templates/edu/clazz/add.html b/ruoyi_edu/src/main/resources/templates/edu/clazz/add.html new file mode 100644 index 0000000..a780745 --- /dev/null +++ b/ruoyi_edu/src/main/resources/templates/edu/clazz/add.html @@ -0,0 +1,43 @@ + + + + + + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi_edu/src/main/resources/templates/edu/clazz/clazz.html b/ruoyi_edu/src/main/resources/templates/edu/clazz/clazz.html new file mode 100644 index 0000000..13c9107 --- /dev/null +++ b/ruoyi_edu/src/main/resources/templates/edu/clazz/clazz.html @@ -0,0 +1,102 @@ + + + + + + +
+
+
+
+
+
    +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • +  搜索 +  重置 +
  • +
+
+
+
+ + +
+
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi_edu/src/main/resources/templates/edu/clazz/edit.html b/ruoyi_edu/src/main/resources/templates/edu/clazz/edit.html new file mode 100644 index 0000000..77062e4 --- /dev/null +++ b/ruoyi_edu/src/main/resources/templates/edu/clazz/edit.html @@ -0,0 +1,44 @@ + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi_edu/src/main/resources/templates/edu/menu/add.html b/ruoyi_edu/src/main/resources/templates/edu/menu/add.html new file mode 100644 index 0000000..dc2891f --- /dev/null +++ b/ruoyi_edu/src/main/resources/templates/edu/menu/add.html @@ -0,0 +1,61 @@ + + + + + + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi_edu/src/main/resources/templates/edu/menu/edit.html b/ruoyi_edu/src/main/resources/templates/edu/menu/edit.html new file mode 100644 index 0000000..ab70fb4 --- /dev/null +++ b/ruoyi_edu/src/main/resources/templates/edu/menu/edit.html @@ -0,0 +1,62 @@ + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi_edu/src/main/resources/templates/edu/menu/menu.html b/ruoyi_edu/src/main/resources/templates/edu/menu/menu.html new file mode 100644 index 0000000..6e94d65 --- /dev/null +++ b/ruoyi_edu/src/main/resources/templates/edu/menu/menu.html @@ -0,0 +1,126 @@ + + + + + + +
+
+
+
+
+
    +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • +  搜索 +  重置 +
  • +
+
+
+
+ + +
+
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi_edu/src/main/resources/templates/edu/student/add.html b/ruoyi_edu/src/main/resources/templates/edu/student/add.html new file mode 100644 index 0000000..071a581 --- /dev/null +++ b/ruoyi_edu/src/main/resources/templates/edu/student/add.html @@ -0,0 +1,49 @@ + + + + + + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi_edu/src/main/resources/templates/edu/student/edit.html b/ruoyi_edu/src/main/resources/templates/edu/student/edit.html new file mode 100644 index 0000000..cb76cdc --- /dev/null +++ b/ruoyi_edu/src/main/resources/templates/edu/student/edit.html @@ -0,0 +1,50 @@ + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/cs_student/src/main/resources/templates/edu/student/student.html b/ruoyi_edu/src/main/resources/templates/edu/student/student.html similarity index 80% rename from cs_student/src/main/resources/templates/edu/student/student.html rename to ruoyi_edu/src/main/resources/templates/edu/student/student.html index e1518fe..d1e1bd3 100644 --- a/cs_student/src/main/resources/templates/edu/student/student.html +++ b/ruoyi_edu/src/main/resources/templates/edu/student/student.html @@ -10,25 +10,21 @@
    +
  • + + +
  • - +
  • - - + +
  • - - -
  • -
  • - - -
  • -
  • - - + +
  •  搜索 @@ -81,24 +77,20 @@ visible: false }, { - field: 'name', + field: 'stuSno', + title: '学号' + }, + { + field: 'stuName', title: '姓名' }, { - field: 'sex', - title: '性别' + field: 'stuNcid', + title: '新班级' }, { - field: 'age', - title: '年龄' - }, - { - field: 'depart', - title: '部门' - }, - { - field: 'cclass', - title: '班级' + field: 'stuOcid', + title: '旧班级' }, { title: '操作', diff --git a/ruoyi_edu/src/main/resources/templates/edu/teacher/add.html b/ruoyi_edu/src/main/resources/templates/edu/teacher/add.html new file mode 100644 index 0000000..38a9f9b --- /dev/null +++ b/ruoyi_edu/src/main/resources/templates/edu/teacher/add.html @@ -0,0 +1,55 @@ + + + + + + +
    + +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    + +
    + + + + \ No newline at end of file diff --git a/ruoyi_edu/src/main/resources/templates/edu/teacher/edit.html b/ruoyi_edu/src/main/resources/templates/edu/teacher/edit.html new file mode 100644 index 0000000..edb3f94 --- /dev/null +++ b/ruoyi_edu/src/main/resources/templates/edu/teacher/edit.html @@ -0,0 +1,56 @@ + + + + + + +
    +
    + +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    +
    + + + + \ No newline at end of file diff --git a/ruoyi_edu/src/main/resources/templates/edu/teacher/teacher.html b/ruoyi_edu/src/main/resources/templates/edu/teacher/teacher.html new file mode 100644 index 0000000..5edabe9 --- /dev/null +++ b/ruoyi_edu/src/main/resources/templates/edu/teacher/teacher.html @@ -0,0 +1,118 @@ + + + + + + +
    +
    +
    +
    +
    +
      +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • +  搜索 +  重置 +
    • +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + + \ No newline at end of file