作者简介:Java领域优质创作者、优快云博客专家 、优快云内容合伙人、掘金特邀作者、阿里云博客专家、51CTO特邀作者、多年架构师设计经验、多年校企合作经验,被多个学校常年聘为校外企业导师,指导学生毕业设计并参与学生毕业答辩指导,有较为丰富的相关经验。期待与各位高校教师、企业讲师以及同行交流合作
主要内容:Java项目、Python项目、前端项目、PHP、ASP.NET、人工智能与大数据、单片机开发、物联网设计与开发设计、简历模板、学习资料、面试题库、技术互助、就业指导等
业务范围:免费功能设计、开题报告、任务书、中期检查PPT、系统功能实现、代码编写、论文编写和辅导、论文降重、长期答辩答疑辅导、腾讯会议一对一专业讲解辅导答辩、模拟答辩演练、和理解代码逻辑思路等。
收藏点赞不迷路 关注作者有好处
文末获取源码
项目编号:BS-XX-359
一,环境介绍
语言环境:Java: jdk1.8
数据库:Mysql: mysql5.7
应用服务器:Tomcat: tomcat8.5.31
开发工具:IDEA或eclipse
开发技术:SSM+VUE
二,项目简介
近些年来,随着科技的飞速发展,互联网的普及逐渐延伸到各行各业中,给人们生活带来了十分的便利,面向tcp_ip与网络互联实验平台利用计算机网络实现信息化管理,使整个网络互联实验管理的发展和服务水平有显著提升。
本文拟采用java技术和ssm搭建系统框架,后台使用MySQL数据库进行信息管理,设计开发的面向tcp_ip与网络互联实验平台。通过调研和分析,系统拥有管理员、老师和学生三个角色,主要具备个人中心、学生管理、老师管理、班级信息管理、公告信息管理、实验信息管理、实验报告管理、报告展示管理、学生互评管理、实验成绩管理、实验催缴管理、作业信息管理、学生作业管理、作业成绩管理、班级讨论管理、实验题目管理、试题管理、系统管理、考试管理等功能模块。将纸质管理有效实现为在线管理,极大提高工作效率。
三,系统展示
四,核心代码展示
package com.controller;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.text.ParseException;
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 java.io.IOException;
import com.utils.ValidatorUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
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.XueshenghupingEntity;
import com.entity.view.XueshenghupingView;
import com.service.XueshenghupingService;
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 2023-05-14 12:08:49
*/
@RestController
@RequestMapping("/xueshenghuping")
public class XueshenghupingController {
@Autowired
private XueshenghupingService xueshenghupingService;
/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,XueshenghupingEntity xueshenghuping,
HttpServletRequest request){
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("laoshi")) {
xueshenghuping.setLaoshizhanghao((String)request.getSession().getAttribute("username"));
}
if(tableName.equals("xuesheng")) {
xueshenghuping.setHupingxuehao((String)request.getSession().getAttribute("username"));
}
EntityWrapper<XueshenghupingEntity> ew = new EntityWrapper<XueshenghupingEntity>();
PageUtils page = xueshenghupingService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, xueshenghuping), params), params));
return R.ok().put("data", page);
}
/**
* 前端列表
*/
@IgnoreAuth
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,XueshenghupingEntity xueshenghuping,
HttpServletRequest request){
EntityWrapper<XueshenghupingEntity> ew = new EntityWrapper<XueshenghupingEntity>();
PageUtils page = xueshenghupingService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, xueshenghuping), params), params));
return R.ok().put("data", page);
}
/**
* 列表
*/
@RequestMapping("/lists")
public R list( XueshenghupingEntity xueshenghuping){
EntityWrapper<XueshenghupingEntity> ew = new EntityWrapper<XueshenghupingEntity>();
ew.allEq(MPUtil.allEQMapPre( xueshenghuping, "xueshenghuping"));
return R.ok().put("data", xueshenghupingService.selectListView(ew));
}
/**
* 查询
*/
@RequestMapping("/query")
public R query(XueshenghupingEntity xueshenghuping){
EntityWrapper< XueshenghupingEntity> ew = new EntityWrapper< XueshenghupingEntity>();
ew.allEq(MPUtil.allEQMapPre( xueshenghuping, "xueshenghuping"));
XueshenghupingView xueshenghupingView = xueshenghupingService.selectView(ew);
return R.ok("查询学生互评成功").put("data", xueshenghupingView);
}
/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
XueshenghupingEntity xueshenghuping = xueshenghupingService.selectById(id);
return R.ok().put("data", xueshenghuping);
}
/**
* 前端详情
*/
@IgnoreAuth
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
XueshenghupingEntity xueshenghuping = xueshenghupingService.selectById(id);
return R.ok().put("data", xueshenghuping);
}
/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody XueshenghupingEntity xueshenghuping, HttpServletRequest request){
xueshenghuping.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(xueshenghuping);
xueshenghupingService.insert(xueshenghuping);
return R.ok();
}
/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody XueshenghupingEntity xueshenghuping, HttpServletRequest request){
xueshenghuping.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(xueshenghuping);
xueshenghupingService.insert(xueshenghuping);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
@Transactional
public R update(@RequestBody XueshenghupingEntity xueshenghuping, HttpServletRequest request){
//ValidatorUtils.validateEntity(xueshenghuping);
xueshenghupingService.updateById(xueshenghuping);//全部更新
return R.ok();
}
/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
xueshenghupingService.deleteBatchIds(Arrays.asList(ids));
return R.ok();
}
}
五,相关作品展示
基于Java开发、Python开发、PHP开发、C#开发等相关语言开发的实战项目
基于Nodejs、Vue等前端技术开发的前端实战项目
基于微信小程序和安卓APP应用开发的相关作品
基于51单片机等嵌入式物联网开发应用
基于各类算法实现的AI智能应用
基于大数据实现的各类数据管理和推荐系统