Java简单的订餐系统(附系统代码)

这篇具有很好参考价值的文章主要介绍了Java简单的订餐系统(附系统代码)。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

一、简介

        本项目是个Java开发的简单的外卖订餐系统(未使用数据库)。

        实现的功能:注册、登录、点餐、查看历史订单、余额充值及优惠券,并将数据写入本地文件。

二、大致过程

1、首先设计登录及注册功能,涉及管理员和用户,其中管理员是账号、密码都为admin的用,使用字节流将账号和密码写入本地文件,根据登录时不同的用户,展示不同的界面。

用户界面

外卖点餐系统登录界面代码,java,idea

 管理员界面

外卖点餐系统登录界面代码,java,idea文章来源地址https://www.toymoban.com/news/detail-765483.html

代码

Admin类

package com.order;

import java.io.*;
import java.util.*;
import java.util.function.BiConsumer;

public class Admin extends User{
    //更新user文件
    public void userWriter(Map<String, String> accountMap) throws IOException {
        OutputStream outputStream = new FileOutputStream(OrderSystem.path+"user.txt");
        Iterator<Map.Entry<String, String>> iterator = accountMap.entrySet().iterator();
        while (iterator.hasNext()){
            String account = iterator.next().getKey();
            String psw = accountMap.get(account);
            outputStream.write((account+","+psw+"\n").getBytes());
        }
        outputStream.close();
    }
    //删除User
    public Map<String, String> deleteUser(Map<String, String> accountMap) throws IOException {
        System.out.print("请输入要删除的用户名:");
        Scanner scanner = new Scanner(System.in);
        String name = scanner.nextLine();
        accountMap.remove(name);
        userWriter(accountMap);
        return accountMap;

    }
    //读取user
    public Map<String, String> loadAccountMap() throws IOException {
        InputStream inputStream = new FileInputStream(OrderSystem.path+"user.txt");
        Map<String, String> accountMap = new HashMap<>();
        InputStreamReader inputStreamReader = new InputStreamReader(inputStream);
        BufferedReader bufferedReader = new BufferedReader(inputStreamReader);
        String line;
        while ((line = bufferedReader.readLine())!=null){
            String[] strings = line.split(",");
            accountMap.put(strings[0],strings[1]);
        }
        inputStream.close();
        return accountMap;
    }
    //更新Food
    public void foodWriter(Map<Integer, Food> foodMap) throws IOException {
        OutputStream outputStream = new FileOutputStream(OrderSystem.path+"food.txt");
        ObjectOutputStream objectOutputStream = new ObjectOutputStream(outputStream);
        objectOutputStream.writeObject(foodMap);
        objectOutputStream.close();
    }
    //添加Food
    public Map<Integer, Food> addFood(Map<Integer, Food> foodMap) throws IOException, ClassNotFoundException {
        Scanner scanner = new Scanner(System.in);

        foodMap.forEach(new BiConsumer<Integer, Food>() {
            @Override
            public void accept(Integer integer, Food food) {
                System.out.println(integer+"\t"+food.getName()+"\t"+food.getPrice());
            }
        });
        System.out.println("--------------");
        System.out.print("输入菜品名称:");
        String name = scanner.nextLine();
        System.out.print("输入菜品价格:");
        int price = scanner.nextInt();
        foodMap.put(foodMap.size()+1,new Food(name,price));
        foodWriter(foodMap);
        return foodMap;
    }
    //读取Food
    public Map<Integer, Food> foodReader() throws IOException, ClassNotFoundException {
        InputStream inputStream = new FileInputStream(OrderSystem.path+"food.txt");
        ObjectInputStream objectInputStream = new ObjectInputStream(inputStream);
        Object object = objectInputStream.readObject();
        objectInputStream.close();
        Map map = (Map) object;
        return map;
    }
    //更改价格
    public Map<Integer, Food> changePrice(Map<Integer, Food> foodMap) throws IOException {
        new User().selectFood(foodMap);
        Scanner scanner = new Scanner(System.in);
        System.out.print("更改价格的菜品编号");
        Integer num = scanner.nextInt();
        if (!foodMap.containsKey(num)){
            System.out.println("编号不存在");
            return foodMap;
        }
        System.out.print("更改价格为:");
        Integer price = scanner.nextInt();
        Food food = foodMap.get(num);
        food.setPrice(price);
        foodMap.put(num,food);
        foodWriter(foodMap);
        return foodMap;

    }
    //更改密码
    public Map<String, String> changePassword(Map<String, String> accountMap) throws IOException {
        Scanner scanner = new Scanner(System.in);
        System.out.print("输入账号:");
        String account0 = scanner.nextLine();
        System.out.print("将密码更改为:");
        String psw0 = scanner.nextLine();
        accountMap.put(account0,psw0);
        userWriter(accountMap);
        return accountMap;
    }



