├── .DS_Store ├── .gitattributes ├── .idea ├── .gitignore ├── compiler.xml ├── encodings.xml ├── jarRepositories.xml ├── misc.xml └── vcs.xml ├── README.md ├── log └── my.log ├── output.sql ├── pom.xml ├── src └── main │ ├── java │ └── com │ │ └── example │ │ ├── Application.java │ │ ├── ClassUtils.java │ │ ├── common │ │ ├── Result.java │ │ ├── ResultCode.java │ │ └── config │ │ │ ├── DateConfig.java │ │ │ ├── MyInterceptor.java │ │ │ ├── MyInterceptorConfig.java │ │ │ └── WebMvcConfig.java │ │ ├── controller │ │ ├── AccountController.java │ │ ├── AdminInfoController.java │ │ ├── AdvertiserInfoController.java │ │ ├── CartInfoController.java │ │ ├── CommentInfoController.java │ │ ├── EchartsController.java │ │ ├── GoodsInfoController.java │ │ ├── LinkInfoController.java │ │ ├── MenuController.java │ │ ├── MessageInfoController.java │ │ ├── NxSystemFileController.java │ │ ├── OrderInfoController.java │ │ ├── SeatInfoController.java │ │ ├── TypeInfoController.java │ │ └── UserInfoController.java │ │ ├── dao │ │ ├── AdminInfoDao.java │ │ ├── AdvertiserInfoDao.java │ │ ├── CartInfoDao.java │ │ ├── CommentInfoDao.java │ │ ├── GoodsInfoDao.java │ │ ├── LinkInfoDao.java │ │ ├── MessageInfoDao.java │ │ ├── NxSystemFileInfoDao.java │ │ ├── OrderGoodsRelDao.java │ │ ├── OrderInfoDao.java │ │ ├── SeatInfoDao.java │ │ ├── TypeInfoDao.java │ │ └── UserInfoDao.java │ │ ├── entity │ │ ├── Account.java │ │ ├── AdminInfo.java │ │ ├── AdvertiserInfo.java │ │ ├── AuthorityInfo.java │ │ ├── CartInfo.java │ │ ├── CommentInfo.java │ │ ├── GoodsInfo.java │ │ ├── LinkInfo.java │ │ ├── MessageInfo.java │ │ ├── NxSystemFileInfo.java │ │ ├── OrderGoodsRel.java │ │ ├── OrderInfo.java │ │ ├── SeatInfo.java │ │ ├── TypeInfo.java │ │ └── UserInfo.java │ │ ├── exception │ │ ├── CustomException.java │ │ └── GlobalExceptionHandler.java │ │ ├── service │ │ ├── AdminInfoService.java │ │ ├── AdvertiserInfoService.java │ │ ├── CartInfoService.java │ │ ├── CommentInfoService.java │ │ ├── GoodsInfoService.java │ │ ├── LinkInfoService.java │ │ ├── MailService.java │ │ ├── MessageInfoService.java │ │ ├── NxSystemFileInfoService.java │ │ ├── OrderInfoService.java │ │ ├── SeatInfoService.java │ │ ├── TypeInfoService.java │ │ └── UserInfoService.java │ │ └── vo │ │ ├── AdminInfoVo.java │ │ ├── AdvertiserInfoVo.java │ │ ├── EchartsData.java │ │ ├── LinkInfoVo.java │ │ ├── MessageInfoVo.java │ │ └── UserInfoVo.java │ └── resources │ ├── application.yml │ ├── mapper │ ├── AdminInfoMapper.xml │ ├── AdvertiserInfoMapper.xml │ ├── CartInfoMapper.xml │ ├── CommentInfoMapper.xml │ ├── GoodsInfoMapper.xml │ ├── LinkInfoMapper.xml │ ├── MessageInfoMapper.xml │ ├── NxSystemFileInfoMapper.xml │ ├── OrderGoodsRelMapper.xml │ ├── OrderInfoMapper.xml │ ├── TypeInfoMapper.xml │ └── UserInfoMapper.xml │ └── static │ ├── end │ ├── css │ │ ├── bootstrap-theme.min.css │ │ ├── bootstrap.css │ │ ├── custom-styles.css │ │ ├── element │ │ │ ├── fonts │ │ │ │ ├── element-icons.ttf │ │ │ │ └── element-icons.woff │ │ │ └── index.css │ │ ├── font-awesome.css │ │ └── quill.snow.css │ ├── font-awesome │ │ └── fonts │ │ │ ├── fontawesome-webfontba72.eot │ │ │ ├── fontawesome-webfontba72.svg │ │ │ ├── fontawesome-webfontba72.ttf │ │ │ ├── fontawesome-webfontba72.woff │ │ │ └── fontawesome-webfontd41d.eot │ ├── fonts │ │ ├── glyphicons-halflings-regular.eot │ │ ├── glyphicons-halflings-regular.svg │ │ ├── glyphicons-halflings-regular.ttf │ │ ├── glyphicons-halflings-regular.woff │ │ └── glyphicons-halflings-regulard41d.eot │ ├── img │ │ ├── bg-img.jpg │ │ └── head.jpg │ ├── js │ │ ├── bootstrap.min.js │ │ ├── custom-scripts.js │ │ ├── echarts.min.js │ │ ├── element │ │ │ └── index.js │ │ ├── jquery-1.10.2.js │ │ ├── jquery.metisMenu.js │ │ ├── my.js │ │ ├── quill.js │ │ └── vue2.6.11 │ │ │ ├── axios.js │ │ │ └── vue.min.js │ └── page │ │ ├── accountAdminInfo.html │ │ ├── accountUserInfo.html │ │ ├── adminInfo.html │ │ ├── advertiserInfo.html │ │ ├── cartInfo.html │ │ ├── commentInfo.html │ │ ├── findMyPassword.html │ │ ├── goodsInfo.html │ │ ├── index.html │ │ ├── linkInfo.html │ │ ├── login.html │ │ ├── messageInfo.html │ │ ├── orderInfo.html │ │ ├── register.html │ │ ├── register2.html │ │ ├── typeInfo.html │ │ ├── updatePassword.html │ │ └── userInfo.html │ ├── file │ ├── 011641977405077.jpg │ ├── 111641985683709.jpg │ ├── 11641026958290.jpg │ ├── 21641986757844.jpg │ ├── 51641984831762.jpg │ ├── file-info │ ├── 十二生肖1604736315894.jpg │ ├── 叶问4(1)1604732022840.jpg │ ├── 叶问4(1)1604732581709.jpg │ ├── 急先锋1604736612839.jpg │ ├── 战狼21604735890421.jpg │ ├── 杀破狼1604731993972.jpg │ ├── 破局1604736792241.jpg │ ├── 第一次1604732534032.jpg │ └── 美人鱼1604739990102.jpg │ └── front │ ├── accountAdminInfo.html │ ├── accountUserInfo.html │ ├── active-account.html │ ├── advertiserInfo.html │ ├── cartInfo.html │ ├── cartInfoDetail.html │ ├── commentInfo.html │ ├── commentInfoDetail.html │ ├── common │ └── userheader.js │ ├── css │ ├── bootstrap.min.css │ ├── element │ │ ├── fonts │ │ │ ├── element-icons.ttf │ │ │ └── element-icons.woff │ │ └── index.css │ ├── font-awesome.css │ ├── index.css │ ├── my.css │ ├── notice.css │ └── swiper-5.4.5 │ │ └── swiper.min.css │ ├── fonts │ ├── FontAwesome.otf │ ├── fontawesome-webfont.eot │ ├── fontawesome-webfont.svg │ ├── fontawesome-webfont.ttf │ ├── fontawesome-webfont.woff │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.svg │ ├── glyphicons-halflings-regular.ttf │ ├── glyphicons-halflings-regular.woff │ └── glyphicons-halflings-regular.woff2 │ ├── goodsInfo.html │ ├── img │ ├── carousel │ │ ├── 1.jpg │ │ ├── 1.png │ │ ├── 2.jpg │ │ ├── 2.png │ │ ├── 3.jpg │ │ ├── 3.png │ │ ├── 4.jpg │ │ ├── 4.png │ │ ├── 5.jpg │ │ ├── 6.jpg │ │ └── 7.jpg │ ├── file.jpg │ ├── goods │ │ └── default.png │ ├── logo.png │ ├── logo1.png │ └── mali.png │ ├── index.html │ ├── js │ ├── bootstrap.min.js │ ├── element │ │ └── index.js │ ├── jquery-1.10.2.js │ ├── my.js │ ├── swiper-5.4.5 │ │ └── swiper.min.js │ └── vue2.6.11 │ │ ├── axios.js │ │ └── vue.min.js │ ├── linkInfo.html │ ├── linkInfoDetail.html │ ├── messageInfo.html │ ├── messageInfoDetail.html │ ├── orderInfo.html │ ├── orderInfoDetail.html │ └── updatePassword.html └── target └── classes ├── application.yml ├── com └── example │ ├── Application.class │ ├── ClassUtils$Column.class │ ├── ClassUtils$Constant.class │ ├── ClassUtils$SerializableFunction.class │ ├── ClassUtils$Table.class │ ├── ClassUtils.class │ ├── common │ ├── Result.class │ ├── ResultCode.class │ └── config │ │ ├── DateConfig$1.class │ │ ├── DateConfig$2.class │ │ ├── DateConfig$3.class │ │ ├── DateConfig$4.class │ │ ├── DateConfig$5.class │ │ ├── DateConfig$6.class │ │ ├── DateConfig.class │ │ ├── MyInterceptor.class │ │ ├── MyInterceptorConfig.class │ │ └── WebMvcConfig.class │ ├── controller │ ├── AccountController.class │ ├── AdminInfoController.class │ ├── AdvertiserInfoController.class │ ├── CartInfoController.class │ ├── CommentInfoController.class │ ├── EchartsController.class │ ├── GoodsInfoController.class │ ├── LinkInfoController.class │ ├── MenuController.class │ ├── MessageInfoController.class │ ├── NxSystemFileController.class │ ├── OrderInfoController.class │ ├── SeatInfoController.class │ ├── TypeInfoController.class │ └── UserInfoController.class │ ├── dao │ ├── AdminInfoDao.class │ ├── AdvertiserInfoDao.class │ ├── CartInfoDao.class │ ├── CommentInfoDao.class │ ├── GoodsInfoDao.class │ ├── LinkInfoDao.class │ ├── MessageInfoDao.class │ ├── NxSystemFileInfoDao.class │ ├── OrderGoodsRelDao.class │ ├── OrderInfoDao.class │ ├── SeatInfoDao.class │ ├── TypeInfoDao.class │ └── UserInfoDao.class │ ├── entity │ ├── Account.class │ ├── AdminInfo.class │ ├── AdvertiserInfo.class │ ├── AuthorityInfo$Model.class │ ├── AuthorityInfo.class │ ├── CartInfo.class │ ├── CommentInfo.class │ ├── GoodsInfo.class │ ├── LinkInfo.class │ ├── MessageInfo.class │ ├── NxSystemFileInfo.class │ ├── OrderGoodsRel.class │ ├── OrderInfo.class │ ├── SeatInfo.class │ ├── TypeInfo.class │ └── UserInfo.class │ ├── exception │ ├── CustomException.class │ └── GlobalExceptionHandler.class │ ├── service │ ├── AdminInfoService.class │ ├── AdvertiserInfoService.class │ ├── CartInfoService.class │ ├── CommentInfoService.class │ ├── GoodsInfoService.class │ ├── LinkInfoService.class │ ├── MailService.class │ ├── MessageInfoService.class │ ├── NxSystemFileInfoService.class │ ├── OrderInfoService.class │ ├── SeatInfoService.class │ ├── TypeInfoService.class │ └── UserInfoService.class │ └── vo │ ├── AdminInfoVo.class │ ├── AdvertiserInfoVo.class │ ├── EchartsData$Data.class │ ├── EchartsData$Series.class │ ├── EchartsData.class │ ├── LinkInfoVo.class │ ├── MessageInfoVo.class │ └── UserInfoVo.class ├── mapper ├── AdminInfoMapper.xml ├── AdvertiserInfoMapper.xml ├── CartInfoMapper.xml ├── CommentInfoMapper.xml ├── GoodsInfoMapper.xml ├── LinkInfoMapper.xml ├── MessageInfoMapper.xml ├── NxSystemFileInfoMapper.xml ├── OrderGoodsRelMapper.xml ├── OrderInfoMapper.xml ├── TypeInfoMapper.xml └── UserInfoMapper.xml └── static ├── end ├── css │ ├── bootstrap-theme.min.css │ ├── bootstrap.css │ ├── custom-styles.css │ ├── element │ │ ├── fonts │ │ │ ├── element-icons.ttf │ │ │ └── element-icons.woff │ │ └── index.css │ ├── font-awesome.css │ └── quill.snow.css ├── font-awesome │ └── fonts │ │ ├── fontawesome-webfontba72.eot │ │ ├── fontawesome-webfontba72.svg │ │ ├── fontawesome-webfontba72.ttf │ │ ├── fontawesome-webfontba72.woff │ │ └── fontawesome-webfontd41d.eot ├── fonts │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.svg │ ├── glyphicons-halflings-regular.ttf │ ├── glyphicons-halflings-regular.woff │ └── glyphicons-halflings-regulard41d.eot ├── img │ ├── bg-img.jpg │ └── head.jpg ├── js │ ├── bootstrap.min.js │ ├── custom-scripts.js │ ├── echarts.min.js │ ├── element │ │ └── index.js │ ├── jquery-1.10.2.js │ ├── jquery.metisMenu.js │ ├── my.js │ ├── quill.js │ └── vue2.6.11 │ │ ├── axios.js │ │ └── vue.min.js └── page │ ├── accountAdminInfo.html │ ├── accountUserInfo.html │ ├── adminInfo.html │ ├── advertiserInfo.html │ ├── cartInfo.html │ ├── commentInfo.html │ ├── findMyPassword.html │ ├── goodsInfo.html │ ├── index.html │ ├── linkInfo.html │ ├── login.html │ ├── messageInfo.html │ ├── orderInfo.html │ ├── register.html │ ├── register2.html │ ├── typeInfo.html │ ├── updatePassword.html │ └── userInfo.html ├── file ├── 011641977405077.jpg ├── 111641985683709.jpg ├── 11641026958290.jpg ├── 21641986757844.jpg ├── 51641984831762.jpg ├── file-info ├── 十二生肖1604736315894.jpg ├── 叶问4(1)1604732022840.jpg ├── 叶问4(1)1604732581709.jpg ├── 急先锋1604736612839.jpg ├── 战狼21604735890421.jpg ├── 杀破狼1604731993972.jpg ├── 破局1604736792241.jpg ├── 第一次1604732534032.jpg └── 美人鱼1604739990102.jpg └── front ├── accountAdminInfo.html ├── accountUserInfo.html ├── active-account.html ├── advertiserInfo.html ├── cartInfo.html ├── cartInfoDetail.html ├── commentInfo.html ├── commentInfoDetail.html ├── common └── userheader.js ├── css ├── bootstrap.min.css ├── element │ ├── fonts │ │ ├── element-icons.ttf │ │ └── element-icons.woff │ └── index.css ├── font-awesome.css ├── index.css ├── my.css ├── notice.css └── swiper-5.4.5 │ └── swiper.min.css ├── fonts ├── FontAwesome.otf ├── fontawesome-webfont.eot ├── fontawesome-webfont.svg ├── fontawesome-webfont.ttf ├── fontawesome-webfont.woff ├── glyphicons-halflings-regular.eot ├── glyphicons-halflings-regular.svg ├── glyphicons-halflings-regular.ttf ├── glyphicons-halflings-regular.woff └── glyphicons-halflings-regular.woff2 ├── goodsInfo.html ├── img ├── carousel │ ├── 1.jpg │ ├── 1.png │ ├── 2.jpg │ ├── 2.png │ ├── 3.jpg │ ├── 3.png │ ├── 4.jpg │ ├── 4.png │ ├── 5.jpg │ ├── 6.jpg │ └── 7.jpg ├── file.jpg ├── goods │ └── default.png ├── logo.png ├── logo1.png └── mali.png ├── index.html ├── js ├── bootstrap.min.js ├── element │ └── index.js ├── jquery-1.10.2.js ├── my.js ├── swiper-5.4.5 │ └── swiper.min.js └── vue2.6.11 │ ├── axios.js │ └── vue.min.js ├── linkInfo.html ├── linkInfoDetail.html ├── messageInfo.html ├── messageInfoDetail.html ├── orderInfo.html ├── orderInfoDetail.html └── updatePassword.html /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/.DS_Store -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.js linguist-language=java 2 | *.css linguist-language=java 3 | *.html linguist-language=java 4 | *.vue linguist-language=java -------------------------------------------------------------------------------- /.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | # Editor-based HTTP Client requests 5 | /httpRequests/ 6 | # Datasource local storage ignored files 7 | /dataSources/ 8 | /dataSources.local.xml 9 | # Zeppelin ignored files 10 | /ZeppelinRemoteNotebooks/ 11 | -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/jarRepositories.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 9 | 10 | 14 | 15 | 19 | 20 | 24 | 25 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 全目录 2 | 3 | [更多系统、论文,供君选择 ~~>](https://www.yuque.com/wisebit/blog) 4 | 5 | 6 | # 193.MovieTicketBookingAndPurchaseManagementSystem 7 | 8 |

群: 983063232(入群获取sql文件)

9 |

QQ: 206157502(加好友获取sql文件)

10 | 11 |

193.电影订票购票管理系统

12 | 13 | 14 | 15 |

16 | 17 | 18 | 19 | 20 |

