Web 毕设篇-适合小白、初级入门练手的 Spring Boot Web 毕业设计项目:电影院后台管理系统(前后端源码 + 数据库 sql 脚本)

news/2024/12/4 17:25:40/

🔥博客主页: 【小扳_-CSDN博客】
❤感谢大家点赞👍收藏⭐评论✍

文章目录

        1.0 项目介绍

        2.0 用户登录功能

        3.0 用户管理功能

        4.0 影院管理功能

        5.0 电影管理功能

        6.0 影厅管理功能

        7.0 电影排片管理功能

        8.0 用户评论管理功能

        9.0 用户购票功能

        10.0 用户购票记录管理


        1.0 项目介绍

        开发工具:IDEA、VScode

        服务器:Tomcat, JDK 17

        项目构建:maven

        数据库mysql 5.7

系统用户前台和管理后台两部分,项目采用前后端分离

        前端技术:vue +elementUI

        服务端技术:springboot+mybatis+redis+mysql

项目功能描述:

1)前台功能:

        1.登录、注册、退出系统、首页、搜索

        2.电影:正在热映、即将热映、经典影片

        3.影院:选座订票、下单支付

        4.榜单:TOP100榜

        5.个人中心:我的订单、基本信息

2)后台功能:

        1.登录、退出系统、首页

        2.影院管理

                (1)影院信息管理:添加、修改、删除、查询等功能

                (2)影院区域管理:添加、修改、删除等功能

        3.电影管理

                (1)电影信息管理:添加、修改、删除、查询、演员和影片分类等功能

                (2)电影评论管理:添加、删除等操作

                (5)电影类别管理:添加、修改、删除等功能

        4.影厅管理

                (1)影厅信息管理:添加、修改、删除、查询、安排座位等功能

                (2)影厅类别管理:添加、修改、删除等功能

        5.场次管理

                (1)场次信息管理:添加、修改、删除、查询、查看座位等功能

        6.用户管理

                (1)用户信息管理:添加、修改、删除、查询等功能

                (2)订单信息管理:查询、删除等功能

                (3)用户爱好管理:添加、修改、删除等功能

        7.权限管理

                (1)角色信息管理:添加、修改、删除、分配权限等功能

                (2)资源信息管理:添加、修改、删除等功能

        注意:不一定非要完全符合开发环境,有稍微的差别也是可以开发的。

        2.0 用户登录功能

        实现了登录校验,还有用户注册功能:

        用到了 Spring Security 框架来实现登录、校验、验证等功能。 

 

相关的部分源码:

java">@RestController
public class SysLoginController
{@Autowiredprivate SysLoginService loginService;@Autowiredprivate ISysMenuService menuService;@Autowiredprivate SysPermissionService permissionService;/*** 登录方法* * @param loginBody 登录信息* @return 结果*/@PostMapping("/login")public AjaxResult login(@RequestBody LoginBody loginBody){AjaxResult ajax = AjaxResult.success();// 生成令牌String token = loginService.login(loginBody.getUsername(), loginBody.getPassword(), loginBody.getCode(),loginBody.getUuid());ajax.put(Constants.TOKEN, token);return ajax;}/*** 获取用户信息* * @return 用户信息*/@GetMapping("getInfo")public AjaxResult getInfo(){SysUser user = SecurityUtils.getLoginUser().getUser();// 角色集合Set<String> roles = permissionService.getRolePermission(user);// 权限集合Set<String> permissions = permissionService.getMenuPermission(user);AjaxResult ajax = AjaxResult.success();ajax.put("user", user);ajax.put("roles", roles);ajax.put("permissions", permissions);return ajax;}/*** 获取路由信息* * @return 路由信息*/@GetMapping("getRouters")public AjaxResult getRouters(){Long userId = SecurityUtils.getUserId();List<SysMenu> menus = menuService.selectMenuTreeByUserId(userId);return AjaxResult.success(menuService.buildMenus(menus));}
}
java">    public String login(String username, String password, String code, String uuid){// 验证码校验validateCaptcha(username, code, uuid);// 登录前置校验loginPreCheck(username, password);// 用户验证Authentication authentication = null;try{UsernamePasswordAuthenticationToken authenticationToken = new UsernamePasswordAuthenticationToken(username, password);AuthenticationContextHolder.setContext(authenticationToken);// 该方法会去调用UserDetailsServiceImpl.loadUserByUsernameauthentication = authenticationManager.authenticate(authenticationToken);}catch (Exception e){if (e instanceof BadCredentialsException){AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, Constants.LOGIN_FAIL, MessageUtils.message("user.password.not.match")));throw new UserPasswordNotMatchException();}else{AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, Constants.LOGIN_FAIL, e.getMessage()));throw new ServiceException(e.getMessage());}}finally{AuthenticationContextHolder.clearContext();}AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, Constants.LOGIN_SUCCESS, MessageUtils.message("user.login.success")));LoginUser loginUser = (LoginUser) authentication.getPrincipal();recordLoginInfo(loginUser.getUserId());// 生成tokenreturn tokenService.createToken(loginUser);}