    public void getUser(Map<String, String> accountMap){
        System.out.println("账号\t\t|密码");
        accountMap.forEach(new BiConsumer<String, String>() {
            @Override
            public void accept(String s, String s2) {
                System.out.println(s+"\t\t|"+s2);
            }
        });
    }

    public void main0(Map<String,String> accountMap,Map<Integer,Food> foodMap) throws IOException, ClassNotFoundException { ArrayList list = new ArrayList();
        //管理员界面
        Scanner scanner = new Scanner(System.in);
        int select1 = -1;
        while (select1 != 0){
            Menu.adminMenu();
            select1 = scanner.nextInt();
            switch (select1){
                case 0:
                    //0---退出系统
                    System.exit(0);
                    break;
                case 1:
                    //1---添加用户
                    register(accountMap);
                    break;
                case 2:
                    //2---删除用户
                    accountMap = deleteUser(accountMap);
                    break;
                case 3:
                    //3---添加菜品
                    foodMap = addFood(foodMap);
                    break;
                case 4:
                    //4---查看用户
                    getUser(accountMap);
                    break;
                case 5:
                    //5---修改密码
                     changePassword(accountMap);
                    break;
                case 6:
                    //6---修改菜价
                    changePrice(foodMap);
                    break;
                case 7:
                    //7---查询菜品
                    new User().selectFood(foodMap);
                    break;
                default:
                    System.out.println("输入错误请重新输入");

            }

        }
    }
}

 Food类

package com.order;

import java.io.Serializable;
import java.util.*;

public class Food implements Serializable {
    private String name;
    private int price;
    public Food(String name, int price) {
        this.name = name;
        this.price = price;
    }

    @Override
    public String toString() {
        return name+"\t"+price;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }
}

Menu类

package com.order;

public class Menu {
    public static void adminMenu(){
        System.out.println("----------------------");
        System.out.println("0---退出系统");
        System.out.println("1---添加用户");
        System.out.println("2---删除用户");
        System.out.println("3---添加菜品");
        System.out.println("4---查看用户");
        System.out.println("5---修改密码");
        System.out.println("6---修改菜价");
        System.out.println("7---查询菜品");
        System.out.println("----------------------");
        System.out.printf("请选择功能:");
    }
    public static void userMenu(){
        System.out.println("----------------------");
        System.out.println("0---退出系统");
        System.out.println("1---点餐");
        System.out.println("2---下单");
        System.out.println("3---查看历史订单");
        System.out.println("4---领取优惠券");
        System.out.println("5---查看优惠券");
        System.out.println("6---查看菜品");
        System.out.println("7---查看余额");
        System.out.println("8---充值余额");
        System.out.println("----------------------");
        System.out.printf("请选择功能:");
    }
}

User类

package com.order;

import java.io.*;
import java.util.*;
import java.util.function.BiConsumer;


