末尾获取源码
开发语言:Java
Java开发工具:JDK1.8
后端框架:SSM
前端框架:VUE
数据库:MySQL5.7
服务器:Tomcat8.5
后端开发软件:IDEA / Eclipse

前端开发软件:HBuilderX / WeChat_devtools
是否Maven项目:是


目录

一、项目简介

二、系统功能

三、系统项目截图

3.1小程序端

3.2管理员

3.3教师

四、核心代码

4.1登录相关

4.2文件上传

4.3封装


一、项目简介

基于微信小程序的高校课堂教学管理系统利用网络沟通、计算机信息存储管理,有着与传统的方式所无法替代的优点。比如计算检索速度特别快、可靠性特别高、存储容量特别大、保密性特别好、可保存时间特别长、成本特别低等。在工作效率上,能够得到极大地提高,延伸至服务水平也会有好的收获,有了网络,基于微信小程序的高校课堂教学管理系统的各方面的管理更加科学和系统,更加规范和简便。


二、系统功能

基于微信小程序的高校课堂教学管理系统主要包括三大功能模块,即学生、教师、管理员。

(1)管理员:系统中的核心用户是管理员,管理员登录后,通过管理员来管理后台系统。主要功能有:首页、个人中心、教师管理、学生管理、课程分类管理、课程资源管理、互动论坛、系统管理。

(2)教师:首页、个人中心、课程资源管理、试题管理、课堂测试管理。

(3)学生:首页、课程资源、测试、互动论坛、我的。


三、系统项目截图

3.1小程序端

学生在小程序端进行注册并且进行登录。

填写自己的个人信息进行注册

登录成功后可以看到有首页、课程资源、测试、互动论坛、我的功能模块。

课程资源学生可以点击想要查看的资源进行观看。

课程分类学生可以按照自己想要的分类进行搜索并且进行观看。

互动论坛可以查看学生发表的信息进行互动

在我的,可以查看我的收藏管理、测试记录、错题本、我的发帖等。

还可以点击自己的信息进行修改

在测试页面可以查看老师发布的测试题目

点击测试可以对老师发布的题目进行答题。

3.2管理员

老师和管理员都可以在后台进行登录。

管理员输入账号密码登录后可以看到以下功能首页、个人中心、教师管理、学生管理、课程分类管理、课程资源管理、互动论坛、系统管理。

课程分类页面可以添加新的分类,也可以删除新的分类、或者修改分类

课程资源管理员可以管理这些资源。

3.3教师

教师可以添加新的课程资源

添加课程资源的页面

试题管理,老师可以发布试题让学生进行答题。


四、核心代码

4.1登录相关


