文末获取源码
开发语言:Java
框架:springboot
JDK版本:JDK1.8
服务器:tomcat7
数据库:mysql 5.7/8.0
数据库工具:Navicat11
开发软件:eclipse/myeclipse/idea
Maven包:Maven3.3.9
浏览器:谷歌浏览器
校园台球厅人员与设备管理系统采用java技术,基于springboot框架,mysql数据库进行开发,实现了以下功能:
本系统主要包括管理员和用户两个角色组成,主要包括以下功能:
(1)前台:首页、球桌信息、公告信息、留言反馈、个人中心、后台管理 。
(2)管理员:首页、个人中心、用户管理、会员账户管理、会员充值管理、球桌信息管理、会员预约管理、普通预约管理、留言反馈系统管理。
(3)用户:首页、个人中心、会员账户管理、会员充值管理、会员预约管理、普通预约管理、留言反馈。
本次设计任务是要设计一个校园台球厅人员与设备管理系统,这个系统能够满足校园台球厅人员与设备的管理及用户的校园台球厅人员与设备管理功能。系统的主要功能包括首页、个人中心、用户管理、会员账号管理、会员充值管理、球桌信息管理、会员预约管理、普通预约管理、留言反馈、系统管理等功能。
管理员可以根据系统给定的账号进行登录,登录后可以进入校园台球厅人员与设备管理系统,对校园台球厅人员与设备管理系统所有模块进行管理。包括查看和修改自己的个人信息以及登录密码。
该系统为每一个用户都分配了一个用户账号,用户通过账号的登录可以在系统中查看校园台球厅人员与设备信息及对个人信息进行修改等功能。
系统功能结构图是系统设计阶段,系统功能结构图只是这个阶段一个基础,整个系统的架构决定了系统的整体模式,是系统的根据。校园台球厅人员与设备管理系统的整个设计结构如图

校园台球厅人员与设备管理系统,在系统首页可以查看首页、球桌信息、 公告信息、留言反馈、个人中心、后台管理等内容进行详细操作,如图

在用户注册页面通过填写账号、密码、确认密码、用户姓名、手机号码等信息完成用户注册,如图

在球桌信息页面可以查看桌号、会员时价、普通时价、球桌状态等内容进行预约、详情、评论或收藏等操作,如图

在个人中心页面通过填写用户账号、密码、用户姓名、图片、性别、手机号码等内容进行更新信息等操作,如图
管理员登录,在系统页面通过填写用户名、密码等信息选择角色进行登录,就可以使用了,如图
管理员登录系统后,可以对首页、个人中心、用户管理、会员账号管理、会员充值管理、球桌信息管理、会员预约管理、普通预约管理、留言反馈、系统管理等功能模块进行相应操作,如图

在用户管理页面可以对索引、用户账号、用户姓名、头像、性别、手机号码等内容进行详情、修改或删除等操作,如图

在会员账号管理页面可以对索引、会员卡号、金额、开卡时间、用户账号、手机号码、用户姓名等内容进行详情、修改或删除等操作,如图

在会员充值管理页面可以对索引、充值编号、用户账号、用户姓名、金额、充值时间、是否支付等内容进行详情或删除等操作,如图

在球桌信息管理页面可以对索引、桌号、图片、会员时价、普通时价、球桌状态等内容进行详情、修改、查看评论或删除等操作,如图

在会员预约管理页面可以对索引、预约编号、桌号、会员时价、预约时间、预约时长、总金额、备注、会员卡号、金额、用户账号、用户姓名等内容进行详情或删除等操作,如图 
在普通预约管理页面可以对索引、预约编号、桌号、普通时价、预约时间、预约时长、总金额、备注、用户账号、用户姓名、手机号码、是否支付等内容进行详情或删除等操作,如图

在留言反馈页面可以对索引、用户名、留言内容、留言图片、回复内容、回复图片等内容进行详情、修改、回复或删除等操作,如图