public class User implements Serializable{
    private String account;
    private transient String password;
    //优惠券Map<优惠金额,数量>
    private Map<Integer,Integer> discountCard = new HashMap<>();
    //订单表Map<订单号,Map<菜品编号,价格>>
    private Map<Integer,Map<Integer, Integer>> orderMap = new HashMap<>();
    //余额
    private double balance;
    //优惠金额
    private int discount;
    //返回优惠券表
    public Map<Integer,Integer> getDiscountCard() {
        return discountCard;
    }
    //充值余额
    public void recharge(double d){
        this.setBalance(this.balance+d);
    }
    //输出优惠券表
    public void printDiscountCard(){
        if (this.discountCard.isEmpty()){
            System.out.println("无优惠券");
            return;
        }
        System.out.println("优惠金额\t|数量");
        Iterator<Map.Entry<Integer,Integer>> iterator = this.discountCard.entrySet().iterator();
        while(iterator.hasNext()){
            Map.Entry<Integer,Integer> entry = iterator.next();
            System.out.println(entry.getKey()+"\t\t|"+entry.getValue());
        }
    }
    //领取优惠券
    public void setDiscountCard(LinkedList<User> list) {
        Random random = new Random();
        int p = random.nextInt(5)+1;
        System.out.println("获得一张"+p+"元优惠券!");

        if (this.discountCard.containsKey(p)){
            this.discountCard.put(p,this.discountCard.get(p)+1);
        }else{
            this.discountCard.put(p,1);
        }
        //list.add(this);

    }
    //登录
    public int login(Map<String, String> account, int count) throws InterruptedException {
        int c = 0;
        if (account.containsKey(this.account)&&account.get(this.account).equals(this.password)){
            if (this.account.equals("admin")){
                System.out.println("管理员登录成功");
                return 2;
            }else {
                System.out.println("登录成功");
                return 1;
            }

        }else{
            return 0;
        }
    }
    //注册
    public void register(Map<String, String> accountMap) throws IOException {
        OutputStream outputStream = new FileOutputStream(OrderSystem.path+"user.txt",true);
        System.out.println("注册功能:");
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入");
        System.out.print("账号:");
        String uName = scanner.nextLine();
        System.out.print("密码:");
        String psw = scanner.nextLine();
        if (accountMap.containsKey(uName)){
            System.out.println("用户名已存在!");
        }else{
            for (int i = 0; i < OrderSystem.MAX_User; i++) {
                if (!accountMap.containsKey(i)){
                    accountMap.put(uName,psw);
                }
            }

            outputStream.write((uName+","+psw+"\n").getBytes());
        }
    }
    //查询菜品
    public void selectFood(Map<Integer,Food> foodMap){
        System.out.println("菜品编号\t|菜品名称\t|价格");
        foodMap.forEach(new BiConsumer<Integer, Food>() {
            @Override
            public void accept(Integer integer, Food food) {
                System.out.println(integer+"\t\t|"+food.getName()+"\t|"+food.getPrice());
            }
        });
    }
    //点餐
    public void orderFood(Map<Integer,Food> foodMap,Map<Integer, Integer> shopMap){
        //点餐
        //菜品编号
        Scanner scanner = new Scanner(System.in);
        int num;
        System.out.print("请输入菜品编号:");
        num = scanner.nextInt();
        //校验编号是否合法
        while(!foodMap.containsKey(num)){
            if (!foodMap.containsKey(num)){
                System.out.println("编号不存在,请重新输入");
            }
            num = scanner.nextInt();
        }
        //购买数量
        int amount = 0;
        //校验数量是否合法
        while(amount<=0){
            System.out.printf("请输入购买数量:");
            amount = scanner.nextInt();
            if (amount<=0){
                System.out.println("输入错误,请重新输入");
            }
        }
        //购物车中存在相同商品将数量相加
        if (shopMap.containsKey(num)){
            shopMap.put(num,shopMap.get(num)+amount);
        }else {
            shopMap.put(num,amount);
        }
        System.out.println("菜品名称\t|数量\t|价格");
        //创建迭代器
        Iterator<Map.Entry<Integer,Integer>> orderIterator = shopMap.entrySet().iterator();
        Map.Entry<Integer,Integer> orderEntry ;
        Integer sumPrice = 0;
        String name = null;
        Integer count = null;
        Integer price = null;
        //迭代器循环
        while (orderIterator.hasNext()){
            orderEntry = orderIterator.next();
            //通过food类中的foodMap获取编号对应的名称
            name = foodMap.get(orderEntry.getKey()).getName();
            //数量
            count = orderEntry.getValue();
            //价格=单价*数量
            price = foodMap.get(orderEntry.getKey()).getPrice()*count;
            sumPrice +=price;
            System.out.println(name+"\t|"+count+"\t\t|"+price);
        }
        System.out.println("总价:"+sumPrice);
    }
    //输出历史订单
    public void getOrder(Map<Integer,Food> foodMap,int num){

        Integer sumPrice = 0;
        String name = null;
        Integer count = null;
        Integer price = null;
        //遍历历史订单并输出
        for (int i = num; i < this.orderMap.size(); i++) {
            System.out.println("----------------------");
            System.out.println("订单号:"+i);
            Iterator<Map.Entry<Integer, Integer>> orderIterator = this.orderMap.get(i).entrySet().iterator();
            Map.Entry<Integer,Integer> orderEntry ;
            //迭代器循环
            while (orderIterator.hasNext()){
                orderEntry = orderIterator.next();
                //通过food类中的foodMap获取编号对应的名称
                name = foodMap.get(orderEntry.getKey()).getName();
                //数量
                count = orderEntry.getValue();
                //价格=单价*数量
                price = foodMap.get(orderEntry.getKey()).getPrice()*count;
                sumPrice +=price;
                System.out.println(name+"\t|"+count+"\t\t|"+price);
            }
            System.out.println("总价:"+sumPrice);
            sumPrice = 0;
            System.out.println("----------------------");
        }
    }
    //下单
    public void placeOrder(Map<Integer,Food> foodMap,Map<Integer, Integer> shopMap,LinkedList<User> list) throws IOException {
        if (shopMap.isEmpty()){
            System.out.println("订单为空请重新点餐");
            return;
        }

        Map<Integer, Integer> sMap = new HashMap<>();
        //拷贝购物车
        sMap.putAll(shopMap);
        int sum = 0;

        Iterator<Map.Entry<Integer,Integer>> iterator = shopMap.entrySet().iterator();
        Map.Entry<Integer,Integer> orderEntry ;

        while (iterator.hasNext()){
            orderEntry = iterator.next();
            //总价+=单价*数量
            sum += foodMap.get(orderEntry.getKey()).getPrice()*orderEntry.getValue();
        }
        Scanner scanner = new Scanner(System.in);
        //输出优惠券
        this.printDiscountCard();
        if (!this.discountCard.isEmpty()){
            System.out.println("是否使用优惠券");
            System.out.println("0---否");
            System.out.println("1---是");
            int select = -1;
            while(!(select==0 || select==1)){
                select = scanner.nextInt();
                switch (select){
                    case 0:
                        this.discount = 0;
                        break;
                    case 1:
                        System.out.print("请输入你要使用的优惠券金额为:");
                        this.discount = scanner.nextInt();
                        //存在该金额,数量-1
                        if (this.discountCard.containsKey(discount)){
                            this.discountCard.put(discount,this.discountCard.get(discount)-1);
                            if (this.discountCard.get(discount)==0){
                                this.discountCard.remove(discount);
                            }
                        }
                        break;
                    default:
                        System.out.println("输入错误,请重新输入");
                }
            }
        }



        sum -=discount;
        if (this.balance<sum){
            System.out.println("余额不足,请重新下单。当前余额:"+this.balance);
            shopMap.clear();
            return;
        }
        this.setBalance(this.balance-sum);
        orderMap.put(orderMap.size(), sMap);
        shopMap.clear();

        this.getOrder(foodMap,orderMap.size()-1);
        System.out.println("优惠:"+discount);
        System.out.println("支付:"+sum);
        System.out.println("----------------------");
        //将登录的user添加进list
        //list.add(this);
        //System.out.println("历史订单查询完毕");
    }
    //读取uuser
    public LinkedList<User> listReader() throws IOException, ClassNotFoundException {
        InputStream inputStream = new FileInputStream(OrderSystem.path+"uuser.txt");
        ObjectInputStream objectInputStream = new ObjectInputStream(inputStream);
        Object object = objectInputStream.readObject();
        objectInputStream.close();
        LinkedList<User> list = (LinkedList<User>) object;
        return list;
    }
    //更新文件
    public void listWriter(LinkedList<User> list) throws IOException {
        list.add(this);
        OutputStream outputStream = new FileOutputStream(OrderSystem.path+"uuser.txt");
        ObjectOutputStream objectOutputStream = new ObjectOutputStream(outputStream);
        objectOutputStream.writeObject(list);
        objectOutputStream.close();
        list.remove(this);
    }
    //主方法
    public void main(Map<Integer,Food> foodMap,Map<Integer, Integer> shopMap,LinkedList<User> list) throws IOException, InterruptedException {
        Menu.userMenu();
        for (int i = 0; i < list.size(); i++) {
            if (list.get(i).equals(this)){
                //如果文件中存在同名user,把该user的历史订单拷贝
                this.orderMap.putAll(list.get(i).getOrderMap());
                this.discountCard.putAll(list.get(i).getDiscountCard());
                this.setBalance(list.get(i).getBalance());
                list.remove(i);
                break;
            }
        }

        Scanner scanner = new Scanner(System.in);
        int  select = scanner.nextInt();
        switch (select){
            case 0:
                //0---退出系统
                System.exit(0);

                break;
            case 1:
                //1---点餐
                orderFood(foodMap,shopMap);
                break;
            case 2:
                //2---下单
                placeOrder(foodMap,shopMap,list);
                //list.add(this);
                this.listWriter(list);
                break;
            case 3:
                //3---查看历史订单
                this.getOrder(foodMap,0);
                break;
            case 4:
                //4---领取优惠券
                this.setDiscountCard(list);
                //更新文件
                this.listWriter(list);
                break;
            case 5:
                //5---查看优惠券
                this.printDiscountCard();
                break;
            case 6:
                //6---查看菜品
                selectFood(foodMap);
                break;
            case 7:
                //7---查看余额
                System.out.println("余额:"+this.getBalance());
                break;
            case 8:
                //8---充值余额
                System.out.print("输入要充值的金额:");
                double money = scanner.nextDouble();
                Thread.sleep(500);
                this.recharge(money);
                //更新文件
                this.listWriter(list);
                System.out.println("充值成功,当前余额:"+this.getBalance());
                break;
            default:
                System.out.println("输入错误请重新输入");
        }
    }

