提供:项目源码、项目文档、数据库脚本、软件工具等所有资料
从零开始手把手教学部署运行本系统
该项目源码资料可作为毕设使用
提供技术答疑和远程协助指导,帮助调试并解决后期项目运行问题
文章底部获取项目源码联系方式
1.项目简介
网上订餐系统作为一个销售管理系统,首先在页面的结构上一定要相对有自己的独特之处,凸显餐厅的风格,餐品的质量。只有如此才能从一开始吸引顾客的目光,通过美观的页面满足顾客对此类订餐系统的好感依赖以及业务功能的需求。与此同时,系统也要有先对强的实用性,系统的实用性不强,这样的系统会是的顾客产生厌恶心理,不利于一个餐厅的未来发展。当然,作为一个销售管理系统,资讯管理,这样才能方便餐厅对该顾客的用餐习惯分析,更好的对顾客实施更加人性化的服务。
作为网上订餐管理系统主要是为顾客提供便捷,全面的订餐服务,重点要放在面对顾客的页面功能上,其次是管理员对餐品以及餐厅的管理,系统主要模块的设计:
-
前台模块:
(1)食品展示模块
(2)食品查询模块
(3)购物车模块
(4)收银台模块
(5)用户维护模块
(6)订单查询模块
(7)公告模块 -
后台模块:
(1)食品管理模块
(2)用户管理模块
(3)管理员维护模块
(4)订单管理模块
(5)公告管理模块
(6)留言管理模块
主要包括这几个方面,其中顾客订餐功能模块是主要重点模块,其次是管理员管理功能模块。当订餐系统管理员使用拥有管理权限的管理员用登录管理员页面的时候。可以看到目前订餐系统中保存的用户信息数据,菜品的数据,员工的数据以及状态,订餐的具体信息,采购原材料的具体情况,以及对顾客页面的管理,例如:留言板,以及营养小贴士等等。通过管理员对餐厅的管理,给予顾客最好的网上订餐服务。
顾客订餐功能的相对应的模块:主要是顾客进入订餐系统网站之后,可以看到整体的订餐系统网站结构,进行系统的客户端登录,注册,以及对现登陆用户的信息修改,搜索菜品,点餐,订餐,支付,留言的相关功能,通过众多的订餐系统功能。
管理员系统管理功能相关模块:主要是餐厅管理员从后台管理页面登录管理系统之后,对订餐系统的一些具体业务的调整,可以注册新管理员,以及对现有登录管理员信息的修改,查看分析管理目前注册的顾客的信息,查看修改调整现有菜品的具体情况,新增,删除,完善菜品;以及对餐厅员工的管理,新增删除和调整状态;更重要的是可以对目前已知订餐的及时管理,还有就是对顾客订餐页面的一些人性化管理,查看顾客留言,修改给顾客查看的营养小贴士。
通过这个两个主要的模块,可以完成订餐系统的综合管理,包括了顾客的主要功能,注册,登录,点餐等;以及管理员对餐厅多方面的管理,完成管理员对顾客的服务交互。

2.技术选型
- 后台技术选型
- SpringBoot(Spring、SpringMVC、MyBatis)
- MyBatis
- Thymeleaf
- 前端技术选型
- Layui
- jQuery
- HTML
- 开发环境
- 操作系统:Windows
- 编程语言: Java 8或者以上
- 开发工具: IDEA或Eclipse、Navicat
- 项目构建: Maven 3.3.6或者以上
- 服务器:Tomcat 8.5
- 数据库: MySQL
3.项目部分截图
前台首页

会员注册

会员登录

商品详情

我的购物车

我的订单

校园资讯

常见问题

后台登录

后台主页

用户管理

商品管理

商品分类管理

评论管理

权限管理

资讯管理

订单管理

4.程序部分代码
import com.byh.singer.pojo.Role;
import com.byh.singer.pojo.User;
import com.byh.singer.service.RoleService;
import com.byh.singer.service.UserRoleService;
import com.byh.singer.service.UserService;
import com.byh.singer.util.Page;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.apache.shiro.crypto.SecureRandomNumberGenerator;
import org.apache.shiro.crypto.hash.SimpleHash;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* 管理员controller
*/
@Controller
@RequestMapping("/config")
public class UserController {
@Autowired
UserRoleService userRoleService;
@Autowired
UserService userService;
@Autowired
RoleService roleService;
@RequestMapping("/enableStatus")
@ResponseBody
public String enableStatus(@RequestParam(value = "name") String name){
return userService.enableStatus(name);
}
@RequestMapping("/stopStatus")
@ResponseBody
public String stopStatus(@RequestParam(value = "name") String name){
return userService.stopStatus(name);
}
@RequestMapping("/adminAdd")
public String adminadd(Model model){
List<Role> list = roleService.list();
model.addAttribute("rolelist",list);
return "syspage/admin-add";
}
@RequestMapping("/listUser")
public String list(Model model, Page page){
PageHelper.offsetPage(page.getStart(),page.getCount());//分页查询
List<User> us= userService.list();
int total = (int) new PageInfo<>(us).getTotal();//总条数
page.setTotal(total);
model.addAttribute("us", us);//所有用户
model.addAttribute("total",total);
Map<User,List<Role>> user_roles = new HashMap<>();
//每个用户对应的权限
for (User user : us) {
List<Role> roles=roleService.listRoles(user);
user_roles.put(user, roles);
}
model.addAttribute("user_roles", user_roles);
return "syspage/admin-list";
}
/**
* 修改管理员角色
* @param model
* @param id
* @return
*/
@RequestMapping("/editUser")
public String edit(Model model,Long id){
List<Role> rs = roleService.list();
model.addAttribute("rs", rs);
User user =userService.get(id);
model.addAttribute("user", user);
//当前拥有的角色
List<Role> roles =roleService.listRoles(user);
model.addAttribute("currentRoles", roles);
return "syspage/admin-edit";
}
@RequestMapping("deleteUser")
public String delete(Model model,long id){
userService.delete(id);
return "redirect:listUser";
}
@RequestMapping("updateUser")
public String update(User user, long[] roleIds){
userRoleService.setRoles(user,roleIds);
String password=user.getPassword();
//如果在修改的时候没有设置密码,就表示不改动密码
if(user.getPassword().length()!=0) {
String salt = new SecureRandomNumberGenerator().nextBytes().toString();
int times = 2;
String algorithmName = "md5";
String encodedPassword = new SimpleHash(algorithmName,password,salt,times).toString();
user.setSalt(salt);
user.setPassword(encodedPassword);
}
else
user.setPassword(null);
userService.update(user);
return "redirect:listUser";
}
@RequestMapping("addUser")
public String add(User user,long[] roleIds){
String salt = new SecureRandomNumberGenerator().nextBytes().toString();//生成随机数
int times = 2;
String algorithmName = "md5";
String encodedPassword = new SimpleHash(algorithmName,user.getPassword(),salt,times).toString();
User u = new User();
u.setName(user.getName());
u.setPassword(encodedPassword);
u.setSalt(salt);
u.setStatus(1);
u.setAddress(user.getAddress());
u.setPhone(user.getPhone());
userService.add(u);
userRoleService.setRoles(u,roleIds);
return "redirect:listUser";
}
}
7.项目文档截图

68.源码获取
精彩专栏推荐订阅:在下方专栏👇🏻
Java精品项目源码大全
https://itxiongmao.blog.csdn.net/category_9538286.html
欢迎大家点赞、收藏、关注、评论啦 、查看下方二维码👇🏻获取联系方式👇🏻

100

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



