基于微信小程序食堂订餐系统

食堂订餐系统后台是基于java编程语言,mysql数据库,ssm框架,idea工具开发,用户端是采用微信小程序端开发,本系统主要分为用户,管理员,商家三个端,用户可以注册登陆微信小程序,查看菜品,购买菜品下订单,查看订单,查看订单配送,取消和评价订单信息。商家可以登陆系统,对菜品信息,菜品分类,订单信息,订单配送,订单评价进行管理。管理员可以对用户信息,商家信息,菜品上架审核,订单配送,订单评价,新闻等信息进行管理。本系统功能齐全,文档有论文和答辩ppt,适合作为微信小程序毕业设计和课程设计参考与学习。


一.技术环境

jdk版本:1.8 及以上
ide工具:IDEA ,微信小程序开发工具
数据库: mysql5.7 (必须5.7)
编程语言: Java
tomcat: 8.0 及以上
java框架:SSM
maven: 3.6.1
前端:layui ,微信
详细技术:HTML+CSS+JS+JSP+JAVA+SSM+MYSQL+JQUERY+MAVEN+微信开发工具


二.项目文件(项目获取请看文末官网)


三.系统功能


四.代码示例

package com.lmu.controller;
/*** 和登陆有关的都在这里*/import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.lmu.model.Role;
import com.lmu.model.User;
import com.lmu.service.RoleService;
import com.lmu.service.UserService;
import com.lmu.utils.JsonUtils;
import com.lmu.utils.UserUtils;import org.apache.commons.collections.map.HashedMap;
import org.apache.struts2.ServletActionContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;import java.io.IOException;
import java.util.HashMap;
import java.util.Map;@Controller("loginController")
@Scope("prototype")
public class LoginController extends ActionSupport {@Autowiredprivate UserService userService;@Autowiredprivate RoleService roleService;private User user;private Map<String, Object> map = new HashMap();public User getUser() {return user;}public void setUser(User user) {this.user = user;}public UserService getUserService() {return userService;}public void setUserService(UserService userService) {this.userService = userService;}/*** 用户登陆* @return*/public void index() throws IOException {User user1 = userService.getUser(user);if (user1 != null){if (user1.getIsSh() == 1){if (user1.getRole().getEnName().equals("admin")){ActionContext.getContext().getSession().put("user", user1);}if (user1.getRole().getEnName().equals("js")){ActionContext.getContext().getSession().put("user1", user1);}if (user1.getRole().getEnName().equals("xs")){ActionContext.getContext().getSession().put("user2", user1);}map.put("flag", 1);map.put("url", "login_indexs.do");map.put("id", user1.getId());JsonUtils.toJson(map);} else {map.put("flag", 2);JsonUtils.toJson(map);}} else {map.put("flag", 3);JsonUtils.toJson(map);}}public String indexs() throws IOException {User u = UserUtils.getUser();if (u != null){ActionContext.getContext().put("user", u);String ss = u.getRole().getEnName();ActionContext.getContext().put("role", u.getRole().getEnName());}return SUCCESS;}//登陆页面public String login() {return SUCCESS;}//退出public String tuichu() {ActionContext ac = ActionContext.getContext();Map session = ac.getSession();session.remove("userName");session.remove("userId");ServletActionContext.getRequest().getSession().invalidate();return "login";}}
package com.lmu.controller;/*** 用户新增*/import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;
import com.lmu.model.Role;
import com.lmu.model.User;
import com.lmu.service.RoleService;
import com.lmu.service.UserService;
import com.lmu.utils.JsonUtils;
import com.lmu.utils.Pager;
import com.lmu.utils.UserUtils;import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;import java.awt.event.FocusEvent;
import java.io.IOException;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;@Controller("userController")
@Scope("prototype")
public class UserController extends ActionSupport implements ModelDriven<User> {@Autowiredprivate UserService userService;@Autowiredprivate RoleService roleService;private User user;private Integer userId;private Map<String, Object> map = new HashMap();/*** list** @return*/public String list() throws IOException {User user1 = UserUtils.getUser();if (user1 == null || user1.getId() == null){ActionContext.getContext().put("login", 1);return SUCCESS;}Pager<User> pagers = null;Role role = user1.getRole();if (role.getEnName().equals("admin")) {pagers = userService.getList(user);ActionContext.getContext().put("pagers", pagers);ActionContext.getContext().put("user", user1);ActionContext.getContext().put("role", role);ActionContext.getContext().put("bean", user);return SUCCESS;} else if (role.getEnName().equals("xs") || role.getEnName().equals("js")) {pagers = userService.getList(user1);ActionContext.getContext().put("pagers", pagers);ActionContext.getContext().put("bean", user);return SUCCESS;}return null;}/*** 跳转add** @return*/public String add() {Pager<Role> pagers = roleService.pagers();ActionContext.getContext().put("pagers", pagers);return SUCCESS;}/*** 查询修改** @return*/public String edit() {User bean = userService.findById(userId);Pager<Role> pagers = roleService.pagers();ActionContext.getContext().put("bean", bean);ActionContext.getContext().put("pagers", pagers);return SUCCESS;}/*** 审核** @return*/public void updateSh() throws IOException {user.setIsSh(1);userService.updates(user);map.put("flag", true);map.put("url", "user_list.do");JsonUtils.toJson(map);}/*** 更新** @return*/public String update() throws IOException {if (user.getPass().equals("")){user.setPass(null);}userService.updates(user);map.put("flag", true);map.put("url", "user_list.do");JsonUtils.toJson(map);return SUCCESS;}/*** 保存** @return*/public void save() throws IOException {if (userService.getUser(user) != null){map.put("flag", false);map.put("url", "login_login.do");JsonUtils.toJson(map);} else {user.setTime(new Date());userService.save(user);map.put("flag", true);map.put("url", "login_login.do");JsonUtils.toJson(map);}}public void delete() throws IOException {User user1 = userService.findById(userId);user1.setIsDelete(1);userService.update(user1);map.put("flag", true);map.put("url", "user_list.do");JsonUtils.toJson(map);}@Overridepublic User getModel() {if (user == null) {user = new User();}return user;}public Integer getUserId() {return userId;}public void setUserId(Integer userId) {this.userId = userId;}public User getUser() {return user;}public void setUser(User user) {this.user = user;}
}

五.项目截图










项目获取

基于微信小程序食堂订餐系统源码(微信小程序毕业设计)相关推荐

