——————————DescriptionStart——————————
运行环境
Java≥8、MySQL≥5.7、Tomcat≥8
开发工具
eclipse/idea/myeclipse/sts等均可配置运行
适用
课程设计,大作业,毕业设计,项目练习,学习演示等
功能说明





基于javaweb的SSMyy酒店管理系统(java+jsp+easyui+echars+ssm+mysql)
基础环境
搭建环境
Tomcat 8.5
Java 1.8+
Mysql 5.7
涉及技术
Spring、Mybatis、MySql、easyui、h-ui、Jsp、echars
项目介绍
酒店管理系统的目标是为用户提供高效的服务,减少手工处理的繁琐与误差,及时准确地反映酒店工作情况、经营信息,从而提高酒店工作质量,获得更好的经济效益,实现客房管理的规范化、自动化。具体目标包括:
高效的客房预订及订单处理。
准确无误地记录客人每笔消费信息。
实时、快速、准确提供客房动态。
酒店收益的最终统计。
系统运行稳定可靠、各项维护功能齐全、易于维护。
简单、友好的操作界面
前台页面:
模块
主要功能
酒店信息展示
客房信息展示、房间状态查询、房间预定、客房信息检索、
会员用户预订
会员注册登录、用户中心、订单查询、用户信息修改、用户密码修改
后台页面:
模块
主要功能
系统设置
菜单管理、角色管理、修改密码
用户管理
用户列表管理
系统日志
日志列表
酒店管理
楼层管理、房型管理、房间管理、客户管理、预订管理、入住管理
营业统计
统计图标
——————————CodeStart——————————
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
private boolean isExist(String name,Long id){ Account findByName = accountService.findByName(name); if(findByName == null)return false; if(findByName.getId().longValue() == id.longValue())return false; return true; } } package com.demo.controller.admin;
@RequestMapping("/admin/room_type") @Controller public class RoomTypeController { @Autowired private RoomTypeService roomTypeService;
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| return authorityService.findListByRoleId(roleId); } } package com.demo.controller.admin;
@RequestMapping("/admin/room") @Controller public class RoomController { @Autowired private RoomTypeService roomTypeService; @Autowired private RoomService roomService; @Autowired private FloorService floorService;
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
| * @param roomType * @return */ @RequestMapping(value="/add",method=RequestMethod.POST) @ResponseBody public Map<String, String> add(Room room){ Map<String, String> ret = new HashMap<String, String>(); if(room == null){ ret.put("type", "error"); ret.put("msg", "请填写正确的房间信息!"); return ret; } if(StringUtils.isEmpty(room.getSn())){ ret.put("type", "error"); ret.put("msg", "房间编号不能为空!"); return ret; } if(room.getRoomTypeId() == null){ ret.put("type", "error"); ret.put("msg", "请选择房间类型!"); return ret; } if(room.getFloorId() == null){ ret.put("type", "error"); ret.put("msg", "请选择房间所属楼层!"); return ret; } if(isExist(room.getSn(), 0l)){ ret.put("type", "error"); ret.put("msg", "该房间编号已经存在!"); return ret; } if(roomService.add(room) <= 0){ ret.put("type", "error"); ret.put("msg", "添加失败,请联系管理员!"); return ret; } ret.put("type", "success"); ret.put("msg", "添加成功!"); return ret; }
@RequestMapping(value="/edit",method=RequestMethod.POST)
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| } package com.demo.controller.admin;
@RequestMapping("/admin/menu") @Controller public class MenuController { @Autowired private MenuService menuService;
@RequestMapping(value="/list",method=RequestMethod.GET) public ModelAndView list(ModelAndView model){ model.addObject("topList", menuService.findTopList()); model.setViewName("menu/list"); return model;
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
| ret.put("msg", "修改成功!"); return ret; }
@RequestMapping(value="/list",method=RequestMethod.POST) @ResponseBody public Map<String,Object> list( @RequestParam(name="sn",defaultValue="") String sn, @RequestParam(name="status",required=false) Integer status, @RequestParam(name="roomTypeId",required=false) Long roomTypeId, @RequestParam(name="floorId",required=false) Long floorId, Page page ){ Map<String,Object> ret = new HashMap<String, Object>(); Map<String,Object> queryMap = new HashMap<String, Object>(); queryMap.put("sn", sn); queryMap.put("status", status); queryMap.put("roomTypeId", roomTypeId); queryMap.put("floorId", floorId); queryMap.put("offset", page.getOffset()); queryMap.put("pageSize", page.getRows()); ret.put("rows", roomService.findList(queryMap)); ret.put("total", roomService.getTotal(queryMap)); return ret; }
@RequestMapping(value="/delete",method=RequestMethod.POST) @ResponseBody public Map<String, String> delete(Long id){
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
| * 日志列表页面 * @param model * @return */ @RequestMapping(value="/list",method=RequestMethod.GET) public ModelAndView list(ModelAndView model){ model.setViewName("log/list"); return model; }
@RequestMapping(value="/list",method=RequestMethod.POST) @ResponseBody public Map<String, Object> getList(Page page, @RequestParam(name="content",required=false,defaultValue="") String content ){ Map<String, Object> ret = new HashMap<String, Object>(); Map<String, Object> queryMap = new HashMap<String, Object>(); queryMap.put("content", content); queryMap.put("offset", page.getOffset()); queryMap.put("pageSize", page.getRows()); ret.put("rows", logService.findList(queryMap)); ret.put("total", logService.getTotal(queryMap)); return ret; }
@RequestMapping(value="/add",method=RequestMethod.POST) @ResponseBody public Map<String, String> add(Log log){ Map<String, String> ret = new HashMap<String, String>(); if(log == null){
|
——————————PayStart——————————
项目链接:
https://javayms.github.io?id=261422302105200gf
https://javayms.pages.dev?id=261422302105200gf