Java毕业设计_基于spring的餐饮管理系统的设计和实现

基于spring的餐饮管理系统的设计和实现

基于spring的餐饮管理系统的设计和实现mysql数据库创建语句
基于spring的餐饮管理系统的设计和实现oracle数据库创建语句
基于spring的餐饮管理系统的设计和实现sqlserver数据库创建语句
基于spring的餐饮管理系统的设计和实现spring+springMVC+hibernate框架对象(javaBean,pojo)设计
基于spring的餐饮管理系统的设计和实现spring+springMVC+mybatis框架对象(javaBean,pojo)设计
高质量编程视频:shangyepingtai.xin

基于spring的餐饮管理系统的设计和实现mysql数据库版本源码:

超级管理员表创建语句如下:
create table t_admin(
id int primary key auto_increment comment ‘主键’,
username varchar(100) comment ‘超级管理员账号’,
password varchar(100) comment ‘超级管理员密码’
) comment ‘超级管理员’;
insert into t_admin(username,password) values(‘admin’,‘123456’);
SQLCopy
建议表创建语句如下:
create table t_contact(
id int primary key auto_increment comment ‘主键’,
customerId int comment ‘用户’,
phone varchar(100) comment ‘联系方式’,
content varchar(100) comment ‘内容’,
insertDate datetime comment ‘日期’
) comment ‘建议’;
SQLCopy
客户表创建语句如下:
create table t_customer(
id int primary key auto_increment comment ‘主键’,
username varchar(100) comment ‘账号’,
password varchar(100) comment ‘密码’,
customerName varchar(100) comment ‘姓名’,
sex varchar(100) comment ‘性别’,
address varchar(100) comment ‘地址’,
phone varchar(100) comment ‘手机’,
account int comment ‘账户’,
jf int comment ‘积分’,
jb varchar(100) comment ‘’
) comment ‘客户’;
SQLCopy
轮播图表创建语句如下:
create table t_lbt(
id int primary key auto_increment comment ‘主键’,
pic varchar(100) comment ‘图片’
) comment ‘轮播图’;
SQLCopy
订单表创建语句如下:
create table t_order(
id int primary key auto_increment comment ‘主键’,
customerId int comment ‘用户’,
productDetail varchar(100) comment ‘订单详细’,
allPrice varchar(100) comment ‘订单总价格’,
status varchar(100) comment ‘状态’,
orderNum varchar(100) comment ‘订单编号’,
pl varchar(100) comment ‘物流信息’,
insertDate datetime comment ‘日期’,
userId int comment ‘’,
orderDate varchar(100) comment ‘’
) comment ‘订单’;
SQLCopy
订单详情表创建语句如下:
create table t_orderlist(
id int primary key auto_increment comment ‘主键’,
customerId int comment ‘用户’,
orderId int comment ‘订单’,
productId int comment ‘菜品’
) comment ‘订单详情’;
SQLCopy
评论表创建语句如下:
create table t_pinglun(
id int primary key auto_increment comment ‘主键’,
wdxxId int comment ‘评论信息’,
customerId int comment ‘评论人’,
content varchar(100) comment ‘评论内容’,
insertDate datetime comment ‘评论日期’
) comment ‘评论’;
SQLCopy
表创建语句如下:
create table t_pinglun_product(
id int primary key auto_increment comment ‘主键’,
productId int comment ‘评论信息’,
customerId int comment ‘评论人’,
content varchar(100) comment ‘评论内容’,
insertDate datetime comment ‘评论日期’
) comment ‘’;
SQLCopy
产品表创建语句如下:
create table t_product(
id int primary key auto_increment comment ‘主键’,
productName varchar(100) comment ‘产品名称’,
productPic1 varchar(100) comment ‘图片1’,
productPic2 varchar(100) comment ‘图片2’,
productPic3 varchar(100) comment ‘图片3’,
productPic4 varchar(100) comment ‘图片4’,
price int comment ‘价格’,
oldPrice int comment ‘原价’,
content varchar(100) comment ‘内容’,
nums int comment ‘数量’,
tjxj varchar(100) comment ‘推荐星级’,
status varchar(100) comment ‘状态’,
typesId int comment ‘分类’,
jf int comment ‘积分’,
userId int comment ‘商家’,
bqId int comment ‘标签’
) comment ‘产品’;
SQLCopy
购物车表创建语句如下:
create table t_shopcar(
id int primary key auto_increment comment ‘主键’,
productId int comment ‘产品’,
num int comment ‘数量’,
customerId int comment ‘’
) comment ‘购物车’;
SQLCopy
分类表创建语句如下:
create table t_types(
id int primary key auto_increment comment ‘主键’,
typesName varchar(100) comment ‘分类’
) comment ‘分类’;
SQLCopy
普通员工表创建语句如下:
create table t_user(
id int primary key auto_increment comment ‘主键’,
username varchar(100) comment ‘账号’,
password varchar(100) comment ‘密码’,
name varchar(100) comment ‘姓名’,
gh varchar(100) comment ‘工号’,
mobile varchar(100) comment ‘手机’
) comment ‘普通员工’;
SQLCopy
我的消息表创建语句如下:
create table t_wdxx(
id int primary key auto_increment comment ‘主键’,
customerId int comment ‘我’,
title varchar(100) comment ‘标题’,
pic varchar(100) comment ‘图片’,
content varchar(100) comment ‘内容’,
zan int comment ‘赞’,
insertDate datetime comment ‘发布日期’,
nologin varchar(100) comment ‘游客是否可见’,
bkId int comment ‘’
) comment ‘我的消息’;
SQLCopy