  1. 基于Java毕业设计校园食堂订餐系统源码+系统+mysql+lw文档+部署软件

    基于Java毕业设计校园食堂订餐系统源码+系统+mysql+lw文档+部署软件 基于Java毕业设计校园食堂订餐系统源码+系统+mysql+lw文档+部署软件 本源码技术栈: 项目架构:B/S架构 开 ...

  2. java计算机毕业设计校园食堂订餐系统源码+数据库+系统+lw文档+部署

    java计算机毕业设计校园食堂订餐系统源码+数据库+系统+lw文档+部署 java计算机毕业设计校园食堂订餐系统源码+数据库+系统+lw文档+部署 本源码技术栈: 项目架构:B/S架构 开发语言:Ja ...

  3. 计算机毕业设计Java校园食堂订餐系统(源码+系统+mysql数据库+Lw文档)

    计算机毕业设计Java校园食堂订餐系统(源码+系统+mysql数据库+Lw文档) 计算机毕业设计Java校园食堂订餐系统(源码+系统+mysql数据库+Lw文档) 本源码技术栈: 项目架构:B/S架构 ...

  4. c#编写外卖系统_ZYW邻家小厨网上订餐系统源码 Web端 订餐系统 ASP.NET C#语言开发 - 下载 - 搜珍网...

    文件名大小更新时间 51Aspx源码必读.txt29132014-04-25 DB_51aspx02014-04-25 DB_51aspx\LazyEating.mdf31457282014-04-2 ...