package com.controller;import java.util.Arrays;
import java.util.Calendar;
import java.util.Date;
import java.util.Map;import javax.servlet.http.HttpServletRequest;import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
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.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;import com.annotation.IgnoreAuth;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.entity.TokenEntity;
import com.entity.UserEntity;
import com.service.TokenService;
import com.service.UserService;
import com.utils.CommonUtil;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.ValidatorUtils;/*** 登录相关*/
@RequestMapping("users")
@RestController
public class UserController{@Autowiredprivate UserService userService;@Autowiredprivate TokenService tokenService;/*** 登录*/@IgnoreAuth@PostMapping(value = "/login")public R login(String username, String password, String captcha, HttpServletRequest request) {UserEntity user = userService.selectOne(new EntityWrapper<UserEntity>().eq("username", username));if(user==null || !user.getPassword().equals(password)) {return R.error("账号或密码不正确");}String token = tokenService.generateToken(user.getId(),username, "users", user.getRole());return R.ok().put("token", token);}/*** 注册*/@IgnoreAuth@PostMapping(value = "/register")public R register(@RequestBody UserEntity user){
//      ValidatorUtils.validateEntity(user);if(userService.selectOne(new EntityWrapper<UserEntity>().eq("username", user.getUsername())) !=null) {return R.error("用户已存在");}userService.insert(user);return R.ok();}/*** 退出*/@GetMapping(value = "logout")public R logout(HttpServletRequest request) {request.getSession().invalidate();return R.ok("退出成功");}/*** 密码重置*/@IgnoreAuth@RequestMapping(value = "/resetPass")public R resetPass(String username, HttpServletRequest request){UserEntity user = userService.selectOne(new EntityWrapper<UserEntity>().eq("username", username));if(user==null) {return R.error("账号不存在");}user.setPassword("123456");userService.update(user,null);return R.ok("密码已重置为:123456");}/*** 列表*/@RequestMapping("/page")public R page(@RequestParam Map<String, Object> params,UserEntity user){EntityWrapper<UserEntity> ew = new EntityWrapper<UserEntity>();PageUtils page = userService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.allLike(ew, user), params), params));return R.ok().put("data", page);}/*** 列表*/@RequestMapping("/list")public R list( UserEntity user){EntityWrapper<UserEntity> ew = new EntityWrapper<UserEntity>();ew.allEq(MPUtil.allEQMapPre( user, "user")); return R.ok().put("data", userService.selectListView(ew));}/*** 信息*/@RequestMapping("/info/{id}")public R info(@PathVariable("id") String id){UserEntity user = userService.selectById(id);return R.ok().put("data", user);}/*** 获取用户的session用户信息*/@RequestMapping("/session")public R getCurrUser(HttpServletRequest request){Long id = (Long)request.getSession().getAttribute("userId");UserEntity user = userService.selectById(id);return R.ok().put("data", user);}/*** 保存*/@PostMapping("/save")public R save(@RequestBody UserEntity user){
//      ValidatorUtils.validateEntity(user);if(userService.selectOne(new EntityWrapper<UserEntity>().eq("username", user.getUsername())) !=null) {return R.error("用户已存在");}userService.insert(user);return R.ok();}/*** 修改*/@RequestMapping("/update")public R update(@RequestBody UserEntity user){
//        ValidatorUtils.validateEntity(user);userService.updateById(user);//全部更新return R.ok();}/*** 删除*/@RequestMapping("/delete")public R delete(@RequestBody Long[] ids){userService.deleteBatchIds(Arrays.asList(ids));return R.ok();}
}

4.2文件上传

package com.controller;import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Arrays;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;
import java.util.UUID;import org.apache.commons.io.FileUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.util.ResourceUtils;
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.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;import com.annotation.IgnoreAuth;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.entity.ConfigEntity;
import com.entity.EIException;
import com.service.ConfigService;
import com.utils.R;/*** 上传文件映射表*/
@RestController
@RequestMapping("file")
@SuppressWarnings({"unchecked","rawtypes"})
public class FileController{@Autowiredprivate ConfigService configService;/*** 上传文件*/@RequestMapping("/upload")public R upload(@RequestParam("file") MultipartFile file,String type) throws Exception {if (file.isEmpty()) {throw new EIException("上传文件不能为空");}String fileExt = file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf(".")+1);File path = new File(ResourceUtils.getURL("classpath:static").getPath());if(!path.exists()) {path = new File("");}File upload = new File(path.getAbsolutePath(),"/upload/");if(!upload.exists()) {upload.mkdirs();}String fileName = new Date().getTime()+"."+fileExt;File dest = new File(upload.getAbsolutePath()+"/"+fileName);file.transferTo(dest);FileUtils.copyFile(dest, new File("C:\\Users\\Desktop\\jiadian\\springbootl7own\\src\\main\\resources\\static\\upload"+"/"+fileName));if(StringUtils.isNotBlank(type) && type.equals("1")) {ConfigEntity configEntity = configService.selectOne(new EntityWrapper<ConfigEntity>().eq("name", "faceFile"));if(configEntity==null) {configEntity = new ConfigEntity();configEntity.setName("faceFile");configEntity.setValue(fileName);} else {configEntity.setValue(fileName);}configService.insertOrUpdate(configEntity);}return R.ok().put("file", fileName);}/*** 下载文件*/@IgnoreAuth@RequestMapping("/download")public ResponseEntity<byte[]> download(@RequestParam String fileName) {try {File path = new File(ResourceUtils.getURL("classpath:static").getPath());if(!path.exists()) {path = new File("");}File upload = new File(path.getAbsolutePath(),"/upload/");if(!upload.exists()) {upload.mkdirs();}File file = new File(upload.getAbsolutePath()+"/"+fileName);if(file.exists()){/*if(!fileService.canRead(file, SessionManager.getSessionUser())){getResponse().sendError(403);}*/HttpHeaders headers = new HttpHeaders();headers.setContentType(MediaType.APPLICATION_OCTET_STREAM);    headers.setContentDispositionFormData("attachment", fileName);    return new ResponseEntity<byte[]>(FileUtils.readFileToByteArray(file),headers, HttpStatus.CREATED);}} catch (IOException e) {e.printStackTrace();}return new ResponseEntity<byte[]>(HttpStatus.INTERNAL_SERVER_ERROR);}}

4.3封装

package com.utils;import java.util.HashMap;
import java.util.Map;/*** 返回数据*/
public class R extends HashMap<String, Object> {private static final long serialVersionUID = 1L;public R() {put("code", 0);}public static R error() {return error(500, "未知异常,请联系管理员");}public static R error(String msg) {return error(500, msg);}public static R error(int code, String msg) {R r = new R();r.put("code", code);r.put("msg", msg);return r;}public static R ok(String msg) {R r = new R();r.put("msg", msg);return r;}public static R ok(Map<String, Object> map) {R r = new R();r.putAll(map);return r;}public static R ok() {return new R();}public R put(String key, Object value) {super.put(key, value);return this;}
}