    @Override
    public boolean equals(Object o) {
        User u = (User)o;
        if (u.getAccount().equals(this.getAccount())){
            return true;
        }else {
            return false;
        }
    }

    @Override
    public int hashCode() {
        return Objects.hash(account, password);
    }

    public User() {

    }

    public User(String account,String password){
        this.account=account;
        this.password=password;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Map<Integer, Map<Integer, Integer>> getOrderMap() {
        return orderMap;
    }

    public void setOrderMap(Map<Integer, Map<Integer, Integer>> orderMap) {
        this.orderMap = orderMap;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }
}

OrderSystem类

package com.order;


import java.io.*;
import java.util.*;


public class OrderSystem {
    //最大存储量
    public static int MAX_User = 99;
    //文件路径
    public static String path = "D:\\01Buka\\Java394\\src\\com\\order\\";

    public static void main(String[] args) throws InterruptedException, IOException, ClassNotFoundException {

        //账户表account(账号,密码)
        Map<String, String> accountMap = new Admin().loadAccountMap();
        //购物车shopMap
        Map<Integer, Integer> shopMap = new HashMap<>();
        //用户表list(账号,订单表)
        LinkedList<User> list = new User().listReader();
        //LinkedList<User> list = new LinkedList<>();
        //菜谱表
        Map<Integer, Food> foodMap  = new Admin().foodReader();
        //未将序列化文件写入本地之前,需要将上面这行代码注释,运行下面这行代码;若已将序列化文件写入本地,则反之
        //FileReader fileReader = new FileReader(path+"user.txt");
        InputStream inputStream = new FileInputStream(path+"user.txt");
        InputStreamReader inputStreamReader = new InputStreamReader(inputStream);
        BufferedReader bufferedReader = new BufferedReader(inputStreamReader);
        //FileWriter fileWriter = new FileWriter(path+"user.txt");
        OutputStream outputStream = new FileOutputStream(path+"user.txt",true);
        Scanner scanner = new Scanner(System.in);

        User user = null;

        boolean flag = true;
        int select = 0;
        while (flag){
            System.out.println("----------------------");
            System.out.println("0---注册");
            System.out.println("1---登录");
            System.out.println("----------------------");
            System.out.print("请选择功能:");
            select = scanner.nextInt();
            switch (select){
                case 0:{
                    new User().register(accountMap);
                break;
                }
                case 1:{
                    Scanner scanner0 = new Scanner(System.in);
                    String account;
                    String password;
                    int log = 0;
                    for (int i = 0; i < 3; i++) {
                        System.out.println("登录功能:");
                        System.out.println("请输入");
                        System.out.print("账号:");
                        account = scanner0.nextLine();
                        System.out.print("密码:");
                        password = scanner0.nextLine();
                        user = new User(account,password);
                        log = user.login(accountMap,0);

                        if (log == 0){
                            System.out.println("用户名不存在或密码错误");
                        }else {
                            break;
                        }
                        if (i == 2){
                            System.out.println("等待10s重试");
                            Thread.sleep(10000);
                            i=0;
                        }
                    }
                    if (log == 2){
                        //管理员界面
                        new Admin().main0(accountMap,foodMap);
                    }else if (log== 1){
                        //用户界面
                        System.out.println("用户界面");
                        //orderMap = user.loadUserOrder();
                        while (flag){
                            user.main(foodMap, shopMap,list);
                        }
                    }else if (log== 0){
                        System.out.println("登录失败");
                        System.exit(0);
                    }
                    flag = false;
                    break;
                }
                default:
                    System.out.println("输入错误请重新输入");

            }
        }


    }
}

到了这里,关于Java简单的订餐系统(附系统代码)的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包赞助服务器费用

相关文章