  5. 一款基于微信的小程序电商系统源码(前端+后台)带文字安装教程

    小程序电商系统源码(前端+后台)带文字安装教程 运行环境 服务器宝塔面板 PHP 5.6 Mysql 5.5及以上版本 Linux Centos7以上 系统介绍: 1.一款基于微信的小程序电商系统,是 ...

  6. 2021最新外卖霸王餐小程序、H5、微信公众号版外系统源码|霸王餐美团/饿了么系统 粉丝裂变玩源码下载

    2021年了,你还在用淘宝客吗?赶紧跟上互联网的大势吧,外卖cps就是cps人群趋势! 个人.个体.企业均可使用 外卖霸王餐小程序.H5.微信公众号版外系统源码|霸王餐美团/饿了么系统 粉丝裂变玩 2 ...

  7. 微信小程序盲盒系统源码 附带教程

    微信小程序盲盒系统源码 可对接微信支付 附带教程 盲盒小程序的教学 服务器安装宝塔面板 设置好网站 数据库 设置好SSL证书 上传微擎框架 框架安装好 上传小程序后台 /addons 这个目录是放置后 ...

  8. java毕业生设计学校食堂订餐管理计算机源码+系统+mysql+调试部署+lw

    java毕业生设计学校食堂订餐管理计算机源码+系统+mysql+调试部署+lw java毕业生设计学校食堂订餐管理计算机源码+系统+mysql+调试部署+lw 本源码技术栈: 项目架构:B/S架构 开 ...

  9. tinkphp1.0贺岁版小程序应用平台系统源码

    介绍: tinkphp1.0贺岁版小程序应用平台系统源码 安装说明:直接放入服务器或者空间,访问域名根据安装向导进行安装. 程序魅力:此程序是类似微信小程序一样的机制系统,但不是微信小程序,跟微信不搭 ...

最新文章

  1. 第一课.深度学习简介
  2. HTML表中的自动换行
  3. UTXO 与账户余额模型
  4. exc读入到matlab,matlab外部程序接口-excel
  5. 大内高手—共享内存与线程局部存储
  6. GIT — 使用回顾
  7. stagefright框架(四)-Video Buffer传输流程
  8. 在Java里面使用instanceof的性能影响
  9. VB讲课笔记01:VB6.0安装与启动
  10. SQLMAP参数中文解说
  11. Windows2003工组环境通过CA证书对加密WEB服务器
  12. B key-M key-BM key
  13. java中的约瑟夫问题_java实现约瑟夫问题
  14. 计算机科学与技术专业导论论文,浅谈计算机科学与技术专业论文
  15. OC学习笔记之011IOS应用开发入门--控件2进度条、拖动条、警告框、日期选择器、选择器
  16. jit和jitx区别_JIT模式
  17. Nvidia Support Matrix 支持矩阵
  18. linux第三方SDK库冲突,摄像机SDK对接第三方平台一SDK库问题FAQ
  19. excel的筛选功能失效原因
  20. warning: NUL character seen; rest of line ignored *** missing separator. Stop.

热门文章

  1. PCL点云处理之基于高程的粗糙度计算(一百)
  2. endnote怎么保存上次记录_endnote使用经验总结
  3. 程序员35岁真的会失业?我,36岁,揭开北京“码农”的真实状况
  4. 软件智能:aaas系统AI众生的“世”和“界” 之18 从鲁棒性到DDD引擎
  5. 一年之计在于春,2015开篇:PDF.NET SOD Ver 5.1完全开源
  6. amdxio能在linux下运行吗,用AMD Framebuffer Utility生成的同学一定要记得把后面8个0去掉...
  7. 资讯|某搜索引擎推广企业定制化内训圆满成功
  8. 在国内 PMP 的含金量
  9. 【封面】云落地中国的“大运维”之路
  10. CentOS下网页百度网盘下载资料