基于JavaWeb的超市供应管理系统

本文介绍了一款基于JavaWeb技术开发的超市供应管理系统,该系统利用MySQL作为数据库,Eclipse作为开发工具,Tomcat作为服务器运行环境,实现了库存管理、供应商管理、订单处理等核心功能,有效提升了超市运营效率。
摘要由CSDN通过智能技术生成

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

#############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');

create table t_address(
	id int primary key auto_increment comment '主键',
	customerId int(11) comment '用户',
	province varchar(100) comment '省',
	city varchar(100) comment '市',
	area varchar(100) comment '区',
	phone varchar(100) comment '电话',
	lxr varchar(100) comment '联系人',
	xxdz varchar(1000) comment '详细地址'
) comment '收货地址';

create table t_contact(
	id int primary key auto_increment comment '主键',
	customerId int(11) comment '用户',
	phone varchar(100) comment '联系方式',
	content text comment '内容',
	insertDate datetime comment '日期'
) comment '建议';

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(11) comment '账户',
	jf int(11) comment '积分',
	headPic varchar(50) comment '头像',
	status varchar(50) comment ''
) comment '客户';

create table t_kc(
	id int primary key auto_increment comment '主键',
	productId int(11) comment '产品',
	kcNum int(11) comment '库存数量',
	insertDate datetime comment '日期',
	crk varchar(50) comment '出库入库',
	czr varchar(50) comment '操作人'
) comment '出库入库';

create table t_lbt(
	id int primary key auto_increment comment '主键',
	pic varchar(100) comment '图片',
	url varchar(1000) comment ''
) comment '轮播图';

create table t_order(
	id int primary key auto_increment comment '主键',
	customerId int(11) comment '用户',
	productDetail text comment '订单详细',
	allPrice varchar(100) comment '订单总价格',
	status varchar(100) comment '状态',
	orderNum varchar(100) comment '订单编号',
	pl text comment '物流信息',
	insertDate datetime comment '日期',
	userId int(11) comment '',
	orderDate varchar(50) comment '',
	address varchar(50) comment '地址',
	lxr varchar(50) comment '联系人',
	lxfs varchar(50) comment '联系方式',
	pj text comment '评价',
	back text comment '回复',
	productId int(11) comment '',
	zffs varchar(50) comment '支付方式'
) comment '订单';

create table t_orderlist(
	id int primary key auto_increment comment '主键',
	customerId int(11) comment '用户',
	orderId int(11) comment '订单',
	productId int(11) comment '菜品'
) comment '订单详情';

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(11) comment '价格',
	oldPrice int(11) comment '原价',
	content text comment '内容',
	nums int(11) comment '数量',
	tjxj varchar(50) comment '推荐星级',
	status varchar(50) comment '状态',
	typesId int(11) comment '分类',
	jf int(11) comment '积分',
	userId int(11) comment '商家',
	bqId int(11) comment '标签',
	djl int(11) comment '点击量'
) comment '产品';

create table t_productclick(
	id int primary key auto_increment comment '主键',
	productId int(11) comment '产品',
	customerId int(11) comment '用户',
	insertDate datetime comment '日期'
) comment '产品点击';

create table t_sc(
	id int primary key auto_increment comment '主键',
	customerId int(11) comment '用户',
	productId int(11) comment '产品',
	insertDate datetime comment '日期'
) comment '收藏';

create table t_shopcar(
	id int primary key auto_increment comment '主键',
	productId int(11) comment '产品',
	num int(11) comment '数量',
	customerId int(11) comment ''
) comment '购物车';

create table t_types(
	id int primary key auto_increment comment '主键',
	typesName varchar(1000) comment '分类'
) comment '分类';

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 '手机',
	status varchar(100) comment '',
	jf varchar(100) comment ''
) comment '普通员工';

create table t_wdxx(
	id int primary key auto_increment comment '主键',
	customerId int(11) comment '我',
	title varchar(100) comment '标题',
	pic varchar(100) comment '图片',
	content text comment '内容',
	zan int(11) comment '赞',
	insertDate datetime comment '发布日期',
	nologin varchar(50) comment '游客是否可见',
	bkId int(11) comment ''
) comment '我的消息';

create table t_xiaoxi(
	id int primary key auto_increment comment '主键',
	customerId int(11) comment '用户',
	title varchar(100) comment '标题',
	content text comment '内容',
	insertDate datetime comment '日期'
) comment '消息';

create table t_zx(
	id int primary key auto_increment comment '主键',
	title varchar(100) comment '标题',
	content longtext comment '内容',
	pic varchar(100) comment '图片'
) comment '资讯';




#############oracle数据库创建语句###################
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');

create table t_address(
	id int primary key auto_increment comment '主键',
	customerId int(11) comment '用户',
	province varchar(100) comment '省',
	city varchar(100) comment '市',
	area varchar(100) comment '区',
	phone varchar(100) comment '电话',
	lxr varchar(100) comment '联系人',
	xxdz varchar(1000) comment '详细地址'
) comment '收货地址';

