博主主页:猫头鹰源码
博主简介:Java领域优质创作者、CSDN博客专家、公司架构师、全网粉丝5万+、专注Java技术领域和毕业设计项目实战
主要内容:毕业设计(Javaweb项目|小程序等)、简历模板、学习资料、面试题库、技术咨询
文末联系获取
项目介绍:
该系统基于Java语言,mysql数据库,具有完整的业务逻辑,适合选题:大学生竞赛、竞赛、获奖登记等,主要功能有:用户管理、竞赛申请、获奖登记、学生维护、公告维护等。
系统包含技术:
后端:servlet
前端:js,css等
开发工具:eclipse
数据库:mysql 5.7
JDK版本:jdk1.8
tomcat版本:tomcat8
部分截图说明:
下面是前台,可以查看公告
查看公告详情
系统分为三个角色,这里可以进行登录
管理员进行用户管理
管理员增加用户
管理员通知管理操作
教师对获奖登记管理
教师竞赛申请
教师对学生信息维护
教师增加竞赛申请
管理员增加公告
部分代码:
if(method.equals("addfl")){ //增加学院 ***********代码注释
String mc = request.getParameter("mc");
String str=cBean.getString("select id from fl where mc='"+mc+"'");
if(str==null){
int flag = cBean.comUp("insert into fl(mc) values('"+mc+"' )");
if(flag == Constant.SUCCESS){
request.setAttribute("message", "操作成功!");
request.getRequestDispatcher("admin/fl/index.jsp").forward(request, response);
}
else{
request.setAttribute("message", "操作失败!");
request.getRequestDispatcher("admin/fl/index.jsp").forward(request, response);
}
}
else{
request.setAttribute("message", "信息重复");
request.getRequestDispatcher("admin/fl/index.jsp").forward(request, response);
}
}
else if(method.equals("upfl")){ //修改学院 ***********代码注释
String id = request.getParameter("id");
String mc = request.getParameter("mc");
String str=cBean.getString("select mc from fl where mc='"+mc+"' and id!='"+id+"'");
if(str==null){
int flag = cBean.comUp("update fl set mc='"+mc+"' where id='"+id+"'");
if(flag == Constant.SUCCESS){
request.setAttribute("message", "操作成功!");
request.getRequestDispatcher("admin/fl/index.jsp").forward(request, response);
}
else{
request.setAttribute("message", "操作失败!");
request.getRequestDispatcher("admin/fl/index.jsp").forward(request, response);
}
}
else{
request.setAttribute("message", "信息重复");
request.getRequestDispatcher("admin/fl/index.jsp").forward(request, response);
}
}
else if(method.equals("delfl")){//删除学院
String id = request.getParameter("id");
int flag = cBean.comUp("delete from fl where id='"+id+"'");
if(flag == Constant.SUCCESS){
request.setAttribute("message", "操作成功!");
request.getRequestDispatcher("admin/fl/index.jsp").forward(request, response);
}
else{
request.setAttribute("message", "操作失败!");
request.getRequestDispatcher("admin/fl/index.jsp").forward(request, response);
}
}
else if(method.equals("addxw")){ // 通知公告
String bt = request.getParameter("bt");
String fl = request.getParameter("fl");
String nr = request.getParameter("content1");
if(nr==null)nr="暂无";
int flag = cBean.comUp("insert into xw(bt,fl,nr,sj) values('"+bt+"','"+fl+"','"+nr+"','"+date+"')");
if(flag == Constant.SUCCESS){
request.setAttribute("message", "操作成功!");
request.getRequestDispatcher("admin/xw/index.jsp").forward(request, response);
}
else{
request.setAttribute("message", "操作失败!");
request.getRequestDispatcher("admin/xw/index.jsp").forward(request, response);
}
}
else if(method.equals("upxw")){ //修改 通知公告
String id=request.getParameter("id");
String bt = request.getParameter("bt");
String fl = request.getParameter("fl");
String nr = request.getParameter("content1");
if(nr==null)nr="暂无";
int flag = cBean.comUp("update xw set bt='"+bt+"',fl='"+fl+"',nr='"+nr+"' where id='"+id+"'");
if(flag == Constant.SUCCESS){
request.setAttribute("message", "操作成功!");
request.getRequestDispatcher("admin/xw/index.jsp").forward(request, response);
}
else{
request.setAttribute("message", "操作失败!");
request.getRequestDispatcher("admin/xw/index.jsp").forward(request, response);
}
}
else if(method.equals("delxw")){//删除 通知公告
String id = request.getParameter("id");
int flag = cBean.comUp("delete from xw where id='"+id+"'");
if(flag == Constant.SUCCESS){
request.setAttribute("message", "操作成功!");
request.getRequestDispatcher("admin/xw/index.jsp").forward(request, response);
}
else{
request.setAttribute("message", "操作失败!");
request.getRequestDispatcher("admin/xw/index.jsp").forward(request, response);
}
}
else if(method.equals("delgw")){//删除 审核
String id = request.getParameter("id");
int flag = cBean.comUp("delete from gw where id='"+id+"'");
if(flag == Constant.SUCCESS){
request.setAttribute("message", "操作成功!");
request.getRequestDispatcher("admin/gw/index.jsp").forward(request, response);
}
else{
request.setAttribute("message", "操作失败!");
request.getRequestDispatcher("admin/gw/index.jsp").forward(request, response);
}
}
else if(method.equals("shgw")){ // 审核
String id=request.getParameter("id");
String sh = request.getParameter("sh");
String yj = request.getParameter("yj");
int flag = cBean.comUp("update gw set sh='"+sh+"', yj='"+yj+"' where id='"+id+"'");
if(flag == Constant.SUCCESS){
request.setAttribute("message", "操作成功!");
request.getRequestDispatcher("admin/gw/index2.jsp").forward(request, response);
}
else{
request.setAttribute("message", "操作失败!");
request.getRequestDispatcher("admin/gw/index2.jsp").forward(request, response);
}
}
以上就是部分功能展示,从整体上来看,本系统功能是十分完整的,界面设计简洁大方,交互友好,数据库设计也很合理,规模适中,代码工整,清晰,适合学习使用。
好了,今天就到这儿吧,小伙伴们点赞、收藏、评论,一键三连走起呀,下期见~~