提卡网站建设,西安成品网站建设,潍坊营销网站,青岛有哪些大型的互联网公司大家好#xff01;我是程序猿老A#xff0c;感谢您阅读本文#xff0c;欢迎一键三连哦。 #x1f49e;当前专栏#xff1a;Java毕业设计 精彩专栏推荐#x1f447;#x1f3fb;#x1f447;#x1f3fb;#x1f447;#x1f3fb; #x1f380; Python毕业设计 我是程序猿老A感谢您阅读本文欢迎一键三连哦。 当前专栏Java毕业设计 精彩专栏推荐 Python毕业设计 微信小程序毕业设计 开发环境 开发语言Java 框架springbootvue JDK版本JDK1.8 服务器tomcat7 数据库mysql 5.7 数据库工具Navicat12 开发软件eclipse/myeclipse/idea Maven包Maven3.3.9 浏览器谷歌浏览器 演示视频 springboot006网上订餐系统录像 源码下载地址
https://download.csdn.net/download/2301_76953549/89100268
LW目录
【如需全文请按文末获取联系】 目录 开发环境演示视频源码下载地址LW目录一、项目简介二、系统设计2.1软件功能模块设计2.2数据库设计 三、系统项目部分截图3.1用户功能模块的实现3.2管理员功能模块的实现 四、部分核心代码4.1 用户部分 获取源码或论文 一、项目简介
基于Spring Boot的网上订餐系统主要分管理员和用户两大功能模块下面将详细介绍管理员和用户分别实现的功能。 3.3.1用户功能分析 用户进入本系统可查看系统信息包括首页、菜品信息等用户要想实现下单订餐操作必须登录系统未有账号的用户可进行注册注册登录后主要功能模块包括个人中心、订单信息管理以及订单配送管理。
3.3.2管理员功能分析 管理员登录后可对系统进行全面管理管理员主要实现的功能模块包括个人中心、会员管理、菜品分类管理、菜品信息管理、订单信息管理、订单配送管理、管理员管理以及系统管理。
二、系统设计
2.1软件功能模块设计
系统的设计和划分是系统的核心研究问题以确定整体结构和功能模块。该系统的结构化设计的思想是自顶向下的方式将系统分成若干个子系统以及反过来的子系统分成模块其被划分成子模块层划分各计算机可执行模块可迄今用作一个单独的程序。 本基于Spring Boot的网上订餐系统主要管理员模块以及用户模块两大部分系统结构图如图4-1所示。
2.2数据库设计
关系E-R图中的关系是指实体之间的关系用菱形来表示实体间的关系这些菱形关系的联系上有着一对多或多对多的数据联系这些构成了E-R图的关系E-R图的关系紧密连接了实体使实体间的关联性更加的显著、易懂。本基于Spring Boot的网上订餐系统的E-R图如下所示 1管理员信息实体属性E-R图如图4-4所示 2菜品分类信息实体属性E-R图如图4-5所示 3菜品信息实体属性E-R图如图4-6所示 4订单信息实体属性E-R图如图4-7所示 5会员信息实体属性E-R图如图4-8所示
三、系统项目部分截图
3.1用户功能模块的实现
用户进入本系统可查看系统信息包括网站首页、菜品信息等系统主界面展示如图5-3所示。 用户登录界面 用户在登录界面可输入用户名和密码点击登录按钮进行登录系统用户登录界面展示如图5-3所示。
5.1.4下单订餐界面 用户登录后可选择菜品进行下单订餐操作下单订餐界面展示如图5-5所示。 5.1.6订单配送界面 用户能够查看个人订单配送信息订单配送界面展示如图5-7所示。
3.2管理员功能模块的实现
5.2.1管理员登录界面 管理员要想进入后台对系统进行管理操作必须登录系统后台管理员登录界面展示如图5-8所示。 5.2.3菜品信息管理界面 管理员可添加、修改和删除菜品信息菜品信息管理界面展示如图5-10所示添加菜品信息界面展示如图5-11所示。
5.2.5订单信息管理界面 管理员可进入订单信息管理界面查看所有订单信息并可对其进行安排配送、修改和删除操作订单信息管理界面展示如图5-13所示。 5.2.6订单配送管理界面 管理员可增删改查订单配送信息订单配送管理界面展示如图5-14所示。
四、部分核心代码
4.1 用户部分
package com.controller;import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Map;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;import com.utils.ValidatorUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.annotation.IgnoreAuth;import com.entity.CaipinfenleiEntity;
import com.entity.view.CaipinfenleiView;import com.service.CaipinfenleiService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;/*** 菜品分类* 后端接口* author * email * date 2021-04-01 20:09:02*/
RestController
RequestMapping(/caipinfenlei)
public class CaipinfenleiController {Autowiredprivate CaipinfenleiService caipinfenleiService;/*** 后端列表*/RequestMapping(/page)public R page(RequestParam MapString, Object params,CaipinfenleiEntity caipinfenlei,HttpServletRequest request){EntityWrapperCaipinfenleiEntity ew new EntityWrapperCaipinfenleiEntity();PageUtils page caipinfenleiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, caipinfenlei), params), params));return R.ok().put(data, page);}/*** 前端列表*/RequestMapping(/list)public R list(RequestParam MapString, Object params,CaipinfenleiEntity caipinfenlei, HttpServletRequest request){EntityWrapperCaipinfenleiEntity ew new EntityWrapperCaipinfenleiEntity();PageUtils page caipinfenleiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, caipinfenlei), params), params));return R.ok().put(data, page);}/*** 列表*/RequestMapping(/lists)public R list( CaipinfenleiEntity caipinfenlei){EntityWrapperCaipinfenleiEntity ew new EntityWrapperCaipinfenleiEntity();ew.allEq(MPUtil.allEQMapPre( caipinfenlei, caipinfenlei)); return R.ok().put(data, caipinfenleiService.selectListView(ew));}/*** 查询*/RequestMapping(/query)public R query(CaipinfenleiEntity caipinfenlei){EntityWrapper CaipinfenleiEntity ew new EntityWrapper CaipinfenleiEntity();ew.allEq(MPUtil.allEQMapPre( caipinfenlei, caipinfenlei)); CaipinfenleiView caipinfenleiView caipinfenleiService.selectView(ew);return R.ok(查询菜品分类成功).put(data, caipinfenleiView);}/*** 后端详情*/RequestMapping(/info/{id})public R info(PathVariable(id) Long id){CaipinfenleiEntity caipinfenlei caipinfenleiService.selectById(id);return R.ok().put(data, caipinfenlei);}/*** 前端详情*/RequestMapping(/detail/{id})public R detail(PathVariable(id) Long id){CaipinfenleiEntity caipinfenlei caipinfenleiService.selectById(id);return R.ok().put(data, caipinfenlei);}/*** 后端保存*/RequestMapping(/save)public R save(RequestBody CaipinfenleiEntity caipinfenlei, HttpServletRequest request){caipinfenlei.setId(new Date().getTime()new Double(Math.floor(Math.random()*1000)).longValue());//ValidatorUtils.validateEntity(caipinfenlei);caipinfenleiService.insert(caipinfenlei);return R.ok();}/*** 前端保存*/RequestMapping(/add)public R add(RequestBody CaipinfenleiEntity caipinfenlei, HttpServletRequest request){caipinfenlei.setId(new Date().getTime()new Double(Math.floor(Math.random()*1000)).longValue());//ValidatorUtils.validateEntity(caipinfenlei);caipinfenleiService.insert(caipinfenlei);return R.ok();}/*** 修改*/RequestMapping(/update)public R update(RequestBody CaipinfenleiEntity caipinfenlei, HttpServletRequest request){//ValidatorUtils.validateEntity(caipinfenlei);caipinfenleiService.updateById(caipinfenlei);//全部更新return R.ok();}/*** 删除*/RequestMapping(/delete)public R delete(RequestBody Long[] ids){caipinfenleiService.deleteBatchIds(Arrays.asList(ids));return R.ok();}/*** 提醒接口*/RequestMapping(/remind/{columnName}/{type})public R remindCount(PathVariable(columnName) String columnName, HttpServletRequest request, PathVariable(type) String type,RequestParam MapString, Object map) {map.put(column, columnName);map.put(type, type);if(type.equals(2)) {SimpleDateFormat sdf new SimpleDateFormat(yyyy-MM-dd);Calendar c Calendar.getInstance();Date remindStartDate null;Date remindEndDate null;if(map.get(remindstart)!null) {Integer remindStart Integer.parseInt(map.get(remindstart).toString());c.setTime(new Date()); c.add(Calendar.DAY_OF_MONTH,remindStart);remindStartDate c.getTime();map.put(remindstart, sdf.format(remindStartDate));}if(map.get(remindend)!null) {Integer remindEnd Integer.parseInt(map.get(remindend).toString());c.setTime(new Date());c.add(Calendar.DAY_OF_MONTH,remindEnd);remindEndDate c.getTime();map.put(remindend, sdf.format(remindEndDate));}}WrapperCaipinfenleiEntity wrapper new EntityWrapperCaipinfenleiEntity();if(map.get(remindstart)!null) {wrapper.ge(columnName, map.get(remindstart));}if(map.get(remindend)!null) {wrapper.le(columnName, map.get(remindend));}int count caipinfenleiService.selectCount(wrapper);return R.ok().put(count, count);}}
获取源码或论文
如需对应的LW或源码以及其他定制需求也可以下方V…X撩我wenruo0209。