日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > windows >内容正文

windows

基于微信小程序的点餐与预约餐桌的管理系统+后台管理

發布時間:2024/3/13 windows 33 豆豆
生活随笔 收集整理的這篇文章主要介紹了 基于微信小程序的点餐与预约餐桌的管理系统+后台管理 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

項目背景

社會的發展和科學技術的進步,互聯網技術越來越受歡迎。手機也逐漸受到廣大人民群眾的喜愛,也逐漸進入了每個用戶的使用。手機具有便利性,速度快,效率高,成本低等優點。 因此,構建符合自己要求的操作系統是非常有意義的。
本文從管理員、用戶的功能要求出發,微信點餐小程序中的功能模塊主要是實現管理員服務端;首頁、個人中心、用戶管理、美食管理、美食類型管理、餐桌管理、預定餐桌管理、美食定制管理、定制信息管理、系統管理、訂單管理,用戶客戶端;首頁、美食、我的等功能。經過認真細致的研究,精心準備和規劃,最后測試成功,系統可以正常使用。分析功能調整與微信點餐小程序實現的實際需求相結合,討論了Java技術開發微信點餐小程序的使用。

關鍵字: 微信點餐小程序 Java技術

功能設計

功能模塊圖

本微信點餐小程序結構

用戶管理實體屬性圖

美食管理實體屬性圖

餐桌管理實體屬性圖

預定餐桌管理實體屬性圖

功能截圖

管理員服務端功能模塊

管理員通過點擊后臺管理,進入頁面可以輸入用戶名、密碼、角色進行登錄

管理員通過點擊后臺管理,進入頁面可以查看首頁、個人中心、用戶管理、美食管理、美食類型管理、餐桌管理、預定餐桌管理、美食定制管理、定制信息管理、系統管理、訂單管理等功能模塊,進行相對應操作

用戶管理:通過用戶管理頁面可以獲取個人賬號、姓名、性別、年齡、身份證號碼、手機號碼、相片等并進行詳情、刪除、修改等操作
美食管理:通過美食管理頁面可以獲取美食編號、美食名稱、美食類型、原材料、簡介、美食圖片、上架日期、價格等信息,并進行詳情、刪除、查看評論、修改等操作

美食類型管理:通過美食類型管理頁面可以獲取美食類型等信息,并進行詳情、刪除、修改等操作

餐桌管理:通過餐桌管理頁面可以獲取餐桌編號、餐桌名稱、位置、地址、相關圖片、座位、上架日期等信息,并進行詳情、刪除、查看評論、修改等操作

預定餐桌管理:通過預定餐桌管理頁面可以獲取餐桌編號、餐桌名稱、位置、地址、相關圖片、座位、個人賬號、姓名、申請日期、預計時間、審核回復、審核狀態、審核等信息,并進行詳情操作

定制信息管理:通過定制信息管理頁面可以獲取定制編號、定制名稱、相關圖片、發布日期、定制菜品、美食類型、忌口、備注、個人賬號、姓名、申請日期、審核回復、審核狀態、審核等信息,并進行詳情操作

輪播圖;該頁面為輪播圖管理界面。管理員可以在此頁面進行首頁輪播圖的管理,通過新建操作可在輪播圖中加入新的圖片,還可以對以上傳的圖片進行修改操作,以及圖片的刪除操作

訂單管理:通過訂單管理頁面可以獲取訂單編號、商品名稱、商品圖片、購買數量、價格/積分、折扣價格、總價格/總積分、折扣總價格、支付類型、狀態、地址等信息,并進行詳情、發貨等操作

用戶客戶端功能模塊

用戶注冊,在注冊頁面填寫個人賬號、密碼、姓名、性別、年齡、身份證號碼、手機號碼進行注冊

用戶登錄,在登錄頁面填寫賬號、密碼進行登錄

用戶登錄到首頁可以查看首頁、美食、我的等內容

在用戶信息頁面可以填寫個人賬號、密碼、姓名、性別、年齡、身份證號碼、手機號碼、相片等信息進行保存、退出登錄操作

在美食頁面可以查看美食編號、美食名稱、美食類型、原材料、簡介、美食圖片、上架日期、價格等信息,并可根據需要進行加入購物車、立即訂購或點我收藏等操作

在餐桌頁面可以查看餐桌編號、餐桌名稱、位置、地址、相關圖片、座位、上架日期等信息,并可根據需要對餐桌進行預約或點我收藏操作

相關代碼

數據庫配置

validationQuery=SELECT 1jdbc_url=jdbc:mysql://127.0.0.1:3306/ssmd01f1?useUnicode=true&characterEncoding=UTF-8&tinyInt1isBit=false jdbc_username=root jdbc_password=123456#jdbc_url=jdbc:sqlserver://127.0.0.1:1433;DatabaseName=ssmd01f1 #jdbc_username=sa #jdbc_password=123456

控制層(controller)

