ssm+vue网络教学平台源码和论文117
开发工具:idea
数据库mysql5.7+
数据库链接工具:navcat,小海豚等
技术:ssm
摘 要
社会的进步,教育行业发展迅速,人们对教育越来越重视,在当今网络普及的情况下,教学模式也开始逐渐网络化,各大高校开始网络教学模式。
本文研究的网络教学平台基于SSM框架,采用Java技术和MYSQL数据库设计开发。在系统的整个开发过程中,首先对系统进行了需求分析,设计出系统的主要功能模块,包括学生功能模块、教师功能模块以及管理员功能模块三大部分,其次对网站进行总体规划和详细设计,最后对网络教学平台进行了系统测试,包括测试概述,测试内容等,并对测试结果进行了分析和总结,进而得出系统的不足及需要改进的地方,为以后的系统维护和扩展提供了方便。
本系统布局合理、色彩搭配和谐、框架结构设计清晰,具有操作简单,界面清晰,管理方便,功能完善等优势,有很高的使用价值。
关键词:网络教学,Java技术,MYSQL数据库,SSM框架
ABSTRACT
With the advancement of society and the rapid development of the education industry, people are paying more and more attention to education. With the popularization of the Internet nowadays, the teaching mode has gradually become networked, and major universities have begun to use the network teaching mode.
The network teaching platform studied in this paper is based on the SSM framework, designed and developed using Java technology and MYSQL database. In the entire development process of the system, firstly, the system's requirements were analyzed, and the main functional modules of the system were designed, including student functional modules, teacher functional modules, and administrator functional modules. Secondly, the overall planning and detailed design of the website were carried out. , And finally conducted a system test on the network teaching platform, including test overview, test content, etc., and analyzed and summarized the test results, and then concluded the deficiencies of the system and the areas that need improvement, and provided for future system maintenance and expansion. Convenience.
The system has the advantages of reasonable layout, harmonious color matching, clear frame structure design, simple operation, clear interface, convenient management, and complete functions, and has high use value.
Keywords: Network teaching, Java technology, MYSQL database, SSM framework
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.format.annotation.DateTimeFormat;
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.DiscussjiaoxueziyuanEntity;
import com.entity.view.DiscussjiaoxueziyuanView;
import com.service.DiscussjiaoxueziyuanService;
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-03-16 15:22:30
*/
@RestController
@RequestMapping("/discussjiaoxueziyuan")
public class DiscussjiaoxueziyuanController {
@Autowired
private DiscussjiaoxueziyuanService discussjiaoxueziyuanService;
/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,DiscussjiaoxueziyuanEntity discussjiaoxueziyuan,
HttpServletRequest request){
EntityWrapper<DiscussjiaoxueziyuanEntity> ew = new EntityWrapper<DiscussjiaoxueziyuanEntity>();
PageUtils page = discussjiaoxueziyuanService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, discussjiaoxueziyuan), params), params));
return R.ok().put("data", page);
}
/**
* 前端列表
*/
@IgnoreAuth
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,DiscussjiaoxueziyuanEntity discussjiaoxueziyuan, HttpServletRequest request){
EntityWrapper<DiscussjiaoxueziyuanEntity> ew = new EntityWrapper<DiscussjiaoxueziyuanEntity>();
PageUtils page = discussjiaoxueziyuanService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, discussjiaoxueziyuan), params), params));
return R.ok().put("data", page);
}
/**
* 列表
*/
@RequestMapping("/lists")
public R list( DiscussjiaoxueziyuanEntity discussjiaoxueziyuan){
EntityWrapper<DiscussjiaoxueziyuanEntity> ew = new EntityWrapper<DiscussjiaoxueziyuanEntity>();
ew.allEq(MPUtil.allEQMapPre( discussjiaoxueziyuan, "discussjiaoxueziyuan"));
return R.ok().put("data", discussjiaoxueziyuanService.selectListView(ew));
}
/**
* 查询
*/
@RequestMapping("/query")
public R query(DiscussjiaoxueziyuanEntity discussjiaoxueziyuan){
EntityWrapper< DiscussjiaoxueziyuanEntity> ew = new EntityWrapper< DiscussjiaoxueziyuanEntity>();
ew.allEq(MPUtil.allEQMapPre( discussjiaoxueziyuan, "discussjiaoxueziyuan"));
DiscussjiaoxueziyuanView discussjiaoxueziyuanView = discussjiaoxueziyuanService.selectView(ew);
return R.ok("查询教学资源评论表成功").put("data", discussjiaoxueziyuanView);
}
/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
DiscussjiaoxueziyuanEntity discussjiaoxueziyuan = discussjiaoxueziyuanService.selectById(id);
return R.ok().put("data", discussjiaoxueziyuan);
}
/**
* 前端详情
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
DiscussjiaoxueziyuanEntity discussjiaoxueziyuan = discussjiaoxueziyuanService.selectById(id);
return R.ok().put("data", discussjiaoxueziyuan);
}
/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody DiscussjiaoxueziyuanEntity discussjiaoxueziyuan, HttpServletRequest request){
discussjiaoxueziyuan.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(discussjiaoxueziyuan);
discussjiaoxueziyuanService.insert(discussjiaoxueziyuan);
return R.ok();
}
/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody DiscussjiaoxueziyuanEntity discussjiaoxueziyuan, HttpServletRequest request){
discussjiaoxueziyuan.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(discussjiaoxueziyuan);
discussjiaoxueziyuanService.insert(discussjiaoxueziyuan);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody DiscussjiaoxueziyuanEntity discussjiaoxueziyuan, HttpServletRequest request){
//ValidatorUtils.validateEntity(discussjiaoxueziyuan);
discussjiaoxueziyuanService.updateById(discussjiaoxueziyuan);//全部更新
return R.ok();
}
/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
discussjiaoxueziyuanService.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<DiscussjiaoxueziyuanEntity> wrapper = new EntityWrapper<DiscussjiaoxueziyuanEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
}
if(map.get("remindend")!=null) {
wrapper.le(columnName, map.get("remindend"));
}
int count = discussjiaoxueziyuanService.selectCount(wrapper);
return R.ok().put("count", count);
}
}