当前位置: 首页 > article >正文

基于ssm 框架的java 开发语言的 在线教育学习平台系统设计与实现 源码 论文

博主介绍:专注于Java(springboot ssm springcloud等开发框架) vue  .net  php phython node.js    uniapp小程序 等诸多技术领域和毕业项目实战、企业信息化系统建设,从业十五余年开发设计教学工作
☆☆☆ 精彩专栏推荐订阅☆☆☆☆☆不然下次找不到哟
我的博客空间发布了1000+毕设题目 方便大家学习使用
感兴趣的可以先收藏起来,还有大家在毕设选题,项目以及论文编写等相关问题都可以给我留言咨询,希望帮助更多的人
更多项目地址 介绍  qq_251836457-CSDN博客
源码获取地址

ssm框架-java在线教育学习平台源码数据库文件论文资源-CSDN文库

系统预览

第四章 系统设计与系统功能实现

4 .1 开发系统结构

中小学微课学习系统开发系统的结构图4.1所示:

图4.1  系统结构

系统模块包含了主页、个人中心、网课信息管理、学生信息管理、教师信息管理、年级信息管理等相应模块。

登录系统结构图,如图4.2所示:

图4.2 登录结构图

这些功能可以充分满足中小学微课学习系统的需求。此系统功能如图4.3所示。

图4.3系统功能结构图

4 .2 系统功能模块

进入网站之后用户点击对应区域可以查看首页、网课信息、新闻资讯等信息,如图4.4所示。

图4.4 系统首页界面图

网课信息:点击相应页面,可以获取标题、年级、科目、教学文件、教学视频、教师工号、教师姓名、发布时间、网课内容、封面等信息,如图4.5所示。

图4.5网课信息界面图

主要代码:

package com.controller;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Map;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;

import com.utils.ValidatorUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
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 com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.annotation.IgnoreAuth;

import com.entity.NewsEntity;
import com.entity.view.NewsView;

import com.service.NewsService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;


/**
 * 网课资讯
 * 后端接口
 * @author 
 * @email 
 * @date 2021-02-02 18:33:18
 */
@RestController
@RequestMapping("/news")
public class NewsController {
    @Autowired
    private NewsService newsService;
    


    /**
     * 后端列表
     */
    @RequestMapping("/page")
    public R page(@RequestParam Map<String, Object> params,NewsEntity news, HttpServletRequest request){

        EntityWrapper<NewsEntity> ew = new EntityWrapper<NewsEntity>();
    	PageUtils page = newsService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, news), params), params));
		request.setAttribute("data", page);
        return R.ok().put("data", page);
    }
    
    /**
     * 前端列表
     */
	@IgnoreAuth
    @RequestMapping("/list")
    public R list(@RequestParam Map<String, Object> params,NewsEntity news, HttpServletRequest request){
        EntityWrapper<NewsEntity> ew = new EntityWrapper<NewsEntity>();
    	PageUtils page = newsService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, news), params), params));
		request.setAttribute("data", page);
        return R.ok().put("data", page);
    }

	/**
     * 列表
     */
    @RequestMapping("/lists")
    public R list( NewsEntity news){
       	EntityWrapper<NewsEntity> ew = new EntityWrapper<NewsEntity>();
      	ew.allEq(MPUtil.allEQMapPre( news, "news")); 
        return R.ok().put("data", newsService.selectListView(ew));
    }

	 /**
     * 查询
     */
    @RequestMapping("/query")
    public R query(NewsEntity news){
        EntityWrapper< NewsEntity> ew = new EntityWrapper< NewsEntity>();
 		ew.allEq(MPUtil.allEQMapPre( news, "news")); 
		NewsView newsView =  newsService.selectView(ew);
		return R.ok("查询网课资讯成功").put("data", newsView);
    }
	
    /**
     * 后端详情
     */
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") Long id){
        NewsEntity news = newsService.selectById(id);
        return R.ok().put("data", news);
    }

    /**
     * 前端详情
     */
	@IgnoreAuth
    @RequestMapping("/detail/{id}")
    public R detail(@PathVariable("id") Long id){
        NewsEntity news = newsService.selectById(id);
        return R.ok().put("data", news);
    }
    



    /**
     * 后端保存
     */
    @RequestMapping("/save")
    public R save(@RequestBody NewsEntity news, HttpServletRequest request){
    	news.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(news);

        newsService.insert(news);
        return R.ok();
    }
    
    /**
     * 前端保存
     */
    @RequestMapping("/add")
    public R add(@RequestBody NewsEntity news, HttpServletRequest request){
    	news.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(news);

        newsService.insert(news);
        return R.ok();
    }

    /**
     * 修改
     */
    @RequestMapping("/update")
    public R update(@RequestBody NewsEntity news, HttpServletRequest request){
        //ValidatorUtils.validateEntity(news);
        newsService.updateById(news);//全部更新
        return R.ok();
    }
    

    /**
     * 删除
     */
    @RequestMapping("/delete")
    public R delete(@RequestBody Long[] ids){
        newsService.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<NewsEntity> wrapper = new EntityWrapper<NewsEntity>();
		if(map.get("remindstart")!=null) {
			wrapper.ge(columnName, map.get("remindstart"));
		}
		if(map.get("remindend")!=null) {
			wrapper.le(columnName, map.get("remindend"));
		}


		int count = newsService.selectCount(wrapper);
		return R.ok().put("count", count);
	}
	
	


}