  • 微信小程序外卖跑腿点餐(订餐)系统(uni-app+SpringBoot后端+Vue管理端技术实现)

    微信小程序外卖跑腿点餐(订餐)系统(uni-app+SpringBoot后端+Vue管理端技术实现)

    自从计算机发展开始,计算机软硬件相关技术的发展速度越来越快,在信息化高速发展的今天,计算机应用技术似乎已经应用到了各个领域。 在餐饮行业,除了外卖以外就是到店里就餐,在店里就餐如果需要等待点餐的话,用户的体验度就会急剧下降,很多餐饮店也开始开发

    2024年04月11日
    浏览(6)
  • 【毕业设计/课程设计】基于android的订餐系统设计与实现(源码+文章) 含Web管理端 安卓外卖点餐

    【毕业设计/课程设计】基于android的订餐系统设计与实现(源码+文章) 含Web管理端 安卓外卖点餐

    1、数据库:MySQL 2、开发工具 安卓端:android studio 管理后端:Idea、Eclipse、MyEclipse等Java开发工具均可 安卓端采用android studio工具开发,管理后端采用Java语言,MySQL数据库,开发框架是SpringBoot+VUE       利用网络管理各行各业的业务操作已经成为必然趋势。菜品通过网络进行销

    2024年02月04日
    浏览(18)
  • 基于微信小程序在线外卖点餐订餐系统设计与实现 毕业设计论文大纲参考(JSP后台)