create table t_contact(
	id int primary key auto_increment comment '主键',
	customerId int(11) comment '用户',
	phone varchar(100) comment '联系方式',
	content text comment '内容',
	insertDate datetime comment '日期'
) comment '建议';

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(11) comment '账户',
	jf int(11) comment '积分',
	headPic varchar(50) comment '头像',
	status varchar(50) comment ''
) comment '客户';

create table t_kc(
	id int primary key auto_increment comment '主键',
	productId int(11) comment '产品',
	kcNum int(11) comment '库存数量',
	insertDate datetime comment '日期',
	crk varchar(50) comment '出库入库',
	czr varchar(50) comment '操作人'
) comment '出库入库';

create table t_lbt(
	id int primary key auto_increment comment '主键',
	pic varchar(100) comment '图片',
	url varchar(1000) comment ''
) comment '轮播图';

create table t_order(
	id int primary key auto_increment comment '主键',
	customerId int(11) comment '用户',
	productDetail text comment '订单详细',
	allPrice varchar(100) comment '订单总价格',
	status varchar(100) comment '状态',
	orderNum varchar(100) comment '订单编号',
	pl text comment '物流信息',
	insertDate datetime comment '日期',
	userId int(11) comment '',
	orderDate varchar(50) comment '',
	address varchar(50) comment '地址',
	lxr varchar(50) comment '联系人',
	lxfs varchar(50) comment '联系方式',
	pj text comment '评价',
	back text comment '回复',
	productId int(11) comment '',
	zffs varchar(50) comment '支付方式'
) comment '订单';

create table t_orderlist(
	id int primary key auto_increment comment '主键',
	customerId int(11) comment '用户',
	orderId int(11) comment '订单',
	productId int(11) comment '菜品'
) comment '订单详情';

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(11) comment '价格',
	oldPrice int(11) comment '原价',
	content text comment '内容',
	nums int(11) comment '数量',
	tjxj varchar(50) comment '推荐星级',
	status varchar(50) comment '状态',
	typesId int(11) comment '分类',
	jf int(11) comment '积分',
	userId int(11) comment '商家',
	bqId int(11) comment '标签',
	djl int(11) comment '点击量'
) comment '产品';

create table t_productclick(
	id int primary key auto_increment comment '主键',
	productId int(11) comment '产品',
	customerId int(11) comment '用户',
	insertDate datetime comment '日期'
) comment '产品点击';

create table t_sc(
	id int primary key auto_increment comment '主键',
	customerId int(11) comment '用户',
	productId int(11) comment '产品',
	insertDate datetime comment '日期'
) comment '收藏';

create table t_shopcar(
	id int primary key auto_increment comment '主键',
	productId int(11) comment '产品',
	num int(11) comment '数量',
	customerId int(11) comment ''
) comment '购物车';

create table t_types(
	id int primary key auto_increment comment '主键',
	typesName varchar(1000) comment '分类'
) comment '分类';

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 '手机',
	status varchar(100) comment '',
	jf varchar(100) comment ''
) comment '普通员工';

create table t_wdxx(
	id int primary key auto_increment comment '主键',
	customerId int(11) comment '我',
	title varchar(100) comment '标题',
	pic varchar(100) comment '图片',
	content text comment '内容',
	zan int(11) comment '赞',
	insertDate datetime comment '发布日期',
	nologin varchar(50) comment '游客是否可见',
	bkId int(11) comment ''
) comment '我的消息';

create table t_xiaoxi(
	id int primary key auto_increment comment '主键',
	customerId int(11) comment '用户',
	title varchar(100) comment '标题',
	content text comment '内容',
	insertDate datetime comment '日期'
) comment '消息';

create table t_zx(
	id int primary key auto_increment comment '主键',
	title varchar(100) comment '标题',
	content longtext comment '内容',
	pic varchar(100) comment '图片'
) comment '资讯';

create table t_address(
	id integer,
	customerId int(11),
	province varchar(100),
	city varchar(100),
	area varchar(100),
	phone varchar(100),
	lxr varchar(100),
	xxdz varchar(1000)
);
--收货地址字段加注释
comment on column t_address.id is '主键';
comment on column t_address.id is '主键唯一ID';
comment on column t_address.customerId is '用户';
comment on column t_address.province is '省';
comment on column t_address.city is '市';
comment on column t_address.area is '区';
comment on column t_address.phone is '电话';
comment on column t_address.lxr is '联系人';
comment on column t_address.xxdz is '详细地址';
--收货地址表加注释
comment on table t_address is '收货地址';

create table t_contact(
	id integer,
	customerId int(11),
	phone varchar(100),
	content text,
	insertDate datetime
);
--建议字段加注释
comment on column t_contact.id is '主键';
comment on column t_contact.id is '主键唯一ID';
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 '建议';

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(11),
	jf int(11),
	headPic varchar(50),
	status varchar(50)
);
--客户字段加注释
comment on column t_customer.id is '主键'
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值