个人中心:个人中心页面可以选择增添删改学生账号、密码、联系方式、年级等信息进行个人的信息更新,如图4.6所示。

图4.6我的界面图

4 .3 学生功能模块

学生进入到系统操作界面,可以查看主页、个人中心、我的收藏管理等信息,如图4.7所示。

图4.7学生功能界面图

个人中心:通过列表可以填写学生账号、密码、联系方式年级等信息并提交,如图4.8所示。

图4.8个人中心界面图

我的收藏管理:通过列表可以获取用户id、收藏id、表名、收藏名称、收藏图片等信息,根据需求进行增删改查的操作,如图4.9所示。

图4.9我的收藏管理界面图

4 .4 管理员功能模块

管理员通过用户名和密码,权限填写完成后选则提交,如图5.7所示。管理员登录成功后进入到系统操作界面,可以对主页、个人中心、学生管理、教师管理、年级管理、网课信息管理、系统管理等功能模块进行相对应操作,如图4.10与4.11所示。

图4.10管理员登录界面图

图4.11管理员功能界面图

学生管理:通过列表可以获取学生账号、密码、各类联系方式、年级等信息,根据需求进行增删改查的操作,如图4.12所示。

图4.12学生管理界面图

教师管理:通过列表可以获取教师编号、密码、性别、教师职称、联系方式等信息,根据需求进行增删改查的操作,如图4.13所示。

图4.13教师管理界面图

年级管理:得知各个学生的年级等信息,并根据学生相应的数据进行增删改查的操作,如图4.14所示。

图4.14年级管理界面图

网课信息管理:获取标题、年级、科目、教学文件、教学视频、教师工号、教师姓名、发布时间、网课内容、封面的相关信息,根据需求进行增删改查的操作,如图4.15所示。

图4.15网课信息管理界面图

大家点赞、收藏、关注、评论啦  其他的定制服务  下方联系卡片↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 或者私信作


http://www.kler.cn/news/334934.html

相关文章:

  • Golang 进阶5—— 反射
  • 通过python-api使用openai的gpt
  • 算法讲解—最小生成树(Kruskal 算法)
  • 微服务实战——SpringCache 整合 Redis
  • “衣依”服装销售平台:Spring Boot框架的设计与实现
  • Excel 表列名称(26进制)
  • C语言—顺序表(含通讯录项目)
  • 网约班车升级手机端退票
  • Python PyQt5 使用setStyleSheet设置QLabel字体样式
  • Cilium-实战系列-(二)Cilium-Multi Networking-多网络
  • DualGS:高效人体体积视频渲染技术,实现复杂4D数字人表演的实时播放引言
  • U mamba配置问题;‘KeyError: ‘file_ending‘
  • openpnp - 图像传送方向要在高级校正之前设置好
  • 模拟器GSN3之DHCP动态分配IP地址配置案例
  • 【DataLoom】智能问数 - 自然语言与数据库交互
  • Golang | Leetcode Golang题解之第452题用最少数量的箭引爆气球
  • 基于Python的人工智能应用案例系列(14):Fashion MNIST图像分类CNN
  • Pikachu-Sql-Inject - 暴力破解
  • Luminar激光雷达公司裁员重组的深度分析
  • 力扣10.5