0
点赞
收藏
分享

微信扫一扫

Springboot+vue springboot在线答疑系统#毕业设计

开发环境

项目编号:Springboot+vue springboot在线答疑系统#毕业设计
开发语言:Java
开发工具:IDEA /Eclipse
数据库:MYSQL5.7
应用服务:Tomcat7/Tomcat8
使用框架:Springboot+vue

项目介绍

社会的发展和科学技术的进步,互联网技术越来越受欢迎。网络计算机的生活方式逐渐受到广大师生的喜爱,也逐渐进入了每个学生的使用。互联网具有便利性,速度快,效率高,成本低等优点。 因此,构建符合自己要求的操作系统是非常有意义的。
本文从学生的功能要求出发,建立了在线答疑系统,系统中的功能模块主要是实现管理员权限;首页、个人中心、学生管理、教师管理、问题发布管理、疑难解答管理。教师权限:首页、个人中心、疑难解答管理、试卷管理、试题管理、考试管理。学生权限;首页、个人中心、问题发布管理、疑难解答管理、考试管理等功能部分;经过认真细致的研究,精心准备和规划,最后测试成功,系统可以正常使用。分析功能调整与在线答疑系统实现的实际需求相结合,讨论了java开发在线答疑系统的使用。

在线答疑系统,主要包括管理员、教师、学生三个用户角色,对于学生角色不同,所使用的功能模块相应不同。
管理员权限;首页、个人中心、学生管理、教师管理、问题发布管理、疑难解答管理
教师权限:首页、个人中心、疑难解答管理、试卷管理、试题管理、考试管理。
学生权限;首页、个人中心、问题发布管理、疑难解答管理、考试管理等功能模块的管理维护等操作
Springboot+vue springboot在线答疑系统#毕业设计_java-ee

系统截图

Springboot+vue springboot在线答疑系统#毕业设计_java-ee_02
Springboot+vue springboot在线答疑系统#毕业设计_疑难解答_03
Springboot+vue springboot在线答疑系统#毕业设计_功能模块_04
Springboot+vue springboot在线答疑系统#毕业设计_java_05

关键代码

/**
* 问题发布
* 后端接口
* @author
* @email
* @date 2020-11-25 17:15:52
*/
@RestController
@RequestMapping("/wentifabu")
public class WentifabuController {
@Autowired
private WentifabuService wentifabuService;



/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,WentifabuEntity wentifabu, HttpServletRequest request){
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("xuesheng")) {
wentifabu.setXuehao((String)request.getSession().getAttribute("username"));
}
EntityWrapper<WentifabuEntity> ew = new EntityWrapper<WentifabuEntity>();
PageUtils page = wentifabuService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, wentifabu), params), params));

return R.ok().put("data", page);
}

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

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

/**
* 查询
*/
@RequestMapping("/query")
public R query(WentifabuEntity wentifabu){
EntityWrapper< WentifabuEntity> ew = new EntityWrapper< WentifabuEntity>();
ew.allEq(MPUtil.allEQMapPre( wentifabu, "wentifabu"));
WentifabuView wentifabuView = wentifabuService.selectView(ew);
return R.ok("查询问题发布成功").put("data", wentifabuView);
}

/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") String id){
WentifabuEntity wentifabu = wentifabuService.selectById(id);
return R.ok().put("data", wentifabu);
}

/**
* 前端详情
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") String id){
WentifabuEntity wentifabu = wentifabuService.selectById(id);
return R.ok().put("data", wentifabu);
}




/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody WentifabuEntity wentifabu, HttpServletRequest request){
wentifabu.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(wentifabu);
wentifabuService.insert(wentifabu);
return R.ok();
}

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

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


/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
wentifabuService.deleteBatchIds(Arrays.asList(ids));
return R.ok();
}


举报

相关推荐

0 条评论