在公告信息页面中可以对索引、标题、图片等内容进行详情、修改或删除等操作,并可以根据轮播图管理进行相应的操作,如图

用户登录进入系统,可以对首页、个人中心、 会员账户管理、会员充值管理、会员预约管理、普通预约管理、留言反馈等功能模块进行相应操作,如图

在会员账户管理页面可以对索引、会员卡号、金额、开卡时间、用户账号、手机号码、用户姓名等内容进行详情或会员充值等操作,如图

在会员充值管理页面中可以对索引、充值编号、用户账号、用户姓名、金额、充值时间、是否支付等内容进行详情等操作,如图

在留言反馈页面中可以对索引、用户名、留言内容、留言图片、回复内容、回复图片等内容进行详情、修改或删除等操作,如图

- /**
- * 登录相关
- */
- @RequestMapping("config")
- @RestController
- public class ConfigController{
-
- @Autowired
- private ConfigService configService;
-
- /**
- * 列表
- */
- @RequestMapping("/page")
- public R page(@RequestParam Map<String, Object> params,ConfigEntity config){
- EntityWrapper<ConfigEntity> ew = new EntityWrapper<ConfigEntity>();
- PageUtils page = configService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, config), params), params));
- return R.ok().put("data", page);
- }
-
- /**
- * 列表
- */
- @IgnoreAuth
- @RequestMapping("/list")
- public R list(@RequestParam Map<String, Object> params,ConfigEntity config){
- EntityWrapper<ConfigEntity> ew = new EntityWrapper<ConfigEntity>();
- PageUtils page = configService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, config), params), params));
- return R.ok().put("data", page);
- }
-
- /**
- * 信息
- */
- @RequestMapping("/info/{id}")
- public R info(@PathVariable("id") String id){
- ConfigEntity config = configService.selectById(id);
- return R.ok().put("data", config);
- }
-
- /**
- * 详情
- */
- @IgnoreAuth
- @RequestMapping("/detail/{id}")
- public R detail(@PathVariable("id") String id){
- ConfigEntity config = configService.selectById(id);
- return R.ok().put("data", config);
- }
-
- /**
- * 根据name获取信息
- */
- @RequestMapping("/info")
- public R infoByName(@RequestParam String name){
- ConfigEntity config = configService.selectOne(new EntityWrapper<ConfigEntity>().eq("name", "faceFile"));
- return R.ok().put("data", config);
- }
-
- /**
- * 保存
- */
- @PostMapping("/save")
- public R save(@RequestBody ConfigEntity config){
- // ValidatorUtils.validateEntity(config);
- configService.insert(config);
- return R.ok();
- }
-
- /**
- * 修改
- */
- @RequestMapping("/update")
- public R update(@RequestBody ConfigEntity config){
- // ValidatorUtils.validateEntity(config);
- configService.updateById(config);//全部更新
- return R.ok();
- }
-
- /**
- * 删除
- */
- @RequestMapping("/delete")
- public R delete(@RequestBody Long[] ids){
- configService.deleteBatchIds(Arrays.asList(ids));
- return R.ok();
- }
- }
- /**
- * 普通预约
- * 后端接口
- * @author
- * @email
- * @date 2022-03-23 15:26:01
- */
- @RestController
- @RequestMapping("/putongyuyue")
- public class PutongyuyueController {
- @Autowired
- private PutongyuyueService putongyuyueService;
-
-
-
-
-
- /**
- * 后端列表
- */
- @RequestMapping("/page")
- public R page(@RequestParam Map<String, Object> params,PutongyuyueEntity putongyuyue,
- HttpServletRequest request){
- String tableName = request.getSession().getAttribute("tableName").toString();
- if(tableName.equals("yonghu")) {
- putongyuyue.setYonghuzhanghao((String)request.getSession().getAttribute("username"));
- }
- EntityWrapper<PutongyuyueEntity> ew = new EntityWrapper<PutongyuyueEntity>();
- PageUtils page = putongyuyueService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, putongyuyue), params), params));
-
- return R.ok().put("data", page);
- }
-
- /**
- * 前端列表
- */
- @IgnoreAuth
- @RequestMapping("/list")
- public R list(@RequestParam Map<String, Object> params,PutongyuyueEntity putongyuyue,
- HttpServletRequest request){
- EntityWrapper<PutongyuyueEntity> ew = new EntityWrapper<PutongyuyueEntity>();
- PageUtils page = putongyuyueService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, putongyuyue), params), params));
- return R.ok().put("data", page);
- }
-
- /**
- * 列表
- */
- @RequestMapping("/lists")
- public R list( PutongyuyueEntity putongyuyue){
- EntityWrapper<PutongyuyueEntity> ew = new EntityWrapper<PutongyuyueEntity>();
- ew.allEq(MPUtil.allEQMapPre( putongyuyue, "putongyuyue"));
- return R.ok().put("data", putongyuyueService.selectListView(ew));
- }
-
- /**
- * 查询
- */
- @RequestMapping("/query")
- public R query(PutongyuyueEntity putongyuyue){
- EntityWrapper< PutongyuyueEntity> ew = new EntityWrapper< PutongyuyueEntity>();
- ew.allEq(MPUtil.allEQMapPre( putongyuyue, "putongyuyue"));
- PutongyuyueView putongyuyueView = putongyuyueService.selectView(ew);
- return R.ok("查询普通预约成功").put("data", putongyuyueView);
- }
-
- /**
- * 后端详情
- */
- @RequestMapping("/info/{id}")
- public R info(@PathVariable("id") Long id){
- PutongyuyueEntity putongyuyue = putongyuyueService.selectById(id);
- return R.ok().put("data", putongyuyue);
- }
-
- /**
- * 前端详情
- */
- @IgnoreAuth
- @RequestMapping("/detail/{id}")
- public R detail(@PathVariable("id") Long id){
- PutongyuyueEntity putongyuyue = putongyuyueService.selectById(id);
- return R.ok().put("data", putongyuyue);
- }
-
-
-
-
- /**
- * 后端保存
- */
- @RequestMapping("/save")
- public R save(@RequestBody PutongyuyueEntity putongyuyue, HttpServletRequest request){
- putongyuyue.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
- //ValidatorUtils.validateEntity(putongyuyue);
- putongyuyueService.insert(putongyuyue);
- return R.ok();
- }
-
- /**
- * 前端保存
- */
- @RequestMapping("/add")
- public R add(@RequestBody PutongyuyueEntity putongyuyue, HttpServletRequest request){
- putongyuyue.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
- //ValidatorUtils.validateEntity(putongyuyue);
- putongyuyueService.insert(putongyuyue);
- return R.ok();
- }
-
- /**
- * 修改
- */
- @RequestMapping("/update")
- public R update(@RequestBody PutongyuyueEntity putongyuyue, HttpServletRequest request){
- //ValidatorUtils.validateEntity(putongyuyue);
- putongyuyueService.updateById(putongyuyue);//全部更新
- return R.ok();
- }
-
-
- /**
- * 删除
- */
- @RequestMapping("/delete")
- public R delete(@RequestBody Long[] ids){
- putongyuyueService.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<PutongyuyueEntity> wrapper = new EntityWrapper<PutongyuyueEntity>();
- if(map.get("remindstart")!=null) {
- wrapper.ge(columnName, map.get("remindstart"));
- }
- if(map.get("remindend")!=null) {
- wrapper.le(columnName, map.get("remindend"));
- }
-
- String tableName = request.getSession().getAttribute("tableName").toString();
- if(tableName.equals("yonghu")) {
- wrapper.eq("yonghuzhanghao", (String)request.getSession().getAttribute("username"));
- }
-
- int count = putongyuyueService.selectCount(wrapper);
- return R.ok().put("count", count);
- }
-
-
-
-
-
-
-
-
- }