wordpress更换百度编辑器,怎样对一个网站做seo,北京建筑网,外贸wordpress收款插件随着Internet的发展#xff0c;人们的日常生活已经离不开网络。未来人们的生活与工作将变得越来越数字化#xff0c;网络化和电子化。网上管理#xff0c;它将是直接管理“智慧食堂”系统的最新形式。本论文是以构建“智慧食堂”系统为目标#xff0c;使用java技术制作人们的日常生活已经离不开网络。未来人们的生活与工作将变得越来越数字化网络化和电子化。网上管理它将是直接管理“智慧食堂”系统的最新形式。本论文是以构建“智慧食堂”系统为目标使用java技术制作由管理员和用户两大部分组成。着重论述了系统设计分析系统主要包括首页个人中心用户管理菜品分类管理菜品信息管理留言板管理系统管理订单管理等功能以及后台数据库管理。从设计到详细实现都根据了系统的建设思想和mysql数据库的设计方法。
该系统的应用可以减少工作人员的劳动强度提高工作效率与管理水平具有很大的价值。它可以使“智慧食堂”系统操作简单成功率高使网上“智慧食堂”系统的管理向一个更高层次前进。
本系统尝试使用springboot在网上架构一个动态的“智慧食堂”系统以使每一用户在家就能通过系统来进行“智慧食堂”系统管理。 基于springboot“智慧食堂”管理系统源码和论文301
关键词“智慧食堂”系统 springbootmysql数据库
演示视频 基于springboot“智慧食堂”管理系统源码和论文 Abstract With the development of Internet, Peoples Daily life has been inseparable from the Network. In the future, peoples life and work will become more and more digital, network and electronic. Managed online, it will be the latest form of a direct smart canteen system. This paper is to build the smart canteen system as the goal, using Java technology, made by the administrator and user two parts. Focuses on the system design analysis, the system mainly includes home page, personal center, user management, dishes classification management, dishes information management, message board management, system management, order management and other functions, as well as background database management. From the design to the detailed implementation are based on the system construction ideas and mysql database design method.
The application of the system can reduce the labor intensity of the staff, improve the work efficiency and management level, has great value. It can make the intelligent canteen system simple operation, high success rate, so that the online intelligent canteen system management to a higher level forward.
This system tries to use Springboot to construct a dynamic wisdom canteen system on the Internet, so that each user can carry out wisdom canteen system management through the system at home. Key words: smart canteen system; Springboot; The mysql database 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.CaipinxinxiEntity;
import com.entity.view.CaipinxinxiView;import com.service.CaipinxinxiService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;
import java.io.IOException;
import com.service.StoreupService;
import com.entity.StoreupEntity;/*** 菜品信息* 后端接口* author * email * date 2022-03-25 13:35:59*/
RestController
RequestMapping(/caipinxinxi)
public class CaipinxinxiController {Autowiredprivate CaipinxinxiService caipinxinxiService;Autowiredprivate StoreupService storeupService;/*** 后端列表*/RequestMapping(/page)public R page(RequestParam MapString, Object params,CaipinxinxiEntity caipinxinxi,HttpServletRequest request){EntityWrapperCaipinxinxiEntity ew new EntityWrapperCaipinxinxiEntity();PageUtils page caipinxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, caipinxinxi), params), params));return R.ok().put(data, page);}/*** 前端列表*/IgnoreAuthRequestMapping(/list)public R list(RequestParam MapString, Object params,CaipinxinxiEntity caipinxinxi, HttpServletRequest request){EntityWrapperCaipinxinxiEntity ew new EntityWrapperCaipinxinxiEntity();PageUtils page caipinxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, caipinxinxi), params), params));return R.ok().put(data, page);}/*** 列表*/RequestMapping(/lists)public R list( CaipinxinxiEntity caipinxinxi){EntityWrapperCaipinxinxiEntity ew new EntityWrapperCaipinxinxiEntity();ew.allEq(MPUtil.allEQMapPre( caipinxinxi, caipinxinxi)); return R.ok().put(data, caipinxinxiService.selectListView(ew));}/*** 查询*/RequestMapping(/query)public R query(CaipinxinxiEntity caipinxinxi){EntityWrapper CaipinxinxiEntity ew new EntityWrapper CaipinxinxiEntity();ew.allEq(MPUtil.allEQMapPre( caipinxinxi, caipinxinxi)); CaipinxinxiView caipinxinxiView caipinxinxiService.selectView(ew);return R.ok(查询菜品信息成功).put(data, caipinxinxiView);}/*** 后端详情*/RequestMapping(/info/{id})public R info(PathVariable(id) Long id){CaipinxinxiEntity caipinxinxi caipinxinxiService.selectById(id);return R.ok().put(data, caipinxinxi);}/*** 前端详情*/IgnoreAuthRequestMapping(/detail/{id})public R detail(PathVariable(id) Long id){CaipinxinxiEntity caipinxinxi caipinxinxiService.selectById(id);return R.ok().put(data, caipinxinxi);}/*** 后端保存*/RequestMapping(/save)public R save(RequestBody CaipinxinxiEntity caipinxinxi, HttpServletRequest request){caipinxinxi.setId(new Date().getTime()new Double(Math.floor(Math.random()*1000)).longValue());//ValidatorUtils.validateEntity(caipinxinxi);caipinxinxiService.insert(caipinxinxi);return R.ok();}/*** 前端保存*/RequestMapping(/add)public R add(RequestBody CaipinxinxiEntity caipinxinxi, HttpServletRequest request){caipinxinxi.setId(new Date().getTime()new Double(Math.floor(Math.random()*1000)).longValue());//ValidatorUtils.validateEntity(caipinxinxi);caipinxinxiService.insert(caipinxinxi);return R.ok();}/*** 修改*/RequestMapping(/update)public R update(RequestBody CaipinxinxiEntity caipinxinxi, HttpServletRequest request){//ValidatorUtils.validateEntity(caipinxinxi);caipinxinxiService.updateById(caipinxinxi);//全部更新return R.ok();}/*** 删除*/RequestMapping(/delete)public R delete(RequestBody Long[] ids){caipinxinxiService.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));}}WrapperCaipinxinxiEntity wrapper new EntityWrapperCaipinxinxiEntity();if(map.get(remindstart)!null) {wrapper.ge(columnName, map.get(remindstart));}if(map.get(remindend)!null) {wrapper.le(columnName, map.get(remindend));}int count caipinxinxiService.selectCount(wrapper);return R.ok().put(count, count);}}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.OrdersEntity;
import com.entity.view.OrdersView;import com.service.OrdersService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;
import java.io.IOException;/*** 订单* 后端接口* author * email * date 2022-03-25 13:35:59*/
RestController
RequestMapping(/orders)
public class OrdersController {Autowiredprivate OrdersService ordersService;/*** 后端列表*/RequestMapping(/page)public R page(RequestParam MapString, Object params,OrdersEntity orders,HttpServletRequest request){if(!request.getSession().getAttribute(role).toString().equals(管理员)) {orders.setUserid((Long)request.getSession().getAttribute(userId));}EntityWrapperOrdersEntity ew new EntityWrapperOrdersEntity();PageUtils page ordersService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, orders), params), params));return R.ok().put(data, page);}/*** 前端列表*/IgnoreAuthRequestMapping(/list)public R list(RequestParam MapString, Object params,OrdersEntity orders, HttpServletRequest request){EntityWrapperOrdersEntity ew new EntityWrapperOrdersEntity();PageUtils page ordersService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, orders), params), params));return R.ok().put(data, page);}/*** 列表*/RequestMapping(/lists)public R list( OrdersEntity orders){EntityWrapperOrdersEntity ew new EntityWrapperOrdersEntity();ew.allEq(MPUtil.allEQMapPre( orders, orders)); return R.ok().put(data, ordersService.selectListView(ew));}/*** 查询*/RequestMapping(/query)public R query(OrdersEntity orders){EntityWrapper OrdersEntity ew new EntityWrapper OrdersEntity();ew.allEq(MPUtil.allEQMapPre( orders, orders)); OrdersView ordersView ordersService.selectView(ew);return R.ok(查询订单成功).put(data, ordersView);}/*** 后端详情*/RequestMapping(/info/{id})public R info(PathVariable(id) Long id){OrdersEntity orders ordersService.selectById(id);return R.ok().put(data, orders);}/*** 前端详情*/IgnoreAuthRequestMapping(/detail/{id})public R detail(PathVariable(id) Long id){OrdersEntity orders ordersService.selectById(id);return R.ok().put(data, orders);}/*** 后端保存*/RequestMapping(/save)public R save(RequestBody OrdersEntity orders, HttpServletRequest request){orders.setId(new Date().getTime()new Double(Math.floor(Math.random()*1000)).longValue());//ValidatorUtils.validateEntity(orders);orders.setUserid((Long)request.getSession().getAttribute(userId));ordersService.insert(orders);return R.ok();}/*** 前端保存*/RequestMapping(/add)public R add(RequestBody OrdersEntity orders, HttpServletRequest request){orders.setId(new Date().getTime()new Double(Math.floor(Math.random()*1000)).longValue());//ValidatorUtils.validateEntity(orders);ordersService.insert(orders);return R.ok();}/*** 修改*/RequestMapping(/update)public R update(RequestBody OrdersEntity orders, HttpServletRequest request){//ValidatorUtils.validateEntity(orders);ordersService.updateById(orders);//全部更新return R.ok();}/*** 删除*/RequestMapping(/delete)public R delete(RequestBody Long[] ids){ordersService.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));}}WrapperOrdersEntity wrapper new EntityWrapperOrdersEntity();if(map.get(remindstart)!null) {wrapper.ge(columnName, map.get(remindstart));}if(map.get(remindend)!null) {wrapper.le(columnName, map.get(remindend));}if(!request.getSession().getAttribute(role).toString().equals(管理员)) {wrapper.eq(userid, (Long)request.getSession().getAttribute(userId));}int count ordersService.selectCount(wrapper);return R.ok().put(count, count);}/*** 按值统计*/RequestMapping(/value/{xColumnName}/{yColumnName})public R value(PathVariable(yColumnName) String yColumnName, PathVariable(xColumnName) String xColumnName,HttpServletRequest request) {MapString, Object params new HashMapString, Object();params.put(xColumn, xColumnName);params.put(yColumn, yColumnName);EntityWrapperOrdersEntity ew new EntityWrapperOrdersEntity();ew.in(status, new String[]{已支付,已发货,已完成});ListMapString, Object result ordersService.selectValue(params, ew);SimpleDateFormat sdf new SimpleDateFormat(yyyy-MM-dd);for(MapString, Object m : result) {for(String k : m.keySet()) {if(m.get(k) instanceof Date) {m.put(k, sdf.format((Date)m.get(k)));}}}return R.ok().put(data, result);}/*** 按值统计时间统计类型*/RequestMapping(/value/{xColumnName}/{yColumnName}/{timeStatType})public R valueDay(PathVariable(yColumnName) String yColumnName, PathVariable(xColumnName) String xColumnName, PathVariable(timeStatType) String timeStatType,HttpServletRequest request) {MapString, Object params new HashMapString, Object();params.put(xColumn, xColumnName);params.put(yColumn, yColumnName);params.put(timeStatType, timeStatType);EntityWrapperOrdersEntity ew new EntityWrapperOrdersEntity();ew.in(status, new String[]{已支付,已发货,已完成});ListMapString, Object result ordersService.selectTimeStatValue(params, ew);SimpleDateFormat sdf new SimpleDateFormat(yyyy-MM-dd);for(MapString, Object m : result) {for(String k : m.keySet()) {if(m.get(k) instanceof Date) {m.put(k, sdf.format((Date)m.get(k)));}}}return R.ok().put(data, result);}/*** 分组统计*/RequestMapping(/group/{columnName})public R group(PathVariable(columnName) String columnName,HttpServletRequest request) {MapString, Object params new HashMapString, Object();params.put(column, columnName);EntityWrapperOrdersEntity ew new EntityWrapperOrdersEntity();ew.in(status, new String[]{已支付,已发货,已完成});ListMapString, Object result ordersService.selectGroup(params, ew);SimpleDateFormat sdf new SimpleDateFormat(yyyy-MM-dd);for(MapString, Object m : result) {for(String k : m.keySet()) {if(m.get(k) instanceof Date) {m.put(k, sdf.format((Date)m.get(k)));}}}return R.ok().put(data, result);}}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.CartEntity;
import com.entity.view.CartView;import com.service.CartService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;
import java.io.IOException;/*** 购物车表* 后端接口* author * email * date 2022-03-25 13:35:59*/
RestController
RequestMapping(/cart)
public class CartController {Autowiredprivate CartService cartService;/*** 后端列表*/RequestMapping(/page)public R page(RequestParam MapString, Object params,CartEntity cart,HttpServletRequest request){if(!request.getSession().getAttribute(role).toString().equals(管理员)) {cart.setUserid((Long)request.getSession().getAttribute(userId));}EntityWrapperCartEntity ew new EntityWrapperCartEntity();PageUtils page cartService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, cart), params), params));return R.ok().put(data, page);}/*** 前端列表*/IgnoreAuthRequestMapping(/list)public R list(RequestParam MapString, Object params,CartEntity cart, HttpServletRequest request){EntityWrapperCartEntity ew new EntityWrapperCartEntity();PageUtils page cartService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, cart), params), params));return R.ok().put(data, page);}/*** 列表*/RequestMapping(/lists)public R list( CartEntity cart){EntityWrapperCartEntity ew new EntityWrapperCartEntity();ew.allEq(MPUtil.allEQMapPre( cart, cart)); return R.ok().put(data, cartService.selectListView(ew));}/*** 查询*/RequestMapping(/query)public R query(CartEntity cart){EntityWrapper CartEntity ew new EntityWrapper CartEntity();ew.allEq(MPUtil.allEQMapPre( cart, cart)); CartView cartView cartService.selectView(ew);return R.ok(查询购物车表成功).put(data, cartView);}/*** 后端详情*/RequestMapping(/info/{id})public R info(PathVariable(id) Long id){CartEntity cart cartService.selectById(id);return R.ok().put(data, cart);}/*** 前端详情*/IgnoreAuthRequestMapping(/detail/{id})public R detail(PathVariable(id) Long id){CartEntity cart cartService.selectById(id);return R.ok().put(data, cart);}/*** 后端保存*/RequestMapping(/save)public R save(RequestBody CartEntity cart, HttpServletRequest request){cart.setId(new Date().getTime()new Double(Math.floor(Math.random()*1000)).longValue());//ValidatorUtils.validateEntity(cart);cart.setUserid((Long)request.getSession().getAttribute(userId));cartService.insert(cart);return R.ok();}/*** 前端保存*/RequestMapping(/add)public R add(RequestBody CartEntity cart, HttpServletRequest request){cart.setId(new Date().getTime()new Double(Math.floor(Math.random()*1000)).longValue());//ValidatorUtils.validateEntity(cart);cartService.insert(cart);return R.ok();}/*** 修改*/RequestMapping(/update)public R update(RequestBody CartEntity cart, HttpServletRequest request){//ValidatorUtils.validateEntity(cart);cartService.updateById(cart);//全部更新return R.ok();}/*** 删除*/RequestMapping(/delete)public R delete(RequestBody Long[] ids){cartService.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));}}WrapperCartEntity wrapper new EntityWrapperCartEntity();if(map.get(remindstart)!null) {wrapper.ge(columnName, map.get(remindstart));}if(map.get(remindend)!null) {wrapper.le(columnName, map.get(remindend));}if(!request.getSession().getAttribute(role).toString().equals(管理员)) {wrapper.eq(userid, (Long)request.getSession().getAttribute(userId));}int count cartService.selectCount(wrapper);return R.ok().put(count, count);}}