基于Springboot实现田径运动会管理系统
Posted 编程指南针
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了基于Springboot实现田径运动会管理系统相关的知识,希望对你有一定的参考价值。
项目编号:BS-XX-081
环境需要
1.运行环境:最好是java jdk 1.8,我们在这个平台上运行的。其他版本理论上也可以。 2.IDE环境:IDEA,Eclipse,Myeclipse都可以。推荐IDEA; 3.tomcat环境:Tomcat 7.x,8.x,9.x版本均可 4.硬件环境:windows 7/8/10 1G内存以上;或者 Mac OS; 5.数据库:mysql 8.0版本;
6.是否Maven项目:是;
技术栈
\\1. 后端:SpringBoot
\\2. 前端:Thymeleaf+html+CSS+jQuery
项目介绍
本项目分为管理员、学生两种角色, 管理员主要功能包括: 功能:登录、查看个人资料、修改密码、选手管理、赛事管理、报名管理、成绩管理、开幕式管理、闭幕式管理
学生主要功能包括: 首页, 项目管理:报名项目、查看已报名项目; 成绩查询:单个项目查询、总成绩查询、个人总积分查询; 查看开幕式; 查看闭幕式; 个人资料:查看个人资料、修改密码;
使用说明
\\1. 使用Navicat或者其它工具,在mysql中创建对应名称的数据库,并导入项目的sql文件; \\2. 使用IDEA/Eclipse/MyEclipse导入项目,Eclipse/MyEclipse导入时,若为maven项目请选择maven;若为maven项目,导入成功后请执行maven clean;maven install命令,然后运行; \\3. 将项目中application.yml配置文件中的数据库配置改为自己的配置; \\4. 运行项目,输入localhost:8080/ 登录 管理员账号/密码:10001/123456 学生账号/密码:1001/123456
运行截图
本系统功能完整,界面美观大方,适合做毕业设计使用 !
部分实现代码
package com.xhu.service;
import com.xhu.mapper.AdminMapper;
import com.xhu.mapper.StudentMapper;
import com.xhu.pojo.Admin;
import com.xhu.pojo.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;import java.util.List;
@Service
public class AdminService
@Autowired
AdminMapper adminMapper;public List queryAdmin()
return adminMapper.queryAdmin();
public Admin queryAdminById(Integer id)
return adminMapper.queryAdminById(id);
public int updAdmin(String adminName, String adminGender, int adminAge, String adminPhone, int adminId)
return adminMapper.updAdmin(adminName, adminGender, adminAge, adminPhone, adminId);
public int updAdminPass(String adminPassword, Integer adminId)
return adminMapper.updAdminPass(adminPassword, adminId);
package com.xhu.service;
import com.xhu.mapper.AdminMapper;
import com.xhu.mapper.CeremonyMapper;
import com.xhu.pojo.Admin;
import com.xhu.pojo.CeremonyClose;
import com.xhu.pojo.CeremonyOpen;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;import java.util.List;
@Service
public class CeremonyService
@Autowired
CeremonyMapper ceremonyMapper;/*开幕式*/
public CeremonyOpen getCeremonyOpen()
return ceremonyMapper.getCeremonyOpen();
public CeremonyOpen getCeremonyOpenById(String ceremonyId)
return ceremonyMapper.getCeremonyOpenById(ceremonyId);
public int addCeremonyOpen(CeremonyOpen ceremonyOpen)
return ceremonyMapper.addCeremonyOpen(ceremonyOpen);
public int updCeremonyOpen(CeremonyOpen ceremonyOpen)
return ceremonyMapper.updCeremonyOpen(ceremonyOpen);
public void delCeremonyOpen(String ceremonyId)
ceremonyMapper.delCeremonyOpen(ceremonyId);
/*闭幕式*/
public CeremonyClose getCeremonyClose()
return ceremonyMapper.getCeremonyClose();
public CeremonyClose getCeremonyCloseById(String ceremonyId)
return ceremonyMapper.getCeremonyCloseById(ceremonyId);
public int addCeremonyClose(CeremonyClose ceremonyClose)
return ceremonyMapper.addCeremonyClose(ceremonyClose);
public int updCeremonyClose(CeremonyClose ceremonyClose)
return ceremonyMapper.updCeremonyClose(ceremonyClose);
public void delCeremonyClose(String ceremonyId)
ceremonyMapper.delCeremonyClose(ceremonyId);
package com.xhu.service;
import com.xhu.mapper.AdminMapper;
import com.xhu.mapper.GradeMapper;
import com.xhu.pojo.Admin;
import com.xhu.pojo.SportsScore;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;import java.util.List;
@Service
public class GradeService
@Autowired
GradeMapper gradeMapper;public List selectWithStuAndSportsDefault()
return gradeMapper.selectWithStuAndSportsDefault();
public List selectWithStuAndSports( int sportsId)
return gradeMapper.selectWithStuAndSports(sportsId);
public int updScore(SportsScore sportsScore)
return gradeMapper.updScore(sportsScore);
public List getScoreAll( )
return gradeMapper.getScoreAll();
public List getScoreAllWithCondition(String school,String gender )
return gradeMapper.getScoreAllWithCondition(school,gender);
public List getScoreBySchoolAll()
return gradeMapper.getScoreBySchoolAll();
public List getScoreBySchoolTypeAll(String sportsType)
return gradeMapper.getScoreBySchoolTypeAll(sportsType);
public List getScoreBySchool()
return gradeMapper.getScoreBySchool();
public List getScoreBySchoolWithCondition(String school,String gender)
return gradeMapper.getScoreBySchoolWithCondition(school,gender);
以上是关于基于Springboot实现田径运动会管理系统的主要内容,如果未能解决你的问题,请参考以下文章
1024程序员节|基于Springboot实现运动场馆预约信息管理系统