     博主介绍 :黄菊华老师《Vue.js入门与商城开发实战》《微信小程序商城开发》图书作者,CSDN博客专家,在线教育专家,CSDN钻石讲师;专注大学生毕业设计教育和辅导。 所有项目都配有从入门到精通的基础知识视频课程,学习后应对毕业设计答辩。 项目配有对应开发文档、

    2024年02月19日
    浏览(9)
  • Nodejs+Vue校园餐厅外卖订餐点餐系统 PHP高校食堂 微信小程序_0u4hl 多商家

    Nodejs+Vue校园餐厅外卖订餐点餐系统 PHP高校食堂 微信小程序_0u4hl 多商家

    对于校园订餐小程序将是又一个传统管理到智能化信息管理的改革,对于传统的校园订餐管理,所包括的信息内容比较多,对于用户想要对这些数据进行管理维护需要花费很大的时间信息,而且对于数据的存储比较麻烦,想要查找某一相关的数据信息比较繁琐,随着互联网大

    2024年01月16日
    浏览(10)
  • Java简单的订餐系统(附系统代码)

    Java简单的订餐系统(附系统代码)

            本项目是个Java开发的简单的外卖订餐系统(未使用数据库)。         实现的功能:注册、登录、点餐、查看历史订单、余额充值及优惠券,并将数据写入本地文件。 1、首先设计登录及注册功能,涉及管理员和用户,其中管理员是账号、密码都为admin的用,

