Source code acquisition : Blog home page " resources " Download in !

The main functions are :

Client : Login registration , View movie information , Theater selection , Seat selection and ticket purchase , Check your ticket , Evaluation of films and other functions . administrators : Sign in , Film management , Cinema Management , Session management , Shadow ticket management and other functions .

 

 

 

Film management control layer :
/** Film management * @author yy */ @RestController public class MovieController {
@Autowired private MovieService movieService; @Autowired private
MovieLikeService movieLikeService; @RequestMapping(value = "/movie/add", method
= RequestMethod.POST) public ResponseVO addMovie(@RequestBody MovieForm
addMovieForm){ return movieService.addMovie(addMovieForm); }
@RequestMapping(value = "/movie/{id}/{userId}", method = RequestMethod.GET)
public ResponseVO searchOneMovieByIdAndUserId(@PathVariable int id,
@PathVariable int userId){ return movieService.searchOneMovieByIdAndUserId(id,
userId); } @RequestMapping(value = "/movie/all", method = RequestMethod.GET)
public ResponseVO searchAllMovie(){ // The returned results include movies that have been taken off the shelf return
movieService.searchAllMovie(); } @RequestMapping(value =
"/movie/all/exclude/off", method = RequestMethod.GET) public ResponseVO
searchOtherMoviesExcludeOff(){ // The returned results do not include movies that have been taken off the shelf return
movieService.searchOtherMoviesExcludeOff(); } @RequestMapping(value =
"/movie/{movieId}/like", method = RequestMethod.POST) public ResponseVO
likeMovie(@PathVariable int movieId,@RequestParam int userId){ return
movieLikeService.likeMovie(userId,movieId); } @RequestMapping(value =
"/movie/{movieId}/unlike", method = RequestMethod.POST) public ResponseVO
unlikeMovie(@PathVariable int movieId,@RequestParam int userId){ return
movieLikeService.unLikeMovie(userId,movieId); } @RequestMapping(value =
"/movie/{movieId}/like/count", method = RequestMethod.GET) public ResponseVO
getMovieLikeCounts(@PathVariable int movieId){ return
movieLikeService.getCountOfLikes(movieId); } @RequestMapping(value =
"/movie/{movieId}/like/date", method = RequestMethod.GET) public ResponseVO
getMovieLikeCountByDate(@PathVariable int movieId){ return
movieLikeService.getLikeNumsGroupByDate(movieId); } @RequestMapping(value =
"/movie/search",method = RequestMethod.GET) public ResponseVO
getMovieByKeyword(@RequestParam String keyword){ return
movieService.getMovieByKeyword(keyword); } @RequestMapping(value =
"/movie/off/batch",method = RequestMethod.POST) public ResponseVO
pullOfBatchOfMovie(@RequestBody MovieBatchOffForm movieBatchOffForm){ return
movieService.pullOfBatchOfMovie(movieBatchOffForm); } @RequestMapping(value =
"/movie/update",method = RequestMethod.POST) public ResponseVO
updateMovie(@RequestBody MovieForm updateMovieForm){ return
movieService.updateMovie(updateMovieForm); } }

Layout management control layer :
/** Layout management * @author yy */ @RestController public class ScheduleController {
@Autowired private ScheduleService scheduleService; @RequestMapping(value =
"/schedule/add", method = RequestMethod.POST) public ResponseVO
addSchedule(@RequestBody ScheduleForm scheduleForm){ return
scheduleService.addSchedule(scheduleForm); } @RequestMapping(value =
"/schedule/update", method = RequestMethod.POST) public ResponseVO
updateSchedule(@RequestBody ScheduleForm scheduleForm){ return
scheduleService.updateSchedule(scheduleForm); } @RequestMapping(value =
"/schedule/search", method = RequestMethod.GET) public ResponseVO
searchSchedule(@RequestParam int hallId, @RequestParam Date startDate){
// Pass here startDate Parameter time , The front-end transmission is used / Separated time , for example startDate=2019/04/12 return
scheduleService.searchScheduleSevenDays(hallId, startDate); }
@RequestMapping(value = "/schedule/search/audience", method =
RequestMethod.GET) public ResponseVO searchAudienceSchedule(@RequestParam int
movieId){ return scheduleService.searchAudienceSchedule(movieId); }
@RequestMapping(value = "/schedule/view/set", method = RequestMethod.POST)
public ResponseVO setScheduleView(@RequestBody ScheduleViewForm
scheduleViewForm){ return scheduleService.setScheduleView(scheduleViewForm); }
@RequestMapping(value = "/schedule/view", method = RequestMethod.GET) public
ResponseVO getScheduleView(){ return scheduleService.getScheduleView(); }
@RequestMapping(value = "/schedule/delete/batch", method =
RequestMethod.DELETE) public ResponseVO deleteBatchOfSchedule(@RequestBody
ScheduleBatchDeleteForm scheduleBatchDeleteForm){ return
scheduleService.deleteBatchOfSchedule(scheduleBatchDeleteForm); }
@RequestMapping(value = "/schedule/{id}", method = RequestMethod.GET) public
ResponseVO getScheduleById(@PathVariable int id){ return
scheduleService.getScheduleById(id); } }

Cinema management control layer :
/** Cinema Management * @author yy */ @RestController public class HallController {
@Autowired private HallService hallService; @RequestMapping(value = "hall/all",
method = RequestMethod.GET) public ResponseVO searchAllHall(){ return
hallService.searchAllHall(); } @RequestMapping(value = "hall/add", method =
RequestMethod.POST) public ResponseVO addHall(@RequestBody Hall
addHallForm){return hallService.addHall( addHallForm);} @RequestMapping(value =
"hall/update", method = RequestMethod.POST) public ResponseVO
updateHall(@RequestBody Hall updateHallForm){return hallService.updateHall(
updateHallForm);} }
Source code acquisition : Blog home page " resources " Download in !

Technology