        3.0 用户管理功能

         上传图片使用了第三方接口:x-File-Storage 框架。

 相关的部分源码:

        1)后端代码:

java">@RestController
@RequestMapping("/manage/user")
public class UserController extends BaseController
{@Autowiredprivate IUserService userService;@Autowiredprivate SysUserServiceImpl sysUserService;/*** 查询用户信息列表*//*@PreAuthorize("@ss.hasPermi('manage:user:list')")*/@GetMapping("/list")public TableDataInfo list(User user){List<User> list = userService.selectUserList(user);TableDataInfo rspData = new TableDataInfo();rspData.setCode(HttpStatus.SUCCESS);rspData.setMsg("查询成功");rspData.setRows(list);rspData.setTotal(new PageInfo(list).getTotal());return rspData;}/*** 导出用户信息列表*/@PreAuthorize("@ss.hasPermi('manage:user:export')")@Log(title = "用户信息", businessType = BusinessType.EXPORT)@PostMapping("/export")public void export(HttpServletResponse response, User user){List<User> list = userService.selectUserList(user);ExcelUtil<User> util = new ExcelUtil<User>(User.class);util.exportExcel(response, list, "用户信息数据");}/*** 获取用户信息详细信息*/@PreAuthorize("@ss.hasPermi('manage:user:query')")@GetMapping(value = "/{userId}")public AjaxResult getInfo(@PathVariable("userId") Long userId){return success(userService.selectUserByUserId(userId));}/*** 新增用户信息*/@PreAuthorize("@ss.hasPermi('manage:user:add')")@Log(title = "用户信息", businessType = BusinessType.INSERT)@PostMappingpublic AjaxResult add(@RequestBody User user){return toAjax(userService.insertUser(user));}/*** 修改用户信息*/@PreAuthorize("@ss.hasPermi('manage:user:edit')")@Log(title = "用户信息", businessType = BusinessType.UPDATE)@PutMappingpublic AjaxResult edit(@RequestBody User user){return toAjax(userService.updateUser(user));}/*** 删除用户信息*/@PreAuthorize("@ss.hasPermi('manage:user:remove')")@Log(title = "用户信息", businessType = BusinessType.DELETE)@DeleteMapping("/{userIds}")public AjaxResult remove(@PathVariable Long[] userIds){return toAjax(userService.deleteUserByUserIds(userIds));}/*** 查询全部用户信息列表*//*@PreAuthorize("@ss.hasPermi('manage:user:list')")*/@GetMapping("/allUserList")public TableDataInfo allUserList(User user){List<User> list = userService.addUserList(user);return getDataTable(list);}
}

         2)前端代码:

java"><template><div class="app-container"><el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="68px"><el-form-item label="用户名" prop="userName"><el-inputv-model="queryParams.userName"placeholder="请输入用户名"clearable@keyup.enter="handleQuery"/></el-form-item><el-form-item label="手机号码" prop="phoneNumber"><el-inputv-model="queryParams.phoneNumber"placeholder="请输入手机号码"clearable@keyup.enter="handleQuery"/></el-form-item><el-form-item><el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button><el-button icon="Refresh" @click="resetQuery">重置</el-button></el-form-item></el-form><el-row :gutter="10" class="mb8"><el-col :span="1.5"><el-buttontype="primary"plainicon="Plus"@click="handleAdd"v-hasPermi="['manage:user:add']">新增</el-button></el-col><el-col :span="1.5"><el-buttontype="success"plainicon="Edit":disabled="single"@click="handleUpdate"v-hasPermi="['manage:user:edit']">修改</el-button></el-col><el-col :span="1.5"><el-buttontype="danger"plainicon="Delete":disabled="multiple"@click="handleDelete"v-hasPermi="['manage:user:remove']">删除</el-button></el-col><el-col :span="1.5"><el-buttontype="warning"plainicon="Download"@click="handleExport"v-hasPermi="['manage:user:export']">导出</el-button></el-col><right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar></el-row><el-table v-loading="loading" :data="userList" @selection-change="handleSelectionChange"><el-table-column type="selection" width="55" align="center" /><el-table-column label="用户ID" width="80" align="center" prop="userId" /><el-table-column label="用户名" width="100" align="center" prop="userName" /><el-table-column label="头像" align="center" prop="avatar" ><template #default="scope"><image-preview :src="scope.row.avatar" class="avatar-image" width="20" height="20" /></template></el-table-column><el-table-column label="性别" align="center" prop="gender"><template #default="scope"><dict-tag :options="sys_user_sex" :value="scope.row.gender"/></template></el-table-column><el-table-column label="手机号码" align="center" prop="phoneNumber" /><el-table-column label="个人签名" align="center" prop="signature" /><el-table-column label="操作" align="center" class-name="small-padding fixed-width"><template #default="scope"><el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['manage:user:edit']">修改</el-button><el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['manage:user:remove']">删除</el-button></template></el-table-column></el-table><paginationv-show="total>0":total="total"v-model:page="queryParams.pageNum"v-model:limit="queryParams.pageSize"@pagination="getList"/><!-- 添加或修改用户信息对话框 --><el-dialog :title="title" v-model="open" width="500px" append-to-body><el-form ref="userRef" :model="form" :rules="rules" label-width="80px"><el-form-item label="用户名" prop="userName"><el-input v-model="form.userName" placeholder="请输入用户名" /></el-form-item><el-form-item label="头像" prop="avatar"><image-upload v-model="form.avatar"/></el-form-item><el-form-item label="手机" prop="phoneNumber"><el-input v-model="form.phoneNumber" placeholder="请输入手机号码" /></el-form-item><el-form-item label="密码" prop="password"><el-input v-model="form.password" type="password" placeholder="请输入用户密码" /></el-form-item><el-form-item label="性别" prop="gender"><el-select v-model="form.gender" placeholder="请选择性别"><el-optionv-for="dict in sys_user_sex":key="dict.value":label="dict.label":value="parseInt(dict.value)"></el-option></el-select></el-form-item><el-form-item label="出生日期" prop="birthDate"><el-date-picker clearablev-model="form.birthDate"type="date"value-format="YYYY-MM-DD"placeholder="请选择出生日期"></el-date-picker></el-form-item><el-form-item label="个人签名" prop="signature"><el-input v-model="form.signature" type="textarea" placeholder="请输入内容" /></el-form-item></el-form><template #footer><div class="dialog-footer"><el-button type="primary" @click="submitForm">确 定</el-button><el-button @click="cancel">取 消</el-button></div></template></el-dialog></div>
</template>

        4.0 影院管理功能

相关的部分源码:

        1)后端代码:

java">@RestController
@RequestMapping("/manage/cinema")
public class CinemaController extends BaseController
{@Autowiredprivate ICinemaService cinemaService;/*** 查询影院信息列表*/@PreAuthorize("@ss.hasPermi('manage:cinema:list')")@GetMapping("/list")public TableDataInfo list(Cinema cinema){startPage();List<Cinema> list = cinemaService.selectCinemaList(cinema);return getDataTable(list);}/*** 导出影院信息列表*/@PreAuthorize("@ss.hasPermi('manage:cinema:export')")@Log(title = "影院信息", businessType = BusinessType.EXPORT)@PostMapping("/export")public void export(HttpServletResponse response, Cinema cinema){List<Cinema> list = cinemaService.selectCinemaList(cinema);ExcelUtil<Cinema> util = new ExcelUtil<Cinema>(Cinema.class);util.exportExcel(response, list, "影院信息数据");}/*** 获取影院信息详细信息*/@PreAuthorize("@ss.hasPermi('manage:cinema:query')")@GetMapping(value = "/{cinemaId}")public AjaxResult getInfo(@PathVariable("cinemaId") Long cinemaId){return success(cinemaService.selectCinemaByCinemaId(cinemaId));}/*** 新增影院信息*/@PreAuthorize("@ss.hasPermi('manage:cinema:add')")@Log(title = "影院信息", businessType = BusinessType.INSERT)@PostMappingpublic AjaxResult add(@RequestBody Cinema cinema){return toAjax(cinemaService.insertCinema(cinema));}/*** 修改影院信息*/@PreAuthorize("@ss.hasPermi('manage:cinema:edit')")@Log(title = "影院信息", businessType = BusinessType.UPDATE)@PutMappingpublic AjaxResult edit(@RequestBody Cinema cinema){return toAjax(cinemaService.updateCinema(cinema));}/*** 删除影院信息*/@PreAuthorize("@ss.hasPermi('manage:cinema:remove')")@Log(title = "影院信息", businessType = BusinessType.DELETE)@DeleteMapping("/{cinemaIds}")public AjaxResult remove(@PathVariable Long[] cinemaIds){return toAjax(cinemaService.deleteCinemaByCinemaIds(cinemaIds));}
}

        2)前端代码:

java"><template><div class="app-container"><el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="68px"><el-form-item label="影院名" prop="cinemaName"><el-inputv-model="queryParams.cinemaName"placeholder="请输入影院名"clearable@keyup.enter="handleQuery"/></el-form-item><el-form-item label="详细地址" prop="address"><el-inputv-model="queryParams.address"placeholder="请输入详细地址"clearable@keyup.enter="handleQuery"/></el-form-item><el-form-item label="营业状态" prop="operatingStatus"><el-select v-model="queryParams.operatingStatus" placeholder="请选择营业状态" clearable><el-optionv-for="dict in operating_status":key="dict.value":label="dict.label":value="dict.value"/></el-select></el-form-item><el-form-item><el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button><el-button icon="Refresh" @click="resetQuery">重置</el-button></el-form-item></el-form><el-row :gutter="10" class="mb8"><el-col :span="1.5"><el-buttontype="primary"plainicon="Plus"@click="handleAdd"v-hasPermi="['manage:cinema:add']">新增</el-button></el-col><el-col :span="1.5"><el-buttontype="success"plainicon="Edit":disabled="single"@click="handleUpdate"v-hasPermi="['manage:cinema:edit']">修改</el-button></el-col><el-col :span="1.5"><el-buttontype="danger"plainicon="Delete":disabled="multiple"@click="handleDelete"v-hasPermi="['manage:cinema:remove']">删除</el-button></el-col><el-col :span="1.5"><el-buttontype="warning"plainicon="Download"@click="handleExport"v-hasPermi="['manage:cinema:export']">导出</el-button></el-col><right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar></el-row><el-table v-loading="loading" :data="cinemaList" @selection-change="handleSelectionChange"><el-table-column type="selection" width="55" align="center" /><el-table-column label="序号ID" align="center" type="index" width="80"/><el-table-column label="影院名" align="center" prop="cinemaName" /><el-table-column label="联系电话" align="center" prop="contactNumber" /><el-table-column label="详细地址" align="left" prop="address" show-overflow-tooltip="true"/><el-table-column label="营业状态" align="center" prop="operatingStatus"><template #default="scope"><dict-tag :options="operating_status" :value="scope.row.operatingStatus"/></template></el-table-column><el-table-column label="更新时间" align="center" prop="updateTime" width="180"><template #default="scope"><span>{{ parseTime(scope.row.updateTime, '{y}-{m}-{d} {i}:{h}:{m}') }}</span></template></el-table-column><el-table-column label="操作" align="center" class-name="small-padding fixed-width"><template #default="scope"><el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['manage:cinema:edit']">修改</el-button><el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['manage:cinema:remove']">删除</el-button></template></el-table-column></el-table><paginationv-show="total>0":total="total"v-model:page="queryParams.pageNum"v-model:limit="queryParams.pageSize"@pagination="getList"/><!-- 添加或修改影院信息对话框 --><el-dialog :title="title" v-model="open" width="500px" append-to-body><el-form ref="cinemaRef" :model="form" :rules="rules" label-width="80px"><el-form-item label="影院名" prop="cinemaName"><el-input v-model="form.cinemaName" placeholder="请输入影院名" /></el-form-item><el-form-item label="联系电话" prop="contactNumber"><el-input v-model="form.contactNumber" placeholder="请输入联系电话" /></el-form-item><el-form-item label="详细地址" prop="address"><el-input v-model="form.address" placeholder="请输入详细地址" /></el-form-item><el-form-item label="营业状态" prop="operatingStatus"><el-select v-model="form.operatingStatus" placeholder="请选择营业状态"><el-optionv-for="dict in operating_status":key="dict.value":label="dict.label":value="parseInt(dict.value)"></el-option></el-select></el-form-item></el-form><template #footer><div class="dialog-footer"><el-button type="primary" @click="submitForm">确 定</el-button><el-button @click="cancel">取 消</el-button></div></template></el-dialog></div>
</template>

        5.0 电影管理功能

