SSM+Vue+Element-UI实现教资考前指导系统

前言介绍

对于本教资考前指导系统的设计来说,系统开发主要是采用java语言技术,在整个系统的设计中应用MySQL数据库来完成数据存储,具体根据教资考前指导系统的现状来进行开发的,具体根据现实的需求来实现四六级在线考试系统网络化的管理,各类信息有序地进行存储,进入教资考前指导系统页面之后,方可开始操作主控界面,主要功能包括:

(1)前台:首页、教师问题、信息教资信息、复习资料、教学视频、在线练习、个人中心、后台管理

(2)管理员:首页、个人中心、学生管理、教师管理、学院名称管理、问题信息管理、教资信息管理、资料类型管理、复习资料管理、教学视频管理、资质面试管理、点评信息管理、系统管理。 

(3)学生:首页、个人中心、问题信息管理、资质面试管理、点评信息管理

(4)教师:首页、个人中心、问题信息管理、资质面试管理、点评信息管理、练习题库管理、在线练习管理、练习管理

系统展示

前台

登录页面

问题信息

教资信息

复习资料 

管理员页面 

教师管理

复习资料管理

教学视频管理

学生页面

教师页面

部分核心代码 

在线练习表

/*** 在线练习表* 后端接口* @author * @email * @date 2022-04-23 22:53:50*/
@RestController
@RequestMapping("/exampaper")
public class ExampaperController {@Autowiredprivate ExampaperService exampaperService;/*** 后端列表*/@RequestMapping("/page")public R page(@RequestParam Map<String, Object> params,ExampaperEntity exampaper, HttpServletRequest request){EntityWrapper<ExampaperEntity> ew = new EntityWrapper<ExampaperEntity>();PageUtils page = exampaperService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, exampaper), params), params));return R.ok().put("data", page);}/*** 前端列表*/@IgnoreAuth@RequestMapping("/list")public R list(@RequestParam Map<String, Object> params,ExampaperEntity exampaper, HttpServletRequest request){EntityWrapper<ExampaperEntity> ew = new EntityWrapper<ExampaperEntity>();PageUtils page = exampaperService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, exampaper), params), params));return R.ok().put("data", page);}/*** 列表*/@RequestMapping("/lists")public R list( ExampaperEntity exampaper){EntityWrapper<ExampaperEntity> ew = new EntityWrapper<ExampaperEntity>();ew.allEq(MPUtil.allEQMapPre( exampaper, "exampaper")); return R.ok().put("data", exampaperService.selectListView(ew));}/*** 查询*/@RequestMapping("/query")public R query(ExampaperEntity exampaper){EntityWrapper< ExampaperEntity> ew = new EntityWrapper< ExampaperEntity>();ew.allEq(MPUtil.allEQMapPre( exampaper, "exampaper")); ExampaperView exampaperView =  exampaperService.selectView(ew);return R.ok("查询在线练习表成功").put("data", exampaperView);}/*** 后端详情*/@RequestMapping("/info/{id}")public R info(@PathVariable("id") Long id){ExampaperEntity exampaper = exampaperService.selectById(id);return R.ok().put("data", exampaper);}/*** 前端详情*/@IgnoreAuth@RequestMapping("/detail/{id}")public R detail(@PathVariable("id") Long id){ExampaperEntity exampaper = exampaperService.selectById(id);return R.ok().put("data", exampaper);}/*** 后端保存*/@RequestMapping("/save")public R save(@RequestBody ExampaperEntity exampaper, HttpServletRequest request){exampaper.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());//ValidatorUtils.validateEntity(exampaper);exampaperService.insert(exampaper);return R.ok();}/*** 前端保存*/@RequestMapping("/add")public R add(@RequestBody ExampaperEntity exampaper, HttpServletRequest request){exampaper.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());//ValidatorUtils.validateEntity(exampaper);exampaperService.insert(exampaper);return R.ok();}/*** 修改*/@RequestMapping("/update")@Transactionalpublic R update(@RequestBody ExampaperEntity exampaper, HttpServletRequest request){//ValidatorUtils.validateEntity(exampaper);exampaperService.updateById(exampaper);//全部更新return R.ok();}/*** 删除*/@RequestMapping("/delete")public R delete(@RequestBody Long[] ids){exampaperService.deleteBatchIds(Arrays.asList(ids));return R.ok();}/*** 提醒接口*/@RequestMapping("/remind/{columnName}/{type}")public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request, @PathVariable("type") String type,@RequestParam Map<String, Object> map) {map.put("column", columnName);map.put("type", type);if(type.equals("2")) {SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");Calendar c = Calendar.getInstance();Date remindStartDate = null;Date remindEndDate = null;if(map.get("remindstart")!=null) {Integer remindStart = Integer.parseInt(map.get("remindstart").toString());c.setTime(new Date()); c.add(Calendar.DAY_OF_MONTH,remindStart);remindStartDate = c.getTime();map.put("remindstart", sdf.format(remindStartDate));}if(map.get("remindend")!=null) {Integer remindEnd = Integer.parseInt(map.get("remindend").toString());c.setTime(new Date());c.add(Calendar.DAY_OF_MONTH,remindEnd);remindEndDate = c.getTime();map.put("remindend", sdf.format(remindEndDate));}}Wrapper<ExampaperEntity> wrapper = new EntityWrapper<ExampaperEntity>();if(map.get("remindstart")!=null) {wrapper.ge(columnName, map.get("remindstart"));}if(map.get("remindend")!=null) {wrapper.le(columnName, map.get("remindend"));}int count = exampaperService.selectCount(wrapper);return R.ok().put("count", count);}}

