基于SpringBoot框架的度假山庄酒店管理系统-计算机毕业设计源码

摘 要
本文先提出了开发度假山庄酒店管理系统的背景意义,然后通过功能性和非功能性分析阐述本系统的需求,然后从功能设计和数据库设计两方面进行系统的设计建模。在技术实现部分采用了Java作为开发后台的编程语言,前台使用vue技术,数据库选择MySQL。最后进行了代码的编写,并说明了实现流程。

关键词:SpringBoot;酒店;客房预定;Java;度假山庄

 
Abstract
With the development of computer technology and the progress of various industries in society, informatization is gradually applied to people's life. The traditional mode of hotel management can not meet the life pursuit of modern people, service quality and service speed. In many previous hotels, due to human, physical, financial and other reasons, some websites can not perfectly show its characteristics and advantages, wasting a lot of customer resources. Using springboot development, the cost is greatly reduced. At the same time, it can take advantage of the advantages of mobile Internet, so it also reduces the difficulty of promotion. Therefore, designing a resort hotel management system based on Java to solve the problem of hotel management can better show the intuitiveness of hotel management on the one hand, and better adapt to the development of the times on the other hand.
This paper first puts forward the background significance of developing resort hotel management system, then expounds the requirements of the system through functional and non functional analysis, and then carries on the design modeling of the system from two aspects of functional design and database design. In the technical implementation part, Java is used as the programming language of the development background, Vue technology is used in the foreground, and MySQL is selected as the database. Finally, the code is written and the implementation process is explained. Finally, the functional requirements of the resort hotel management system are verified through software testing. The comprehensive shows that the resort hotel management system meets the basic business of room reservation, helps users book online in time, and provides an efficient management mode for hotel administrators.

Keywords: springboot; hotel; Room reservation; Java; Resort Villa

 
    目  录
摘 要    I
Abstract    II
第一章 绪论    1
1.1 选题背景    1
1.2 选题意义    2
1.3 研究内容    2
第二章 相关技术介绍    4
2.1 Java语言    4
2.2 SpringBoot技术    4
2.3 Mysql数据库    6
第三章 系统分析    7
3.1可行性分析    7
3.1.1 操作可行性    7
3.1.2 经济可行性    7
3.1.3 技术可行性    7
3.2 需求分析    7
3.2.1非功能性需求    7
3.2.2功能需求    8
3.3 系统用例    8
3.3.1 会员功能需求    8
3.3.2 管理员功能需求    9
第四章 系统设计    11
4.1系统详细设计    11
4.1.1功能设计    11
4.2.2酒店模块程设计    12
4.2.3用户模块流程设计    13
4.2 数据库设计    14
4.2.1逻辑结构设计    14
4.2.2物理结构设计    15
第五章 系统实现    30
5.1 运行环境    30
5.2 酒店管理功能实现    30
5.2.1管理员登录    30
5.2.2管理主界面    31
5.2.3桌位管理    31
5.2.3酒店菜品管理    32
5.2.4用户管理    33
5.2.5预订订单管理    33
5.2.6库存管理    34
5.2.5领料管理    34
5.3 前台用户功能实现    35
5.3.1会员注册    35
5.3.2会员登录    36
5.3.3酒店菜品查看    36
5.3.4用户订单    37
第六章 系统测试    39
6.1 测试说明    39
6.2 功能测试    39
6.3 测试说明    41
总结    42
参考文献    43
谢 辞    44