相关部分源码:

java">    @Autowiredprivate IFilmService filmService;/*** 查询电影信息列表*/@PreAuthorize("@ss.hasPermi('manage:film:list')")@GetMapping("/list")public TableDataInfo list(Film film){startPage();List<Film> list = filmService.selectFilmList(film);return getDataTable(list);}/*** 导出电影信息列表*/@PreAuthorize("@ss.hasPermi('manage:film:export')")@Log(title = "电影信息", businessType = BusinessType.EXPORT)@PostMapping("/export")public void export(HttpServletResponse response, Film film){List<Film> list = filmService.selectFilmList(film);ExcelUtil<Film> util = new ExcelUtil<Film>(Film.class);util.exportExcel(response, list, "电影信息数据");}

        6.0 影厅管理功能

相关源码:

java">    /*** 获取影厅信息详细信息*/@PreAuthorize("@ss.hasPermi('manage:hall:query')")@GetMapping(value = "/{hallId}")public AjaxResult getInfo(@PathVariable("hallId") Long hallId){return success(hallService.selectHallByHallId(hallId));}/*** 新增影厅信息*/@PreAuthorize("@ss.hasPermi('manage:hall:add')")@Log(title = "影厅信息", businessType = BusinessType.INSERT)@PostMappingpublic AjaxResult add(@RequestBody Hall hall){return toAjax(hallService.insertHall(hall));}/*** 修改影厅信息*/@PreAuthorize("@ss.hasPermi('manage:hall:edit')")@Log(title = "影厅信息", businessType = BusinessType.UPDATE)@PutMappingpublic AjaxResult edit(@RequestBody Hall hall){return toAjax(hallService.updateHall(hall));}

        7.0 电影排片管理功能

相关源码:

java">/*** 获取电影排片详细信息*/@PreAuthorize("@ss.hasPermi('manage:schedule:query')")@GetMapping(value = "/{scheduleId}")public AjaxResult getInfo(@PathVariable("scheduleId") Long scheduleId){return success(scheduleService.selectScheduleByScheduleId(scheduleId));}/*** 新增电影排片*/@PreAuthorize("@ss.hasPermi('manage:schedule:add')")@Log(title = "电影排片", businessType = BusinessType.INSERT)@PostMappingpublic AjaxResult add(@RequestBody Schedule schedule){return toAjax(scheduleService.insertSchedule(schedule));}/*** 修改电影排片*/@PreAuthorize("@ss.hasPermi('manage:schedule:edit')")@Log(title = "电影排片", businessType = BusinessType.UPDATE)@PutMappingpublic AjaxResult edit(@RequestBody Schedule schedule){return toAjax(scheduleService.updateSchedule(schedule));}

        

        8.0 用户评论管理功能

相关源码:

java">/*** 获取用户评价详细信息*/@PreAuthorize("@ss.hasPermi('manage:review:query')")@GetMapping(value = "/{reviewId}")public AjaxResult getInfo(@PathVariable("reviewId") Long reviewId){return success(reviewService.selectReviewByReviewId(reviewId));}/*** 新增用户评价*/@PreAuthorize("@ss.hasPermi('manage:review:add')")@Log(title = "用户评价", businessType = BusinessType.INSERT)@PostMappingpublic AjaxResult add(@RequestBody Review review){return toAjax(reviewService.insertReview(review));}/*** 修改用户评价*/@PreAuthorize("@ss.hasPermi('manage:review:edit')")@Log(title = "用户评价", businessType = BusinessType.UPDATE)@PutMappingpublic AjaxResult edit(@RequestBody Review review){return toAjax(reviewService.updateReview(review));}

        9.0 用户购票功能

相关源码:

        1)后端代码:

java">/*** 获取购票数据详细信息*/@PreAuthorize("@ss.hasPermi('manage:byTicket:query')")@GetMapping(value = "/{ticketId}")public AjaxResult getInfo(@PathVariable("ticketId") Long ticketId){return success(byTicketService.selectByTicketByTicketId(ticketId));}/*** 新增购票数据*/@PreAuthorize("@ss.hasPermi('manage:byTicket:add')")@Log(title = "购票数据", businessType = BusinessType.INSERT)@PostMappingpublic AjaxResult add(@RequestBody ByTicket byTicket){if (byTicket.getUserId() == null){byTicket.setUserId(getUserId());}return toAjax(byTicketService.insertByTicket(byTicket));}/*** 修改购票数据*/@PreAuthorize("@ss.hasPermi('manage:byTicket:edit')")@Log(title = "购票数据", businessType = BusinessType.UPDATE)@PutMappingpublic AjaxResult edit(@RequestBody ByTicket byTicket){return toAjax(byTicketService.updateByTicket(byTicket));}

        2)前端代码:

java"><template><div class="app-container background-image"><div class="movie-posters"><div v-for="movie in filmList" :key="movie.filmId" class="movie-poster" @click="handlePosterClick(movie.filmId)"><img :src="movie.posterImage" :alt="movie.filmName" /><div class="movie-title">{{ movie.filmName }}</div><div class="movie-info">主演:{{ movie.actors }}</div></div></div><el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="68px"><!-- 现有的表单内容 --></el-form><!-- 添加或修改购票数据对话框 --><el-dialog :title="title" v-model="open" width="500px" append-to-body><el-form ref="byTicketRef" :model="form" :rules="rules" label-width="80px"><!-- 现有的表单内容 --><el-form-item label="电影" prop="filmId"><el-select v-model="form.filmId" placeholder="请选择电影" disabled><el-optionv-for="item in filmList":key="item.filmId":value="item.filmId":label="item.filmName"/></el-select></el-form-item><el-form-item label="影院" prop="cinemaId"><el-selectv-model="form.cinemaId" placeholder="请选择影院"><el-optionv-for="item in cinemaList":key="item.cinemaId":value="item.cinemaId":label="item.cinemaName"/></el-select></el-form-item><el-form-item label="影厅" prop="hallId"><el-select v-model="form.hallId" placeholder="请选择影厅"><el-optionv-for="item in hallList":key="item.hallId":value="item.hallId":label="item.hallName"/></el-select></el-form-item><el-form-item label="座位号" prop="seatNumber"><el-input-number min="1" max="20" v-model="myRow" placeholder="行排" /> &nbsp;<el-input-number min="1" max="20" v-model="myColumn" placeholder="竖排" /></el-form-item><el-form-item label="票数" prop="numberOfTickets"><el-input-number :min="1" :max="100" v-model="form.numberOfTickets" placeholder="输入票数" /></el-form-item><el-form-item label="预约时间" prop="purchaseTime"><el-date-picker clearablev-model="form.purchaseTime"type="date"value-format="YYYY-MM-DD"placeholder="请选择购买时间"></el-date-picker></el-form-item></el-form><template #footer><div class="dialog-footer"><el-button type="primary" @click="submitForm">确 定</el-button><el-button @click="cancel">取 消</el-button></div></template></el-dialog></div>
</template>

        10.0 用户购票记录管理

相关部分代码:

java">    //根据电影ID查询电影排片列表获取对应的电影院@GetMapping("/cinemaList/{filmId}")@PreAuthorize("@ss.hasPermi('manage:byTicket:list')")public AjaxResult cinemaList(@PathVariable("filmId") Long filmId){return success(byTicketService.cinemaSelectScheduleListByFilmId(filmId));}//根据电影ID查询电影排片列表获取对应的影厅@GetMapping("/hallList/{filmId}")@PreAuthorize("@ss.hasPermi('manage:byTicket:list')")public AjaxResult hallList(@PathVariable("filmId") Long filmId){return success(byTicketService.hallSelectScheduleListByFilmId(filmId));}

        若需要项目完整源码,可以在 CSDN 私信给我,我每天都有查看消息的,感谢大家支持,希望可以帮助到大家!


http://www.ppmy.cn/news/1552334.html

相关文章

160-两路14位400Msps AD,两路16位400Msps DA FMC子卡模块

一、概述 该板卡可实现2路14bit 400Msps AD 和2路16bit 400Msps DA功能&#xff0c;遵循 VITA 57 标准&#xff0c;板卡可以直接与VME/VXS/AMC/VPX/PCI-E FPGA 载板连接使用&#xff0c;用于模拟信号、中频信号采集&#xff0c;信号发出等应用&#xff0c;是xilinx开发板设计…

Three.js 相机视角的平滑过渡与点击模型切换视角

在 Three.js 中&#xff0c;实现相机视角的平滑过渡和点击模型切换到查看模型视角是一个常见且有用的功能。这种效果不仅能提升用户体验&#xff0c;还能为场景互动添加更多的动态元素。 1. 基本设置 首先&#xff0c;我们需要创建一个基本的 Three.js 场景&#xff0c;包括相…

经典图论之道路与航线

题目 2412: 信息学奥赛一本通T1503-道路和航线 时间限制: 2s 内存限制: 192MB 提交: 37 解决: 16 题目描述 原题来自&#xff1a;USACO 2011 Jan. Gold Farmer John 正在一个新的销售区域对他的牛奶销售方案进行调查。他想把牛奶送到 T 个城镇 &#xff0c;编号为 1 到 T。这些…

springboot/ssm餐厅点餐管理系统Java在线点餐美食论坛系统web美食源码

springboot/ssm餐厅点餐管理系统Java在线点餐美食论坛系统web美食源码 基于springboot(可改ssm)htmlvue项目 开发语言&#xff1a;Java 框架&#xff1a;springboot/可改ssm vue JDK版本&#xff1a;JDK1.8&#xff08;或11&#xff09; 服务器&#xff1a;tomcat 数据库&…

【开发语言】层次状态机(HSM)介绍

层次状态机&#xff08;Hierarchical State Machine, HSM&#xff09;&#xff0c;从基本原理、结构设计、实现方法以及如何结合 Qt 进行具体实现等方面进行分析。 1. 层次状态机的基本原理 层次状态机是一种用于管理复杂系统行为的状态机模型&#xff0c;它通过将状态组织成…

Python 3 教程第33篇(MySQL - mysql-connector 驱动)

Python MySQL - mysql-connector 驱动 MySQL 是最流行的关系型数据库管理系统&#xff0c;如果你不熟悉 MySQL&#xff0c;可以阅读我们的 MySQL 教程。 本章节我们为大家介绍使用 mysql-connector 来连接使用 MySQL&#xff0c; mysql-connector 是 MySQL 官方提供的驱动器。…

分布式资源调度——yarn 概述(资源调度基本架构和高可用的实现)

此文章是学习笔记&#xff0c;图片均来源于B站&#xff1a;哈喽鹏程 yarn详细介绍 1、yarn 简介1.1 yarn的简介1.2 yarn 的基本架构1.3. yarn 的高可用 2、yarn 调度策略、运维、监控2.1 yarn 的调度策略2.1.1 FIFO scheduler(先进先出)2.1.2 容量调度2.1.3 公平调度 2.2 yarn…

泛化调用 :在没有接口的情况下进行RPC调用

什么是泛化调用&#xff1f; 在RPC调用的过程中&#xff0c;调用端向服务端发起请求&#xff0c;首先要通过动态代理&#xff0c;动态代理可以屏蔽RPC处理流程&#xff0c;使得发起远程调用就像调用本地一样。 RPC调用本质&#xff1a;调用端向服务端发送一条请求消息&#x…