entity层

 
/*** 点评信息* 数据库通用操作实体类(普通增删改查)* @author * @email * @date 2022-04-23 22:53:50*/
@TableName("dianpingxinxi")
public class DianpingxinxiEntity<T> implements Serializable {private static final long serialVersionUID = 1L;public DianpingxinxiEntity() {}public DianpingxinxiEntity(T t) {try {BeanUtils.copyProperties(this, t);} catch (IllegalAccessException | InvocationTargetException e) {// TODO Auto-generated catch blocke.printStackTrace();}}/*** 主键id*/@TableIdprivate Long id;/*** 标题*/private String biaoti;/*** 学号*/private String xuehao;/*** 姓名*/private String xingming;/*** 点评内容*/private String dianpingneirong;/*** 意见*/private String yijian;/*** 点评时间*/@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")@DateTimeFormat 		private Date dianpingshijian;/*** 工号*/private String gonghao;/*** 教师姓名*/private String jiaoshixingming;@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")@DateTimeFormatprivate Date addtime;public Date getAddtime() {return addtime;}public void setAddtime(Date addtime) {this.addtime = addtime;}public Long getId() {return id;}public void setId(Long id) {this.id = id;}/*** 设置:标题*/public void setBiaoti(String biaoti) {this.biaoti = biaoti;}/*** 获取:标题*/public String getBiaoti() {return biaoti;}/*** 设置:学号*/public void setXuehao(String xuehao) {this.xuehao = xuehao;}/*** 获取:学号*/public String getXuehao() {return xuehao;}/*** 设置:姓名*/public void setXingming(String xingming) {this.xingming = xingming;}/*** 获取:姓名*/public String getXingming() {return xingming;}/*** 设置:点评内容*/public void setDianpingneirong(String dianpingneirong) {this.dianpingneirong = dianpingneirong;}/*** 获取:点评内容*/public String getDianpingneirong() {return dianpingneirong;}/*** 设置:意见*/public void setYijian(String yijian) {this.yijian = yijian;}/*** 获取:意见*/public String getYijian() {return yijian;}/*** 设置:点评时间*/public void setDianpingshijian(Date dianpingshijian) {this.dianpingshijian = dianpingshijian;}/*** 获取:点评时间*/public Date getDianpingshijian() {return dianpingshijian;}/*** 设置:工号*/public void setGonghao(String gonghao) {this.gonghao = gonghao;}/*** 获取:工号*/public String getGonghao() {return gonghao;}/*** 设置:教师姓名*/public void setJiaoshixingming(String jiaoshixingming) {this.jiaoshixingming = jiaoshixingming;}/*** 获取:教师姓名*/public String getJiaoshixingming() {return jiaoshixingming;}}

登陆拦截功能

/*** 权限(Token)验证*/
@Component
public class AuthorizationInterceptor implements HandlerInterceptor {public static final String LOGIN_TOKEN_KEY = "Token";@Autowiredprivate TokenService tokenService;@Overridepublic boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {//支持跨域请求response.setHeader("Access-Control-Allow-Methods", "POST, GET, OPTIONS, DELETE");response.setHeader("Access-Control-Max-Age", "3600");response.setHeader("Access-Control-Allow-Credentials", "true");response.setHeader("Access-Control-Allow-Headers", "x-requested-with,request-source,Token, Origin,imgType, Content-Type, cache-control,postman-token,Cookie, Accept,authorization");response.setHeader("Access-Control-Allow-Origin", request.getHeader("Origin"));IgnoreAuth annotation;if (handler instanceof HandlerMethod) {annotation = ((HandlerMethod) handler).getMethodAnnotation(IgnoreAuth.class);} else {return true;}//从header中获取tokenString token = request.getHeader(LOGIN_TOKEN_KEY);/*** 不需要验证权限的方法直接放过*/if(annotation!=null) {return true;}TokenEntity tokenEntity = null;if(StringUtils.isNotBlank(token)) {tokenEntity = tokenService.getTokenEntity(token);}if(tokenEntity != null) {request.getSession().setAttribute("userId", tokenEntity.getUserid());request.getSession().setAttribute("role", tokenEntity.getRole());request.getSession().setAttribute("tableName", tokenEntity.getTablename());request.getSession().setAttribute("username", tokenEntity.getUsername());return true;}PrintWriter writer = null;response.setCharacterEncoding("UTF-8");response.setContentType("application/json; charset=utf-8");try {writer = response.getWriter();writer.print(JSONObject.toJSONString(R.error(401, "请先登录")));} finally {if(writer != null){writer.close();}}
//				throw new EIException("请先登录", 401);return false;}
}

 

