当前位置:   article > 正文

基于SSM实现在线考试系统_基于ssm的在线考试系统

基于ssm的在线考试系统

作者主页:编程千纸鹤

作者简介:Java、前端、Python开发多年,做过高程,项目经理,架构师

主要内容:Java项目开发、毕业设计开发、面试技术整理、最新技术分享

收藏点赞不迷路  关注作者有好处

文末获得源码

项目编号:BS-GX-029

系统说明:

本系统基于SSM框架开发实现了一个在校学生考试系统,主要实现了用户管理、角色管理、权限管理、试题管理、试卷管理、考试管理、考试统计,学生在线考试,试卷回顾, 在线打分等功能。考试功能比较齐全,也比较全面,适合任意学校、企业的考试使用。另外系统有比较完备的权限管理系统,可以有效的进行权限管理。

系统分两个角色:

1,管理员   2,考试学生

学生端演示:

考试用户登陆:

http://localhost:8080/OnlineExam/home/login

用户注册

我的考试

开始考试:

考试交卷:查看成绩

回顾试卷:

修改账户信息

后台管理员登陆:  admin / admin

http://localhost:8080/OnlineExam/system/login

系统设置-菜单管理

角色管理:

系统用户管理

系统操作日志:

学科管理:

考生管理:

试题管理:

考试管理:

试卷管理:

答题管理

成绩统计

相关代码展示:

ExamPaperService:

package com.ischoolbar.programmer.service.admin;

import java.util.List;

import java.util.Map;

import org.springframework.stereotype.Service;

import com.ischoolbar.programmer.entity.admin.ExamPaper;

/**

 * 试卷service类

 * @author Administrator

 *

 */

@Service

public interface ExamPaperService {

      public int add(ExamPaper examPaper);

      public int edit(ExamPaper examPaper);

      public List<ExamPaper> findList(Map<String, Object> queryMap);

      public int delete(Long id);

      public Integer getTotal(Map<String, Object> queryMap);

      public List<ExamPaper> findHistory(Map<String, Object> queryMap);

      public Integer getHistoryTotal(Map<String, Object> queryMap);

      public ExamPaper find(Map<String, Object> queryMap);

      public int submitPaper(ExamPaper examPaper);

      public List<Map<String,Object>> getExamStats(Long examId);

}

ExamPaperServiceImpl:

package com.ischoolbar.programmer.service.admin.impl;

/**

 * 试卷service实现类

 */

import java.util.List;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.stereotype.Service;

import com.ischoolbar.programmer.dao.admin.ExamPaperDao;

import com.ischoolbar.programmer.entity.admin.ExamPaper;

import com.ischoolbar.programmer.service.admin.ExamPaperService;

@Service

public class ExamPaperServiceImpl implements ExamPaperService {

      @Autowired

      private ExamPaperDao examPaperDao;

     

      @Override

      public int delete(Long id) {

           // TODO Auto-generated method stub

           return examPaperDao.delete(id);

      }

      @Override

      public Integer getTotal(Map<String, Object> queryMap) {

           // TODO Auto-generated method stub

           return examPaperDao.getTotal(queryMap);

      }

      @Override

      public int add(ExamPaper examPaper) {

           // TODO Auto-generated method stub

           return examPaperDao.add(examPaper);

      }

      @Override

      public int edit(ExamPaper examPaper) {

           // TODO Auto-generated method stub

           return examPaperDao.edit(examPaper);

      }

      @Override

      public List<ExamPaper> findList(Map<String, Object> queryMap) {

           // TODO Auto-generated method stub

           return examPaperDao.findList(queryMap);

      }

      @Override

      public List<ExamPaper> findHistory(Map<String, Object> queryMap) {

           // TODO Auto-generated method stub

           return examPaperDao.findHistory(queryMap);

      }

      @Override

      public Integer getHistoryTotal(Map<String, Object> queryMap) {

           // TODO Auto-generated method stub

           return examPaperDao.getHistoryTotal(queryMap);

      }

      @Override

      public ExamPaper find(Map<String, Object> queryMap) {

           // TODO Auto-generated method stub

           return examPaperDao.find(queryMap);

      }

      @Override

      public int submitPaper(ExamPaper examPaper) {

           // TODO Auto-generated method stub

           return examPaperDao.submitPaper(examPaper);

      }

      @Override

      public List<Map<String,Object>> getExamStats(Long examId) {

           // TODO Auto-generated method stub

           return examPaperDao.getExamStats(examId);

      }

}

StudentService:

package com.ischoolbar.programmer.service.admin;

import java.util.List;

import java.util.Map;

import org.springframework.stereotype.Service;

import com.ischoolbar.programmer.entity.admin.Student;

/**

 * 考生service类

 * @author Administrator

 *

 */

@Service

public interface StudentService {

      public int add(Student student);

      public int edit(Student student);

      public List<Student> findList(Map<String, Object> queryMap);

      public int delete(Long id);

      public Integer getTotal(Map<String, Object> queryMap);

      public Student findByName(String name);

}

StudentServiceImpl:

package com.ischoolbar.programmer.service.admin.impl;

/**

 * 考生service实现类

 */

import java.util.List;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.stereotype.Service;

import com.ischoolbar.programmer.dao.admin.StudentDao;

import com.ischoolbar.programmer.entity.admin.Student;

import com.ischoolbar.programmer.service.admin.StudentService;

@Service

public class StudentServiceImpl implements StudentService {

      @Autowired

      private StudentDao studentDao;

      @Override

      public int add(Student student) {

           // TODO Auto-generated method stub

           return studentDao.add(student);

      }

      @Override

      public int edit(Student student) {

           // TODO Auto-generated method stub

           return studentDao.edit(student);

      }

      @Override

      public List<Student> findList(Map<String, Object> queryMap) {

           // TODO Auto-generated method stub

           return studentDao.findList(queryMap);

      }

      @Override

      public int delete(Long id) {

           // TODO Auto-generated method stub

           return studentDao.delete(id);

      }

      @Override

      public Integer getTotal(Map<String, Object> queryMap) {

           // TODO Auto-generated method stub

           return studentDao.getTotal(queryMap);

      }

      @Override

      public Student findByName(String name) {

           // TODO Auto-generated method stub

           return studentDao.findByName(name);

      }

     

     

}

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小小林熬夜学编程/article/detail/495468
推荐阅读
相关标签
  

闽ICP备14008679号