21 | 22 | # 简介 23 | 24 | 25 | > 本代码来源于网络,仅供学习参考使用,请入群(983063232)后联系群主索要sql文件! 26 | > 27 | > 提供1.远程部署/2.修改代码/3.设计文档指导/4.框架代码讲解等服务 28 | > 29 | > 首页地址: http://localhost:8888/front/index.html 30 | > 31 | > 后端地址: http://localhost:8888/end/page/login.html 32 | > 33 | > 管理员: admin 123456 34 | > 35 | > 用户: user 123456 36 | > 37 | 38 | # 环境 39 | 40 | - IntelliJ IDEA 2009.3 41 | 42 | - Mysql 5.7.26 43 | 44 | - Tomcat 7.0.73 45 | 46 | - JDK 1.8 47 | 48 | 49 | 50 | 51 | ## 缩略图 52 | ![1](https://bitwise.oss-cn-heyuan.aliyuncs.com/2024/9/10/617b9528-b8be-4da5-99a5-62add4c46508.png) 53 | ![1](https://bitwise.oss-cn-heyuan.aliyuncs.com/2024/9/10/2576f2f1-d3b0-48cb-82ef-268c0688916b.png) 54 | ![1](https://bitwise.oss-cn-heyuan.aliyuncs.com/2024/9/10/cde7eede-73da-499a-acec-1c9611b0401d.png) 55 | ![1](https://bitwise.oss-cn-heyuan.aliyuncs.com/2024/9/10/0051b146-399c-4ebb-bd5b-9ee1dcea3698.png) 56 | ![1](https://bitwise.oss-cn-heyuan.aliyuncs.com/2024/9/10/ec302148-a30c-419d-b348-3fe752c6ee6a.png) 57 | ![1](https://bitwise.oss-cn-heyuan.aliyuncs.com/2024/9/10/8e85eedc-8929-406d-9e25-465922787e82.png) 58 | ![1](https://bitwise.oss-cn-heyuan.aliyuncs.com/2024/9/10/1458ab08-87dd-4700-840c-d4645079cea1.png) 59 | ![1](https://bitwise.oss-cn-heyuan.aliyuncs.com/2024/9/10/48393116-0cd7-4dc5-bfcb-00368ec5cfec.png) 60 | ![1](https://bitwise.oss-cn-heyuan.aliyuncs.com/2024/9/10/786142d1-370e-4cd6-8aeb-a0e35b097621.png) 61 | ![1](https://bitwise.oss-cn-heyuan.aliyuncs.com/2024/9/10/16424857-947e-4364-ad19-f987704f84bf.png) 62 | ![1](https://bitwise.oss-cn-heyuan.aliyuncs.com/2024/9/10/d48b0b59-b79d-451e-96b1-e578f7780196.png) 63 | 64 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /src/main/java/com/example/Application.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import tk.mybatis.spring.annotation.MapperScan; 6 | import org.slf4j.Logger; 7 | import org.slf4j.LoggerFactory; 8 | 9 | 10 | @SpringBootApplication 11 | @MapperScan("com.example.dao") 12 | public class Application { 13 | private static final Logger logger = LoggerFactory.getLogger(Application.class); 14 | public static void main(String[] args) { 15 | SpringApplication.run(Application.class, args); 16 | logger.warn("项目启动后请访问:http://localhost:8888/front/index.html"); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/main/java/com/example/common/Result.java: -------------------------------------------------------------------------------- 1 | package com.example.common; 2 | 3 | public class Result { 4 | private Integer code; 5 | private String msg; 6 | private T data; 7 | 8 | private Result(T data) { 9 | this.data = data; 10 | } 11 | 12 | public Result() { 13 | } 14 | 15 | public static Result success() { 16 | Result tResult = new Result<>(); 17 | tResult.setCode(ResultCode.SUCCESS.code); 18 | tResult.setMsg(ResultCode.SUCCESS.msg); 19 | return tResult; 20 | } 21 | 22 | public static Result success(T data) { 23 | Result tResult = new Result<>(data); 24 | tResult.setCode(ResultCode.SUCCESS.code); 25 | tResult.setMsg(ResultCode.SUCCESS.msg); 26 | return tResult; 27 | } 28 | 29 | public static Result error() { 30 | Result tResult = new Result<>(); 31 | tResult.setCode(ResultCode.ERROR.code); 32 | tResult.setMsg(ResultCode.ERROR.msg); 33 | return tResult; 34 | } 35 | 36 | public static Result error(Integer code, String msg) { 37 | Result tResult = new Result<>(); 38 | tResult.setCode(code); 39 | tResult.setMsg(msg); 40 | return tResult; 41 | } 42 | 43 | public Integer getCode() { 44 | return code; 45 | } 46 | 47 | public void setCode(Integer code) { 48 | this.code = code; 49 | } 50 | 51 | public String getMsg() { 52 | return msg; 53 | } 54 | 55 | public void setMsg(String msg) { 56 | this.msg = msg; 57 | } 58 | 59 | public T getData() { 60 | return data; 61 | } 62 | 63 | public void setData(T data) { 64 | this.data = data; 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /src/main/java/com/example/common/ResultCode.java: -------------------------------------------------------------------------------- 1 | package com.example.common; 2 | 3 | /** 4 | * 返回的状态码及状态信息 5 | */ 6 | public enum ResultCode { 7 | SUCCESS(0, "成功"), 8 | ERROR(-1, "系统异常"), 9 | PARAM_ERROR(1001, "参数异常"), 10 | USER_EXIST_ERROR(2001, "用户已存在"), 11 | USER_EXIST_EMAIL_ERROR(2008,"邮箱已被注册"), 12 | USER_ACCOUNT_ERROR(2002, "账号或密码错误"), 13 | USER_NOT_EXIST_ERROR(2003, "未找到用户"), 14 | USER_IS_BAN_LOGINERROR(2009,"用户被禁用,请与管理员联系"), 15 | COMFIRM_CODE_ERROR(2007, "连接已失效,请重新注册!"), 16 | ORDER_PAY_ERROR(3001, "库存不足,下单失败"), 17 | PARAM_LOST_ERROR(2004, "参数缺失"), 18 | PARAM_PASSWORD_ERROR(2005, "原密码输入错误"), 19 | EXIST_NOT_VALID_ERROR(2006, "账号已注册,但还未激活,请前往邮箱查看!"), 20 | DELETE_MESSAGE_ERROR(2009,"删除评论失败"), 21 | ACCOUNT_INFO_ERROR(2010,"输入的信息不正确,请重新输入或前往与管理员联系!"), 22 | // GLOABEL_ERROE(2020,"") 23 | ; 24 | 25 | public Integer code; 26 | public String msg; 27 | 28 | ResultCode(Integer code, String msg) { 29 | this.code = code; 30 | this.msg = msg; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/com/example/common/config/MyInterceptor.java: -------------------------------------------------------------------------------- 1 | package com.example.common.config; 2 | 3 | import com.example.entity.Account; 4 | import org.springframework.web.servlet.HandlerInterceptor; 5 | import org.springframework.web.servlet.ModelAndView; 6 | 7 | import javax.servlet.http.HttpServletRequest; 8 | import javax.servlet.http.HttpServletResponse; 9 | 10 | /** 11 | * 拦截器 12 | */ 13 | public class MyInterceptor implements HandlerInterceptor { 14 | 15 | @Override 16 | public boolean preHandle(HttpServletRequest request, HttpServletResponse 17 | response, Object handler) throws Exception { 18 | Account user = (Account) request.getSession().getAttribute("user"); 19 | if (user == null) { 20 | // 重定向到登录页 21 | response.sendRedirect("/end/page/login.html"); 22 | return false; 23 | } 24 | return true; 25 | } 26 | @Override 27 | public void postHandle(HttpServletRequest request, HttpServletResponse 28 | response, Object handler, ModelAndView modelAndView) throws Exception { 29 | } 30 | @Override 31 | public void afterCompletion(HttpServletRequest request, HttpServletResponse 32 | response, Object handler, Exception ex) throws Exception { 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/main/java/com/example/common/config/MyInterceptorConfig.java: -------------------------------------------------------------------------------- 1 | package com.example.common.config; 2 | 3 | import org.springframework.context.annotation.Configuration; 4 | import org.springframework.web.servlet.config.annotation.InterceptorRegistry; 5 | import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; 6 | 7 | @Configuration 8 | public class MyInterceptorConfig implements WebMvcConfigurer { 9 | @Override 10 | public void addInterceptors(InterceptorRegistry registry) { 11 | // 实现WebMvcConfigurer不会导致静态资源被拦截 12 | registry.addInterceptor(new MyInterceptor()) 13 | .addPathPatterns("/end/page/**") 14 | .excludePathPatterns("/end/page/login.html", "/end/page/register2.html","active-account.html","/end/page/findMyPassword.html"); 15 | 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/com/example/common/config/WebMvcConfig.java: -------------------------------------------------------------------------------- 1 | package com.example.common.config; 2 | 3 | import org.springframework.context.annotation.Configuration; 4 | import org.springframework.web.servlet.config.annotation.CorsRegistry; 5 | import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; 6 | 7 | 8 | @Configuration 9 | public class WebMvcConfig implements WebMvcConfigurer { 10 | 11 | @Override 12 | public void addCorsMappings(CorsRegistry registry) { 13 | registry.addMapping("/**") 14 | .allowedHeaders("Content-Type","X-Requested-With","accept,Origin","Access-Control-Request-Method","Access-Control-Request-Headers","token") 15 | .allowedMethods("*") 16 | .allowedOrigins("*") 17 | .allowCredentials(true); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/com/example/controller/CartInfoController.java: -------------------------------------------------------------------------------- 1 | package com.example.controller; 2 | 3 | import com.example.common.Result; 4 | import com.example.common.ResultCode; 5 | import com.example.entity.CartInfo; 6 | import com.example.entity.GoodsInfo; 7 | import com.example.exception.CustomException; 8 | import com.example.service.CartInfoService; 9 | import com.github.pagehelper.PageHelper; 10 | import com.github.pagehelper.PageInfo; 11 | import org.apache.ibatis.annotations.Param; 12 | import org.springframework.web.bind.annotation.*; 13 | 14 | import javax.annotation.Resource; 15 | import javax.servlet.http.HttpServletRequest; 16 | import java.util.List; 17 | 18 | /** 19 | * 收藏电影/购物车 业务逻辑类 20 | */ 21 | @RestController 22 | @RequestMapping(value = "/cartInfo") 23 | public class CartInfoController { 24 | @Resource 25 | private CartInfoService cartInfoService; 26 | 27 | /** 28 | * 查询所有购物车(不分页) 29 | * 30 | * @return 购物车list 31 | */ 32 | @GetMapping 33 | public Result> findAll(@RequestParam("userId") Long userId, 34 | @RequestParam("level") Integer level) { 35 | return Result.success(cartInfoService.findAll(userId, level)); 36 | } 37 | 38 | /** 39 | * 查询所有购物车(分页) 40 | * 41 | * @return 购物车list 42 | */ 43 | @GetMapping("/page") 44 | public Result> findAll( 45 | @RequestParam(required = false, defaultValue = "1") Integer pageNum, 46 | @RequestParam(required = false, defaultValue = "10") Integer pageSize, 47 | HttpServletRequest request) { 48 | return Result.success(cartInfoService.findPageDetails(pageNum, pageSize, request)); 49 | } 50 | 51 | /** 52 | * 根据id获取购物车 53 | * 54 | * @param id 购物车id 55 | * @return 购物车信息 56 | */ 57 | @GetMapping("/{id}") 58 | public Result findById(@PathVariable Long id) { 59 | return Result.success(cartInfoService.findById(id)); 60 | } 61 | 62 | /** 63 | * 添加购物车 64 | * 65 | * @param detailInfo 购物车信息 66 | * @return 购物车信息 67 | */ 68 | @PostMapping 69 | public Result add(@RequestBody CartInfo detailInfo) { 70 | return Result.success(cartInfoService.add(detailInfo)); 71 | } 72 | 73 | /** 74 | * 更新购物车详情 75 | * 76 | * @param detailInfo 商品购物车信息 77 | * @return 商品购物车信息 78 | */ 79 | @PutMapping 80 | public Result update(@RequestBody CartInfo detailInfo) { 81 | if (detailInfo.getId() == null) { 82 | throw new CustomException(ResultCode.PARAM_ERROR); 83 | } 84 | return Result.success(cartInfoService.update(detailInfo)); 85 | } 86 | 87 | /** 88 | * 删除购物车 89 | * 90 | * @param id 商品id 91 | * @return result 92 | */ 93 | @DeleteMapping("/{id}") 94 | public Result delete(@PathVariable Long id) { 95 | cartInfoService.delete(id); 96 | return Result.success(); 97 | } 98 | 99 | /** 100 | * 取消收藏 101 | * 102 | * @param userId 用户 103 | * @param goodsId 商品id 104 | * @return result 105 | */ 106 | @DeleteMapping("/goods/{userId}/{level}/{goodsId}") 107 | public Result deleteGoods(@PathVariable Long userId, @PathVariable Integer level, @PathVariable Long goodsId) { 108 | // System.out.println(userId+level+goodsId); 109 | cartInfoService.deleteGoods(userId, level, goodsId); 110 | return Result.success(); 111 | } 112 | 113 | /** 114 | * 删除购物车 115 | * 116 | * @param userId 用户id 117 | * @return result 118 | */ 119 | @DeleteMapping("/empty/{userId}/{level}") 120 | public Result empty(@PathVariable Long userId, @PathVariable Integer level) { 121 | cartInfoService.empty(userId, level); 122 | return Result.success(); 123 | } 124 | 125 | //电影页面展示时 126 | @GetMapping("/findIsLike") 127 | public Result findIsLike(@RequestParam Long userId,@RequestParam Long goodsId,@RequestParam Integer level){ 128 | // System.out.println("userId:"+userId); 129 | // System.out.println("goodsId"+goodsId); 130 | CartInfo cartInfo = cartInfoService.findIsLike(userId, goodsId,level); 131 | return Result.success(cartInfo); 132 | } 133 | } 134 | -------------------------------------------------------------------------------- /src/main/java/com/example/controller/CommentInfoController.java: -------------------------------------------------------------------------------- 1 | package com.example.controller; 2 | 3 | import com.example.common.Result; 4 | import com.example.entity.CommentInfo; 5 | import com.example.entity.Account; 6 | import com.example.service.CommentInfoService; 7 | import com.github.pagehelper.PageHelper; 8 | import com.github.pagehelper.PageInfo; 9 | import org.springframework.web.bind.annotation.*; 10 | 11 | import javax.annotation.Resource; 12 | import javax.servlet.http.HttpServletRequest; 13 | import java.util.List; 14 | 15 | @RestController 16 | @RequestMapping(value = "/commentInfo") 17 | public class CommentInfoController { 18 | @Resource 19 | private CommentInfoService commentInfoService; 20 | 21 | /* 22 | 添加评论 23 | */ 24 | @PostMapping 25 | public Result add(@RequestBody CommentInfo commentInfo, HttpServletRequest request) { 26 | //获取用户 27 | Account user = (Account) request.getSession().getAttribute("user"); 28 | commentInfo.setUserId(user.getId()); 29 | commentInfoService.add(commentInfo); 30 | return Result.success(commentInfo); 31 | } 32 | 33 | //根据评论id删除某评论 34 | @DeleteMapping("/{id}") 35 | public Result delete(@PathVariable Long id) { 36 | commentInfoService.delete(id); 37 | return Result.success(); 38 | } 39 | 40 | //更改评论内容 41 | @PutMapping 42 | public Result update(@RequestBody CommentInfo commentInfo) { 43 | commentInfoService.update(commentInfo); 44 | return Result.success(); 45 | } 46 | 47 | //查看评论内容 48 | @GetMapping("/{id}") 49 | public Result detail(@PathVariable Long id) { 50 | CommentInfo commentInfo = commentInfoService.findById(id); 51 | return Result.success(commentInfo); 52 | } 53 | 54 | //查询所有评论 55 | @GetMapping 56 | public Result> all() { 57 | return Result.success(commentInfoService.findAll()); 58 | } 59 | 60 | //查询某商品的所有评论 61 | @GetMapping("/all/{goodsId}") 62 | public Result> all(@PathVariable("goodsId") Long goodsId) { 63 | return Result.success(commentInfoService.findAll(goodsId)); 64 | } 65 | 66 | //系统后台管理员查询某个用户名下的所有评论内容 67 | @GetMapping("/page/{name}") 68 | public Result> page(@RequestParam(defaultValue = "1") Integer pageNum, 69 | @RequestParam(defaultValue = "10") Integer pageSize, 70 | @PathVariable String name, 71 | HttpServletRequest request) { 72 | return Result.success(commentInfoService.findPage(pageNum, pageSize, name, request)); 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /src/main/java/com/example/controller/LinkInfoController.java: -------------------------------------------------------------------------------- 1 | package com.example.controller; 2 | 3 | import cn.hutool.core.collection.CollUtil; 4 | import cn.hutool.core.collection.CollectionUtil; 5 | import cn.hutool.core.io.IoUtil; 6 | import cn.hutool.core.util.ObjectUtil; 7 | import cn.hutool.core.util.StrUtil; 8 | import cn.hutool.poi.excel.ExcelUtil; 9 | import cn.hutool.poi.excel.ExcelWriter; 10 | import com.example.common.Result; 11 | import com.example.common.ResultCode; 12 | import com.example.entity.LinkInfo; 13 | import com.example.service.*; 14 | import com.example.vo.LinkInfoVo; 15 | 16 | import com.github.pagehelper.PageHelper; 17 | import com.github.pagehelper.PageInfo; 18 | import org.springframework.web.bind.annotation.*; 19 | import org.springframework.web.multipart.MultipartFile; 20 | 21 | import javax.annotation.Resource; 22 | import javax.servlet.ServletOutputStream; 23 | import javax.servlet.http.HttpServletRequest; 24 | import javax.servlet.http.HttpServletResponse; 25 | import java.io.IOException; 26 | import java.util.LinkedHashMap; 27 | import java.util.List; 28 | import java.util.Map; 29 | import java.util.stream.Collectors; 30 | 31 | @RestController 32 | @RequestMapping(value = "/linkInfo") 33 | public class LinkInfoController { 34 | @Resource 35 | private LinkInfoService linkInfoService; 36 | 37 | @PostMapping 38 | public Result add(@RequestBody LinkInfoVo linkInfo) { 39 | linkInfoService.add(linkInfo); 40 | return Result.success(linkInfo); 41 | } 42 | 43 | @DeleteMapping("/{id}") 44 | public Result delete(@PathVariable Long id) { 45 | linkInfoService.delete(id); 46 | return Result.success(); 47 | } 48 | 49 | @PutMapping 50 | public Result update(@RequestBody LinkInfoVo linkInfo) { 51 | linkInfoService.update(linkInfo); 52 | return Result.success(); 53 | } 54 | 55 | @GetMapping("/{id}") 56 | public Result detail(@PathVariable Long id) { 57 | LinkInfo linkInfo = linkInfoService.findById(id); 58 | return Result.success(linkInfo); 59 | } 60 | 61 | @GetMapping 62 | public Result> all() { 63 | return Result.success(linkInfoService.findAll()); 64 | } 65 | 66 | @GetMapping("/page/{name}") 67 | public Result> page(@PathVariable String name, 68 | @RequestParam(defaultValue = "1") Integer pageNum, 69 | @RequestParam(defaultValue = "5") Integer pageSize, 70 | HttpServletRequest request) { 71 | return Result.success(linkInfoService.findPage(name, pageNum, pageSize, request)); 72 | } 73 | 74 | /** 75 | * 批量通过excel添加信息 76 | * @param file excel文件 77 | * @throws IOException 78 | */ 79 | @PostMapping("/upload") 80 | public Result upload(MultipartFile file) throws IOException { 81 | 82 | List infoList = ExcelUtil.getReader(file.getInputStream()).readAll(LinkInfo.class); 83 | if (!CollectionUtil.isEmpty(infoList)) { 84 | // 处理一下空数据 85 | List resultList = infoList.stream().filter(x -> ObjectUtil.isNotEmpty(x.getName())).collect(Collectors.toList()); 86 | for (LinkInfo info : resultList) { 87 | linkInfoService.add(info); 88 | } 89 | } 90 | return Result.success(); 91 | } 92 | 93 | @GetMapping("/getExcelModel") 94 | public void getExcelModel(HttpServletResponse response) throws IOException { 95 | // 1. 生成excel 96 | Map row = new LinkedHashMap<>(); 97 | row.put("name", "百度"); 98 | row.put("url", "www.baidu.com"); 99 | 100 | List> list = CollUtil.newArrayList(row); 101 | 102 | // 2. 写excel 103 | ExcelWriter writer = ExcelUtil.getWriter(true); 104 | writer.write(list, true); 105 | 106 | response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8"); 107 | response.setHeader("Content-Disposition","attachment;filename=linkInfoModel.xlsx"); 108 | 109 | ServletOutputStream out = response.getOutputStream(); 110 | writer.flush(out, true); 111 | writer.close(); 112 | IoUtil.close(System.out); 113 | } 114 | } 115 | -------------------------------------------------------------------------------- /src/main/java/com/example/controller/MessageInfoController.java: -------------------------------------------------------------------------------- 1 | package com.example.controller; 2 | 3 | import com.example.common.Result; 4 | import com.example.common.ResultCode; 5 | import com.example.entity.MessageInfo; 6 | import com.example.service.MessageInfoService; 7 | import com.example.vo.MessageInfoVo; 8 | import com.github.pagehelper.PageInfo; 9 | import org.springframework.web.bind.annotation.*; 10 | 11 | import javax.annotation.Resource; 12 | import javax.servlet.http.HttpServletRequest; 13 | import java.util.List; 14 | 15 | /** 16 | * 交流区 17 | */ 18 | @RestController 19 | @RequestMapping(value = "/messageInfo") 20 | public class MessageInfoController { 21 | @Resource 22 | private MessageInfoService messageInfoService; 23 | 24 | //添加交流内容 25 | @PostMapping 26 | public Result add(@RequestBody MessageInfoVo messageInfo) { 27 | // System.out.println("信息:"+messageInfo); 28 | messageInfoService.add(messageInfo); 29 | return Result.success(messageInfo); 30 | } 31 | 32 | /** 33 | * 删除子评论 或者 是后台删除某一评论 34 | * @param id 35 | * @return 36 | */ 37 | //根据id删除交流内容 38 | @DeleteMapping("/{id}") 39 | public Result delete(@PathVariable Long id) { 40 | messageInfoService.delete(id); 41 | return Result.success(); 42 | } 43 | 44 | /** 45 | * 用户自己发表的第一级评论,并且该评论下的所有评论 46 | */ 47 | @GetMapping("/deleteParentMessage/{id}") 48 | public Result deleteMyMessage(@PathVariable Long id){ 49 | //根据id查询内容 50 | // MessageInfo messageInfo = messageInfoService.findById(id); 51 | // //查询parentId是否为0 52 | // Long parentId = messageInfo.getParentId(); 53 | //根据parentId查询所有子评论 54 | int count = messageInfoService.findByParentId(id); 55 | if (count>0){ 56 | return Result.success("删除成功"); 57 | } 58 | return Result.error(ResultCode.DELETE_MESSAGE_ERROR.code,ResultCode.DELETE_MESSAGE_ERROR.msg); 59 | } 60 | 61 | //更新交流内容 62 | @PutMapping 63 | public Result update(@RequestBody MessageInfoVo messageInfo) { 64 | messageInfoService.update(messageInfo); 65 | return Result.success(); 66 | } 67 | 68 | 69 | @GetMapping("/{id}") 70 | public Result detail(@PathVariable Long id) { 71 | MessageInfo messageInfo = messageInfoService.findById(id); 72 | return Result.success(messageInfo); 73 | } 74 | 75 | //获取所有交流内容 76 | @GetMapping 77 | public Result> all() { 78 | return Result.success(messageInfoService.findAll()); 79 | } 80 | 81 | //分页展示某用户下的交流内容 82 | @GetMapping("/page/{name}") 83 | public Result> page(@PathVariable String name, 84 | @RequestParam(defaultValue = "1") Integer pageNum, 85 | @RequestParam(defaultValue = "5") Integer pageSize, 86 | HttpServletRequest request) { 87 | return Result.success(messageInfoService.findPage(name, pageNum, pageSize, request)); 88 | } 89 | 90 | 91 | 92 | } 93 | -------------------------------------------------------------------------------- /src/main/java/com/example/controller/SeatInfoController.java: -------------------------------------------------------------------------------- 1 | package com.example.controller; 2 | 3 | import com.example.common.Result; 4 | import com.example.entity.SeatInfo; 5 | import com.example.service.SeatInfoService; 6 | import org.springframework.web.bind.annotation.*; 7 | 8 | import javax.annotation.Resource; 9 | 10 | /** 11 | * 座位 12 | */ 13 | @RestController 14 | @RequestMapping("/seatInfo") 15 | public class SeatInfoController { 16 | 17 | @Resource 18 | private SeatInfoService seatInfoService; 19 | 20 | //选中座位,购票成功添加座位到数据库 21 | @PostMapping() 22 | public Result add(@RequestBody SeatInfo seatInfo) { 23 | seatInfoService.save(seatInfo); 24 | return Result.success(); 25 | } 26 | 27 | //获取座位的详细信息,空闲和已出售的作为 28 | @GetMapping("/detail") 29 | public Result findByUserId(@RequestParam Long goodsId) { 30 | return Result.success(seatInfoService.findDetail(goodsId)); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/com/example/controller/TypeInfoController.java: -------------------------------------------------------------------------------- 1 | package com.example.controller; 2 | 3 | import cn.hutool.core.collection.CollUtil; 4 | import cn.hutool.core.collection.CollectionUtil; 5 | import cn.hutool.core.io.IoUtil; 6 | import cn.hutool.core.util.ObjectUtil; 7 | import cn.hutool.poi.excel.ExcelUtil; 8 | import cn.hutool.poi.excel.ExcelWriter; 9 | import com.example.common.Result; 10 | import com.example.entity.TypeInfo; 11 | import com.example.service.TypeInfoService; 12 | import com.github.pagehelper.PageInfo; 13 | import org.springframework.web.bind.annotation.*; 14 | import org.springframework.web.multipart.MultipartFile; 15 | 16 | import javax.annotation.Resource; 17 | import javax.servlet.ServletOutputStream; 18 | import javax.servlet.http.HttpServletResponse; 19 | import java.io.IOException; 20 | import java.util.LinkedHashMap; 21 | import java.util.List; 22 | import java.util.Map; 23 | import java.util.stream.Collectors; 24 | 25 | /** 26 | * 分类 27 | */ 28 | @RestController 29 | @RequestMapping(value = "/typeInfo") 30 | public class TypeInfoController { 31 | @Resource 32 | private TypeInfoService typeInfoService; 33 | 34 | //添加新类别 35 | @PostMapping 36 | public Result add(@RequestBody TypeInfo typeInfo) { 37 | typeInfoService.add(typeInfo); 38 | return Result.success(typeInfo); 39 | } 40 | 41 | //删除类别 42 | @DeleteMapping("/{id}") 43 | public Result delete(@PathVariable Long id) { 44 | typeInfoService.delete(id); 45 | return Result.success(); 46 | } 47 | 48 | //更新类别信息 49 | @PutMapping 50 | public Result update(@RequestBody TypeInfo typeInfo) { 51 | typeInfoService.update(typeInfo); 52 | return Result.success(); 53 | } 54 | 55 | //根据id查询类别信息详情 56 | @GetMapping("/{id}") 57 | public Result detail(@PathVariable Long id) { 58 | TypeInfo typeInfo = typeInfoService.findById(id); 59 | return Result.success(typeInfo); 60 | } 61 | 62 | //查询所有类别 63 | @GetMapping 64 | public Result> all() { 65 | return Result.success(typeInfoService.findAll()); 66 | } 67 | 68 | //根据类别名查询类别 69 | @GetMapping("/page/{name}") 70 | public Result> page(@RequestParam(defaultValue = "1") Integer pageNum, 71 | @RequestParam(defaultValue = "10") Integer pageSize, 72 | @PathVariable String name) { 73 | return Result.success(typeInfoService.findPage(pageNum, pageSize, name)); 74 | } 75 | 76 | /** 77 | * 批量通过excel添加信息 78 | * @param file excel文件 79 | * @throws IOException 80 | */ 81 | @PostMapping("/upload") 82 | public Result upload(MultipartFile file) throws IOException { 83 | 84 | List infoList = ExcelUtil.getReader(file.getInputStream()).readAll(TypeInfo.class); 85 | if (!CollectionUtil.isEmpty(infoList)) { 86 | // 处理一下空数据 87 | List resultList = infoList.stream().filter(x -> ObjectUtil.isNotEmpty(x.getName())).collect(Collectors.toList()); 88 | for (TypeInfo info : resultList) { 89 | typeInfoService.add(info); 90 | } 91 | } 92 | return Result.success(); 93 | } 94 | 95 | @GetMapping("/getExcelModel") 96 | public void getExcelModel(HttpServletResponse response) throws IOException { 97 | // 1. 生成excel 98 | Map row = new LinkedHashMap<>(); 99 | row.put("name", "女装"); 100 | row.put("description", "这是女装"); 101 | 102 | List> list = CollUtil.newArrayList(row); 103 | 104 | // 2. 写excel 105 | ExcelWriter writer = ExcelUtil.getWriter(true); 106 | writer.write(list, true); 107 | 108 | response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8"); 109 | response.setHeader("Content-Disposition","attachment;filename=typeInfoModel.xlsx"); 110 | 111 | ServletOutputStream out = response.getOutputStream(); 112 | writer.flush(out, true); 113 | writer.close(); 114 | IoUtil.close(System.out); 115 | } 116 | } 117 | -------------------------------------------------------------------------------- /src/main/java/com/example/dao/AdminInfoDao.java: -------------------------------------------------------------------------------- 1 | package com.example.dao; 2 | 3 | import com.example.entity.AdminInfo; 4 | import com.example.vo.AdminInfoVo; 5 | import org.apache.ibatis.annotations.Param; 6 | import org.springframework.stereotype.Repository; 7 | import tk.mybatis.mapper.common.BaseMapper; 8 | import tk.mybatis.mapper.common.Mapper; 9 | 10 | import java.util.List; 11 | 12 | @Repository 13 | public interface AdminInfoDao extends Mapper { 14 | //根据名查询管理员信息 15 | List findByName(@Param("name") String name); 16 | 17 | //检验该管理员是否存在 18 | int checkRepeat(@Param("column") String column, @Param("value") String value, @Param("id") Long id); 19 | 20 | //根据用户名查询讯管理员信息 21 | AdminInfoVo findByUsername(String username); 22 | 23 | //统计管理员和用户成员数量 24 | Integer count(); 25 | 26 | 27 | AdminInfoVo findByEmail(@Param("email") String email); 28 | 29 | //根据确认码查询挂力源信息 30 | AdminInfo findByConfirmCode(@Param("confirmCode") String confirmCode); 31 | 32 | int deleteOldAdmin(@Param("email") String email); 33 | 34 | //找回密码,先判断成员的信息是否正确 35 | AdminInfo findPassword(@Param("name")String name,@Param("email") String email,@Param("level") Integer level); 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/com/example/dao/AdvertiserInfoDao.java: -------------------------------------------------------------------------------- 1 | package com.example.dao; 2 | 3 | import com.example.entity.AdvertiserInfo; 4 | import com.example.vo.AdvertiserInfoVo; 5 | import org.apache.ibatis.annotations.Param; 6 | import org.springframework.stereotype.Repository; 7 | import tk.mybatis.mapper.common.Mapper; 8 | 9 | import java.util.List; 10 | 11 | @Repository 12 | public interface AdvertiserInfoDao extends Mapper { 13 | List findByName(@Param("name") String name); 14 | 15 | 16 | 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/com/example/dao/CartInfoDao.java: -------------------------------------------------------------------------------- 1 | package com.example.dao; 2 | 3 | import com.example.entity.CartInfo; 4 | import org.apache.ibatis.annotations.Delete; 5 | import org.apache.ibatis.annotations.Param; 6 | import tk.mybatis.mapper.common.Mapper; 7 | 8 | import java.util.List; 9 | 10 | public interface CartInfoDao extends Mapper { 11 | List findCartByUserId(@Param("userId") Long userId, @Param("level") Integer level); 12 | 13 | List findAll(); 14 | 15 | @Delete("delete from cart_info where userId = #{userId} and level = #{level}") 16 | int deleteByUserId(@Param("userId") Long userId, @Param("level") Integer level); 17 | 18 | @Delete("delete from cart_info where userId = #{userId} and level = #{level} and goodsId = #{goodsId}") 19 | int deleteGoods(@Param("userId") Long userId, 20 | @Param("level") Integer level, 21 | @Param("goodsId") Long goodsId); 22 | 23 | CartInfo findIsLike(@Param("userId") Long userId,@Param("goodsId") Long goodsId,@Param("level") Integer level); 24 | } 25 | -------------------------------------------------------------------------------- /src/main/java/com/example/dao/CommentInfoDao.java: -------------------------------------------------------------------------------- 1 | package com.example.dao; 2 | 3 | import com.example.entity.CommentInfo; 4 | import org.apache.ibatis.annotations.Param; 5 | import org.apache.ibatis.annotations.Select; 6 | import tk.mybatis.mapper.common.Mapper; 7 | 8 | import java.util.List; 9 | 10 | public interface CommentInfoDao extends Mapper { 11 | 12 | List findByContent(@Param("name") String name, @Param("level") Integer level); 13 | 14 | List findByGoodsIdAndUserId(@Param("goodsId") Long goodsId, 15 | @Param("userId") Long userId, 16 | @Param("level") Integer level); 17 | 18 | List findByGoodsId(@Param("goodsId") Long goodsId); 19 | 20 | @Select("select count(id) from comment_info") 21 | Integer count(); 22 | } -------------------------------------------------------------------------------- /src/main/java/com/example/dao/GoodsInfoDao.java: -------------------------------------------------------------------------------- 1 | package com.example.dao; 2 | 3 | import com.example.entity.GoodsInfo; 4 | import org.apache.ibatis.annotations.Param; 5 | import org.apache.ibatis.annotations.Select; 6 | import org.apache.ibatis.annotations.Param; 7 | import tk.mybatis.mapper.common.Mapper; 8 | 9 | import java.util.List; 10 | 11 | public interface GoodsInfoDao extends Mapper { 12 | @Select("select * from goods_info left join type_info on goods_info.typeId = type_info.id where goods_info.typeId = #{typeId} and goods_info.isShow=1 limit 8") 13 | List findByType(@Param("typeId") Integer typeId); 14 | 15 | @Select("select * from goods_info where recommend = 1 and isShow=1 order by id desc") 16 | List findRecommendGoods(); 17 | 18 | @Select("select * from goods_info where isShow=1 order by sales desc") 19 | List findHotSalesGoods(); 20 | 21 | List findByNameAndUserId(@Param("name") String name, 22 | @Param("userId") Long userId, 23 | @Param("level") Integer level); 24 | 25 | List getOrderGoods(@Param("userId") Long userId, @Param("level") Integer level); 26 | 27 | @Select("select * from goods_info g where isShow=1 and g.name like concat('%', #{text}, '%') limit 8") 28 | List findByText(String text); 29 | 30 | 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/com/example/dao/LinkInfoDao.java: -------------------------------------------------------------------------------- 1 | package com.example.dao; 2 | 3 | import com.example.entity.LinkInfo; 4 | import com.example.vo.LinkInfoVo; 5 | import org.apache.ibatis.annotations.Param; 6 | import org.springframework.stereotype.Repository; 7 | import tk.mybatis.mapper.common.Mapper; 8 | 9 | import java.util.List; 10 | 11 | @Repository 12 | public interface LinkInfoDao extends Mapper { 13 | List findByName(@Param("name") String name); 14 | 15 | 16 | 17 | Integer count(); 18 | } 19 | -------------------------------------------------------------------------------- /src/main/java/com/example/dao/MessageInfoDao.java: -------------------------------------------------------------------------------- 1 | package com.example.dao; 2 | 3 | import com.example.entity.MessageInfo; 4 | import com.example.vo.MessageInfoVo; 5 | import org.apache.ibatis.annotations.Param; 6 | import org.springframework.stereotype.Repository; 7 | import tk.mybatis.mapper.common.Mapper; 8 | 9 | import java.util.List; 10 | 11 | @Repository 12 | public interface MessageInfoDao extends Mapper { 13 | List findByName(@Param("name") String name); 14 | 15 | 16 | List findByParentId(Long parentId); 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/com/example/dao/NxSystemFileInfoDao.java: -------------------------------------------------------------------------------- 1 | package com.example.dao; 2 | 3 | import com.example.entity.NxSystemFileInfo; 4 | import org.apache.ibatis.annotations.Param; 5 | import org.springframework.stereotype.Repository; 6 | import tk.mybatis.mapper.common.Mapper; 7 | 8 | import java.util.List; 9 | 10 | @Repository 11 | public interface NxSystemFileInfoDao extends Mapper { 12 | List findByName(@Param("name") String name); 13 | NxSystemFileInfo findByFileName(@Param("name") String name); 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/com/example/dao/OrderGoodsRelDao.java: -------------------------------------------------------------------------------- 1 | package com.example.dao; 2 | 3 | import com.example.entity.OrderGoodsRel; 4 | import org.apache.ibatis.annotations.Param; 5 | import org.apache.ibatis.annotations.Select; 6 | import tk.mybatis.mapper.common.Mapper; 7 | 8 | import java.util.List; 9 | 10 | public interface OrderGoodsRelDao extends Mapper { 11 | List findByOrderId(Long orderId); 12 | 13 | void deleteByGoodsIdAndOrderId(Long goodsId, Long orderId); 14 | 15 | int deleteByOrderId(Long orderId); 16 | 17 | @Select("select sum(count) from order_goods_rel") 18 | Integer totalShopping(); 19 | } -------------------------------------------------------------------------------- /src/main/java/com/example/dao/OrderInfoDao.java: -------------------------------------------------------------------------------- 1 | package com.example.dao; 2 | 3 | import com.example.entity.OrderInfo; 4 | import org.apache.ibatis.annotations.Param; 5 | import org.apache.ibatis.annotations.Select; 6 | import org.apache.ibatis.annotations.Update; 7 | import tk.mybatis.mapper.common.Mapper; 8 | 9 | import java.util.List; 10 | import java.util.Map; 11 | 12 | public interface OrderInfoDao extends Mapper { 13 | 14 | List findByUserId(@Param("userId") Long userId, 15 | @Param("level") Integer level); 16 | List findByEndUserId(@Param("userId") Long userId, 17 | @Param("status") Integer status, 18 | @Param("level") Integer level); 19 | 20 | int deleteById(Long orderId); 21 | 22 | OrderInfo findById(Long orderId); 23 | 24 | @Update("update order_info set status = #{status} where id = #{id}") 25 | void updateStatus(@Param("id") Long id, @Param("status") Integer status); 26 | 27 | @Select("select sum(totalPrice) from order_info where status = 3") 28 | Double totalPrice(); 29 | 30 | @Select("SELECT e.`name`, SUM(e.price) as price FROM\n" + 31 | "(SELECT d.`name` as `name`, a.totalPrice as price FROM order_info AS a\n" + 32 | "JOIN order_goods_rel AS b ON a.id = b.orderId\n" + 33 | "JOIN goods_info AS c ON b.goodsId = c.id\n" + 34 | "LEFT JOIN type_info AS d ON c.typeId = d.id) as e\n" + 35 | "GROUP BY e.`name`") 36 | List> getTypePrice(); 37 | 38 | @Select("SELECT e.`name`, SUM(e.count) as count FROM\n" + 39 | "(SELECT d.`name` as `name`, b.count as count FROM order_info AS a\n" + 40 | "JOIN order_goods_rel AS b ON a.id = b.orderId\n" + 41 | "JOIN goods_info AS c ON b.goodsId = c.id\n" + 42 | "LEFT JOIN type_info AS d ON c.typeId = d.id) as e\n" + 43 | "GROUP BY e.`name`") 44 | List> getTypeCount(); 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/com/example/dao/SeatInfoDao.java: -------------------------------------------------------------------------------- 1 | package com.example.dao; 2 | 3 | import com.example.entity.SeatInfo; 4 | import org.apache.ibatis.annotations.Delete; 5 | import org.apache.ibatis.annotations.Select; 6 | import tk.mybatis.mapper.common.Mapper; 7 | 8 | public interface SeatInfoDao extends Mapper { 9 | @Select("select * from seat_info where goodsId = #{goodsId}") 10 | SeatInfo findDetail(Long goodsId); 11 | 12 | @Delete("delete from seat_info where userId = #{userId} and level = #{level} and goodsId = #{goodsId}") 13 | void deleteByUserIdAndGoodsId(Long userId, Integer level, Long goodsId); 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/com/example/dao/TypeInfoDao.java: -------------------------------------------------------------------------------- 1 | package com.example.dao; 2 | 3 | import com.example.entity.TypeInfo; 4 | import org.apache.ibatis.annotations.Param; 5 | import tk.mybatis.mapper.common.Mapper; 6 | 7 | import java.util.List; 8 | 9 | public interface TypeInfoDao extends Mapper { 10 | 11 | List findByName(@Param("name") String name); 12 | } -------------------------------------------------------------------------------- /src/main/java/com/example/dao/UserInfoDao.java: -------------------------------------------------------------------------------- 1 | package com.example.dao; 2 | 3 | import com.example.entity.UserInfo; 4 | import com.example.vo.UserInfoVo; 5 | import org.apache.ibatis.annotations.Param; 6 | import org.springframework.stereotype.Repository; 7 | import tk.mybatis.mapper.common.Mapper; 8 | 9 | import java.util.List; 10 | 11 | @Repository 12 | public interface UserInfoDao extends Mapper { 13 | UserInfo findByConfirmCode(@Param("confirmCode") String confirmCode) ; 14 | 15 | List findByName(@Param("name") String name); 16 | 17 | int checkRepeat(@Param("column") String column, @Param("value") String value, @Param("id") Long id); 18 | UserInfoVo findByUsername(String username); 19 | Integer count(); 20 | 21 | //根基邮箱查找用户 22 | UserInfo findByEmail(@Param("email") String email); 23 | 24 | //删除激活链接失效的且为激活的用户信息 25 | int deleteOldUser(@Param("email") String email); 26 | 27 | UserInfo findPassword(@Param("name")String name,@Param("email") String email,@Param("level") Integer level); 28 | } 29 | -------------------------------------------------------------------------------- /src/main/java/com/example/entity/Account.java: -------------------------------------------------------------------------------- 1 | package com.example.entity; 2 | 3 | import lombok.Data; 4 | 5 | import javax.persistence.*; 6 | import java.io.Serializable; 7 | 8 | /** 9 | * 用户实体类 10 | */ 11 | @Data 12 | public class Account implements Serializable { 13 | @Id 14 | @GeneratedValue(strategy = GenerationType.IDENTITY) 15 | private Long id;//主键 id 16 | @Column(name = "name") 17 | private String name; //姓名(登录用户名) 18 | 19 | @Column(name = "email") 20 | @Transient 21 | private String email;//邮箱 22 | @Column(name = "password") 23 | private String password;//密码 24 | @Column(name = "level") 25 | private Integer level;//权限等级 26 | @Column(name = "sex") 27 | private Integer sex;//性别 28 | @Transient 29 | private String newPassword;//新密码 30 | @Transient 31 | private String address;//地址 32 | @Column(name = "nickName") 33 | private String nickName;//昵称 34 | @Transient 35 | private String phone;//手机号 36 | @Transient 37 | private Double account;//账户余额 38 | 39 | 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/com/example/entity/AdminInfo.java: -------------------------------------------------------------------------------- 1 | package com.example.entity; 2 | 3 | import com.fasterxml.jackson.annotation.JsonFormat; 4 | import lombok.Data; 5 | 6 | import javax.persistence.*; 7 | import java.io.Serializable; 8 | import java.time.LocalDate; 9 | import java.time.LocalDateTime; 10 | import java.util.Date; 11 | 12 | @Data 13 | @Table(name = "admin_info") 14 | public class AdminInfo extends Account implements Serializable { 15 | @Id 16 | @GeneratedValue(strategy = GenerationType.IDENTITY) 17 | private Long id; 18 | 19 | @Column(name = "name") 20 | private String name; //用户名 21 | @Column(name = "password") 22 | private String password;//密码 23 | @Column(name = "nickName") 24 | private String nickName;//昵称 25 | @Column(name = "sex") 26 | private Integer sex;//性别 27 | @Column(name = "age") 28 | private Integer age;//年龄 29 | @Column(name = "birthday") 30 | // @JsonFormat(shape= JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss") 31 | private LocalDate birthday;//出生日期 32 | @Column(name = "phone") 33 | private String phone;//手机号 34 | @Column(name = "address") 35 | private String address;//地址 36 | @Column(name = "code") 37 | private String code;//编号 38 | @Column(name = "email") 39 | private String email;//邮箱 40 | @Column(name = "cardId") 41 | private String cardId;//身份证 42 | @Column(name = "level") 43 | private Integer level;//权限等级 44 | @Column(name = "account") 45 | private Double account;//账户余额 46 | 47 | @Column(name="confirmCode") 48 | private String confirmCode; 49 | 50 | @Column(name="activationTime") 51 | private LocalDateTime activationTime; 52 | 53 | @Column(name="isValid") 54 | private Integer isValid; 55 | 56 | 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/com/example/entity/AdvertiserInfo.java: -------------------------------------------------------------------------------- 1 | package com.example.entity; 2 | 3 | 4 | import lombok.Data; 5 | import org.springframework.format.annotation.DateTimeFormat; 6 | 7 | import javax.persistence.*; 8 | import java.io.Serializable; 9 | import java.time.LocalDateTime; 10 | 11 | /** 12 | * 公告实体类 13 | */ 14 | @Data 15 | @Table(name = "advertiser_info") 16 | public class AdvertiserInfo implements Serializable { 17 | @Id 18 | @GeneratedValue(strategy = GenerationType.IDENTITY) 19 | private Long id; 20 | 21 | @Column(name = "name") 22 | private String name;//公告名 23 | @Column(name = "content") 24 | private String content;//公告内容 25 | // @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") 26 | @Column(name = "time") 27 | private LocalDateTime time;//公告发布时间 28 | 29 | 30 | } 31 | -------------------------------------------------------------------------------- /src/main/java/com/example/entity/AuthorityInfo.java: -------------------------------------------------------------------------------- 1 | package com.example.entity; 2 | 3 | import java.io.Serializable; 4 | import java.util.List; 5 | 6 | public class AuthorityInfo implements Serializable { 7 | private Integer level; 8 | private String name; 9 | private List models; 10 | 11 | public Integer getLevel() { 12 | return level; 13 | } 14 | 15 | public void setLevel(Integer level) { 16 | this.level = level; 17 | } 18 | 19 | public String getName() { 20 | return name; 21 | } 22 | 23 | public void setName(String name) { 24 | this.name = name; 25 | } 26 | 27 | public List getModels() { 28 | return models; 29 | } 30 | 31 | public void setModels(List models) { 32 | this.models = models; 33 | } 34 | 35 | public static class Model { 36 | private Integer modelId; 37 | private List operation; 38 | 39 | public Integer getModelId() { 40 | return modelId; 41 | } 42 | 43 | public void setModelId(Integer modelId) { 44 | this.modelId = modelId; 45 | } 46 | 47 | public List getOperation() { 48 | return operation; 49 | } 50 | 51 | public void setOperation(List operation) { 52 | this.operation = operation; 53 | } 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/main/java/com/example/entity/CartInfo.java: -------------------------------------------------------------------------------- 1 | package com.example.entity; 2 | 3 | import lombok.Data; 4 | 5 | import javax.persistence.*; 6 | import java.io.Serializable; 7 | import java.time.LocalDateTime; 8 | 9 | /** 10 | * 收藏实体类 11 | */ 12 | @Data 13 | @Table(name = "cart_info") 14 | public class CartInfo implements Serializable { 15 | /** 16 | * 自增id 17 | */ 18 | @Id 19 | @GeneratedValue(strategy = GenerationType.IDENTITY) 20 | private Long id; 21 | 22 | /** 23 | * 数量 24 | */ 25 | private Integer count; 26 | 27 | /** 28 | * 所属用户 29 | */ 30 | @Column(name = "userId") 31 | private Long userId; 32 | 33 | /** 34 | * 所属商品 35 | */ 36 | @Column(name = "goodsId") 37 | private Long goodsId; 38 | 39 | /** 40 | * 创建时间 41 | */ 42 | @Column(name = "createTime") 43 | private LocalDateTime createTime; 44 | 45 | @Column(name = "level") 46 | private Integer level;//权限等级 47 | 48 | @Transient 49 | private String userName; //用户名 50 | @Transient 51 | private String goodsName;//商品名 52 | 53 | 54 | } 55 | -------------------------------------------------------------------------------- /src/main/java/com/example/entity/CommentInfo.java: -------------------------------------------------------------------------------- 1 | package com.example.entity; 2 | 3 | import lombok.Data; 4 | 5 | import javax.persistence.*; 6 | import java.io.Serializable; 7 | import java.time.LocalDateTime; 8 | 9 | /** 10 | * 评论实体类 11 | */ 12 | @Data 13 | @Table(name = "comment_info") 14 | public class CommentInfo implements Serializable { 15 | /** 16 | * 自增id 17 | */ 18 | @Id 19 | @GeneratedValue(strategy = GenerationType.IDENTITY) 20 | private Long id; 21 | 22 | /** 23 | * 评价内容 24 | */ 25 | private String content; 26 | 27 | /** 28 | * 所属电影 29 | */ 30 | @Column(name = "goodsId") 31 | private Long goodsId; 32 | 33 | /** 34 | * 创建时间 35 | */ 36 | @Column(name = "createTime") 37 | private LocalDateTime createTime; 38 | //评论者(当前用户)id 39 | @Column(name = "userId") 40 | private Long userId; 41 | 42 | //权限等级 43 | @Column(name = "level") 44 | private Integer level; 45 | 46 | //电影名 47 | @Transient 48 | private String goodsName; 49 | 50 | //用户昵称 51 | @Transient 52 | private String userName; 53 | 54 | 55 | } 56 | -------------------------------------------------------------------------------- /src/main/java/com/example/entity/GoodsInfo.java: -------------------------------------------------------------------------------- 1 | package com.example.entity; 2 | 3 | import cn.hutool.core.date.DateTime; 4 | import com.fasterxml.jackson.annotation.JsonFormat; 5 | import lombok.Data; 6 | 7 | import javax.persistence.*; 8 | import java.io.Serializable; 9 | import java.time.LocalDateTime; 10 | import java.util.List; 11 | 12 | /** 13 | * 电影信息实体类 14 | */ 15 | @Data 16 | @Table(name = "goods_info") 17 | public class GoodsInfo implements Serializable { 18 | /** 19 | * 主键 20 | */ 21 | @Id 22 | @GeneratedValue(strategy = GenerationType.IDENTITY) 23 | private Long id; 24 | 25 | /** 26 | * 商品名称 (电影名称) 27 | */ 28 | private String name; 29 | 30 | /** 31 | * 商品描述(电影描述) 32 | */ 33 | private String description; 34 | 35 | /** 36 | * 商品图片id(电影图片) 37 | */ 38 | @Column(name = "fileIds") 39 | private String fileIds; 40 | 41 | /** 42 | * 商品价格(电影价格) 43 | */ 44 | private Double price; 45 | 46 | /** 47 | * 商品销量(电影销量) 48 | */ 49 | private Integer sales; 50 | 51 | /** 52 | * 商品点赞数 53 | */ 54 | private Integer hot; 55 | 56 | /** 57 | * 参演电影的演员信息 58 | */ 59 | private String actor; 60 | 61 | /** 62 | * 电影放映开始时间 63 | */ 64 | @Column(name = "beginTime") 65 | // @JsonFormat(pattern = "yyyy:MM:dd HH:mm:ss",timezone = "GMT+8") 66 | private LocalDateTime beginTime; 67 | 68 | /** 69 | * 电影放映时长 70 | */ 71 | private String time; 72 | 73 | /** 74 | * 所属类别 75 | */ 76 | @Column(name = "typeId") 77 | private Long typeId; 78 | /** 79 | * 所属用户 80 | */ 81 | @Column(name = "userId") 82 | private Long userId; 83 | 84 | @Column(name = "level") 85 | private Integer level; 86 | 87 | @Column(name = "isShow") 88 | private Integer isShow;//是否上架 89 | 90 | /** 91 | * 折扣 92 | */ 93 | private Double discount; 94 | /** 95 | * 是否推荐 96 | */ 97 | @Column(name = "recommend") 98 | private Integer recommend; 99 | 100 | @Transient 101 | private String typeName; 102 | 103 | @Transient 104 | private String userName; 105 | 106 | @Transient 107 | private List fileList; 108 | 109 | /** 110 | * 商品评价状态 111 | */ 112 | @Transient 113 | private String commentStatus; 114 | 115 | @Transient 116 | private Integer num; 117 | 118 | 119 | } 120 | -------------------------------------------------------------------------------- /src/main/java/com/example/entity/LinkInfo.java: -------------------------------------------------------------------------------- 1 | package com.example.entity; 2 | 3 | import javax.persistence.*; 4 | import java.io.Serializable; 5 | 6 | @Table(name = "link_info") 7 | public class LinkInfo implements Serializable { 8 | @Id 9 | @GeneratedValue(strategy = GenerationType.IDENTITY) 10 | private Long id; 11 | 12 | @Column(name = "name") 13 | private String name; 14 | @Column(name = "url") 15 | private String url; 16 | 17 | public String getName() { 18 | return name; 19 | } 20 | public void setName(String name) { 21 | this.name = name; 22 | } 23 | public String getUrl() { 24 | return url; 25 | } 26 | public void setUrl(String url) { 27 | this.url = url; 28 | } 29 | 30 | 31 | public void setId(Long id) { 32 | this.id = id; 33 | } 34 | public Long getId() { 35 | return this.id; 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /src/main/java/com/example/entity/MessageInfo.java: -------------------------------------------------------------------------------- 1 | package com.example.entity; 2 | 3 | import lombok.Data; 4 | 5 | import javax.persistence.*; 6 | import java.io.Serializable; 7 | import java.time.LocalDateTime; 8 | 9 | /** 10 | * 影评实体类 11 | */ 12 | @Data 13 | @Table(name = "message_info") 14 | public class MessageInfo implements Serializable { 15 | @Id 16 | @GeneratedValue(strategy = GenerationType.IDENTITY) 17 | private Long id; 18 | 19 | @Column(name = "name") 20 | private String name;//发表的影评用户名 21 | @Column(name = "content") 22 | private String content;//影评内容 23 | @Column(name = "time") 24 | private LocalDateTime time;//发表评价时间 25 | @Column(name = "parentId") 26 | private Long parentId;//父级id 27 | 28 | } 29 | -------------------------------------------------------------------------------- /src/main/java/com/example/entity/NxSystemFileInfo.java: -------------------------------------------------------------------------------- 1 | package com.example.entity; 2 | 3 | import javax.persistence.*; 4 | import java.io.Serializable; 5 | 6 | @Table(name = "nx_system_file_info") 7 | public class NxSystemFileInfo implements Serializable { 8 | @Id 9 | @GeneratedValue(strategy = GenerationType.IDENTITY) 10 | private Long id; 11 | 12 | @Column(name = "originName") 13 | private String originName; 14 | @Column(name = "fileName") 15 | private String fileName; 16 | 17 | public Long getId() { 18 | return id; 19 | } 20 | 21 | public void setId(Long id) { 22 | this.id = id; 23 | } 24 | 25 | public String getOriginName() { 26 | return originName; 27 | } 28 | 29 | public void setOriginName(String originName) { 30 | this.originName = originName; 31 | } 32 | 33 | public String getFileName() { 34 | return fileName; 35 | } 36 | 37 | public void setFileName(String fileName) { 38 | this.fileName = fileName; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/com/example/entity/OrderGoodsRel.java: -------------------------------------------------------------------------------- 1 | package com.example.entity; 2 | 3 | import javax.persistence.*; 4 | import java.io.Serializable; 5 | 6 | @Table(name = "order_goods_rel") 7 | public class OrderGoodsRel implements Serializable { 8 | @Id 9 | @GeneratedValue(strategy = GenerationType.IDENTITY) 10 | private Long id; 11 | 12 | /** 13 | * 订单ID 14 | */ 15 | @Column(name = "orderId") 16 | private Long orderId; 17 | 18 | /** 19 | * 商品ID 20 | */ 21 | @Column(name = "goodsId") 22 | private Long goodsId; 23 | 24 | /** 25 | * 商品数量 26 | */ 27 | private Integer count; 28 | 29 | /** 30 | * @return id 31 | */ 32 | public Long getId() { 33 | return id; 34 | } 35 | 36 | /** 37 | * @param id 38 | */ 39 | public void setId(Long id) { 40 | this.id = id; 41 | } 42 | 43 | /** 44 | * 获取订单ID 45 | * 46 | * @return order_id - 订单ID 47 | */ 48 | public Long getOrderId() { 49 | return orderId; 50 | } 51 | 52 | /** 53 | * 设置订单ID 54 | * 55 | * @param orderId 订单ID 56 | */ 57 | public void setOrderId(Long orderId) { 58 | this.orderId = orderId; 59 | } 60 | 61 | /** 62 | * 获取商品ID 63 | * 64 | * @return goods_id - 商品ID 65 | */ 66 | public Long getGoodsId() { 67 | return goodsId; 68 | } 69 | 70 | /** 71 | * 设置商品ID 72 | * 73 | * @param goodsId 商品ID 74 | */ 75 | public void setGoodsId(Long goodsId) { 76 | this.goodsId = goodsId; 77 | } 78 | 79 | /** 80 | * 获取商品数量 81 | * 82 | * @return count - 商品数量 83 | */ 84 | public Integer getCount() { 85 | return count; 86 | } 87 | 88 | /** 89 | * 设置商品数量 90 | * 91 | * @param count 商品数量 92 | */ 93 | public void setCount(Integer count) { 94 | this.count = count; 95 | } 96 | } 97 | -------------------------------------------------------------------------------- /src/main/java/com/example/entity/OrderInfo.java: -------------------------------------------------------------------------------- 1 | package com.example.entity; 2 | 3 | import lombok.Data; 4 | 5 | import javax.persistence.*; 6 | import java.io.Serializable; 7 | import java.time.LocalDateTime; 8 | import java.util.List; 9 | @Data 10 | @Table(name = "order_info") 11 | public class OrderInfo implements Serializable { 12 | /** 13 | * 主键id 14 | */ 15 | @Id 16 | @GeneratedValue(strategy = GenerationType.IDENTITY) 17 | private Long id; 18 | 19 | /** 20 | * 订单id 21 | */ 22 | @Column(name = "orderId") 23 | private String orderId; 24 | 25 | /** 26 | * 订单总价格 27 | */ 28 | @Column(name = "totalPrice") 29 | private Double totalPrice; 30 | 31 | /** 32 | * 所属用户 33 | */ 34 | @Column(name = "userId") 35 | private Long userId; 36 | 37 | @Column(name = "level") 38 | private Integer level; 39 | 40 | /** 41 | * 联系地址 42 | */ 43 | @Column(name = "linkAddress") 44 | private String linkAddress; 45 | 46 | /** 47 | * 联系电话 48 | */ 49 | @Column(name = "linkPhone") 50 | private String linkPhone; 51 | 52 | /** 53 | * 联系人 54 | */ 55 | @Column(name = "linkMan") 56 | private String linkMan; 57 | 58 | /** 59 | * 创建时间 60 | */ 61 | @Column(name = "createTime") 62 | private LocalDateTime createTime; 63 | 64 | /** 65 | * 订单状态 66 | * 取消0 完成3 待观看2 代付款1 67 | */ 68 | private Integer status; 69 | 70 | /** 71 | * 关联的用户信息 72 | */ 73 | @Transient 74 | private Account userInfo; 75 | 76 | 77 | @Transient 78 | private List goodsList; 79 | 80 | //电影id 81 | @Transient 82 | private Long goodsId; 83 | @Transient 84 | private Integer total; 85 | @Transient 86 | private String position; 87 | 88 | 89 | } 90 | -------------------------------------------------------------------------------- /src/main/java/com/example/entity/SeatInfo.java: -------------------------------------------------------------------------------- 1 | package com.example.entity; 2 | 3 | import lombok.Data; 4 | 5 | import javax.persistence.*; 6 | import java.io.Serializable; 7 | 8 | @Data 9 | @Table(name = "seat_info") 10 | public class SeatInfo implements Serializable { 11 | 12 | @Id 13 | @GeneratedValue(strategy = GenerationType.IDENTITY) 14 | private Long id; 15 | 16 | 17 | @Column(name = "position") 18 | private String position; 19 | 20 | @Column(name = "goodsId") 21 | private Long goodsId; 22 | 23 | 24 | } 25 | -------------------------------------------------------------------------------- /src/main/java/com/example/entity/TypeInfo.java: -------------------------------------------------------------------------------- 1 | package com.example.entity; 2 | 3 | import javax.persistence.*; 4 | import java.io.Serializable; 5 | 6 | /** 7 | * 电影分类实体来 8 | */ 9 | 10 | @Table(name = "type_info") 11 | public class TypeInfo implements Serializable { 12 | /** 13 | * 主键 14 | */ 15 | @Id 16 | @GeneratedValue(strategy = GenerationType.IDENTITY) 17 | private Long id; 18 | 19 | /** 20 | * 类型名称 21 | */ 22 | private String name; 23 | 24 | /** 25 | * 类型描述 26 | */ 27 | private String description; 28 | 29 | /** 30 | * 获取主键 31 | * 32 | * @return id - 主键 33 | */ 34 | public Long getId() { 35 | return id; 36 | } 37 | 38 | /** 39 | * 设置主键 40 | * 41 | * @param id 主键 42 | */ 43 | public void setId(Long id) { 44 | this.id = id; 45 | } 46 | 47 | /** 48 | * 获取类型名称 49 | * 50 | * @return name - 类型名称 51 | */ 52 | public String getName() { 53 | return name; 54 | } 55 | 56 | /** 57 | * 设置类型名称 58 | * 59 | * @param name 类型名称 60 | */ 61 | public void setName(String name) { 62 | this.name = name; 63 | } 64 | 65 | /** 66 | * 获取类型描述 67 | * 68 | * @return description - 类型描述 69 | */ 70 | public String getDescription() { 71 | return description; 72 | } 73 | 74 | /** 75 | * 设置类型描述 76 | * 77 | * @param description 类型描述 78 | */ 79 | public void setDescription(String description) { 80 | this.description = description; 81 | } 82 | } 83 | -------------------------------------------------------------------------------- /src/main/java/com/example/entity/UserInfo.java: -------------------------------------------------------------------------------- 1 | package com.example.entity; 2 | 3 | import cn.hutool.core.date.DateTime; 4 | import com.fasterxml.jackson.annotation.JsonFormat; 5 | import lombok.Data; 6 | 7 | import javax.persistence.*; 8 | import java.io.Serializable; 9 | import java.time.LocalDate; 10 | import java.time.LocalDateTime; 11 | import java.util.Date; 12 | 13 | /** 14 | * 用户实体类 15 | */ 16 | @Data 17 | @Table(name = "user_info") 18 | public class UserInfo extends Account implements Serializable { 19 | @Id 20 | @GeneratedValue(strategy = GenerationType.IDENTITY) 21 | private Long id; 22 | 23 | @Column(name = "name") 24 | private String name;//登录用(用户名) 25 | @Column(name = "password") 26 | private String password;//密码 27 | @Column(name = "nickName") 28 | private String nickName;//昵称 29 | @Column(name = "sex") 30 | private Integer sex;//性别 31 | @Column(name = "age") 32 | private Integer age;//年龄 33 | // @JsonFormat(shape= JsonFormat.Shape.STRING, pattern="yyyy-MM-dd") 34 | @Column(name = "birthday") 35 | private LocalDate birthday;//出生日期 36 | @Column(name = "phone") 37 | private String phone;//联系方式 38 | @Column(name = "address") 39 | private String address;//地址 40 | @Column(name = "email") 41 | private String email; 42 | @Column(name = "cardId") 43 | private String cardId;//关联订单id 44 | @Column(name = "level") 45 | private Integer level;//用户等级 46 | @Column(name = "account") 47 | private Double account;//余额 48 | 49 | @Column(name="confirmCode") 50 | private String confirmCode;//确认码 51 | 52 | @Column(name="activationTime") 53 | private LocalDateTime activationTime;//失效时间 54 | 55 | @Column(name="isValid") 56 | private Integer isValid;//是否激活 57 | 58 | @Column(name="isBan") 59 | private Integer isBan;//是否禁用 60 | 61 | } 62 | -------------------------------------------------------------------------------- /src/main/java/com/example/exception/CustomException.java: -------------------------------------------------------------------------------- 1 | package com.example.exception; 2 | 3 | import com.example.common.ResultCode; 4 | 5 | public class CustomException extends RuntimeException { 6 | private Integer code; 7 | private String msg; 8 | 9 | public CustomException(ResultCode resultCode) { 10 | this.code = resultCode.code; 11 | this.msg = resultCode.msg; 12 | } 13 | 14 | public CustomException(Integer code, String msg) { 15 | this.code = code; 16 | this.msg = msg; 17 | } 18 | 19 | 20 | public Integer getCode() { 21 | return code; 22 | } 23 | 24 | public void setCode(Integer code) { 25 | this.code = code; 26 | } 27 | 28 | public String getMsg() { 29 | return msg; 30 | } 31 | 32 | public void setMsg(String msg) { 33 | this.msg = msg; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/main/java/com/example/exception/GlobalExceptionHandler.java: -------------------------------------------------------------------------------- 1 | package com.example.exception; 2 | 3 | import cn.hutool.log.Log; 4 | import cn.hutool.log.LogFactory; 5 | import com.example.common.Result; 6 | import com.example.common.ResultCode; 7 | import org.springframework.web.bind.annotation.ControllerAdvice; 8 | import org.springframework.web.bind.annotation.ExceptionHandler; 9 | import org.springframework.web.bind.annotation.ResponseBody; 10 | 11 | import javax.servlet.http.HttpServletRequest; 12 | 13 | @ControllerAdvice(basePackages="com.example.controller") 14 | public class GlobalExceptionHandler { 15 | 16 | private static final Log log = LogFactory.get(); 17 | 18 | 19 | //统一异常处理@ExceptionHandler,主要用于Exception 20 | @ExceptionHandler(Exception.class) 21 | @ResponseBody//返回json串 22 | public Result error(HttpServletRequest request, Exception e){ 23 | log.error("异常信息:",e); 24 | return Result.error(); 25 | } 26 | 27 | @ExceptionHandler(CustomException.class) 28 | @ResponseBody//返回json串 29 | public Result customError(HttpServletRequest request, CustomException e){ 30 | return Result.error(e.getCode(), e.getMsg()); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/com/example/service/AdminInfoService.java: -------------------------------------------------------------------------------- 1 | package com.example.service; 2 | 3 | import com.example.common.Result; 4 | import com.example.dao.AdminInfoDao; 5 | import org.springframework.stereotype.Service; 6 | import org.springframework.util.StringUtils; 7 | import com.example.entity.AdminInfo; 8 | import com.example.exception.CustomException; 9 | import com.example.common.ResultCode; 10 | import com.example.vo.AdminInfoVo; 11 | import com.github.pagehelper.PageHelper; 12 | import com.github.pagehelper.PageInfo; 13 | import cn.hutool.crypto.SecureUtil; 14 | 15 | import javax.annotation.Resource; 16 | import javax.servlet.http.HttpServletRequest; 17 | import java.time.LocalDateTime; 18 | import java.util.Date; 19 | import java.util.List; 20 | 21 | @Service 22 | public class AdminInfoService { 23 | 24 | @Resource 25 | private AdminInfoDao adminInfoDao; 26 | 27 | /** 28 | * 添加管理员 29 | * @param adminInfo 30 | * @return 31 | */ 32 | public AdminInfo add(AdminInfo adminInfo) { 33 | // 唯一校验 34 | int count = adminInfoDao.checkRepeat("name", adminInfo.getName(), null); 35 | if (count > 0) { 36 | throw new CustomException(1001, "用户名\"" + adminInfo.getName() + "\"已存在"); 37 | } 38 | if (StringUtils.isEmpty(adminInfo.getPassword())) { 39 | // 默认密码123456 40 | adminInfo.setPassword(SecureUtil.md5("123456")); 41 | } else { 42 | adminInfo.setPassword(SecureUtil.md5(adminInfo.getPassword())); 43 | } 44 | adminInfoDao.insertSelective(adminInfo); 45 | return adminInfo; 46 | } 47 | 48 | 49 | public void delete(Long id) { 50 | adminInfoDao.deleteByPrimaryKey(id); 51 | } 52 | 53 | public void update(AdminInfo adminInfo) { 54 | adminInfoDao.updateByPrimaryKeySelective(adminInfo); 55 | } 56 | 57 | public AdminInfo findById(Long id) { 58 | return adminInfoDao.selectByPrimaryKey(id); 59 | } 60 | 61 | public List findAll() { 62 | return adminInfoDao.findByName("all"); 63 | } 64 | 65 | public PageInfo findPage(String name, Integer pageNum, Integer pageSize, HttpServletRequest request) { 66 | PageHelper.startPage(pageNum, pageSize); 67 | List all = adminInfoDao.findByName(name); 68 | return PageInfo.of(all); 69 | } 70 | 71 | public AdminInfoVo findByUserName(String name) { 72 | return adminInfoDao.findByUsername(name); 73 | } 74 | 75 | public AdminInfo login(String username, String password) { 76 | AdminInfo adminInfo = adminInfoDao.findByUsername(username); 77 | if (adminInfo == null) { 78 | throw new CustomException(ResultCode.USER_ACCOUNT_ERROR); 79 | } 80 | if (!SecureUtil.md5(password).equalsIgnoreCase(adminInfo.getPassword())) { 81 | throw new CustomException(ResultCode.USER_ACCOUNT_ERROR); 82 | } 83 | return adminInfo; 84 | } 85 | 86 | 87 | //根据邮箱查询管理员信息 88 | public AdminInfo findByEmail(String email) { 89 | AdminInfoVo adminInfo = adminInfoDao.findByEmail(email); 90 | return adminInfo; 91 | } 92 | 93 | public Result activationAccount(String confirmCode) { 94 | 95 | AdminInfo admin = adminInfoDao.findByConfirmCode(confirmCode); 96 | System.out.println(admin); 97 | //判断链接是否失效 98 | boolean after = LocalDateTime.now().isAfter(admin.getActivationTime()); 99 | //验证码失效 100 | if (after){ 101 | return Result.error(ResultCode.COMFIRM_CODE_ERROR.code,ResultCode.COMFIRM_CODE_ERROR.msg); 102 | } 103 | 104 | //成功,更新激活状态 105 | admin.setIsValid(1); 106 | adminInfoDao.updateByPrimaryKey(admin); 107 | return Result.success("恭喜你,账号激活成功!"); 108 | } 109 | 110 | public AdminInfo addOldOne(AdminInfo info) { 111 | //删除旧数据的没激活过的数据 112 | int delete = adminInfoDao.deleteOldAdmin(info.getEmail()); 113 | System.out.println(delete); 114 | //添加新的数据 115 | int i = adminInfoDao.insertSelective(info); 116 | if (i>0){ 117 | return info; 118 | } 119 | return null; 120 | } 121 | 122 | public AdminInfo findPassword(String name, String email, Integer level) { 123 | return adminInfoDao.findPassword(name, email, level); 124 | } 125 | } 126 | -------------------------------------------------------------------------------- /src/main/java/com/example/service/AdvertiserInfoService.java: -------------------------------------------------------------------------------- 1 | package com.example.service; 2 | 3 | import cn.hutool.json.JSONUtil; 4 | import com.example.dao.AdvertiserInfoDao; 5 | import org.springframework.stereotype.Service; 6 | import com.example.entity.AdvertiserInfo; 7 | 8 | import com.example.vo.AdvertiserInfoVo; 9 | 10 | import com.github.pagehelper.PageHelper; 11 | import com.github.pagehelper.PageInfo; 12 | 13 | import org.springframework.beans.factory.annotation.Value; 14 | import javax.annotation.Resource; 15 | import javax.servlet.http.HttpServletRequest; 16 | import java.text.SimpleDateFormat; 17 | import java.time.LocalDateTime; 18 | import java.util.Date; 19 | import java.util.List; 20 | 21 | @Service 22 | public class AdvertiserInfoService { 23 | 24 | // @Value("${authority.info}") 25 | private String authorityInfo="[{\"models\":[{\"modelId\":1,\"operation\":[1,2,3,4]},{\"modelId\":1000001,\"operation\":[1,2,3,4]},{\"modelId\":1000003,\"operation\":[1,2,3,4]},{\"modelId\":2,\"operation\":[1,2,3,4]},{\"modelId\":3,\"operation\":[1,2,3,4]},{\"modelId\":4,\"operation\":[1,2,3,4]},{\"modelId\":10000014,\"operation\":[1,2,3,4]},{\"modelId\":1000015,\"operation\":[1,2,3,4]},{\"modelId\":1000016,\"operation\":[1,2,3,4]},{\"modelId\":1000017,\"operation\":[1,2,3,4]},{\"modelId\":1000018,\"operation\":[1,2,3,4]}],\"level\":1,\"modelId\":1,\"name\":\"管理员\"},{\"models\":[{\"modelId\":1000001,\"operation\":[4]},{\"modelId\":1000003,\"operation\":[4]},{\"modelId\":2,\"operation\":[4]},{\"modelId\":4,\"operation\":[4]},{\"modelId\":10000014,\"operation\":[4]},{\"modelId\":1000015,\"operation\":[4]},{\"modelId\":1000016,\"operation\":[4]},{\"modelId\":1000017,\"operation\":[4]},{\"modelId\":1000018,\"operation\":[4]}],\"level\":2,\"modelId\":3,\"name\":\"用户\"}]"; 26 | 27 | @Resource 28 | private AdvertiserInfoDao advertiserInfoDao; 29 | 30 | public AdvertiserInfo add(AdvertiserInfo advertiserInfo) { 31 | advertiserInfo.setTime(LocalDateTime.now()); 32 | // advertiserInfo.setTime(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date())); 33 | advertiserInfoDao.insertSelective(advertiserInfo); 34 | return advertiserInfo; 35 | } 36 | 37 | public void delete(Long id) { 38 | advertiserInfoDao.deleteByPrimaryKey(id); 39 | } 40 | 41 | public void update(AdvertiserInfo advertiserInfo) { 42 | advertiserInfo.setTime(LocalDateTime.now()); 43 | // advertiserInfo.setTime(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date())); 44 | advertiserInfoDao.updateByPrimaryKeySelective(advertiserInfo); 45 | } 46 | 47 | public AdvertiserInfo findById(Long id) { 48 | return advertiserInfoDao.selectByPrimaryKey(id); 49 | } 50 | 51 | public List findAll() { 52 | return advertiserInfoDao.findByName("all"); 53 | } 54 | 55 | public PageInfo findPage(String name, Integer pageNum, Integer pageSize, HttpServletRequest request) { 56 | PageHelper.startPage(pageNum, pageSize); 57 | List all = findAllPage(request, name); 58 | return PageInfo.of(all); 59 | } 60 | 61 | public List findAllPage(HttpServletRequest request, String name) { 62 | return advertiserInfoDao.findByName(name); 63 | } 64 | 65 | } 66 | -------------------------------------------------------------------------------- /src/main/java/com/example/service/CommentInfoService.java: -------------------------------------------------------------------------------- 1 | package com.example.service; 2 | 3 | import cn.hutool.core.collection.CollectionUtil; 4 | import cn.hutool.core.date.DateUtil; 5 | import com.example.dao.CommentInfoDao; 6 | import com.example.entity.Account; 7 | import com.example.entity.CommentInfo; 8 | import com.example.exception.CustomException; 9 | import com.github.pagehelper.PageHelper; 10 | import com.github.pagehelper.PageInfo; 11 | import org.springframework.stereotype.Service; 12 | 13 | import javax.annotation.Resource; 14 | import javax.servlet.http.HttpServletRequest; 15 | import java.time.LocalDateTime; 16 | import java.util.Date; 17 | import java.util.List; 18 | 19 | @Service 20 | public class CommentInfoService { 21 | 22 | @Resource 23 | private CommentInfoDao commentInfoDao; 24 | @Resource 25 | private AdminInfoService adminInfoService; 26 | @Resource 27 | private UserInfoService userInfoService; 28 | 29 | 30 | public CommentInfo add(CommentInfo commentInfo) { 31 | commentInfo.setCreateTime(LocalDateTime.now()); 32 | // commentInfo.setCreateTime(DateUtil.formatDateTime(new Date())); 33 | String content = commentInfo.getContent(); 34 | if (content.length() > 255) { 35 | commentInfo.setContent(content.substring(0, 250)); 36 | } 37 | commentInfoDao.insertSelective(commentInfo); 38 | return commentInfo; 39 | } 40 | 41 | public void delete(Long id) { 42 | commentInfoDao.deleteByPrimaryKey(id); 43 | } 44 | 45 | public void update(CommentInfo commentInfo) { 46 | String content = commentInfo.getContent(); 47 | //内容过多,截取【0,255】范围的评论 48 | if (content.length() > 255) { 49 | commentInfo.setContent(content.substring(0, 250)); 50 | } 51 | commentInfoDao.updateByPrimaryKeySelective(commentInfo); 52 | } 53 | 54 | public CommentInfo findById(Long id) { 55 | return commentInfoDao.selectByPrimaryKey(id); 56 | } 57 | 58 | public List findAll() { 59 | return commentInfoDao.selectAll(); 60 | } 61 | 62 | public List findAll(Long goodsId) { 63 | List list = commentInfoDao.findByGoodsId(goodsId); 64 | if (!CollectionUtil.isEmpty(list)) { 65 | for (CommentInfo info : list) { 66 | Long userId = info.getUserId(); 67 | Integer level = info.getLevel(); 68 | if (level == 1) { 69 | info.setUserName(adminInfoService.findById(userId).getName()); 70 | } 71 | if (level == 2) { 72 | info.setUserName(userInfoService.findById(userId).getName()); 73 | } 74 | 75 | } 76 | } 77 | return list; 78 | } 79 | 80 | public PageInfo findPage(Integer pageNum, Integer pageSize, String name, HttpServletRequest request) { 81 | Account account = (Account) request.getSession().getAttribute("user"); 82 | if (account == null) { 83 | throw new CustomException(1001, "请先登录"); 84 | } 85 | PageHelper.startPage(pageNum, pageSize); 86 | List all = commentInfoDao.findByContent(name, account.getLevel()); 87 | return PageInfo.of(all); 88 | } 89 | 90 | } 91 | -------------------------------------------------------------------------------- /src/main/java/com/example/service/LinkInfoService.java: -------------------------------------------------------------------------------- 1 | package com.example.service; 2 | 3 | import cn.hutool.json.JSONUtil; 4 | import com.example.dao.LinkInfoDao; 5 | import org.springframework.stereotype.Service; 6 | import com.example.entity.LinkInfo; 7 | import com.example.entity.AuthorityInfo; 8 | import com.example.entity.Account; 9 | import com.example.vo.LinkInfoVo; 10 | 11 | import com.github.pagehelper.PageHelper; 12 | import com.github.pagehelper.PageInfo; 13 | 14 | import javax.annotation.Resource; 15 | import javax.servlet.http.HttpServletRequest; 16 | import java.util.Date; 17 | import java.util.List; 18 | 19 | @Service 20 | public class LinkInfoService { 21 | 22 | @Resource 23 | private LinkInfoDao linkInfoDao; 24 | 25 | public LinkInfo add(LinkInfo linkInfo) { 26 | linkInfoDao.insertSelective(linkInfo); 27 | return linkInfo; 28 | } 29 | 30 | public void delete(Long id) { 31 | linkInfoDao.deleteByPrimaryKey(id); 32 | } 33 | 34 | public void update(LinkInfo linkInfo) { 35 | linkInfoDao.updateByPrimaryKeySelective(linkInfo); 36 | } 37 | 38 | public LinkInfo findById(Long id) { 39 | return linkInfoDao.selectByPrimaryKey(id); 40 | } 41 | 42 | public List findAll() { 43 | return linkInfoDao.findByName("all"); 44 | } 45 | 46 | public PageInfo findPage(String name, Integer pageNum, Integer pageSize, HttpServletRequest request) { 47 | PageHelper.startPage(pageNum, pageSize); 48 | List all = findAllPage(request, name); 49 | return PageInfo.of(all); 50 | } 51 | 52 | public List findAllPage(HttpServletRequest request, String name) { 53 | return linkInfoDao.findByName(name); 54 | } 55 | 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/com/example/service/MailService.java: -------------------------------------------------------------------------------- 1 | package com.example.service; 2 | 3 | import org.springframework.beans.factory.annotation.Value; 4 | import org.springframework.mail.javamail.JavaMailSender; 5 | import org.springframework.mail.javamail.MimeMessageHelper; 6 | import org.springframework.stereotype.Service; 7 | import org.thymeleaf.TemplateEngine; 8 | import org.thymeleaf.context.Context; 9 | 10 | import javax.annotation.Resource; 11 | import javax.mail.internet.MimeMessage; 12 | import java.util.Date; 13 | 14 | @Service 15 | public class MailService { 16 | 17 | @Value("${spring.mail.username}") 18 | private String mailUsername; 19 | 20 | @Resource 21 | private JavaMailSender javaMailSender; 22 | 23 | @Resource 24 | private TemplateEngine templateEngine; 25 | /** 26 | * 发送邮件 27 | * @param activationUrl 28 | * @param email 29 | */ 30 | public void sendMailForActivaitionAccount(String activationUrl, String email) { 31 | MimeMessage mimeMessage = javaMailSender.createMimeMessage(); 32 | try{ 33 | MimeMessageHelper message = new MimeMessageHelper(mimeMessage,true ); 34 | //设置邮件主题 35 | message.setSubject("欢迎来到北辰电影院--个人账号激活"); 36 | //设置邮件发送着 37 | message.setFrom(mailUsername); 38 | //设置邮件接受者,可以多个 39 | message.setTo(email); 40 | //设置邮件抄送人,可以有多个 41 | // message.setCc(); 42 | //设置隐秘超偶是那个人,可以有多个 43 | // message.setBcc(); 44 | //设置邮件发送日期 45 | message.setSentDate(new Date()); 46 | Context context =new Context(); 47 | context.setVariable("activationUrl",activationUrl); 48 | // String text = templateEngine.process("end/page/active-account.html", context); 49 | String text = templateEngine.process("front/active-account.html", context); 50 | //设置邮件正文 51 | message.setText(text,true); 52 | }catch (Exception e){ 53 | e.printStackTrace(); 54 | } 55 | //邮件发送 56 | javaMailSender.send(mimeMessage); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/com/example/service/MessageInfoService.java: -------------------------------------------------------------------------------- 1 | package com.example.service; 2 | 3 | import com.example.dao.MessageInfoDao; 4 | import com.example.entity.MessageInfo; 5 | import com.example.vo.MessageInfoVo; 6 | import com.github.pagehelper.PageHelper; 7 | import com.github.pagehelper.PageInfo; 8 | import org.springframework.stereotype.Service; 9 | 10 | import javax.annotation.Resource; 11 | import javax.servlet.http.HttpServletRequest; 12 | import java.time.LocalDateTime; 13 | import java.util.ArrayList; 14 | import java.util.List; 15 | 16 | @Service 17 | public class MessageInfoService { 18 | 19 | @Resource 20 | private MessageInfoDao messageInfoDao; 21 | 22 | public MessageInfo add(MessageInfo messageInfo) { 23 | //设置时间 24 | messageInfo.setTime(LocalDateTime.now()); 25 | // System.out.println("加入了当前时间:"+messageInfo); 26 | messageInfoDao.insertSelective(messageInfo); 27 | return messageInfo; 28 | } 29 | 30 | public void delete(Long id) { 31 | messageInfoDao.deleteByPrimaryKey(id); 32 | } 33 | 34 | public void update(MessageInfo messageInfo) { 35 | messageInfoDao.updateByPrimaryKeySelective(messageInfo); 36 | } 37 | 38 | public MessageInfo findById(Long id) { 39 | return messageInfoDao.selectByPrimaryKey(id); 40 | } 41 | 42 | public List findAll() { 43 | List all = messageInfoDao.findByParentId(0L); 44 | for (MessageInfoVo messageInfoVo : all) { 45 | Long id = messageInfoVo.getId(); 46 | List children = new ArrayList<>(messageInfoDao.findByParentId(id)); 47 | messageInfoVo.setChildren(children); 48 | } 49 | return all; 50 | } 51 | 52 | public PageInfo findPage(String name, Integer pageNum, Integer pageSize, HttpServletRequest request) { 53 | PageHelper.startPage(pageNum, pageSize); 54 | List all = findAllPage(request, name); 55 | return PageInfo.of(all); 56 | } 57 | 58 | public List findAllPage(HttpServletRequest request, String name) { 59 | return messageInfoDao.findByName(name); 60 | } 61 | 62 | /** 63 | * 产出该评论下的所有评论 64 | * @param parentId 65 | * @return 66 | */ 67 | public int findByParentId(Long parentId) { 68 | 69 | //根据parentId查询所有自评论集合 70 | List list = messageInfoDao.findByParentId(parentId); 71 | for (MessageInfoVo messageInfoVo : list) { 72 | System.out.println(messageInfoVo); 73 | System.out.println(messageInfoVo.getId()); 74 | } 75 | 76 | int count=0; 77 | //删除所哟普子集评论 78 | for (MessageInfoVo messageInfoVo : list) { 79 | messageInfoDao.deleteByPrimaryKey(messageInfoVo.getId()); 80 | count++; 81 | } 82 | //删除自己的第一级评论 83 | messageInfoDao.deleteByPrimaryKey(parentId); 84 | // System.out.println("删除了:"+list.size()); 85 | // System.out.println("count:"+(++count)); 86 | return list.size()+1; 87 | } 88 | } 89 | -------------------------------------------------------------------------------- /src/main/java/com/example/service/NxSystemFileInfoService.java: -------------------------------------------------------------------------------- 1 | package com.example.service; 2 | 3 | import com.example.dao.NxSystemFileInfoDao; 4 | import com.example.entity.NxSystemFileInfo; 5 | import com.github.pagehelper.PageHelper; 6 | import com.github.pagehelper.PageInfo; 7 | import org.springframework.beans.factory.annotation.Value; 8 | import org.springframework.stereotype.Service; 9 | 10 | import javax.annotation.Resource; 11 | import java.util.List; 12 | 13 | @Service 14 | public class NxSystemFileInfoService { 15 | 16 | @Value("${authority.info}") 17 | private String authorityInfo; 18 | 19 | @Resource 20 | private NxSystemFileInfoDao nxSystemFileInfoDao; 21 | 22 | public NxSystemFileInfo add(NxSystemFileInfo nxSystemFileInfo) { 23 | nxSystemFileInfoDao.insertSelective(nxSystemFileInfo); 24 | return nxSystemFileInfo; 25 | } 26 | 27 | public void delete(Long id) { 28 | nxSystemFileInfoDao.deleteByPrimaryKey(id); 29 | } 30 | 31 | public void update(NxSystemFileInfo nxSystemFileInfo) { 32 | nxSystemFileInfoDao.updateByPrimaryKeySelective(nxSystemFileInfo); 33 | } 34 | 35 | public NxSystemFileInfo findById(Long id) { 36 | return nxSystemFileInfoDao.selectByPrimaryKey(id); 37 | } 38 | 39 | public NxSystemFileInfo findByFileName(String name) { 40 | return nxSystemFileInfoDao.findByFileName(name); 41 | } 42 | 43 | public List findAll() { 44 | return nxSystemFileInfoDao.findByName("all"); 45 | } 46 | 47 | public PageInfo findPage(String name, Integer pageNum, Integer pageSize) { 48 | PageHelper.startPage(pageNum, pageSize); 49 | List all = nxSystemFileInfoDao.findByName(name); 50 | return PageInfo.of(all); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /src/main/java/com/example/service/SeatInfoService.java: -------------------------------------------------------------------------------- 1 | package com.example.service; 2 | 3 | import com.example.dao.SeatInfoDao; 4 | import com.example.entity.SeatInfo; 5 | import org.springframework.stereotype.Service; 6 | 7 | import javax.annotation.Resource; 8 | 9 | /** 10 | * 座位 11 | */ 12 | @Service 13 | public class SeatInfoService { 14 | 15 | @Resource 16 | private SeatInfoDao seatInfoDao; 17 | 18 | public SeatInfo findDetail(Long goodsId) { 19 | return seatInfoDao.findDetail(goodsId); 20 | } 21 | 22 | public void save(SeatInfo seatInfo) { 23 | if (seatInfo.getId() != null) { 24 | seatInfoDao.updateByPrimaryKeySelective(seatInfo); 25 | } else { 26 | seatInfoDao.insertSelective(seatInfo); 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/com/example/service/TypeInfoService.java: -------------------------------------------------------------------------------- 1 | package com.example.service; 2 | 3 | import com.example.dao.TypeInfoDao; 4 | import org.springframework.stereotype.Service; 5 | import com.example.entity.TypeInfo; 6 | import com.github.pagehelper.PageHelper; 7 | import com.github.pagehelper.PageInfo; 8 | 9 | import javax.annotation.Resource; 10 | import java.util.List; 11 | 12 | @Service 13 | public class TypeInfoService { 14 | 15 | @Resource 16 | private TypeInfoDao typeInfoDao; 17 | 18 | public TypeInfo add(TypeInfo typeInfo) { 19 | typeInfoDao.insertSelective(typeInfo); 20 | return typeInfo; 21 | } 22 | 23 | public void delete(Long id) { 24 | typeInfoDao.deleteByPrimaryKey(id); 25 | } 26 | 27 | public void update(TypeInfo typeInfo) { 28 | typeInfoDao.updateByPrimaryKeySelective(typeInfo); 29 | } 30 | 31 | public TypeInfo findById(Long id) { 32 | return typeInfoDao.selectByPrimaryKey(id); 33 | } 34 | 35 | public List findAll() { 36 | return typeInfoDao.selectAll(); 37 | } 38 | 39 | public PageInfo findPage(Integer pageNum, Integer pageSize, String name) { 40 | PageHelper.startPage(pageNum, pageSize); 41 | List all = typeInfoDao.findByName(name); 42 | return PageInfo.of(all); 43 | } 44 | 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/com/example/vo/AdminInfoVo.java: -------------------------------------------------------------------------------- 1 | package com.example.vo; 2 | 3 | import com.example.entity.AdminInfo; 4 | 5 | public class AdminInfoVo extends AdminInfo { 6 | 7 | 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/com/example/vo/AdvertiserInfoVo.java: -------------------------------------------------------------------------------- 1 | package com.example.vo; 2 | 3 | import com.example.entity.AdvertiserInfo; 4 | 5 | public class AdvertiserInfoVo extends AdvertiserInfo { 6 | 7 | 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/com/example/vo/EchartsData.java: -------------------------------------------------------------------------------- 1 | package com.example.vo; 2 | 3 | import java.io.Serializable; 4 | import java.util.List; 5 | import java.util.Map; 6 | 7 | public class EchartsData implements Serializable { 8 | 9 | private Map title; 10 | private Map legend; 11 | private Map tooltip; 12 | private Map xAxis; 13 | private Object yAxis; 14 | private List series; 15 | 16 | public Map getTitle() { 17 | return title; 18 | } 19 | 20 | public void setTitle(Map title) { 21 | this.title = title; 22 | } 23 | 24 | public Map getLegend() { 25 | return legend; 26 | } 27 | 28 | public void setLegend(Map legend) { 29 | this.legend = legend; 30 | } 31 | 32 | public Map getxAxis() { 33 | return xAxis; 34 | } 35 | 36 | public void setxAxis(Map xAxis) { 37 | this.xAxis = xAxis; 38 | } 39 | 40 | public Object getyAxis() { 41 | return yAxis; 42 | } 43 | 44 | public void setyAxis(Object yAxis) { 45 | this.yAxis = yAxis; 46 | } 47 | 48 | public List getSeries() { 49 | return series; 50 | } 51 | 52 | public void setSeries(List series) { 53 | this.series = series; 54 | } 55 | public Map getTooltip() { 56 | return tooltip; 57 | } 58 | 59 | public void setTooltip(Map tooltip) { 60 | this.tooltip = tooltip; 61 | } 62 | 63 | 64 | public static class Data { 65 | private String orient; 66 | private Integer top; 67 | private String x; 68 | private List data; 69 | 70 | public String getOrient() { 71 | return orient; 72 | } 73 | 74 | public void setOrient(String orient) { 75 | this.orient = orient; 76 | } 77 | 78 | public Integer getTop() { 79 | return top; 80 | } 81 | 82 | public void setTop(Integer top) { 83 | this.top = top; 84 | } 85 | 86 | public String getX() { 87 | return x; 88 | } 89 | 90 | public void setX(String x) { 91 | this.x = x; 92 | } 93 | 94 | public List getData() { 95 | return data; 96 | } 97 | 98 | public void setData(List data) { 99 | this.data = data; 100 | } 101 | } 102 | 103 | public static class Series { 104 | private String name; 105 | private String type; 106 | private String radius; 107 | private List data; 108 | 109 | public String getName() { 110 | return name; 111 | } 112 | 113 | public void setName(String name) { 114 | this.name = name; 115 | } 116 | 117 | public String getType() { 118 | return type; 119 | } 120 | 121 | public void setType(String type) { 122 | this.type = type; 123 | } 124 | 125 | public String getRadius() { 126 | return radius; 127 | } 128 | 129 | public void setRadius(String radius) { 130 | this.radius = radius; 131 | } 132 | 133 | public List getData() { 134 | return data; 135 | } 136 | 137 | public void setData(List data) { 138 | this.data = data; 139 | } 140 | } 141 | } 142 | -------------------------------------------------------------------------------- /src/main/java/com/example/vo/LinkInfoVo.java: -------------------------------------------------------------------------------- 1 | package com.example.vo; 2 | 3 | import com.example.entity.LinkInfo; 4 | 5 | public class LinkInfoVo extends LinkInfo { 6 | 7 | 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/com/example/vo/MessageInfoVo.java: -------------------------------------------------------------------------------- 1 | package com.example.vo; 2 | 3 | import com.example.entity.MessageInfo; 4 | 5 | import java.util.List; 6 | 7 | public class MessageInfoVo extends MessageInfo { 8 | private List children; 9 | 10 | public List getChildren() { 11 | return children; 12 | } 13 | 14 | public void setChildren(List children) { 15 | this.children = children; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/com/example/vo/UserInfoVo.java: -------------------------------------------------------------------------------- 1 | package com.example.vo; 2 | 3 | import com.example.entity.UserInfo; 4 | 5 | public class UserInfoVo extends UserInfo { 6 | 7 | 8 | 9 | } -------------------------------------------------------------------------------- /src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8888 3 | connection-timeout: 60000 4 | spring: 5 | datasource: 6 | driver-class-name: com.mysql.jdbc.Driver 7 | username: root 8 | password: 123456 9 | url: jdbc:mysql://localhost:3306/graduation_193_filmBuy?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false&serverTimezone=GMT%2b8 10 | thymeleaf: 11 | cache: false 12 | prefix: classpath:/static/ 13 | servlet: 14 | multipart: 15 | max-file-size: 100MB 16 | max-request-size: 100MB 17 | mail: 18 | protocol: smtp 19 | host: smtp.163.com 20 | port: 25 21 | username: 22 | password: 23 | default-encoding: utf-8 24 | properties: 25 | mail: 26 | debug: true 27 | 28 | mybatis: 29 | mapper-locations: classpath:mapper/*.xml 30 | type-aliases-package: com.example.entity 31 | 32 | 33 | 34 | pagehelper: 35 | helper-dialect: mysql 36 | reasonable: true 37 | support-methods-arguments: true 38 | params: count=countSql 39 | 40 | authority: 41 | info: 42 | logging: 43 | file: log/my.log 44 | -------------------------------------------------------------------------------- /src/main/resources/mapper/AdminInfoMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | delete from `admin_info` where email = #{email} 6 | 7 | 8 | 9 | 15 | 16 | 19 | 20 | 29 | 32 | 35 | 38 | 41 | 42 | -------------------------------------------------------------------------------- /src/main/resources/mapper/AdvertiserInfoMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 13 | 14 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /src/main/resources/mapper/CartInfoMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 10 | 14 | 17 | 18 | -------------------------------------------------------------------------------- /src/main/resources/mapper/CommentInfoMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 19 | 20 | 31 | 32 | 36 | -------------------------------------------------------------------------------- /src/main/resources/mapper/GoodsInfoMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 18 | 19 | 25 | 26 | -------------------------------------------------------------------------------- /src/main/resources/mapper/LinkInfoMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 14 | 15 | 20 | 21 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /src/main/resources/mapper/MessageInfoMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 14 | 15 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /src/main/resources/mapper/NxSystemFileInfoMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 13 | 14 | 18 | 19 | -------------------------------------------------------------------------------- /src/main/resources/mapper/OrderGoodsRelMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | delete from order_goods_rel where goodsId = #{goodsId} and orderId = #{orderId} 7 | 8 | 9 | 10 | delete from order_goods_rel where orderId = #{orderId} 11 | 12 | 13 | 14 | 17 | -------------------------------------------------------------------------------- /src/main/resources/mapper/OrderInfoMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | delete from order_info where id = #{orderId} 6 | 7 | 8 | 11 | 12 | 25 | 26 | 29 | 30 | -------------------------------------------------------------------------------- /src/main/resources/mapper/TypeInfoMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | -------------------------------------------------------------------------------- /src/main/resources/mapper/UserInfoMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | delete from `user_info` where email = #{email} 6 | 7 | 8 | 14 | 15 | 18 | 19 | 28 | 31 | 34 | 37 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /src/main/resources/static/end/css/element/fonts/element-icons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/end/css/element/fonts/element-icons.ttf -------------------------------------------------------------------------------- /src/main/resources/static/end/css/element/fonts/element-icons.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/end/css/element/fonts/element-icons.woff -------------------------------------------------------------------------------- /src/main/resources/static/end/font-awesome/fonts/fontawesome-webfontba72.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/end/font-awesome/fonts/fontawesome-webfontba72.eot -------------------------------------------------------------------------------- /src/main/resources/static/end/font-awesome/fonts/fontawesome-webfontba72.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/end/font-awesome/fonts/fontawesome-webfontba72.ttf -------------------------------------------------------------------------------- /src/main/resources/static/end/font-awesome/fonts/fontawesome-webfontba72.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/end/font-awesome/fonts/fontawesome-webfontba72.woff -------------------------------------------------------------------------------- /src/main/resources/static/end/font-awesome/fonts/fontawesome-webfontd41d.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/end/font-awesome/fonts/fontawesome-webfontd41d.eot -------------------------------------------------------------------------------- /src/main/resources/static/end/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/end/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /src/main/resources/static/end/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/end/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /src/main/resources/static/end/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/end/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /src/main/resources/static/end/fonts/glyphicons-halflings-regulard41d.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/end/fonts/glyphicons-halflings-regulard41d.eot -------------------------------------------------------------------------------- /src/main/resources/static/end/img/bg-img.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/end/img/bg-img.jpg -------------------------------------------------------------------------------- /src/main/resources/static/end/img/head.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/end/img/head.jpg -------------------------------------------------------------------------------- /src/main/resources/static/end/js/custom-scripts.js: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------ 2 | Author : www.webthemez.com 3 | License: Commons Attribution 3.0 4 | http://creativecommons.org/licenses/by/3.0/ 5 | --------------------------------------------------------- */ 6 | 7 | (function ($) { 8 | "use strict"; 9 | var mainApp = { 10 | 11 | initFunction: function () { 12 | /*MENU 13 | ------------------------------------*/ 14 | $('#main-menu').metisMenu(); 15 | 16 | $(window).bind("load resize", function () { 17 | if ($(this).width() < 768) { 18 | $('div.sidebar-collapse').addClass('collapse') 19 | } else { 20 | $('div.sidebar-collapse').removeClass('collapse') 21 | } 22 | }); 23 | }, 24 | 25 | initialization: function () { 26 | mainApp.initFunction(); 27 | 28 | } 29 | }; 30 | // Initializing /// 31 | 32 | $(document).ready(function () { 33 | mainApp.initFunction(); 34 | }); 35 | 36 | }(jQuery)); 37 | -------------------------------------------------------------------------------- /src/main/resources/static/end/js/jquery.metisMenu.js: -------------------------------------------------------------------------------- 1 | ;(function ($, window, document, undefined) { 2 | 3 | var pluginName = "metisMenu", 4 | defaults = { 5 | toggle: true 6 | }; 7 | 8 | function Plugin(element, options) { 9 | this.element = element; 10 | this.settings = $.extend({}, defaults, options); 11 | this._defaults = defaults; 12 | this._name = pluginName; 13 | this.init(); 14 | } 15 | 16 | Plugin.prototype = { 17 | init: function () { 18 | 19 | var $this = $(this.element), 20 | $toggle = this.settings.toggle; 21 | 22 | $this.find('li.active').has('ul').children('ul').addClass('collapse in'); 23 | $this.find('li').not('.active').has('ul').children('ul').addClass('collapse'); 24 | 25 | $this.find('li').has('ul').children('a').on('click', function (e) { 26 | e.preventDefault(); 27 | 28 | $(this).parent('li').toggleClass('active').children('ul').collapse('toggle'); 29 | 30 | if ($toggle) { 31 | $(this).parent('li').siblings().removeClass('active').children('ul.in').collapse('hide'); 32 | } 33 | }); 34 | } 35 | }; 36 | 37 | $.fn[ pluginName ] = function (options) { 38 | return this.each(function () { 39 | if (!$.data(this, "plugin_" + pluginName)) { 40 | $.data(this, "plugin_" + pluginName, new Plugin(this, options)); 41 | } 42 | }); 43 | }; 44 | 45 | })(jQuery, window, document); 46 | -------------------------------------------------------------------------------- /src/main/resources/static/end/js/my.js: -------------------------------------------------------------------------------- 1 | function checkValid(entity) { 2 | if (!entity.name || entity.name === "") { 3 | alert("name不能为空"); 4 | return false; 5 | } 6 | if (entity.phone && entity.phone !== "") { 7 | let reg = /^[1][3,4,5,7,8][0-9]{9}$/; 8 | if (!reg.test(entity.phone)) { 9 | alert("请输入正确的手机号"); 10 | return false; 11 | } 12 | } 13 | if (entity.email && entity.email !== "") { 14 | let reg = /^([a-zA-Z]|[0-9])(\w|\-)+@[a-zA-Z0-9]+\.([a-zA-Z]{2,4})$/; 15 | if (!reg.test(entity.email)) { 16 | alert("请输入正确的邮箱"); 17 | return false; 18 | } 19 | } 20 | if (entity.cardId && entity.cardId !== "") { 21 | let reg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/; 22 | if (!reg.test(entity.cardId)) { 23 | alert("请输入正确的身份证号"); 24 | return false; 25 | } 26 | } 27 | return true; 28 | } 29 | 30 | function personalPage() { 31 | let user = JSON.parse(localStorage.getItem("user")); 32 | if (user && user.level && user.level === 1) { 33 | window.location = '/end/page/accountAdminInfo.html'; 34 | } 35 | if (user && user.level && user.level === 2) { 36 | window.location = '/end/page/accountUserInfo.html'; 37 | } 38 | 39 | } 40 | 41 | function logout() { 42 | axios.get('/logout').then(res => { 43 | if (res.data.code === 0) { 44 | window.location = '/end/page/login.html'; 45 | } else { 46 | alert(res.data.msg); 47 | } 48 | }) 49 | } 50 | 51 | /** 52 | * 弹出式提示框,默认1.2秒自动消失 53 | * @param message 提示信息 54 | * @param style 提示样式,有alert-success、alert-danger、alert-warning、alert-info 55 | * @param time 消失时间 56 | */ 57 | let prompt = function (message, style, time) 58 | { 59 | style = (style === undefined) ? 'alert-success' : style; 60 | time = (time === undefined) ? 1200 : time; 61 | $('
') 62 | .appendTo('body') 63 | .addClass('alert ' + style) 64 | .html(message) 65 | .show() 66 | .delay(time) 67 | .fadeOut(); 68 | }; 69 | 70 | // 成功提示 71 | let success_prompt = function(message, time) 72 | { 73 | prompt(message, 'alert-success', time); 74 | }; 75 | 76 | // 失败提示 77 | let fail_prompt = function(message, time) 78 | { 79 | prompt(message, 'alert-danger', time); 80 | }; 81 | 82 | // 提醒 83 | let warning_prompt = function(message, time) 84 | { 85 | prompt(message, 'alert-warning', time); 86 | }; 87 | 88 | // 信息提示 89 | let info_prompt = function(message, time) 90 | { 91 | prompt(message, 'alert-info', time); 92 | }; 93 | -------------------------------------------------------------------------------- /src/main/resources/static/file/011641977405077.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/file/011641977405077.jpg -------------------------------------------------------------------------------- /src/main/resources/static/file/111641985683709.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/file/111641985683709.jpg -------------------------------------------------------------------------------- /src/main/resources/static/file/11641026958290.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/file/11641026958290.jpg -------------------------------------------------------------------------------- /src/main/resources/static/file/21641986757844.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/file/21641986757844.jpg -------------------------------------------------------------------------------- /src/main/resources/static/file/51641984831762.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/file/51641984831762.jpg -------------------------------------------------------------------------------- /src/main/resources/static/file/file-info: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/file/file-info -------------------------------------------------------------------------------- /src/main/resources/static/file/十二生肖1604736315894.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/file/十二生肖1604736315894.jpg -------------------------------------------------------------------------------- /src/main/resources/static/file/叶问4(1)1604732022840.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/file/叶问4(1)1604732022840.jpg -------------------------------------------------------------------------------- /src/main/resources/static/file/叶问4(1)1604732581709.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/file/叶问4(1)1604732581709.jpg -------------------------------------------------------------------------------- /src/main/resources/static/file/急先锋1604736612839.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/file/急先锋1604736612839.jpg -------------------------------------------------------------------------------- /src/main/resources/static/file/战狼21604735890421.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/file/战狼21604735890421.jpg -------------------------------------------------------------------------------- /src/main/resources/static/file/杀破狼1604731993972.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/file/杀破狼1604731993972.jpg -------------------------------------------------------------------------------- /src/main/resources/static/file/破局1604736792241.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/file/破局1604736792241.jpg -------------------------------------------------------------------------------- /src/main/resources/static/file/第一次1604732534032.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/file/第一次1604732534032.jpg -------------------------------------------------------------------------------- /src/main/resources/static/file/美人鱼1604739990102.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/file/美人鱼1604739990102.jpg -------------------------------------------------------------------------------- /src/main/resources/static/front/active-account.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 激活页面 7 | 8 | 9 |
10 | Email 地址验证
11 | 这封信是由北辰电影院发送的。
12 | 您收到这封邮件,是由于在北辰博客进行了新用户注册,或用户修改 Email 使用了这个邮箱地址。
13 | 如果您并没有访问过北辰博客或没有进行上述操作,请忽略这封邮件。您不需要退订或进行其他进一步的操作。
14 | ----------------------------------------------------------------------
15 | 帐号激活说明
16 | ----------------------------------------------------------------------
17 | 如果您是北辰电影院的新用户,或在修改您的注册 Email 时使用了本地址,我们需要对您的地址有效性进行验证以避免垃圾邮件或地址被滥用。
18 | 您只需点击下面的链接激活帐号即可:
19 |
20 | 感谢您的访问,祝您生活愉快!
21 | 此致
22 |
23 | 24 | 25 | -------------------------------------------------------------------------------- /src/main/resources/static/front/common/userheader.js: -------------------------------------------------------------------------------- 1 | Vue.component('user-head', { 2 | template: `
3 |
4 |
5 |
6 | 欢迎访问 电影订票购票系统 7 |
8 | 欢迎您:
9 | {{user.name}} 10 | 退出 11 | 收藏夹 12 |
13 |
14 |
15 |
16 |
17 | 18 | 电影订票购票系统 19 |
20 |
21 |
22 | ` 23 | }); 24 | -------------------------------------------------------------------------------- /src/main/resources/static/front/css/element/fonts/element-icons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/front/css/element/fonts/element-icons.ttf -------------------------------------------------------------------------------- /src/main/resources/static/front/css/element/fonts/element-icons.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/front/css/element/fonts/element-icons.woff -------------------------------------------------------------------------------- /src/main/resources/static/front/css/index.css: -------------------------------------------------------------------------------- 1 | .layui-carousel img{ 2 | width: 100%; 3 | height: 100%; 4 | } 5 | .access-item { 6 | width: 100%; 7 | height: 130px; 8 | background: #FFFFFF; 9 | border-radius: 4px; 10 | } 11 | .access-text { 12 | font-family: MicrosoftYaHei; 13 | font-size: 20px; 14 | color: #FFFFFF; 15 | padding: 10px; 16 | line-height: 26px; 17 | } 18 | .access-tips { 19 | font-family: MicrosoftYaHei; 20 | width: 150px; 21 | font-size: 12px; 22 | color: #FFFFFF; 23 | padding: 0 0 20px 10px; 24 | line-height: 20px; 25 | } 26 | 27 | -------------------------------------------------------------------------------- /src/main/resources/static/front/css/my.css: -------------------------------------------------------------------------------- 1 | /*去除默认样式*/ 2 | ::-webkit-scrollbar { 3 | width: 0; 4 | height: 1px 5 | } 6 | 7 | ::-webkit-scrollbar-thumb { 8 | border-radius: 5px; 9 | -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, .2); 10 | background: rgba(0, 0, 0, .2) 11 | } 12 | 13 | body, ul, li { 14 | margin: 0; 15 | padding: 0; 16 | } 17 | 18 | ul { 19 | list-style: none; 20 | } 21 | 22 | a { 23 | color: black; 24 | text-decoration: none; 25 | } 26 | 27 | a:hover { 28 | text-decoration: none; 29 | color: black; 30 | } 31 | 32 | /*正常的未被访问过的链接*/ 33 | a:link { 34 | text-decoration: none; 35 | 36 | } 37 | /*已经访问过的链接*/ 38 | a:visited { 39 | text-decoration: none; 40 | color: black; 41 | } 42 | /*鼠标划过(停留)的链接*/ 43 | a:hover { 44 | text-decoration: none; 45 | } 46 | /* 正在点击的链接,鼠标在元素上按下还没有松开*/ 47 | a:active { 48 | text-decoration: none; 49 | } 50 | /* 获得焦点的时候 鼠标松开时显示的颜色*/ 51 | a:focus { 52 | text-decoration: none; 53 | } 54 | 55 | /* 轮播图 */ 56 | .swiper-container { 57 | width: 100%; 58 | height: 350px; 59 | } 60 | 61 | .carousel-img { 62 | width: 100%; 63 | height: 100%; 64 | } 65 | 66 | li.active{ 67 | background-color: #2a6496; 68 | } -------------------------------------------------------------------------------- /src/main/resources/static/front/css/notice.css: -------------------------------------------------------------------------------- 1 | body { 2 | background-color: #EEEEEE; 3 | } 4 | .layui-card-header{ 5 | padding: 10px; 6 | } 7 | .notice-list-title { 8 | height: 50px; 9 | line-height: 50px; 10 | border-bottom: 1px dotted #E9E9E9; 11 | color: #333; 12 | font-weight: bold; 13 | font-size: 20px; 14 | } 15 | .notice-list-content { 16 | padding-top: 10px; 17 | color: #777; 18 | cursor: pointer; 19 | } 20 | .notice-title-time { 21 | position: absolute; 22 | right: 10px; 23 | bottom: 0; 24 | font-size: 16px; 25 | color: #BBBBBB; 26 | } -------------------------------------------------------------------------------- /src/main/resources/static/front/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/front/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /src/main/resources/static/front/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/front/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /src/main/resources/static/front/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/front/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /src/main/resources/static/front/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/front/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /src/main/resources/static/front/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/front/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /src/main/resources/static/front/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/front/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /src/main/resources/static/front/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/front/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /src/main/resources/static/front/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/front/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /src/main/resources/static/front/img/carousel/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/front/img/carousel/1.jpg -------------------------------------------------------------------------------- /src/main/resources/static/front/img/carousel/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/front/img/carousel/1.png -------------------------------------------------------------------------------- /src/main/resources/static/front/img/carousel/2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/front/img/carousel/2.jpg -------------------------------------------------------------------------------- /src/main/resources/static/front/img/carousel/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/front/img/carousel/2.png -------------------------------------------------------------------------------- /src/main/resources/static/front/img/carousel/3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/front/img/carousel/3.jpg -------------------------------------------------------------------------------- /src/main/resources/static/front/img/carousel/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/front/img/carousel/3.png -------------------------------------------------------------------------------- /src/main/resources/static/front/img/carousel/4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/front/img/carousel/4.jpg -------------------------------------------------------------------------------- /src/main/resources/static/front/img/carousel/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/front/img/carousel/4.png -------------------------------------------------------------------------------- /src/main/resources/static/front/img/carousel/5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/front/img/carousel/5.jpg -------------------------------------------------------------------------------- /src/main/resources/static/front/img/carousel/6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/front/img/carousel/6.jpg -------------------------------------------------------------------------------- /src/main/resources/static/front/img/carousel/7.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/front/img/carousel/7.jpg -------------------------------------------------------------------------------- /src/main/resources/static/front/img/file.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/front/img/file.jpg -------------------------------------------------------------------------------- /src/main/resources/static/front/img/goods/default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/front/img/goods/default.png -------------------------------------------------------------------------------- /src/main/resources/static/front/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/front/img/logo.png -------------------------------------------------------------------------------- /src/main/resources/static/front/img/logo1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/front/img/logo1.png -------------------------------------------------------------------------------- /src/main/resources/static/front/img/mali.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/src/main/resources/static/front/img/mali.png -------------------------------------------------------------------------------- /src/main/resources/static/front/js/my.js: -------------------------------------------------------------------------------- 1 | function personalPage() { 2 | let user = JSON.parse(localStorage.getItem("user")); 3 | if (!user) { 4 | alert('请登录'); 5 | } 6 | if (user && user.level && user.level === 1) { 7 | window.location = '/front/accountAdminInfo.html'; 8 | } 9 | if (user && user.level && user.level === 2) { 10 | window.location = '/front/accountUserInfo.html'; 11 | } 12 | 13 | } -------------------------------------------------------------------------------- /target/classes/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8888 3 | connection-timeout: 60000 4 | spring: 5 | datasource: 6 | driver-class-name: com.mysql.jdbc.Driver 7 | username: root 8 | password: 123456 9 | url: jdbc:mysql://localhost:3306/graduation_193_filmBuy?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false&serverTimezone=GMT%2b8 10 | thymeleaf: 11 | cache: false 12 | prefix: classpath:/static/ 13 | servlet: 14 | multipart: 15 | max-file-size: 100MB 16 | max-request-size: 100MB 17 | mail: 18 | protocol: smtp 19 | host: smtp.163.com 20 | port: 25 21 | username: 22 | password: 23 | default-encoding: utf-8 24 | properties: 25 | mail: 26 | debug: true 27 | 28 | mybatis: 29 | mapper-locations: classpath:mapper/*.xml 30 | type-aliases-package: com.example.entity 31 | 32 | 33 | 34 | pagehelper: 35 | helper-dialect: mysql 36 | reasonable: true 37 | support-methods-arguments: true 38 | params: count=countSql 39 | 40 | authority: 41 | info: 42 | logging: 43 | file: log/my.log 44 | -------------------------------------------------------------------------------- /target/classes/com/example/Application.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/Application.class -------------------------------------------------------------------------------- /target/classes/com/example/ClassUtils$Column.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/ClassUtils$Column.class -------------------------------------------------------------------------------- /target/classes/com/example/ClassUtils$Constant.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/ClassUtils$Constant.class -------------------------------------------------------------------------------- /target/classes/com/example/ClassUtils$SerializableFunction.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/ClassUtils$SerializableFunction.class -------------------------------------------------------------------------------- /target/classes/com/example/ClassUtils$Table.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/ClassUtils$Table.class -------------------------------------------------------------------------------- /target/classes/com/example/ClassUtils.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/ClassUtils.class -------------------------------------------------------------------------------- /target/classes/com/example/common/Result.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/common/Result.class -------------------------------------------------------------------------------- /target/classes/com/example/common/ResultCode.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/common/ResultCode.class -------------------------------------------------------------------------------- /target/classes/com/example/common/config/DateConfig$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/common/config/DateConfig$1.class -------------------------------------------------------------------------------- /target/classes/com/example/common/config/DateConfig$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/common/config/DateConfig$2.class -------------------------------------------------------------------------------- /target/classes/com/example/common/config/DateConfig$3.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/common/config/DateConfig$3.class -------------------------------------------------------------------------------- /target/classes/com/example/common/config/DateConfig$4.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/common/config/DateConfig$4.class -------------------------------------------------------------------------------- /target/classes/com/example/common/config/DateConfig$5.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/common/config/DateConfig$5.class -------------------------------------------------------------------------------- /target/classes/com/example/common/config/DateConfig$6.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/common/config/DateConfig$6.class -------------------------------------------------------------------------------- /target/classes/com/example/common/config/DateConfig.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/common/config/DateConfig.class -------------------------------------------------------------------------------- /target/classes/com/example/common/config/MyInterceptor.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/common/config/MyInterceptor.class -------------------------------------------------------------------------------- /target/classes/com/example/common/config/MyInterceptorConfig.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/common/config/MyInterceptorConfig.class -------------------------------------------------------------------------------- /target/classes/com/example/common/config/WebMvcConfig.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/common/config/WebMvcConfig.class -------------------------------------------------------------------------------- /target/classes/com/example/controller/AccountController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/controller/AccountController.class -------------------------------------------------------------------------------- /target/classes/com/example/controller/AdminInfoController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/controller/AdminInfoController.class -------------------------------------------------------------------------------- /target/classes/com/example/controller/AdvertiserInfoController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/controller/AdvertiserInfoController.class -------------------------------------------------------------------------------- /target/classes/com/example/controller/CartInfoController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/controller/CartInfoController.class -------------------------------------------------------------------------------- /target/classes/com/example/controller/CommentInfoController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/controller/CommentInfoController.class -------------------------------------------------------------------------------- /target/classes/com/example/controller/EchartsController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/controller/EchartsController.class -------------------------------------------------------------------------------- /target/classes/com/example/controller/GoodsInfoController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/controller/GoodsInfoController.class -------------------------------------------------------------------------------- /target/classes/com/example/controller/LinkInfoController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/controller/LinkInfoController.class -------------------------------------------------------------------------------- /target/classes/com/example/controller/MenuController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/controller/MenuController.class -------------------------------------------------------------------------------- /target/classes/com/example/controller/MessageInfoController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/controller/MessageInfoController.class -------------------------------------------------------------------------------- /target/classes/com/example/controller/NxSystemFileController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/controller/NxSystemFileController.class -------------------------------------------------------------------------------- /target/classes/com/example/controller/OrderInfoController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/controller/OrderInfoController.class -------------------------------------------------------------------------------- /target/classes/com/example/controller/SeatInfoController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/controller/SeatInfoController.class -------------------------------------------------------------------------------- /target/classes/com/example/controller/TypeInfoController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/controller/TypeInfoController.class -------------------------------------------------------------------------------- /target/classes/com/example/controller/UserInfoController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/controller/UserInfoController.class -------------------------------------------------------------------------------- /target/classes/com/example/dao/AdminInfoDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/dao/AdminInfoDao.class -------------------------------------------------------------------------------- /target/classes/com/example/dao/AdvertiserInfoDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/dao/AdvertiserInfoDao.class -------------------------------------------------------------------------------- /target/classes/com/example/dao/CartInfoDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/dao/CartInfoDao.class -------------------------------------------------------------------------------- /target/classes/com/example/dao/CommentInfoDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/dao/CommentInfoDao.class -------------------------------------------------------------------------------- /target/classes/com/example/dao/GoodsInfoDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/dao/GoodsInfoDao.class -------------------------------------------------------------------------------- /target/classes/com/example/dao/LinkInfoDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/dao/LinkInfoDao.class -------------------------------------------------------------------------------- /target/classes/com/example/dao/MessageInfoDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/dao/MessageInfoDao.class -------------------------------------------------------------------------------- /target/classes/com/example/dao/NxSystemFileInfoDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/dao/NxSystemFileInfoDao.class -------------------------------------------------------------------------------- /target/classes/com/example/dao/OrderGoodsRelDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/dao/OrderGoodsRelDao.class -------------------------------------------------------------------------------- /target/classes/com/example/dao/OrderInfoDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/dao/OrderInfoDao.class -------------------------------------------------------------------------------- /target/classes/com/example/dao/SeatInfoDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/dao/SeatInfoDao.class -------------------------------------------------------------------------------- /target/classes/com/example/dao/TypeInfoDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/dao/TypeInfoDao.class -------------------------------------------------------------------------------- /target/classes/com/example/dao/UserInfoDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/dao/UserInfoDao.class -------------------------------------------------------------------------------- /target/classes/com/example/entity/Account.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/entity/Account.class -------------------------------------------------------------------------------- /target/classes/com/example/entity/AdminInfo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/entity/AdminInfo.class -------------------------------------------------------------------------------- /target/classes/com/example/entity/AdvertiserInfo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/entity/AdvertiserInfo.class -------------------------------------------------------------------------------- /target/classes/com/example/entity/AuthorityInfo$Model.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/entity/AuthorityInfo$Model.class -------------------------------------------------------------------------------- /target/classes/com/example/entity/AuthorityInfo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/entity/AuthorityInfo.class -------------------------------------------------------------------------------- /target/classes/com/example/entity/CartInfo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/entity/CartInfo.class -------------------------------------------------------------------------------- /target/classes/com/example/entity/CommentInfo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/entity/CommentInfo.class -------------------------------------------------------------------------------- /target/classes/com/example/entity/GoodsInfo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/entity/GoodsInfo.class -------------------------------------------------------------------------------- /target/classes/com/example/entity/LinkInfo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/entity/LinkInfo.class -------------------------------------------------------------------------------- /target/classes/com/example/entity/MessageInfo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/entity/MessageInfo.class -------------------------------------------------------------------------------- /target/classes/com/example/entity/NxSystemFileInfo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/entity/NxSystemFileInfo.class -------------------------------------------------------------------------------- /target/classes/com/example/entity/OrderGoodsRel.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/entity/OrderGoodsRel.class -------------------------------------------------------------------------------- /target/classes/com/example/entity/OrderInfo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/entity/OrderInfo.class -------------------------------------------------------------------------------- /target/classes/com/example/entity/SeatInfo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/entity/SeatInfo.class -------------------------------------------------------------------------------- /target/classes/com/example/entity/TypeInfo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/entity/TypeInfo.class -------------------------------------------------------------------------------- /target/classes/com/example/entity/UserInfo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/entity/UserInfo.class -------------------------------------------------------------------------------- /target/classes/com/example/exception/CustomException.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/exception/CustomException.class -------------------------------------------------------------------------------- /target/classes/com/example/exception/GlobalExceptionHandler.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/exception/GlobalExceptionHandler.class -------------------------------------------------------------------------------- /target/classes/com/example/service/AdminInfoService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/service/AdminInfoService.class -------------------------------------------------------------------------------- /target/classes/com/example/service/AdvertiserInfoService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/service/AdvertiserInfoService.class -------------------------------------------------------------------------------- /target/classes/com/example/service/CartInfoService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/service/CartInfoService.class -------------------------------------------------------------------------------- /target/classes/com/example/service/CommentInfoService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/service/CommentInfoService.class -------------------------------------------------------------------------------- /target/classes/com/example/service/GoodsInfoService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/service/GoodsInfoService.class -------------------------------------------------------------------------------- /target/classes/com/example/service/LinkInfoService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/service/LinkInfoService.class -------------------------------------------------------------------------------- /target/classes/com/example/service/MailService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/service/MailService.class -------------------------------------------------------------------------------- /target/classes/com/example/service/MessageInfoService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/service/MessageInfoService.class -------------------------------------------------------------------------------- /target/classes/com/example/service/NxSystemFileInfoService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/service/NxSystemFileInfoService.class -------------------------------------------------------------------------------- /target/classes/com/example/service/OrderInfoService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/service/OrderInfoService.class -------------------------------------------------------------------------------- /target/classes/com/example/service/SeatInfoService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/service/SeatInfoService.class -------------------------------------------------------------------------------- /target/classes/com/example/service/TypeInfoService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/service/TypeInfoService.class -------------------------------------------------------------------------------- /target/classes/com/example/service/UserInfoService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/service/UserInfoService.class -------------------------------------------------------------------------------- /target/classes/com/example/vo/AdminInfoVo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/vo/AdminInfoVo.class -------------------------------------------------------------------------------- /target/classes/com/example/vo/AdvertiserInfoVo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/vo/AdvertiserInfoVo.class -------------------------------------------------------------------------------- /target/classes/com/example/vo/EchartsData$Data.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/vo/EchartsData$Data.class -------------------------------------------------------------------------------- /target/classes/com/example/vo/EchartsData$Series.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/vo/EchartsData$Series.class -------------------------------------------------------------------------------- /target/classes/com/example/vo/EchartsData.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/vo/EchartsData.class -------------------------------------------------------------------------------- /target/classes/com/example/vo/LinkInfoVo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/vo/LinkInfoVo.class -------------------------------------------------------------------------------- /target/classes/com/example/vo/MessageInfoVo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/vo/MessageInfoVo.class -------------------------------------------------------------------------------- /target/classes/com/example/vo/UserInfoVo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/com/example/vo/UserInfoVo.class -------------------------------------------------------------------------------- /target/classes/mapper/AdminInfoMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | delete from `admin_info` where email = #{email} 6 | 7 | 8 | 9 | 15 | 16 | 19 | 20 | 29 | 32 | 35 | 38 | 41 | 42 | -------------------------------------------------------------------------------- /target/classes/mapper/AdvertiserInfoMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 13 | 14 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /target/classes/mapper/CartInfoMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 10 | 14 | 17 | 18 | -------------------------------------------------------------------------------- /target/classes/mapper/CommentInfoMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 19 | 20 | 31 | 32 | 36 | -------------------------------------------------------------------------------- /target/classes/mapper/GoodsInfoMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 18 | 19 | 25 | 26 | -------------------------------------------------------------------------------- /target/classes/mapper/LinkInfoMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 14 | 15 | 20 | 21 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /target/classes/mapper/MessageInfoMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 14 | 15 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /target/classes/mapper/NxSystemFileInfoMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 13 | 14 | 18 | 19 | -------------------------------------------------------------------------------- /target/classes/mapper/OrderGoodsRelMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | delete from order_goods_rel where goodsId = #{goodsId} and orderId = #{orderId} 7 | 8 | 9 | 10 | delete from order_goods_rel where orderId = #{orderId} 11 | 12 | 13 | 14 | 17 | -------------------------------------------------------------------------------- /target/classes/mapper/OrderInfoMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | delete from order_info where id = #{orderId} 6 | 7 | 8 | 11 | 12 | 25 | 26 | 29 | 30 | -------------------------------------------------------------------------------- /target/classes/mapper/TypeInfoMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | -------------------------------------------------------------------------------- /target/classes/mapper/UserInfoMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | delete from `user_info` where email = #{email} 6 | 7 | 8 | 14 | 15 | 18 | 19 | 28 | 31 | 34 | 37 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /target/classes/static/end/css/element/fonts/element-icons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/end/css/element/fonts/element-icons.ttf -------------------------------------------------------------------------------- /target/classes/static/end/css/element/fonts/element-icons.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/end/css/element/fonts/element-icons.woff -------------------------------------------------------------------------------- /target/classes/static/end/font-awesome/fonts/fontawesome-webfontba72.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/end/font-awesome/fonts/fontawesome-webfontba72.eot -------------------------------------------------------------------------------- /target/classes/static/end/font-awesome/fonts/fontawesome-webfontba72.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/end/font-awesome/fonts/fontawesome-webfontba72.ttf -------------------------------------------------------------------------------- /target/classes/static/end/font-awesome/fonts/fontawesome-webfontba72.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/end/font-awesome/fonts/fontawesome-webfontba72.woff -------------------------------------------------------------------------------- /target/classes/static/end/font-awesome/fonts/fontawesome-webfontd41d.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/end/font-awesome/fonts/fontawesome-webfontd41d.eot -------------------------------------------------------------------------------- /target/classes/static/end/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/end/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /target/classes/static/end/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/end/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /target/classes/static/end/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/end/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /target/classes/static/end/fonts/glyphicons-halflings-regulard41d.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/end/fonts/glyphicons-halflings-regulard41d.eot -------------------------------------------------------------------------------- /target/classes/static/end/img/bg-img.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/end/img/bg-img.jpg -------------------------------------------------------------------------------- /target/classes/static/end/img/head.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/end/img/head.jpg -------------------------------------------------------------------------------- /target/classes/static/end/js/custom-scripts.js: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------ 2 | Author : www.webthemez.com 3 | License: Commons Attribution 3.0 4 | http://creativecommons.org/licenses/by/3.0/ 5 | --------------------------------------------------------- */ 6 | 7 | (function ($) { 8 | "use strict"; 9 | var mainApp = { 10 | 11 | initFunction: function () { 12 | /*MENU 13 | ------------------------------------*/ 14 | $('#main-menu').metisMenu(); 15 | 16 | $(window).bind("load resize", function () { 17 | if ($(this).width() < 768) { 18 | $('div.sidebar-collapse').addClass('collapse') 19 | } else { 20 | $('div.sidebar-collapse').removeClass('collapse') 21 | } 22 | }); 23 | }, 24 | 25 | initialization: function () { 26 | mainApp.initFunction(); 27 | 28 | } 29 | }; 30 | // Initializing /// 31 | 32 | $(document).ready(function () { 33 | mainApp.initFunction(); 34 | }); 35 | 36 | }(jQuery)); 37 | -------------------------------------------------------------------------------- /target/classes/static/end/js/jquery.metisMenu.js: -------------------------------------------------------------------------------- 1 | ;(function ($, window, document, undefined) { 2 | 3 | var pluginName = "metisMenu", 4 | defaults = { 5 | toggle: true 6 | }; 7 | 8 | function Plugin(element, options) { 9 | this.element = element; 10 | this.settings = $.extend({}, defaults, options); 11 | this._defaults = defaults; 12 | this._name = pluginName; 13 | this.init(); 14 | } 15 | 16 | Plugin.prototype = { 17 | init: function () { 18 | 19 | var $this = $(this.element), 20 | $toggle = this.settings.toggle; 21 | 22 | $this.find('li.active').has('ul').children('ul').addClass('collapse in'); 23 | $this.find('li').not('.active').has('ul').children('ul').addClass('collapse'); 24 | 25 | $this.find('li').has('ul').children('a').on('click', function (e) { 26 | e.preventDefault(); 27 | 28 | $(this).parent('li').toggleClass('active').children('ul').collapse('toggle'); 29 | 30 | if ($toggle) { 31 | $(this).parent('li').siblings().removeClass('active').children('ul.in').collapse('hide'); 32 | } 33 | }); 34 | } 35 | }; 36 | 37 | $.fn[ pluginName ] = function (options) { 38 | return this.each(function () { 39 | if (!$.data(this, "plugin_" + pluginName)) { 40 | $.data(this, "plugin_" + pluginName, new Plugin(this, options)); 41 | } 42 | }); 43 | }; 44 | 45 | })(jQuery, window, document); 46 | -------------------------------------------------------------------------------- /target/classes/static/end/js/my.js: -------------------------------------------------------------------------------- 1 | function checkValid(entity) { 2 | if (!entity.name || entity.name === "") { 3 | alert("name不能为空"); 4 | return false; 5 | } 6 | if (entity.phone && entity.phone !== "") { 7 | let reg = /^[1][3,4,5,7,8][0-9]{9}$/; 8 | if (!reg.test(entity.phone)) { 9 | alert("请输入正确的手机号"); 10 | return false; 11 | } 12 | } 13 | if (entity.email && entity.email !== "") { 14 | let reg = /^([a-zA-Z]|[0-9])(\w|\-)+@[a-zA-Z0-9]+\.([a-zA-Z]{2,4})$/; 15 | if (!reg.test(entity.email)) { 16 | alert("请输入正确的邮箱"); 17 | return false; 18 | } 19 | } 20 | if (entity.cardId && entity.cardId !== "") { 21 | let reg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/; 22 | if (!reg.test(entity.cardId)) { 23 | alert("请输入正确的身份证号"); 24 | return false; 25 | } 26 | } 27 | return true; 28 | } 29 | 30 | function personalPage() { 31 | let user = JSON.parse(localStorage.getItem("user")); 32 | if (user && user.level && user.level === 1) { 33 | window.location = '/end/page/accountAdminInfo.html'; 34 | } 35 | if (user && user.level && user.level === 2) { 36 | window.location = '/end/page/accountUserInfo.html'; 37 | } 38 | 39 | } 40 | 41 | function logout() { 42 | axios.get('/logout').then(res => { 43 | if (res.data.code === 0) { 44 | window.location = '/end/page/login.html'; 45 | } else { 46 | alert(res.data.msg); 47 | } 48 | }) 49 | } 50 | 51 | /** 52 | * 弹出式提示框,默认1.2秒自动消失 53 | * @param message 提示信息 54 | * @param style 提示样式,有alert-success、alert-danger、alert-warning、alert-info 55 | * @param time 消失时间 56 | */ 57 | let prompt = function (message, style, time) 58 | { 59 | style = (style === undefined) ? 'alert-success' : style; 60 | time = (time === undefined) ? 1200 : time; 61 | $('
') 62 | .appendTo('body') 63 | .addClass('alert ' + style) 64 | .html(message) 65 | .show() 66 | .delay(time) 67 | .fadeOut(); 68 | }; 69 | 70 | // 成功提示 71 | let success_prompt = function(message, time) 72 | { 73 | prompt(message, 'alert-success', time); 74 | }; 75 | 76 | // 失败提示 77 | let fail_prompt = function(message, time) 78 | { 79 | prompt(message, 'alert-danger', time); 80 | }; 81 | 82 | // 提醒 83 | let warning_prompt = function(message, time) 84 | { 85 | prompt(message, 'alert-warning', time); 86 | }; 87 | 88 | // 信息提示 89 | let info_prompt = function(message, time) 90 | { 91 | prompt(message, 'alert-info', time); 92 | }; 93 | -------------------------------------------------------------------------------- /target/classes/static/file/011641977405077.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/file/011641977405077.jpg -------------------------------------------------------------------------------- /target/classes/static/file/111641985683709.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/file/111641985683709.jpg -------------------------------------------------------------------------------- /target/classes/static/file/11641026958290.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/file/11641026958290.jpg -------------------------------------------------------------------------------- /target/classes/static/file/21641986757844.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/file/21641986757844.jpg -------------------------------------------------------------------------------- /target/classes/static/file/51641984831762.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/file/51641984831762.jpg -------------------------------------------------------------------------------- /target/classes/static/file/file-info: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/file/file-info -------------------------------------------------------------------------------- /target/classes/static/file/十二生肖1604736315894.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/file/十二生肖1604736315894.jpg -------------------------------------------------------------------------------- /target/classes/static/file/叶问4(1)1604732022840.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/file/叶问4(1)1604732022840.jpg -------------------------------------------------------------------------------- /target/classes/static/file/叶问4(1)1604732581709.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/file/叶问4(1)1604732581709.jpg -------------------------------------------------------------------------------- /target/classes/static/file/急先锋1604736612839.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/file/急先锋1604736612839.jpg -------------------------------------------------------------------------------- /target/classes/static/file/战狼21604735890421.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/file/战狼21604735890421.jpg -------------------------------------------------------------------------------- /target/classes/static/file/杀破狼1604731993972.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/file/杀破狼1604731993972.jpg -------------------------------------------------------------------------------- /target/classes/static/file/破局1604736792241.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/file/破局1604736792241.jpg -------------------------------------------------------------------------------- /target/classes/static/file/第一次1604732534032.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/file/第一次1604732534032.jpg -------------------------------------------------------------------------------- /target/classes/static/file/美人鱼1604739990102.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/file/美人鱼1604739990102.jpg -------------------------------------------------------------------------------- /target/classes/static/front/active-account.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 激活页面 7 | 8 | 9 |
10 | Email 地址验证
11 | 这封信是由北辰电影院发送的。
12 | 您收到这封邮件,是由于在北辰博客进行了新用户注册,或用户修改 Email 使用了这个邮箱地址。
13 | 如果您并没有访问过北辰博客或没有进行上述操作,请忽略这封邮件。您不需要退订或进行其他进一步的操作。
14 | ----------------------------------------------------------------------
15 | 帐号激活说明
16 | ----------------------------------------------------------------------
17 | 如果您是北辰电影院的新用户,或在修改您的注册 Email 时使用了本地址,我们需要对您的地址有效性进行验证以避免垃圾邮件或地址被滥用。
18 | 您只需点击下面的链接激活帐号即可:
19 |
20 | 感谢您的访问,祝您生活愉快!
21 | 此致
22 |
23 | 24 | 25 | -------------------------------------------------------------------------------- /target/classes/static/front/common/userheader.js: -------------------------------------------------------------------------------- 1 | Vue.component('user-head', { 2 | template: `
3 |
4 |
5 |
6 | 欢迎访问 电影订票购票系统 7 |
8 | 欢迎您:
9 | {{user.name}} 10 | 退出 11 | 收藏夹 12 |
13 |
14 |
15 |
16 |
17 | 18 | 电影订票购票系统 19 |
20 |
21 |
22 | ` 23 | }); 24 | -------------------------------------------------------------------------------- /target/classes/static/front/css/element/fonts/element-icons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/front/css/element/fonts/element-icons.ttf -------------------------------------------------------------------------------- /target/classes/static/front/css/element/fonts/element-icons.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/front/css/element/fonts/element-icons.woff -------------------------------------------------------------------------------- /target/classes/static/front/css/index.css: -------------------------------------------------------------------------------- 1 | .layui-carousel img{ 2 | width: 100%; 3 | height: 100%; 4 | } 5 | .access-item { 6 | width: 100%; 7 | height: 130px; 8 | background: #FFFFFF; 9 | border-radius: 4px; 10 | } 11 | .access-text { 12 | font-family: MicrosoftYaHei; 13 | font-size: 20px; 14 | color: #FFFFFF; 15 | padding: 10px; 16 | line-height: 26px; 17 | } 18 | .access-tips { 19 | font-family: MicrosoftYaHei; 20 | width: 150px; 21 | font-size: 12px; 22 | color: #FFFFFF; 23 | padding: 0 0 20px 10px; 24 | line-height: 20px; 25 | } 26 | 27 | -------------------------------------------------------------------------------- /target/classes/static/front/css/my.css: -------------------------------------------------------------------------------- 1 | /*去除默认样式*/ 2 | ::-webkit-scrollbar { 3 | width: 0; 4 | height: 1px 5 | } 6 | 7 | ::-webkit-scrollbar-thumb { 8 | border-radius: 5px; 9 | -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, .2); 10 | background: rgba(0, 0, 0, .2) 11 | } 12 | 13 | body, ul, li { 14 | margin: 0; 15 | padding: 0; 16 | } 17 | 18 | ul { 19 | list-style: none; 20 | } 21 | 22 | a { 23 | color: black; 24 | text-decoration: none; 25 | } 26 | 27 | a:hover { 28 | text-decoration: none; 29 | color: black; 30 | } 31 | 32 | /*正常的未被访问过的链接*/ 33 | a:link { 34 | text-decoration: none; 35 | 36 | } 37 | /*已经访问过的链接*/ 38 | a:visited { 39 | text-decoration: none; 40 | color: black; 41 | } 42 | /*鼠标划过(停留)的链接*/ 43 | a:hover { 44 | text-decoration: none; 45 | } 46 | /* 正在点击的链接,鼠标在元素上按下还没有松开*/ 47 | a:active { 48 | text-decoration: none; 49 | } 50 | /* 获得焦点的时候 鼠标松开时显示的颜色*/ 51 | a:focus { 52 | text-decoration: none; 53 | } 54 | 55 | /* 轮播图 */ 56 | .swiper-container { 57 | width: 100%; 58 | height: 350px; 59 | } 60 | 61 | .carousel-img { 62 | width: 100%; 63 | height: 100%; 64 | } 65 | 66 | li.active{ 67 | background-color: #2a6496; 68 | } -------------------------------------------------------------------------------- /target/classes/static/front/css/notice.css: -------------------------------------------------------------------------------- 1 | body { 2 | background-color: #EEEEEE; 3 | } 4 | .layui-card-header{ 5 | padding: 10px; 6 | } 7 | .notice-list-title { 8 | height: 50px; 9 | line-height: 50px; 10 | border-bottom: 1px dotted #E9E9E9; 11 | color: #333; 12 | font-weight: bold; 13 | font-size: 20px; 14 | } 15 | .notice-list-content { 16 | padding-top: 10px; 17 | color: #777; 18 | cursor: pointer; 19 | } 20 | .notice-title-time { 21 | position: absolute; 22 | right: 10px; 23 | bottom: 0; 24 | font-size: 16px; 25 | color: #BBBBBB; 26 | } -------------------------------------------------------------------------------- /target/classes/static/front/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/front/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /target/classes/static/front/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/front/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /target/classes/static/front/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/front/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /target/classes/static/front/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/front/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /target/classes/static/front/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/front/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /target/classes/static/front/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/front/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /target/classes/static/front/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/front/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /target/classes/static/front/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/front/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /target/classes/static/front/img/carousel/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/front/img/carousel/1.jpg -------------------------------------------------------------------------------- /target/classes/static/front/img/carousel/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/front/img/carousel/1.png -------------------------------------------------------------------------------- /target/classes/static/front/img/carousel/2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/front/img/carousel/2.jpg -------------------------------------------------------------------------------- /target/classes/static/front/img/carousel/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/front/img/carousel/2.png -------------------------------------------------------------------------------- /target/classes/static/front/img/carousel/3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/front/img/carousel/3.jpg -------------------------------------------------------------------------------- /target/classes/static/front/img/carousel/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/front/img/carousel/3.png -------------------------------------------------------------------------------- /target/classes/static/front/img/carousel/4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/front/img/carousel/4.jpg -------------------------------------------------------------------------------- /target/classes/static/front/img/carousel/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/front/img/carousel/4.png -------------------------------------------------------------------------------- /target/classes/static/front/img/carousel/5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/front/img/carousel/5.jpg -------------------------------------------------------------------------------- /target/classes/static/front/img/carousel/6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/front/img/carousel/6.jpg -------------------------------------------------------------------------------- /target/classes/static/front/img/carousel/7.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/front/img/carousel/7.jpg -------------------------------------------------------------------------------- /target/classes/static/front/img/file.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/front/img/file.jpg -------------------------------------------------------------------------------- /target/classes/static/front/img/goods/default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/front/img/goods/default.png -------------------------------------------------------------------------------- /target/classes/static/front/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/front/img/logo.png -------------------------------------------------------------------------------- /target/classes/static/front/img/logo1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/front/img/logo1.png -------------------------------------------------------------------------------- /target/classes/static/front/img/mali.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/MovieTicketBookingAndPurchaseManagementSystem/0c80475e1e8e5dc87e34f371c0cb4faed727c8d7/target/classes/static/front/img/mali.png -------------------------------------------------------------------------------- /target/classes/static/front/js/my.js: -------------------------------------------------------------------------------- 1 | function personalPage() { 2 | let user = JSON.parse(localStorage.getItem("user")); 3 | if (!user) { 4 | alert('请登录'); 5 | } 6 | if (user && user.level && user.level === 1) { 7 | window.location = '/front/accountAdminInfo.html'; 8 | } 9 | if (user && user.level && user.level === 2) { 10 | window.location = '/front/accountUserInfo.html'; 11 | } 12 | 13 | } --------------------------------------------------------------------------------