——————————DescriptionStart——————————
运行环境
Java≥8、MySQL≥5.7、Node.js≥14
开发工具
后端:eclipse/idea/myeclipse/sts等均可配置运行
前端:WebStorm/VSCode/HBuilderX等均可
❗没学过node.js的不要搞前后端分离项目
适用
课程设计,大作业,毕业设计,项目练习,学习演示等
功能说明







基于javaweb的SpringBoot影院影城管理系统(java+vue+elementui+springboot+mybaits+mysql+maven)
项目介绍
角色:管理员、用户
1 2 3 4 5 6 7 8 9 10
| 管理员: admin 123456
用户: user1 123456 user2 123456 user3 123456 user4 123456 user5 123456 user6 123456
|
本影城管理系统主要包括二大功能模块,即用户功能模块和管理员功能模块。
(1)管理员模块:系统中的核心用户是管理员,管理员登录后,通过管理员功能来管理后台系统。主要功能有:首页、个人中心、用户管理、电影类型管理、放映厅管理、电影信息管理、购票统计管理、系统管理、订单管理等功能。
(2)用户前台:首页、电影信息、选座购票、电影资讯、个人中心、后台管理、在线客服等功能,
环境需要
1.运行环境:最好是java jdk 1.8,我们在这个平台上运行的。其他版本理论上也可以。 2.IDE环境:IDEA,Eclipse,Myeclipse都可以。推荐IDEA; 3.硬件环境:windows 7/8/10 1G内存以上;或者 Mac OS; 4.数据库:MySql 5.7/8.0版本均可; 5.是否Maven项目:是;
技术栈
1.后端:SpringBoot+Mybaits
2.前端:Vue+ELementUI
使用说明
项目运行: 1. 使用Navicat或者其它工具,在mysql中创建对应sql文件名称的数据库,并导入项目的sql文件; 2. 使用IDEA/Eclipse/MyEclipse导入项目,导入成功后请执行maven clean;maven install命令,然后运行; 3. 将项目中application.yml配置文件中的数据库配置改为自己的配置; 4. 运行项目,控制台提示运行成功后再去运行前端项目;
——————————CodeStart——————————
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
@RequestMapping("/page") public R page(@RequestParam Map<String, Object> params,GoupiaotongjiEntity goupiaotongji, HttpServletRequest request){ EntityWrapper<GoupiaotongjiEntity> ew = new EntityWrapper<GoupiaotongjiEntity>(); PageUtils page = goupiaotongjiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, goupiaotongji), params), params));
return R.ok().put("data", page); }
@RequestMapping("/list") public R list(@RequestParam Map<String, Object> params,GoupiaotongjiEntity goupiaotongji, HttpServletRequest request){ EntityWrapper<GoupiaotongjiEntity> ew = new EntityWrapper<GoupiaotongjiEntity>(); PageUtils page = goupiaotongjiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, goupiaotongji), params), params)); return R.ok().put("data", page); }
@RequestMapping("/lists") public R list( GoupiaotongjiEntity goupiaotongji){ EntityWrapper<GoupiaotongjiEntity> ew = new EntityWrapper<GoupiaotongjiEntity>(); ew.allEq(MPUtil.allEQMapPre( goupiaotongji, "goupiaotongji")); return R.ok().put("data", goupiaotongjiService.selectListView(ew)); }
@RequestMapping("/query") public R query(GoupiaotongjiEntity goupiaotongji){ EntityWrapper< GoupiaotongjiEntity> ew = new EntityWrapper< GoupiaotongjiEntity>(); ew.allEq(MPUtil.allEQMapPre( goupiaotongji, "goupiaotongji")); GoupiaotongjiView goupiaotongjiView = goupiaotongjiService.selectView(ew); return R.ok("查询购票统计成功").put("data", goupiaotongjiView); }
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
| TokenEntity tokenEntity = null; if(StringUtils.isNotBlank(token)) { tokenEntity = tokenService.getTokenEntity(token); } if(tokenEntity != null) { request.getSession().setAttribute("userId", tokenEntity.getUserid()); request.getSession().setAttribute("role", tokenEntity.getRole()); request.getSession().setAttribute("tableName", tokenEntity.getTablename()); request.getSession().setAttribute("username", tokenEntity.getUsername()); return true; } PrintWriter writer = null; response.setCharacterEncoding("UTF-8"); response.setContentType("application/json; charset=utf-8"); try { writer = response.getWriter(); writer.print(JSONObject.toJSONString(R.error(401, "请先登录"))); } finally { if(writer != null){ writer.close(); } }
return false; } }
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
| @RequestMapping("/page") public R page(@RequestParam Map<String, Object> params,AddressEntity address, HttpServletRequest request){ if(!request.getSession().getAttribute("role").toString().equals("管理员")) { address.setUserid((Long)request.getSession().getAttribute("userId")); } EntityWrapper<AddressEntity> ew = new EntityWrapper<AddressEntity>(); PageUtils page = addressService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, address), params), params));
return R.ok().put("data", page); }
@RequestMapping("/list") public R list(@RequestParam Map<String, Object> params,AddressEntity address, HttpServletRequest request){ if(!request.getSession().getAttribute("role").toString().equals("管理员")) { address.setUserid((Long)request.getSession().getAttribute("userId")); } EntityWrapper<AddressEntity> ew = new EntityWrapper<AddressEntity>(); PageUtils page = addressService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, address), params), params)); return R.ok().put("data", page); }
@RequestMapping("/lists") public R list( AddressEntity address){ EntityWrapper<AddressEntity> ew = new EntityWrapper<AddressEntity>(); ew.allEq(MPUtil.allEQMapPre( address, "address")); return R.ok().put("data", addressService.selectListView(ew)); }
@RequestMapping("/query") public R query(AddressEntity address){ EntityWrapper< AddressEntity> ew = new EntityWrapper< AddressEntity>(); ew.allEq(MPUtil.allEQMapPre( address, "address")); AddressView addressView = addressService.selectView(ew); return R.ok("查询地址成功").put("data", addressView); }
@RequestMapping("/info/{id}")
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
| 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<DiscussdianyingxinxiEntity> wrapper = new EntityWrapper<DiscussdianyingxinxiEntity>(); if(map.get("remindstart")!=null) { wrapper.ge(columnName, map.get("remindstart")); } if(map.get("remindend")!=null) { wrapper.le(columnName, map.get("remindend")); }
int count = discussdianyingxinxiService.selectCount(wrapper); return R.ok().put("count", count); }
}
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
| */ @RequestMapping("/page") public R page(@RequestParam Map<String, Object> params,NewsEntity news, HttpServletRequest request){ EntityWrapper<NewsEntity> ew = new EntityWrapper<NewsEntity>(); PageUtils page = newsService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, news), params), params));
return R.ok().put("data", page); }
@IgnoreAuth @RequestMapping("/list") public R list(@RequestParam Map<String, Object> params,NewsEntity news, HttpServletRequest request){ EntityWrapper<NewsEntity> ew = new EntityWrapper<NewsEntity>(); PageUtils page = newsService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, news), params), params)); return R.ok().put("data", page); }
@RequestMapping("/lists") public R list( NewsEntity news){ EntityWrapper<NewsEntity> ew = new EntityWrapper<NewsEntity>(); ew.allEq(MPUtil.allEQMapPre( news, "news")); return R.ok().put("data", newsService.selectListView(ew)); }
@RequestMapping("/query") public R query(NewsEntity news){ EntityWrapper< NewsEntity> ew = new EntityWrapper< NewsEntity>(); ew.allEq(MPUtil.allEQMapPre( news, "news")); NewsView newsView = newsService.selectView(ew); return R.ok("查询电影资讯成功").put("data", newsView); }
|
——————————PayStart——————————
项目链接:
https://javayms.github.io?id=100023061907201av
https://javayms.pages.dev?id=100023061907201av