廖师兄 Spring Boot 企业微信点餐系统

数据表

-- 类目
create table `product_category` (
    `category_id` int not null auto_increment,
    `category_name` varchar(64) not null comment '类目名字',
    `category_type` int not null comment '类目编号',
    `create_time` timestamp not null default current_timestamp comment '创建时间',
    `update_time` timestamp not null default current_timestamp on update current_timestamp comment '修改时间',
    primary key (`category_id`)
);

-- 商品
create table `product_info` (
    `product_id` varchar(32) not null,
    `product_name` varchar(64) not null comment '商品名称',
    `product_price` decimal(8,2) not null comment '单价',
    `product_stock` int not null comment '库存',
    `product_description` varchar(64) comment '描述',
    `product_icon` varchar(512) comment '小图',
    `product_status` tinyint(3) DEFAULT '0' COMMENT '商品状态,0正常1下架',
    `category_type` int not null comment '类目编号',
    `create_time` timestamp not null default current_timestamp comment '创建时间',
    `update_time` timestamp not null default current_timestamp on update current_timestamp comment '修改时间',
    primary key (`product_id`)
);

-- 订单
create table `order_master` (
    `order_id` varchar(32) not null,
    `buyer_name` varchar(32) not null comment '买家名字',
    `buyer_phone` varchar(32) not null comment '买家电话',
    `buyer_address` varchar(128) not null comment '买家地址',
    `buyer_openid` varchar(64) not null comment '买家微信openid',
    `order_amount` decimal(8,2) not null comment '订单总金额',
    `order_status` tinyint(3) not null default '0' comment '订单状态, 默认为新下单',
    `pay_status` tinyint(3) not null default '0' comment '支付状态, 默认未支付',
    `create_time` timestamp not null default current_timestamp comment '创建时间',
    `update_time` timestamp not null default current_timestamp on update current_timestamp comment '修改时间',
    primary key (`order_id`),
    key `idx_buyer_openid` (`buyer_openid`)
);

-- 订单商品
create table `order_detail` (
    `detail_id` varchar(32) not null,
    `order_id` varchar(32) not null,
    `product_id` varchar(32) not null,
    `product_name` varchar(64) not null comment '商品名称',
    `product_price` decimal(8,2) not null comment '当前价格,单位分',
    `product_quantity` int not null comment '数量',
    `product_icon` varchar(512) comment '小图',
    `create_time` timestamp not null default current_timestamp comment '创建时间',
    `update_time` timestamp not null default current_timestamp on update current_timestamp comment '修改时间',
    primary key (`detail_id`),
    key `idx_order_id` (`order_id`)
);

-- 卖家(登录后台使用, 卖家登录之后可能直接采用微信扫码登录,不使用账号密码)
create table `seller_info` (
    `seller_id` varchar(32) not null,
    `username` varchar(32) not null,
    `password` varchar(32) not null,
    `openid` varchar(64) not null comment '微信openid',
    `create_time` timestamp not null default current_timestamp comment '创建时间',
    `update_time` timestamp not null default current_timestamp on update current_timestamp comment '修改时间',
    primary key (`seller_id`)
) comment '卖家信息表';

git

$ cd ~/IdeaProjects/spring_boot_sell
$ git init
$ git checkout -b api
$ git add . && git commit -m "Initial commit"
$ git remote add origin git@github.com:BeanHo/imooc_spring_boot_sell.git
$ git pull origin api --allow-unrelated-histories
$ git push -u origin api

转载于:https://my.oschina.net/beanho/blog/3020228

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
基于Spring Boot企业微信点餐系统是一种用于企业内部员工点餐的应用程序。该系统整合了Spring Boot框架的强大功能和企业微信的社交平台特点,旨在提供便捷、高效、可定制的点餐解决方案。 企业微信点餐系统的特点有以下几个方面: 1. 员工管理:系统通过企业微信的成员管理功能,可以实现员工账号的集中管理,包括员工基本信息、部门分组、权限设置等,方便企业进行员工管理和权限控制。 2. 菜单管理:系统提供了菜单管理功能,管理员可以添加、编辑、删除菜单及菜品信息,包括菜品名称、价格、图片等。员工可以根据菜单浏览自己喜欢的菜品,以及根据口味、分类等条件进行搜索。 3. 订单管理:员工可以在系统中选择菜品并下单,系统会自动生成订单并发送给后厨。管理员可以查看、管理所有订单,包括订单状态、支付情况、配送信息等。 4. 通知提醒:系统通过企业微信的消息推送功能,可以及时向员工发送订单状态、菜品推荐等消息提醒,保证员工及时了解订单状态,并提供优质的用餐服务。 5. 数据统计:系统可以根据订单数据进行统计分析,包括销售额、热门菜品、员工点餐情况等,为企业提供决策分析的依据。 综上所述,基于Spring Boot企业微信点餐系统是一种功能强大、易于管理的内部点餐解决方案,可以提高企业员工的用餐体验,优化餐厅管理流程,并提供数据统计分析服务,帮助企业做出更明智的决策。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值