package com.controller;import java.util.Arrays; import java.util.Calendar; import java.util.Date; import java.util.Map;import javax.servlet.http.HttpServletRequest;import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PostMapping; 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.ResponseBody; import org.springframework.web.bind.annotation.RestController;import com.annotation.IgnoreAuth; import com.baomidou.mybatisplus.mapper.EntityWrapper; import com.entity.TokenEntity; import com.entity.UserEntity; import com.service.TokenService; import com.service.UserService; import com.utils.CommonUtil; import com.utils.MD5Util; import com.utils.MPUtil; import com.utils.PageUtils; import com.utils.R; import com.utils.ValidatorUtils;/*** 登錄相關*/ @RequestMapping("users") @RestController public class UserController{@Autowiredprivate UserService userService;@Autowiredprivate TokenService tokenService;/*** 登錄*/@IgnoreAuth@PostMapping(value = "/login")public R login(String username, String password, String captcha, HttpServletRequest request) {UserEntity user = userService.selectOne(new EntityWrapper<UserEntity>().eq("username", username));if(user==null || !user.getPassword().equals(password)) {return R.error("賬號或密碼不正確");}String token = tokenService.generateToken(user.getId(),username, "users", user.getRole());return R.ok().put("token", token);}/*** 注冊*/@IgnoreAuth@PostMapping(value = "/register")public R register(@RequestBody UserEntity user){ // ValidatorUtils.validateEntity(user);if(userService.selectOne(new EntityWrapper<UserEntity>().eq("username", user.getUsername())) !=null) {return R.error("用戶已存在");}userService.insert(user);return R.ok();}/*** 退出*/@GetMapping(value = "logout")public R logout(HttpServletRequest request) {request.getSession().invalidate();return R.ok("退出成功");}/*** 密碼重置*/@IgnoreAuth@RequestMapping(value = "/resetPass")public R resetPass(String username, HttpServletRequest request){UserEntity user = userService.selectOne(new EntityWrapper<UserEntity>().eq("username", username));if(user==null) {return R.error("賬號不存在");}user.setPassword("123456");userService.update(user,null);return R.ok("密碼已重置為:123456");}/*** 列表*/@RequestMapping("/page")public R page(@RequestParam Map<String, Object> params,UserEntity user){EntityWrapper<UserEntity> ew = new EntityWrapper<UserEntity>();PageUtils page = userService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.allLike(ew, user), params), params));return R.ok().put("data", page);}/*** 列表*/@RequestMapping("/list")public R list( UserEntity user){EntityWrapper<UserEntity> ew = new EntityWrapper<UserEntity>();ew.allEq(MPUtil.allEQMapPre( user, "user")); return R.ok().put("data", userService.selectListView(ew));}/*** 信息*/@RequestMapping("/info/{id}")public R info(@PathVariable("id") String id){UserEntity user = userService.selectById(id);return R.ok().put("data", user);}/*** 獲取用戶的session用戶信息*/@RequestMapping("/session")public R getCurrUser(HttpServletRequest request){Long id = (Long)request.getSession().getAttribute("userId");UserEntity user = userService.selectById(id);return R.ok().put("data", user);}/*** 保存*/@PostMapping("/save")public R save(@RequestBody UserEntity user){ // ValidatorUtils.validateEntity(user);if(userService.selectOne(new EntityWrapper<UserEntity>().eq("username", user.getUsername())) !=null) {return R.error("用戶已存在");}userService.insert(user);return R.ok();}/*** 修改*/@RequestMapping("/update")public R update(@RequestBody UserEntity user){ // ValidatorUtils.validateEntity(user);UserEntity u = userService.selectOne(new EntityWrapper<UserEntity>().eq("username", user.getUsername()));if(u!=null && u.getId()!=user.getId() && u.getUsername().equals(user.getUsername())) {return R.error("用戶名已存在。");}userService.updateById(user);//全部更新return R.ok();}/*** 刪除*/@RequestMapping("/delete")public R delete(@RequestBody Long[] ids){userService.deleteBatchIds(Arrays.asList(ids));return R.ok();} }

業務層(Service)

package com.service;import java.util.List; import java.util.Map;import org.apache.ibatis.annotations.Param;import com.baomidou.mybatisplus.mapper.Wrapper; import com.baomidou.mybatisplus.service.IService; import com.entity.UserEntity; import com.utils.PageUtils;/*** 系統用戶*/ public interface UserService extends IService<UserEntity> {PageUtils queryPage(Map<String, Object> params);List<UserEntity> selectListView(Wrapper<UserEntity> wrapper);PageUtils queryPage(Map<String, Object> params,Wrapper<UserEntity> wrapper);}

數據訪問層(Dao)

package com.dao;import java.util.List;import org.apache.ibatis.annotations.Param;import com.baomidou.mybatisplus.mapper.BaseMapper; import com.baomidou.mybatisplus.mapper.Wrapper; import com.baomidou.mybatisplus.plugins.pagination.Pagination; import com.entity.UserEntity;/*** 用戶*/ public interface UserDao extends BaseMapper<UserEntity> {List<UserEntity> selectListView(@Param("ew") Wrapper<UserEntity> wrapper);List<UserEntity> selectListView(Pagination page,@Param("ew") Wrapper<UserEntity> wrapper);}

總結

以上是生活随笔為你收集整理的基于微信小程序的点餐与预约餐桌的管理系统+后台管理的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。