    2024年02月04日
    浏览(4)
  • springboot(ssm美食网站 网上点餐系统 外卖点餐Java系统

    springboot(ssm美食网站 网上点餐系统 外卖点餐Java系统 开发语言:Java 框架:ssm/springboot + vue JDK版本:JDK1.8(或11) 服务器:tomcat 数据库:mysql 5.7(或8.0) 数据库工具:Navicat 开发软件:eclipse//idea 依赖管理包:Maven 如需了解更多代码细节或修改代码功能界面,本人都能提供技

    2024年01月23日
    浏览(10)
  • 微信小程序 java 早茶点餐订餐预定系统 python php

    微信小程序 java 早茶点餐订餐预定系统 python php

    前端环境:微信开发者工具/Android tudio/hbuilderX 后端环境:idea,eclipse,vscode,pycharm等主流ide工具  原生小程序写起来太麻烦,比如绑定一个啥输入框事件。。 原生wxml开发对Node、预编译器、webpack支持不好,影响开发效率和工程构建流程。所以会用框架开发 uni-app框架:使用Vue.js开发

    2024年02月10日
    浏览(8)
  • 微信智能点餐小程序系统软件开发源代码案例以及微信智能订餐小程序系统需要哪些功能

    微信智能点餐小程序系统软件开发源代码案例以及微信智能订餐小程序系统需要哪些功能

    随着科技的发展和人们生活节奏的加快,智能点餐APP逐渐成为餐饮行业的热门应用。不仅为顾客提供了便捷的点餐服务,还能帮助餐厅提高效率,降低成本。因此,开发一款智能订餐app具有很高的商业价值和社会效益。   开发一款功能齐全、用户体验优秀的智能点餐APP,满足

    2024年04月27日
    浏览(12)
  • 基于Java+SpringBoot+Thymeleaf(校园)点餐/外卖系统设计与实现

    基于Java+SpringBoot+Thymeleaf(校园)点餐/外卖系统设计与实现

    博主介绍: ✌全网粉丝3W+,全栈开发工程师,从事多年软件开发,在大厂呆过。持有软件中级、六级等证书。可提供微服务项目搭建与毕业项目实战,博主也曾写过优秀论文,查重率极低,在这方面有丰富的经验✌ 博主作品: 《Java项目案例》主要基于SpringBoot+MyBatis/MyBatis

    2024年02月02日
    浏览(9)
  • 用java写个简单的登录系统(终端界面实现)

    一、简介 这是一个简单的Java登录系统,通过命令行界面实现。用户可以选择登录、注册或退出系统,登录时需要输入账号和密码进行验证,注册时需要输入新的账号和密码并将其保存到系统中。本系统使用了继承和封装等面向对象编程的概念。 二、完整代码如下: 三、代码

    2024年02月12日
    浏览(10)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包