系统非功能需求,只能是为了满足客户需求之外的非功能性要求。系统需要具有数据完整性验证的功能,对界面上非法的数据和不完整的数据进行提示,不能直接保存到数据库中,造成不完整性因素。
系统提供一定的交互能力,给不同用户带来方便,提供问题的回答和讨论。并将历史问题归纳整理,作为相同问题的案例进行展示。
对系统可维护性的要求,所有的管理系统都不是一成不变的,在使用中可能发生需求的增加或者变更要求。软件具有较高的可维护性,方便后期的升级换代,系统应该便于使用和访问和操作,为用户提供便捷的。便捷的访问操作,减少宣传和维护的费用。
在对度假山庄酒店管理系统开发时,需要系统为Windows10,服务器为Tomcat软件,存储的空间较小,数据库和程序1G存储即可够用。
操作系统的性能要求客户访问系统的时间不应该超过三秒,系统处理多个并发用户,cpu占有率低于10%,同时响应时间应该为五秒内。
度假山庄酒店管理系统为用户提供酒店菜品预订服务,系统包括前台和后台。


关键部分业务代码:

/**
     * 后端列表
     */
    @RequestMapping("/page")
    public R page(@RequestParam Map<String, Object> params,ZhuoweixinxiEntity zhuoweixinxi,
        HttpServletRequest request){
        EntityWrapper<ZhuoweixinxiEntity> ew = new EntityWrapper<ZhuoweixinxiEntity>();
        PageUtils page = zhuoweixinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, zhuoweixinxi), params), params));

        return R.ok().put("data", page);
    }
    
    /**
     * 前端列表
     */
    @IgnoreAuth
    @RequestMapping("/list")
    public R list(@RequestParam Map<String, Object> params,ZhuoweixinxiEntity zhuoweixinxi, 
        HttpServletRequest request){
        EntityWrapper<ZhuoweixinxiEntity> ew = new EntityWrapper<ZhuoweixinxiEntity>();
        PageUtils page = zhuoweixinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, zhuoweixinxi), params), params));
        return R.ok().put("data", page);
    }

    /**
     * 列表
     */
    @RequestMapping("/lists")
    public R list( ZhuoweixinxiEntity zhuoweixinxi){
           EntityWrapper<ZhuoweixinxiEntity> ew = new EntityWrapper<ZhuoweixinxiEntity>();
          ew.allEq(MPUtil.allEQMapPre( zhuoweixinxi, "zhuoweixinxi")); 
        return R.ok().put("data", zhuoweixinxiService.selectListView(ew));
    }

     /**
     * 查询
     */
    @RequestMapping("/query")
    public R query(ZhuoweixinxiEntity zhuoweixinxi){
        EntityWrapper< ZhuoweixinxiEntity> ew = new EntityWrapper< ZhuoweixinxiEntity>();
         ew.allEq(MPUtil.allEQMapPre( zhuoweixinxi, "zhuoweixinxi")); 
        ZhuoweixinxiView zhuoweixinxiView =  zhuoweixinxiService.selectView(ew);
        return R.ok("查询桌位信息成功").put("data", zhuoweixinxiView);
    }
    
    /**
     * 后端详情
     */
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") Long id){
        ZhuoweixinxiEntity zhuoweixinxi = zhuoweixinxiService.selectById(id);
        return R.ok().put("data", zhuoweixinxi);
    }

    /**
     * 前端详情
     */
    @IgnoreAuth
    @RequestMapping("/detail/{id}")
    public R detail(@PathVariable("id") Long id){
        ZhuoweixinxiEntity zhuoweixinxi = zhuoweixinxiService.selectById(id);
        return R.ok().put("data", zhuoweixinxi);
    }
    

    /**
     * 后端保存
     */
    @RequestMapping("/save")
    public R save(@RequestBody ZhuoweixinxiEntity zhuoweixinxi, HttpServletRequest request){
        zhuoweixinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
        //ValidatorUtils.validateEntity(zhuoweixinxi);
        zhuoweixinxiService.insert(zhuoweixinxi);
        return R.ok();
    }
    
    /**
     * 前端保存
     */
    @RequestMapping("/add")
    public R add(@RequestBody ZhuoweixinxiEntity zhuoweixinxi, HttpServletRequest request){
        zhuoweixinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
        //ValidatorUtils.validateEntity(zhuoweixinxi);
        zhuoweixinxiService.insert(zhuoweixinxi);
        return R.ok();
    }
 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值