 此源码非开源,若需要此源码可扫码添加微信或者qq:2214904953进行咨询!

2600多套项目欢迎咨询

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://xiahunao.cn/news/3015065.html

如若内容造成侵权/违法违规/事实不符,请联系瞎胡闹网进行投诉反馈,一经查实,立即删除!

相关文章

深入解析:企业级OV SSL证书的技术价值与应用实践

JoySSL官网 注册码230918 在互联网安全日益受到重视的今天&#xff0c;SSL证书已成为保护网站数据传输安全的基石。其中&#xff0c;企业级OV&#xff08;Organization Validation&#xff09;SSL证书凭借其增强的安全特性和对企业身份的严格验证&#xff0c;在众多类型的SSL证…

省钱有道:优化河南乙级灌溉排涝资质晋升甲级的财务策略

省钱有道&#xff1a;优化河南乙级灌溉排涝资质晋升甲级的财务策略 一、引言 在河南乙级灌溉排涝企业晋升甲级资质的过程中&#xff0c;财务策略的优化对于降低成本、提高经济效益具有重要意义。以下是一些建议&#xff0c;旨在帮助企业实现晋升过程中的财务最优化。 二、费用…

Meltdown 以及Linux KPTI技术简介

文章目录 前言一、Introduction二、 Background2.1 Out-of-order execution2.2 Address Spaces2.3 Cache Attacks 三、A Toy Example四、Building Blocks of the Attack4.1 Executing Transient Instructions4.2 Building a Covert Channel 五、Meltdown5.1 Attack Description…

微信小程序03: 获取不限制的小程序二维码

全文目录,一步到位 1.前言简介1.1 专栏传送门1.1.1 上文小总结1.1.2 上文传送门 2. 获取不限制二维码操作2.1 准备工作2.1.1 请先复制00篇的统一封装代码2.1.2 修改配置文件中的参数 2.2 具体代码使用与注释如下2.2.1 业务代码如下2.2.2 代码解释(一)[无需复制]2.2.3 创建Base6…

网关设备是什么?-天拓四方

随着科技的飞速发展和网络的日益普及&#xff0c;我们的生活中充满了各种各样的网络设备和系统。这些设备和系统之间如何相互通信、交换数据呢&#xff1f;这就需要我们引入一个关键的概念——网关设备。本文将详细解释网关设备是什么&#xff0c;帮助广大读者更好地理解这一重…

OpenAI API搭建的智能家居助手;私密大型语言模型(LLM)聊天机器人;视频和音频文件的自动化识别和翻译工具

✨ 1: GPT Home 基于Raspberry Pi和OpenAI API搭建的智能家居助手 GPT Home是一个基于Raspberry Pi和OpenAI API搭建的智能家居助手&#xff0c;功能上类似于Google Nest Hub或Amazon Alexa。通过详细的设置指南和配件列表&#xff0c;用户可以自行组装和配置这个设备&#x…

CI/CD 上云为何如此重要

近年来&#xff0c;敏捷度和速度日渐成为产品开发的关键。市场高速运行&#xff0c;时间就是金钱&#xff0c;也是企业发展的关键。游戏、金融、自动化产业等软件开发企业更像卷入了一场无休止的时间竞赛。 这也难怪 DevOps 备受欢迎。企业借助 DevOps 不断加速优质软件的交付…

为什么SSL证书的有效期很短?

在当今互联网世界中&#xff0c;SSL证书作为保障网站数据传输安全的重要工具&#xff0c;其有效期往往被设定为相对较短的时间。对于许多非专业人士来说&#xff0c;可能会好奇&#xff1a;为什么SSL证书不能像其他证件一样拥有较长的有效期呢&#xff1f;今天&#xff0c;我们…

Linux-04

账号管理 添加账号 useradd 选项 用户名 useradd -m dai删除帐号 userdel 选项 用户名 userdel -r dai修改帐号 usermod 选项 用户名usermod -d /home/user dai &#xff08;修改位置&#xff09;切换帐号 su username su dai退出账号 exit $表示普通用户 #表示超级用户&#…

[Android]国内流行的应用市场

国内应用市场的特点 由于Google Play商店服务国内不可用&#xff0c;有许多其它的应用商店充当Android应用的分发渠道。这些商店通常由中国的主要科技公司运营&#xff0c;每个商店都有自己的运营策略和用户基础。 全球移动供应商市场份额&#xff1a;https://gs.statcounter…

苍穹外卖项目---------收获以及改进(3-4天)

①公共字段填充----mybatis 第一步&#xff1a;自定义注解 /*** 自定义注解用于标识某个方法需要进行功能字段的填充*/ Target(ElementType.METHOD) Retention(RetentionPolicy.RUNTIME) public interface AutoFill {//枚举&#xff1a;数据库操作类型&#xff1a; update ins…

22_Scala集合Seq

文章目录 Seq序列1.构建集合2.List集合元素拼接&&集合拼接3.可变Seq&&List3.1 ListBuffer创建3.2 增删改查3.3 相互转化 Appendix1.Scala起别名2.Seq底层3.关于运算符操作: :4.空集合的表示 Seq序列 –Seq表示有序&#xff0c;数据可重复的集合 1.构建集合 …

2024年618什么值得买?盘点618值得购买的好物

一年一度的618购物狂欢节即将来临&#xff0c;大家是否已经跃跃欲试&#xff0c;却又在琳琅满目的商品中犹豫不决&#xff1f;别烦恼&#xff0c;我特地为大家准备了一份购物清单&#xff01;无论你是需要运动健身的得力助手&#xff0c;还是追求工作生活的精致好物&#xff0c…

跨考专业课142分,上岸重邮!

这个系列会邀请上岸学长学姐进行经验分享~ 今天分享经验的同学是我的“关门弟子”&#xff0c;小叮当&#xff0c;跨考上岸重邮通信工程&#xff01;从平时和小叮当的交流和测试&#xff0c;就能看出专业课水平&#xff0c;我一直和她开玩笑说&#xff0c;早点遇到我&#xff…

WRT1900ACS搭建openwrt服务器小记

参考链接 wrt1900acs openwrt wrt1900acs openwrt 刷机 wrt1900acs原生固件刷openwrt-23.05.3-mvebu-cortexa9-linksys_wrt1900acs-squashfs-factory.img wrt1900acs openwrt更新刷openwrt-23.05.3-mvebu-cortexa9-linksys_wrt1900acs-squashfs-sysupgrade.bin 通过WEB UI来…

Elsevier——投稿系统遇到bug时的解决方法

重要&#xff1a;找期刊客服&#xff01;&#xff01;&#xff01; 一、方法&#xff1a; 1. 点击进入与官方客服的对话 2. 按要求输入个人信息 3. 输入遇到的问题 比如&#xff1a; 主题&#xff1a;The Current Status is jammed. 详细描述&#xff1a;The Current State o…

【容器】k8s获取的节点oom事件并输出到node事件

在debug k8s node不可用过程中&#xff0c;有可能会看到: System OOM encountered, victim process: xx为了搞清楚oom事件是什么&#xff0c;以及如何产生的&#xff0c;我们做了一定探索&#xff0c;并输出了下面的信息。&#xff08;本文关注oom事件是如何生成&传输的&a…

电脑显示丢失mfc140u.dll怎么修复,总共有7个方法

mfc140u.dll 是一个动态链接库&#xff08;Dynamic Link Library&#xff09;文件&#xff0c;它是Microsoft Foundation Class (MFC)库的一部分&#xff0c;专为使用C编程语言开发Windows应用程序而设计。MFC库由微软提供&#xff0c;作为一个高级的应用程序框架&#xff0c;旨…

c++匿名比较函数参数顺序逻辑

在使用lower_bound和upper_bound时&#xff0c;想自定义比较函数&#xff0c;在这个过程中出现了参数定义顺序导致的错误问题&#xff0c;于是查找学习了下自定义比较函数需要符合的规则。 目录 1 lower_bound和upper_bound函数 1.1 lower_bound 1.2 upper_bound 2 问题产…

Java Streams和Collectors的使用技巧

文章目录 引言I 对list集合进行数据分组筛选1.1 按字段1进行分组并选择每组中时间最新的元素1.2 对list集合按照对象属性进行分组引言 应用场景: 对某一个字段进行分组,按照特定规则进行去重对某一个字段进行分组 //查询不显示城市QueryWrapper<JavaType> queryWrappe…