教务查询系统简介
项目核心代码展示
service层如下:
Teacher老师Service层:
public interface TeacherService {
//根据id更新老师信息
void updateById(Integer id, TeacherCustom teacherCustom) throws Exception;
//根据id删除老师信息
void removeById(Integer id) throws Exception;
//获取分页查询老师信息
List<TeacherCustom> findByPaging(Integer page, Integer pageSize) throws Exception;
//保存老师信息
Boolean save(TeacherCustom teacherCustom) throws Exception;
//获取老师总数
int getCountTeacher() throws Exception;
//根据id查询
TeacherCustom findById(Integer id) throws Exception;
//根据名字查询
List<TeacherCustom> findByName(String name, Integer page, Integer pageSize) throws Exception;
//获取全部教师
List<TeacherCustom> findAll() throws Exception;
}
CourseService课程信息:
public interface CourseService {
//根据id更新课程信息
void upadteById(Integer id, CourseCustom courseCustom) throws Exception;
//根据id删除课程信息
Boolean removeById(Integer id) throws Exception;
//获取分页查询课程信息
List<CourseCustom> findByPaging(Integer page, Integer pageSize) throws Exception;
//插入课程信息
Boolean save(CourseCustom couseCustom) throws Exception;
//获取课程总数
int getCountCouse() throws Exception;
//根据id查询
CourseCustom findById(Integer id) throws Exception;
//根据名字查询
List<CourseCustom> findByName(String name, Integer page, Integer pageSize) throws Exception;
//根据教师id查找课程
List<CourseCustom> findByTeacherID(Integer id) throws Exception;
}
选课表servic层:
public interface SelectedCourseService {
//根据课程ID查询课程
List<SelectedCourseCustom> findByCourseID(Integer id) throws Exception;
//根据课程id分页查询课程
List<SelectedCourseCustom> findByCourseIDPaging(Integer page, Integer id) throws Exception;
//获取该课程学生数
Integer countByCourseID(Integer id) throws Exception;
//查询指定学生成绩
SelectedCourseCustom findOne(SelectedCourseCustom selectedCourseCustom) throws Exception;
//打分
void updataOne(SelectedCourseCustom selectedCourseCustom) throws Exception;
//选课
void save(SelectedCourseCustom selectedCourseCustom) throws Exception;
//根据学生id查找课程
List<SelectedCourseCustom> findByStudentID(Integer id) throws Exception;
//退课
void remove(SelectedCourseCustom selectedCourseCustom) throws Exception;
}
Student学生Service层:
public interface StudentService {
//根据id个更新学生信息
void updataById(Integer id, StudentCustom studentCustom) throws Exception;
//根据id删除学生信息
void removeById(Integer id) throws Exception;
//获取分页查询学生信息
List<StudentCustom> findByPaging(Integer page, Integer pageSize) throws Exception;
//保存学生信息
Boolean save(StudentCustom studentCustoms) throws Exception;
//获取学生总数
int getCountStudent() throws Exception;
//根据id获取学生信息
StudentCustom findById(Integer id) throws Exception;
//根据名字模糊查询
List<StudentCustom> findByName(String name, Integer page, Integer pageSize) throws Exception;
// 一对多查询,查询该学生的选课信息
StudentCustom findStudentAndSelectCourseListByName(String name) throws Exception;
}
项目界面展示
登陆界面如下所示
管理界面如下所示
课程名单管理(增删改查)
学生名单管理(增删改查)
教师名单管理(增删改查)
用户管理(账号密码可重置)
不同用户权限分离,教师可查看自己的课程。
项目免费获取
https://download.csdn.net/download/weixin_42814075/87453982