基于微信小程序的高校课堂教学管理系统相关推荐

  1. 【计算机毕业设计】基于微信小程序的高校毕业论文选题管理系统

    基于微信小程序的高校毕业论文选题管理系统 毕设帮助.开题指导.技术解答,联系方式见文末 高校毕业论文管理系统小程序的开发运用java技术,MIS的总体思想,以及MYSQL等技术的支持下共同完成了该系统 ...

  2. 【计算机毕业设计】基于微信小程序的高校课堂考勤签到系统

    毕设帮助.源码交流.技术解答,见文末 一.前言 考勤签到是教学要求也是教学手段,使用信息化手段解决传统点名式考勤效率低.不精准等缺点是十分必要的.现在考勤手段多种多样,比如在纸质签到表签到.老师点名. ...

  3. 【计算机毕业设计】基于微信小程序的高校学生选课系统

    基于微信小程序的高校学生选课管理系统 毕设帮助.源码交流及指导,见文末 学生选课的需求和管理上的不断提升,学生选课管理的潜力将无限扩大,微信小程序的学生选课系统在业界被广泛关注,本网站及对此进行总体分 ...

  4. 基于微信小程序的高校体育场地预约管理系统

    通过本次课题能够将所学的软件开发知识应用于基于微信小程序的高校体育场管理系统的开发,完成基于微信小程序的高校体育场管理系统设计与实现.同时培养学生综合运用所学理论知识和技能:培养学生调查研究,查阅技术 ...

  5. 基于微信小程序的高校餐厅食品留样管理系统设计与实现-计算机毕业设计源码+LW文档

    小程序开发说明 开发语言:Java 框架:ssm JDK版本:JDK1.8 服务器:tomcat7 数据库:mysql 5.7(一定要5.7版本) 数据库工具:Navicat11 开发软件:eclip ...

  6. springboot+java+vue基于微信小程序的高校餐厅食品留样管理系统#毕业设计

    学校食堂食品安全问题一直是国家相关部门长期关注的问题.今年河南省专门开展学校食品安全问题相关会议,要求学校食堂无死角安装摄像头,实时监控记录食品制作过程,并要求食品按照学校食堂规范化要求,实行 食品留 ...

  7. 基于微信小程序的高校宿舍管理系统

    随着移动通讯技术的快速发展和智能终端的快速普及,微信小程序的应用随着智能手机现在已经进入千家万户,通过微信小程序进行娱乐通信学习已经成为学生非常喜欢的方式.学生宿舍作为学生重要的生活学习场所,如何能够 ...

  8. 2022基于微信小程序的图书馆座位预约管理系统.rar(论文+程序设计源码+数据库)毕业设计

    随着时代不断的发展,我们对于知识的汲取需要从不同领域了解,从而扩大自己的知识面,图书馆作为大学生学习的宝地,有着不可替代的地位.但是在互联网信息化时代,传统模式下的图书馆管理模式,并不能满足校园学生需 ...

  9. 基于微信小程序的充电桩预约管理系统的设计与实现(论文+源码)_kaic

    摘要 微信小程序的充电桩预约管理系统是一个复杂的系统,需要遵循不同的设计原则和方法,在实现高可用性.高性能.高安全性和高稳定性等特点的同时,还要注重用户体验和易用性,不断改进和迭代优化,以提高系统性能 ...

最新文章

  1. 运行nltk示例 Resource u'tokenizers punkt english.pickle' not found解决
  2. 代码这样写更优雅(Python版)
  3. 使用 jQuery 查询属性不包含 disabled 的 input radio
  4. floatvalue 重写_Java Number floatValue()方法与示例
  5. 浏览器上请求URL的全部过程
  6. Redis再入门 codis 对比 Memcached
  7. oracle数据库王珊,数据库系统概论 王珊 教材部分总结
  8. 关于线程join方法的理解
  9. TensorFlow 核心流程剖析 -- 2 神经网络模型的构建、分割和优化
  10. killer杀手网卡linux,板载四块Killer网卡,微星Z370 GODLIKE GAMING主板实物图赏
  11. Python pass语句及其作用
  12. 搭建前后端分离主流项目完整步骤——在线教育系统(阿里云服务器部署上线)
  13. 在Win10下搭建web服务器,使用本机IP不能访问,但是使用localhos或127.0.0.1可以正常访问的解决办法...
  14. 玩转移远SC60 Android开发板------(1)LCD
  15. ios 图片简单360度旋转动画
  16. 谁是女人一生中最重要的人
  17. 商城后台管理React+Springboot
  18. RabbitMQ消费者莫名丢失的问题解决
  19. 华为云-容器引擎CCE-基本概念
  20. 转移到ios下载安卓_转移到ios官方app下载|转移到IOS安卓版下载_v2.10.0_9ht安卓下载...

热门文章

  1. 【PTA】【数据结构与算法】贪心算法
  2. python 常见错误提示
  3. SUSE Linux常用命令
  4. <C++>详解运算符重载之前置递增和后置递增
  5. [VNCTF] insterestingPHP
  6. python 减法函数_从零开始学Python(五):常用函数语句和运算符
  7. 字符串删除重复字符_高效的字符串清理-删除内部重复空间
  8. js中的NaN并不等于NaN
  9. 201819101029赵勤鑫
  10. Mac网络(Thunderbolt/Wi-Fi)频繁掉线