基于javaweb和mysql的springboot电影院管理系统(java+springboot+vue+elementui+layui+mysql)
私信源码获取及调试交流
私信源码获取及调试交流
运行环境
Java≥8、MySQL≥5.7、Node.js≥14
开发工具
后端:eclipse/idea/myeclipse/sts等均可配置运行
前端:WebStorm/VSCode/HBuilderX等均可
适用
课程设计,大作业,毕业设计,项目练习,学习演示等
功能说明
基于javaweb的SpringBoot电影院管理系统(java+springboot+vue+elementui+layui+mysql)
项目介绍
基于SpringBoot Vue电影院系统
角色:前端购票用户 后台管理员 后台工作人员
首页 登录 注册 图片轮播 正在热播列表 热门榜单Top10 电影分类 按类型 地区展示 搜索 活动 留言 评价客服 购买电影票 选座购买 评分 个人中心 基本设置 购物车 我的订单
后台管理 验证码 登录 电影列表管理 院线排片管理 新增电影 轮播海报管理 用户管理 订单管理 异常订单管理 员工列表 每日工作 新增员工 Api接口管理
环境需要
1.运行环境:最好是java jdk 1.8,我们在这个平台上运行的。其他版本理论上也可以。 2.IDE环境:IDEA,Eclipse,Myeclipse都可以。推荐IDEA; 3.硬件环境:windows 7/8/10 1G内存以上;或者 Mac OS; 4.数据库:MySql 5.7/8.0版本均可; 5.是否Maven项目:是;
技术栈
后端:SpringBoot+Mybaits
前端:layui+Vue+ELementUI
使用说明
项目运行: 1. 使用Navicat或者其它工具,在mysql中创建对应sql文件名称的数据库,并导入项目的sql文件; 2. 使用IDEA/Eclipse/MyEclipse导入项目,导入成功后请执行maven clean;maven install命令,然后运行; 3. 将项目中application.yml配置文件中的数据库配置改为自己的配置; 4. 运行项目,控制台提示运行成功后再去运行前端项目; 5. 管理员用户名密码:admin/admin 普通用户名密码:user/123456
文档介绍(系统概述、研究背景、目的和意义、国内外研究现状、springboot框架介绍、Vue前端框架、Mysql数据库、开发环境、系统开发体系结构、系统需求分析、可行性分析、经济可行性、技术可行性、操作可行性、业务流程图、功能性需求、非功能性需求、开发技术简介、开发工具简介、开发环境简介、系统总体设计、系统总体功能设计、角色说明):
影院首页展示、排行榜展示、正在热播电影介绍:
电影详情介绍选票方式:
影院所有电影展示列表:
座位选择可选座位、已售座位、已选座位:
购物车详情介绍:
后台管理介绍(影视管理、电影列表、院线拍片、新增电影、轮播海报、用户管理、用户列表、订单管理、订单列表、异常订单、员工管理、员工列表、每日工作):
后台登录页面角色(用户名、密码、角色的选择):
客服的管理功能(影院留言、电话回访、活动安排、信息统计、我的评价、个人设置):
if(goodsList.size()>8)
goodsList=goodsList.subList(0, 8);
req.setAttribute("goodsList", goodsList);
req.getRequestDispatcher("site/goods/goodsAll.jsp").forward(req, res);
public void goodsByCatelog(HttpServletRequest req,HttpServletResponse res) throws ServletException, IOException
String catelog_id=req.getParameter("catelog_id");
req.setAttribute("goodsList", liuService.goodsByCatelog(catelog_id));
req.getRequestDispatcher("site/goods/goodsByCatelog.jsp").forward(req, res);
public void goodsDetailQian(HttpServletRequest req,HttpServletResponse res) throws ServletException, IOException
String id=req.getParameter("id");
int shichangjia=Integer.parseInt(req.getParameter("shichangjia"));
int tejia=Integer.parseInt(req.getParameter("shichangjia"));
String del="no";
String sql="insert into t_goods(id,fangyingshi,catelog_id,mingcheng,jieshao,fujian,shichangjia,tejia,del) " +
"values(?,?,?,?,?,?,?,?,?)";
Object[] params={id,fangyingshi,catelog_id,mingcheng,jieshao,fujian,shichangjia,tejia,del};
DB mydb=new DB();
mydb.doPstm(sql, params);
mydb.closed();
req.setAttribute("msg", "操作成功");
String targetURL = "/common/msg.jsp";
dispatch(targetURL, req, res);
public void goodsMana(HttpServletRequest req,HttpServletResponse res) throws ServletException, IOException
mydb.closed();
req.setAttribute("msg", "订单受理完毕");
String targetURL = "/common/msg.jsp";
dispatch(targetURL, req, res);
public void dispatch(String targetURI,HttpServletRequest request,HttpServletResponse response)
RequestDispatcher dispatch = getServletContext().getRequestDispatcher(targetURI);
try
dispatch.forward(request, response);
return;
catch (ServletException e)
e.printStackTrace();
Object[] params={id,loginname,loginpw,name,del};
DB mydb=new DB();
mydb.doPstm(sql, params);
mydb.closed();
req.setAttribute("message", "注册成功,请登录");
req.setAttribute("path", "site/default.jsp");
String targetURL = "/common/success.jsp";
dispatch(targetURL, req, res);
public void userLogout(HttpServletRequest req,HttpServletResponse res) throws ServletException, IOException
HttpSession session=req.getSession();
session.setAttribute("userType", null);
session.setAttribute("user", null);
req.setAttribute("message", "成功退出系统");
goodsMana(req, res);
if(type.endsWith("goodsDel"))
goodsDel(req, res);
if(type.endsWith("goodsDetailHou"))
goodsDetailHou(req, res);
if(type.endsWith("goodsAll"))
goodsAll(req, res);
if(type.endsWith("goodsByCatelog"))
goodsByCatelog(req, res);
if(type.endsWith("goodsDetailQian"))
goodsDetailQian(req, res);
req.setAttribute("goods", liuService.getGoods(id));
req.getRequestDispatcher("admin/goods/goodsDetailHou.jsp").forward(req, res);
public void goodsAll(HttpServletRequest req,HttpServletResponse res) throws ServletException, IOException
List goodsList=new ArrayList();
//String sql="select * from t_goods where del='no' and fangyingshi >? order by fangyingshi desc";
String sql="select * from t_goods where del='no' order by fangyingshi desc";
Object[] params={new SimpleDateFormat("yyyy-MM-dd").format(new Date())};
DB mydb=new DB();
try
mydb.doPstm(sql, null);
ResultSet rs=mydb.getRs();
try
mydb.doPstm(sql, params);
ResultSet rs=mydb.getRs();
while(rs.next())
Tgoods goods=new Tgoods();
goods.setId(rs.getString("id"));
goods.setFangyingshi(rs.getString("fangyingshi"));
goods.setCatelog_id(rs.getString("catelog_id"));
goods.setMingcheng(rs.getString("mingcheng"));
goods.setJieshao(rs.getString("jieshao"));
goods.setFujian(rs.getString("fujian"));
goods.setShichangjia(rs.getInt("shichangjia"));
goods.setTejia(rs.getInt("tejia"));
public void userEditMe(HttpServletRequest req,HttpServletResponse res)
String id=req.getParameter("id");
String loginname=req.getParameter("loginname");
String loginpw=req.getParameter("loginpw");
String name=req.getParameter("name");
String sql="update t_user set loginname=?,loginpw=?,name=? where id=?";
Object[] params={loginname,loginpw,name,id};
DB mydb=new DB();
mydb.doPstm(sql, params);
mydb.closed();
req.setAttribute("message", "修改成功,重新等后生效");
req.setAttribute("path", "site/default.jsp");
String id=String.valueOf(new Date().getTime());
String fangyingshi=req.getParameter("fangyingshi");
String catelog_id=req.getParameter("catelog_id");
String mingcheng=req.getParameter("mingcheng");
String jieshao=req.getParameter("jieshao");
String fujian=req.getParameter("fujian");
int shichangjia=Integer.parseInt(req.getParameter("shichangjia"));
int tejia=Integer.parseInt(req.getParameter("shichangjia"));
String del="no";
String sql="insert into t_goods(id,fangyingshi,catelog_id,mingcheng,jieshao,fujian,shichangjia,tejia,del) " +
"values(?,?,?,?,?,?,?,?,?)";
Object[] params={id,fangyingshi,catelog_id,mingcheng,jieshao,fujian,shichangjia,tejia,del};
DB mydb=new DB();
mydb.doPstm(sql, params);
dispatch(targetURL, req, res);
public void orderSubmit(HttpServletRequest req,HttpServletResponse res) throws ServletException, IOException
String songhuodizhi=req.getParameter("songhuodizhi");
String fukuanfangshi=req.getParameter("fukuanfangshi");
HttpSession session=req.getSession();
Cart cart =(Cart)session.getAttribute("cart");
Tuser user=(Tuser)session.getAttribute("user");
Torder order=new Torder();
order.setId(String.valueOf(new Date().getTime()));
order.setBianhao(new SimpleDateFormat("yyyyMMddhhmmss").format(new Date()));
order.setShijian(new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format(new Date()));
order.setZhuangtai("no");
Cart cart =(Cart)session.getAttribute("cart");
cart.addGoods(goods_id, orderItem);
session.setAttribute("cart", cart);
req.setAttribute("message", "操作成功");
req.setAttribute("path", "site/cart/mycart.jsp");
String targetURL = "/common/success.jsp";
dispatch(targetURL, req, res);
public void orderSubmit(HttpServletRequest req,HttpServletResponse res) throws ServletException, IOException
String songhuodizhi=req.getParameter("songhuodizhi");
String fukuanfangshi=req.getParameter("fukuanfangshi");
HttpSession session=req.getSession();
Cart cart =(Cart)session.getAttribute("cart");
Tuser user=(Tuser)session.getAttribute("user");
DB mydb=new DB();
mydb.doPstm(sql, params);
mydb.closed();
req.setAttribute("msg", "订单受理完毕");
String targetURL = "/common/msg.jsp";
dispatch(targetURL, req, res);
public void dispatch(String targetURI,HttpServletRequest request,HttpServletResponse response)
RequestDispatcher dispatch = getServletContext().getRequestDispatcher(targetURI);
try
dispatch.forward(request, response);
return;
catch (ServletException e)
e.printStackTrace();
int goods_quantity=orderItem.getGoods_quantity();
liuService.saveOrderItem(id, order_id, goods_id, goods_quantity);
liuService.updateGoodsKucun(goods_id, goods_quantity);
cart.getItems().clear();
session.setAttribute("cart", cart);
req.setAttribute("order", order);
req.getRequestDispatcher("site/order/orderSubmit.jsp").forward(req, res);
public void myorder(HttpServletRequest req,HttpServletResponse res) throws ServletException, IOException
HttpSession session=req.getSession();
Tuser user=(Tuser)session.getAttribute("user");
req.setAttribute("orderList", liuService.orderList(user.getId()));
mydb.doPstm(sql, params);
mydb.closed();
req.setAttribute("msg", "回复完毕完毕");
String targetURL = "/common/msg.jsp";
dispatch(targetURL, req, res);
public void liuyanAll(HttpServletRequest req,HttpServletResponse res) throws ServletException, IOException
List liuyanList=new ArrayList();
String sql="select * from t_liuyan order by liuyanshi";
Object[] params={};
DB mydb=new DB();
try
mydb.doPstm(sql, params);
ResultSet rs=mydb.getRs();
while(rs.next())
if(type.endsWith("goodsDetailQian"))
goodsDetailQian(req, res);
public void goodsAdd(HttpServletRequest req,HttpServletResponse res)
String id=String.valueOf(new Date().getTime());
String fangyingshi=req.getParameter("fangyingshi");
String catelog_id=req.getParameter("catelog_id");
String mingcheng=req.getParameter("mingcheng");
String jieshao=req.getParameter("jieshao");
String fujian=req.getParameter("fujian");
int shichangjia=Integer.parseInt(req.getParameter("shichangjia"));
int tejia=Integer.parseInt(req.getParameter("shichangjia"));
String del="no";
public void liuyanHuifu(HttpServletRequest req,HttpServletResponse res)
String huifu=req.getParameter("huifu");
String huifushi=new SimpleDateFormat("yyyy-MM-dd HH:mm").format(new Date());
int id=Integer.parseInt(req.getParameter("id"));
String sql="update t_liuyan set huifu=?,huifushi=? where id=?";
Object[] params={huifu,huifushi,id};
DB mydb=new DB();
mydb.doPstm(sql, params);
mydb.closed();
req.setAttribute("msg", "回复完毕完毕");
String targetURL = "/common/msg.jsp";
dispatch(targetURL, req, res);
rs.close();
catch(Exception e)
e.printStackTrace();
mydb.closed();
return liuyan;
public void dispatch(String targetURI,HttpServletRequest request,HttpServletResponse response)
RequestDispatcher dispatch = getServletContext().getRequestDispatcher(targetURI);
try
dispatch.forward(request, response);
return;
catch (ServletException e)









524

被折叠的 条评论
为什么被折叠?



