当前位置:   article > 正文

Java项目:影院影城管理系统(java+Vue+ELementUI+SpringBoot+Mybaits+Mysql)

Java项目:影院影城管理系统(java+Vue+ELementUI+SpringBoot+Mybaits+Mysql)

源码获取:俺的博客首页 "资源" 里下载!

项目介绍

角色:管理员、用户

本影城管理系统主要包括二大功能模块,即用户功能模块和管理员功能模块。

(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. 运行项目,控制台提示运行成功后再去运行前端项目;

 

 

 

 

 

 

影厅管理控制层:

  1. /**
  2. * 影厅管理
  3. */
  4. @RestController
  5. public class HallController {
  6. @Autowired
  7. private HallService hallService;
  8. @RequestMapping(value = "hall/all", method = RequestMethod.GET)
  9. public ResponseVO searchAllHall(){
  10. return hallService.searchAllHall();
  11. }
  12. @RequestMapping(value = "hall/add", method = RequestMethod.POST)
  13. public ResponseVO addHall(@RequestBody Hall addHallForm){return hallService.addHall( addHallForm);}
  14. @RequestMapping(value = "hall/update", method = RequestMethod.POST)
  15. public ResponseVO updateHall(@RequestBody Hall updateHallForm){return hallService.updateHall( updateHallForm);}
  16. }

电影管理控制层:

  1. /**
  2. * 电影管理
  3. */
  4. @RestController
  5. public class MovieController {
  6. @Autowired
  7. private MovieService movieService;
  8. @Autowired
  9. private MovieLikeService movieLikeService;
  10. @RequestMapping(value = "/movie/add", method = RequestMethod.POST)
  11. public ResponseVO addMovie(@RequestBody MovieForm addMovieForm){
  12. return movieService.addMovie(addMovieForm);
  13. }
  14. @RequestMapping(value = "/movie/{id}/{userId}", method = RequestMethod.GET)
  15. public ResponseVO searchOneMovieByIdAndUserId(@PathVariable int id, @PathVariable int userId){
  16. return movieService.searchOneMovieByIdAndUserId(id, userId);
  17. }
  18. @RequestMapping(value = "/movie/all", method = RequestMethod.GET)
  19. public ResponseVO searchAllMovie(){
  20. //返回结果中包括已经下架的电影
  21. return movieService.searchAllMovie();
  22. }
  23. @RequestMapping(value = "/movie/all/exclude/off", method = RequestMethod.GET)
  24. public ResponseVO searchOtherMoviesExcludeOff(){
  25. //返回结果中不包括已经下架的电影
  26. return movieService.searchOtherMoviesExcludeOff();
  27. }
  28. @RequestMapping(value = "/movie/{movieId}/like", method = RequestMethod.POST)
  29. public ResponseVO likeMovie(@PathVariable int movieId,@RequestParam int userId){
  30. return movieLikeService.likeMovie(userId,movieId);
  31. }
  32. @RequestMapping(value = "/movie/{movieId}/unlike", method = RequestMethod.POST)
  33. public ResponseVO unlikeMovie(@PathVariable int movieId,@RequestParam int userId){
  34. return movieLikeService.unLikeMovie(userId,movieId);
  35. }
  36. @RequestMapping(value = "/movie/{movieId}/like/count", method = RequestMethod.GET)
  37. public ResponseVO getMovieLikeCounts(@PathVariable int movieId){
  38. return movieLikeService.getCountOfLikes(movieId);
  39. }
  40. @RequestMapping(value = "/movie/{movieId}/like/date", method = RequestMethod.GET)
  41. public ResponseVO getMovieLikeCountByDate(@PathVariable int movieId){
  42. return movieLikeService.getLikeNumsGroupByDate(movieId);
  43. }
  44. @RequestMapping(value = "/movie/search",method = RequestMethod.GET)
  45. public ResponseVO getMovieByKeyword(@RequestParam String keyword){
  46. return movieService.getMovieByKeyword(keyword);
  47. }
  48. @RequestMapping(value = "/movie/off/batch",method = RequestMethod.POST)
  49. public ResponseVO pullOfBatchOfMovie(@RequestBody MovieBatchOffForm movieBatchOffForm){
  50. return movieService.pullOfBatchOfMovie(movieBatchOffForm);
  51. }
  52. @RequestMapping(value = "/movie/update",method = RequestMethod.POST)
  53. public ResponseVO updateMovie(@RequestBody MovieForm updateMovieForm){
  54. return movieService.updateMovie(updateMovieForm);
  55. }
  56. }

排片信息管理控制层:

  1. /**
  2. * 排片管理
  3. */
  4. @RestController
  5. public class ScheduleController {
  6. @Autowired
  7. private ScheduleService scheduleService;
  8. @RequestMapping(value = "/schedule/add", method = RequestMethod.POST)
  9. public ResponseVO addSchedule(@RequestBody ScheduleForm scheduleForm){
  10. return scheduleService.addSchedule(scheduleForm);
  11. }
  12. @RequestMapping(value = "/schedule/update", method = RequestMethod.POST)
  13. public ResponseVO updateSchedule(@RequestBody ScheduleForm scheduleForm){
  14. return scheduleService.updateSchedule(scheduleForm);
  15. }
  16. @RequestMapping(value = "/schedule/search", method = RequestMethod.GET)
  17. public ResponseVO searchSchedule(@RequestParam int hallId, @RequestParam Date startDate){
  18. //这里传递startDate参数时,前端传的是用/分隔的时间,例如startDate=2019/04/12
  19. return scheduleService.searchScheduleSevenDays(hallId, startDate);
  20. }
  21. @RequestMapping(value = "/schedule/search/audience", method = RequestMethod.GET)
  22. public ResponseVO searchAudienceSchedule(@RequestParam int movieId){
  23. return scheduleService.searchAudienceSchedule(movieId);
  24. }
  25. @RequestMapping(value = "/schedule/view/set", method = RequestMethod.POST)
  26. public ResponseVO setScheduleView(@RequestBody ScheduleViewForm scheduleViewForm){
  27. return scheduleService.setScheduleView(scheduleViewForm);
  28. }
  29. @RequestMapping(value = "/schedule/view", method = RequestMethod.GET)
  30. public ResponseVO getScheduleView(){
  31. return scheduleService.getScheduleView();
  32. }
  33. @RequestMapping(value = "/schedule/delete/batch", method = RequestMethod.DELETE)
  34. public ResponseVO deleteBatchOfSchedule(@RequestBody ScheduleBatchDeleteForm scheduleBatchDeleteForm){
  35. return scheduleService.deleteBatchOfSchedule(scheduleBatchDeleteForm);
  36. }
  37. @RequestMapping(value = "/schedule/{id}", method = RequestMethod.GET)
  38. public ResponseVO getScheduleById(@PathVariable int id){
  39. return scheduleService.getScheduleById(id);
  40. }
  41. }

源码获取:俺的博客首页 "资源" 里下载! 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小丑西瓜9/article/detail/155211
推荐阅读
相关标签
  

闽ICP备14008679号