基于spring的餐饮管理系统的设计和实现oracle数据库版本源码:

超级管理员表创建语句如下:
create table t_admin(
id integer,
username varchar(100),
password varchar(100)
);
insert into t_admin(id,username,password) values(1,‘admin’,‘123456’);
–超级管理员字段加注释
comment on column t_admin.id is ‘主键’;
comment on column t_admin.username is ‘超级管理员账号’;
comment on column t_admin.password is ‘超级管理员密码’;
–超级管理员表加注释
comment on table t_admin is ‘超级管理员’;
SQLCopy
建议表创建语句如下:
create table t_contact(
id integer,
customerId int,
phone varchar(100),
content varchar(100),
insertDate datetime
);
–建议字段加注释
comment on column t_contact.id is ‘主键’;
comment on column t_contact.customerId is ‘用户’;
comment on column t_contact.phone is ‘联系方式’;
comment on column t_contact.content is ‘内容’;
comment on column t_contact.insertDate is ‘日期’;
–建议表加注释
comment on table t_contact is ‘建议’;
SQLCopy
客户表创建语句如下:
create table t_customer(
id integer,
username varchar(100),
password varchar(100),
customerName varchar(100),
sex varchar(100),
address varchar(100),
phone varchar(100),
account int,
jf int,
jb varchar(100)
);
–客户字段加注释
comment on column t_customer.id is ‘主键’;
comment on column t_customer.username is ‘账号’;
comment on column t_customer.password is ‘密码’;
comment on column t_customer.customerName is ‘姓名’;
comment on column t_customer.sex is ‘性别’;
comment on column t_customer.address is ‘地址’;
comment on column t_customer.phone is ‘手机’;
comment on column t_customer.account is ‘账户’;
comment on column t_customer.jf is ‘积分’;
comment on column t_customer.jb is ‘’;
–客户表加注释
comment on table t_customer is ‘客户’;
SQLCopy
轮播图表创建语句如下:
create table t_lbt(
id integer,
pic varchar(100)
);
–轮播图字段加注释
comment on column t_lbt.id is ‘主键’;
comment on column t_lbt.pic is ‘图片’;
–轮播图表加注释
comment on table t_lbt is ‘轮播图’;
SQLCopy
订单表创建语句如下:
create table t_order(
id integer,
customerId int,
productDetail varchar(100),
allPrice varchar(100),
status varchar(100),
orderNum varchar(100),
pl varchar(100),
insertDate datetime,
userId int,
orderDate varchar(100)
);
–订单字段加注释
comment on column t_order.id is ‘主键’;
comment on column t_order.customerId is ‘用户’;
comment on column t_order.productDetail is ‘订单详细’;
comment on column t_order.allPrice is ‘订单总价格’;
comment on column t_order.status is ‘状态’;
comment on column t_order.orderNum is ‘订单编号’;
comment on column t_order.pl is ‘物流信息’;
comment on column t_order.insertDate is ‘日期’;
comment on column t_order.userId is ‘’;
comment on column t_order.orderDate is ‘’;
–订单表加注释
comment on table t_order is ‘订单’;
SQLCopy
订单详情表创建语句如下:
create table t_orderlist(
id integer,
customerId int,
orderId int,
productId int
);
–订单详情字段加注释
comment on column t_orderlist.id is ‘主键’;
comment on column t_orderlist.customerId is ‘用户’;
comment on column t_orderlist.orderId is ‘订单’;
comment on column t_orderlist.productId is ‘菜品’;
–订单详情表加注释
comment on table t_orderlist is ‘订单详情’;
SQLCopy
评论表创建语句如下:
create table t_pinglun(
id integer,
wdxxId int,
customerId int,
content varchar(100),
insertDate datetime
);
–评论字段加注释
comment on column t_pinglun.id is ‘主键’;
comment on column t_pinglun.wdxxId is ‘评论信息’;
comment on column t_pinglun.customerId is ‘评论人’;
comment on column t_pinglun.content is ‘评论内容’;
comment on column t_pinglun.insertDate is ‘评论日期’;
–评论表加注释
comment on table t_pinglun is ‘评论’;
SQLCopy
表创建语句如下:
create table t_pinglun_product(
id integer,
productId int,
customerId int,
content varchar(100),
insertDate datetime
);
–字段加注释
comment on column t_pinglun_product.id is ‘主键’;
comment on column t_pinglun_product.productId is ‘评论信息’;
comment on column t_pinglun_product.customerId is ‘评论人’;
comment on column t_pinglun_product.content is ‘评论内容’;
comment on column t_pinglun_product.insertDate is ‘评论日期’;
–表加注释
comment on table t_pinglun_product is ‘’;
SQLCopy
产品表创建语句如下:
create table t_product(
id integer,
productName varchar(100),
productPic1 varchar(100),
productPic2 varchar(100),
productPic3 varchar(100),
productPic4 varchar(100),
price int,
oldPrice int,
content varchar(100),
nums int,
tjxj varchar(100),
status varchar(100),
typesId int,
jf int,
userId int,
bqId int
);
–产品字段加注释
comment on column t_product.id is ‘主键’;
comment on column t_product.productName is ‘产品名称’;
comment on column t_product.productPic1 is ‘图片1’;
comment on column t_product.productPic2 is ‘图片2’;
comment on column t_product.productPic3 is ‘图片3’;
comment on column t_product.productPic4 is ‘图片4’;
comment on column t_product.price is ‘价格’;
comment on column t_product.oldPrice is ‘原价’;
comment on column t_product.content is ‘内容’;
comment on column t_product.nums is ‘数量’;
comment on column t_produ

  • 1
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
java项目package project.action.dialogAction; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JOptionPane; import project.dao.common.DbException; import project.dao.dataDao.LoginInfoDao; import project.dao.dataDaoImpl.LoginInfoDaoImpl; import project.view.dialog.AddLoginInfoDialog; import project.vo.LoginInfoVo; /** * 添加登录账号action * * @author Administrator * */ public class AddLoginInfoAction implements ActionListener { private AddLoginInfoDialog dialog; public AddLoginInfoAction(AddLoginInfoDialog dialog) { this.dialog = dialog; } public void actionPerformed(ActionEvent e) { String name = e.getActionCommand(); if (name.equals("确定")) { // 检验输入是否正确 if (dialog.checkInputValue()) { LoginInfoDao dao = null; LoginInfoVo vo = null; try { // 获得界面输入信息 vo = dialog.getInputInfo(); String confirm = dialog.getConfirm(); if (vo.getLog_pwd().equals(confirm)) { dao = new LoginInfoDaoImpl(); if (dao.insertLoginInfo(vo)) { // 打印提示信息 JOptionPane.showMessageDialog(null, "添加登录人员成功", "提示信息", JOptionPane.YES_OPTION); dialog.dispose(); } else { // 打印提示信息 JOptionPane.showMessageDialog(null, "添加登录人员失败", "提示信息", JOptionPane.YES_OPTION); } } else { // 如果密码确认输入错误,打印提示信息 JOptionPane.showMessageDialog(null, "密码确认错误,请重新输入", "提示信息", JOptionPane.YES_OPTION); } } catch (DbException ex) { JOptionPane.showMessageDialog(null, ex.getMessage(), "提示信息", JOptionPane.YES_OPTION); } } else { JOptionPane.showMessageDialog(null, "请确认输入是否完整正确", "提示信息", JOptionPane.YES_OPTION); } } else if (name.equals("取消")) { dialog.dispose(); } } }

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值