赞
踩
spring+springmvc+mybatis+jsp+mysql+tomcat
(1)登录注册功能:用户打开系统,浏览挑选生鲜,在购买生鲜之前,要进行注册登录,保证一人一个账号,互不干扰。
(2)类别选择:用户想要购买某一类的生鲜,可以选择相应的类别查看,然后挑选生鲜。
(3)购物车添加:用户选择到心仪的生鲜,可以将生鲜加入购物车,最后进行结算。
(4)我的订单:用户根据我的订单可以查看历史购买的记录以及订单的状态。
后台设计:
(1)用户管理:该功能用于查看用户的用户名和真实姓名,可以对用户的个人信息进行修改和查看。
(2)分类管理:此处要设置多级分类,分类主要将生鲜分一个大类,分类将其中的某类生鲜再做一个细分类。
(3)订单管理:用于查看订单的具体信息,可以看到订单的金额、取餐人、订单的状态等。
(4)生鲜管理:用于对商城的生鲜进行增删改,比如价格、类别、生鲜名、生鲜图片等。
(5)图表管理:用于统计商城的销售情况,销售额以及利润。
-- --------------------------------------------------------
-- 主机: 47.101.198.61
-- 服务器版本: 10.3.21-MariaDB - MariaDB Server
-- 服务器操作系统: Linux
-- HeidiSQL 版本: 11.0.0.5919
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-- 导出 ssm_shenxian_shop 的数据库结构
CREATE DATABASE IF NOT EXISTS `ssm_shenxian_shop` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci */;
USE `ssm_shenxian_shop`;
-- 导出 表 ssm_shenxian_shop.adminuser 结构
DROP TABLE IF EXISTS `adminuser`;
CREATE TABLE IF NOT EXISTS `adminuser` (
`auid` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(255) DEFAULT NULL,
`password` varchar(255) DEFAULT NULL,
`uid` int(11) NOT NULL,
PRIMARY KEY (`auid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- 正在导出表 ssm_shenxian_shop.adminuser 的数据:~2 rows (大约)
DELETE FROM `adminuser`;
/*!40000 ALTER TABLE `adminuser` DISABLE KEYS */;
INSERT INTO `adminuser` (`auid`, `username`, `password`, `uid`) VALUES
(1, 'admin', 'admin', 0),
(2, 'matou', '111111', 0);
/*!40000 ALTER TABLE `adminuser` ENABLE KEYS */;
-- 导出 表 ssm_shenxian_shop.billitem 结构
DROP TABLE IF EXISTS `billitem`;
CREATE TABLE IF NOT EXISTS `billitem` (
`billid` int(11) NOT NULL AUTO_INCREMENT,
`count` int(11) DEFAULT NULL,
`ptotal` double DEFAULT NULL,
`pid` int(11) DEFAULT NULL,
PRIMARY KEY (`billid`) USING BTREE,
UNIQUE KEY `pid` (`pid`) USING BTREE,
KEY `FK3510439A73B4E627` (`pid`) USING BTREE,
CONSTRAINT `FK3510439A73B4E627` FOREIGN KEY (`pid`) REFERENCES `product` (`pid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- 正在导出表 ssm_shenxian_shop.billitem 的数据:~0 rows (大约)
DELETE FROM `billitem`;
/*!40000 ALTER TABLE `billitem` DISABLE KEYS */;
/*!40000 ALTER TABLE `billitem` ENABLE KEYS */;
-- 导出 表 ssm_shenxian_shop.category 结构
DROP TABLE IF EXISTS `category`;
CREATE TABLE IF NOT EXISTS `category` (
`cid` int(11) NOT NULL AUTO_INCREMENT,
`cname` varchar(255) DEFAULT NULL,
PRIMARY KEY (`cid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- 正在导出表 ssm_shenxian_shop.category 的数据:~9 rows (大约)
DELETE FROM `category`;
/*!40000 ALTER TABLE `category` DISABLE KEYS */;
INSERT INTO `category` (`cid`, `cname`) VALUES
(1, '水果'),
(2, '时令蔬菜'),
(3, '五谷系列'),
(4, '食品零食'),
(5, '蛋类'),
(6, '肉类'),
(7, '海鲜'),
(8, '河鲜'),
(9, '卤味');
/*!40000 ALTER TABLE `category` ENABLE KEYS */;
-- 导出 表 ssm_shenxian_shop.categorysecond 结构
DROP TABLE IF EXISTS `categorysecond`;
CREATE TABLE IF NOT EXISTS `categorysecond` (
`csid` int(11) NOT NULL AUTO_INCREMENT,
`csname` varchar(255) DEFAULT NULL,
`cid` int(11) DEFAULT NULL,
PRIMARY KEY (`csid`) USING BTREE,
KEY `FK936FCAF2418BCBAF` (`cid`) USING BTREE,
CONSTRAINT `FK936FCAF2418BCBAF` FOREIGN KEY (`cid`) REFERENCES `category` (`cid`)
) ENGINE=InnoDB AUTO_INCREMENT=53 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- 正在导出表 ssm_shenxian_shop.categorysecond 的数据:~17 rows (大约)
DELETE FROM `categorysecond`;
/*!40000 ALTER TABLE `categorysecond` DISABLE KEYS */;
INSERT INTO `categorysecond` (`csid`, `csname`, `cid`) VALUES
(34, '进口水果', 1),
(35, '本地水果', 1),
(36, '大棚蔬菜', 2),
(37, '进口蔬菜', 2),
(38, '米', 3),
(39, '面', 3),
(40, '红枣', 3),
(41, '火腿', 4),
(42, '烤肠', 4),
(43, '鸡蛋', 5),
(44, '鸭蛋', 5),
(45, '猪肉', 6),
(46, '牛肉', 6),
(47, '鱿鱼', 7),
(48, '花甲', 7),
(49, '刀鱼', 8),
(50, '草鱼', 8),
(51, '猪头肉', 9),
(52, '酱牛肉', 9);
/*!40000 ALTER TABLE `categorysecond` ENABLE KEYS */;
-- 导出 表 ssm_shenxian_shop.message 结构
DROP TABLE IF EXISTS `message`;
CREATE TABLE IF NOT EXISTS `message` (
`messageid` int(11) NOT NULL AUTO_INCREMENT,
`message` varchar(255) DEFAULT NULL,
`messagedate` varchar(255) DEFAULT NULL,
`uid` int(11) DEFAULT NULL,
PRIMARY KEY (`messageid`) USING BTREE,
KEY `FK38EB0007FC32F8E` (`uid`) USING BTREE,
CONSTRAINT `FK38EB0007FC32F8E` FOREIGN KEY (`uid`) REFERENCES `user` (`uid`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- 正在导出表 ssm_shenxian_shop.message 的数据:~1 rows (大约)
DELETE FROM `message`;
/*!40000 ALTER TABLE `message` DISABLE KEYS */;
INSERT INTO `message` (`messageid`, `message`, `messagedate`, `uid`) VALUES
(1, '大家好,这个生鲜很潮流', '2019-03-28', 3),
(8, '<p>comer</p>\r\n', '2020-05-08 11:26:35', 4);
/*!40000 ALTER TABLE `message` ENABLE KEYS */;
-- 导出 表 ssm_shenxian_shop.orderitem 结构
DROP TABLE IF EXISTS `orderitem`;
CREATE TABLE IF NOT EXISTS `orderitem` (
`oiid` int(11) NOT NULL AUTO_INCREMENT,
`count` int(11) DEFAULT NULL,
`subtotal` double DEFAULT NULL,
`pid` int(11) DEFAULT NULL,
`oid` int(11) DEFAULT NULL,
PRIMARY KEY (`oiid`) USING BTREE,
KEY `FKE8B2AB61E818A405` (`oid`) USING BTREE,
KEY `FKE8B2AB6173B4E627` (`pid`) USING BTREE,
CONSTRAINT `FKE8B2AB6173B4E627` FOREIGN KEY (`pid`) REFERENCES `product` (`pid`),
CONSTRAINT `FKE8B2AB61E818A405` FOREIGN KEY (`oid`) REFERENCES `orders` (`oid`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- 正在导出表 ssm_shenxian_shop.orderitem 的数据:~0 rows (大约)
DELETE FROM `orderitem`;
/*!40000 ALTER TABLE `orderitem` DISABLE KEYS */;
INSERT INTO `orderitem` (`oiid`, `count`, `subtotal`, `pid`, `oid`) VALUES
(12, 1, 4, 60, 6),
(13, 1, 50, 58, 7),
(14, 1, 50, 58, 8);
/*!40000 ALTER TABLE `orderitem` ENABLE KEYS */;
-- 导出 表 ssm_shenxian_shop.orders 结构
DROP TABLE IF EXISTS `orders`;
CREATE TABLE IF NOT EXISTS `orders` (
`oid` int(11) NOT NULL AUTO_INCREMENT,
`money` double DEFAULT NULL,
`state` int(11) DEFAULT NULL,
`receiveInfo` varchar(255) DEFAULT NULL,
`phoNum` varchar(255) DEFAULT NULL,
`order_time` datetime DEFAULT NULL,
`uid` int(11) DEFAULT NULL,
`accepter` varchar(100) DEFAULT NULL,
PRIMARY KEY (`oid`) USING BTREE,
KEY `FKC3DF62E5FC32F8E` (`uid`) USING BTREE,
CONSTRAINT `FKC3DF62E5FC32F8E` FOREIGN KEY (`uid`) REFERENCES `user` (`uid`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- 正在导出表 ssm_shenxian_shop.orders 的数据:~0 rows (大约)
DELETE FROM `orders`;
/*!40000 ALTER TABLE `orders` DISABLE KEYS */;
INSERT INTO `orders` (`oid`, `money`, `state`, `receiveInfo`, `phoNum`, `order_time`, `uid`, `accepter`) VALUES
(6, 4, 1, '', '', '2020-05-08 11:20:41', 4, ''),
(7, 50, 1, 'zhongguo', '12345678999', '2020-05-17 18:41:19', 1, '张先生'),
(8, 50, 1, '北京市', '435435', '2020-09-30 12:36:15', 1, '李四');
/*!40000 ALTER TABLE `orders` ENABLE KEYS */;
-- 导出 表 ssm_shenxian_shop.product 结构
DROP TABLE IF EXISTS `product`;
CREATE TABLE IF NOT EXISTS `product` (
`pid` int(11) NOT NULL AUTO_INCREMENT,
`pname` varchar(255) DEFAULT NULL,
`market_price` double DEFAULT NULL,
`shop_price` double DEFAULT NULL,
`image` varchar(255) DEFAULT NULL,
`pdesc` varchar(5000) DEFAULT NULL,
`is_hot` int(11) DEFAULT NULL,
`pdate` date DEFAULT NULL,
`csid` int(11) DEFAULT NULL,
`state` int(11) DEFAULT NULL,
PRIMARY KEY (`pid`) USING BTREE,
KEY `FKED8DCCEF5F778050` (`csid`) USING BTREE,
CONSTRAINT `FKED8DCCEF5F778050` FOREIGN KEY (`csid`) REFERENCES `categorysecond` (`csid`)
) ENGINE=InnoDB AUTO_INCREMENT=72 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- 正在导出表 ssm_shenxian_shop.product 的数据:~13 rows (大约)
DELETE FROM `product`;
/*!40000 ALTER TABLE `product` DISABLE KEYS */;
INSERT INTO `product` (`pid`, `pname`, `market_price`, `shop_price`, `image`, `pdesc`, `is_hot`, `pdate`, `csid`, `state`) VALUES
(58, '三文鱼', 60, 50, 'products/037f59fa-efc6-4718-8506-84bf835ba70bu=1322114428,3112019485&fm=26&gp=0.jpg', '味美价廉', 1, '2020-05-08', 49, NULL),
(59, '秋刀鱼', 70, 60, 'products/ddcb39ae-55d7-4d62-8e6a-37560b423237timg.jpg', '', 1, '2020-05-08', 49, NULL),
(60, '茄子', 5, 4, 'products/e000a67d-6f9f-4741-a625-bb4d5042c762timg5SVN49S5dd.jpg', '', 1, '2020-05-08', 36, NULL),
(61, '花菜', 6, 5, 'products/a7ff89c5-833a-4c6c-acbe-61c6db193429timgHXWVBG9Q.jpg', '', 1, '2020-05-08', 36, NULL),
(62, '白菜', 3, 2, 'products/f8b5029f-6141-4d14-b016-c8028eaa75actimg0ZT5SLIT.jpg', '', 1, '2020-05-08', 34, NULL),
(63, '青菜', 3, 3, 'products/5137c466-f623-40b8-9e88-2997e56e055ctimg1111111.jpg', '', 1, '2020-05-08', 36, NULL),
(64, '香蕉', 3, 2, 'products/7f6f36b4-7ce3-48c1-9c74-030226b44e2btimgss.jpg', '', 1, '2020-05-08', 34, NULL),
(65, '火腿', 15, 11, 'products/07a1b8b5-95dd-419c-b94d-decac30a3565timgROSEMR47.jpg', '', 1, '2020-05-08', 41, NULL),
(66, '猪头肉', 22, 20, 'products/05dd2ffb-8db5-4f70-9d54-72e11cc51092timgU8USPSYX.jpg', '', 1, '2020-05-08', 51, NULL),
(67, '鸡蛋', 10, 9, 'products/d355cc53-0989-427b-9608-80dae963c07au=2474512464,1842867078&fm=26&gp=0.jpg.png', '', 1, '2020-05-08', 44, NULL),
(68, '米', 3, 2, 'products/4a5b6381-385d-4673-97b6-aa6b2ed52fe2timgRABO04MN.jpg', '', 1, '2020-05-08', 38, NULL),
(69, '芒果', 5, 4, 'products/9496e9e4-047d-4070-a9bb-b0f5ff1d3ad4timgOZO5FNT0.jpg', '', 1, '2020-05-08', 34, NULL),
(70, '芒果', 5, 4, 'products/c7d95827-0704-4689-9df2-3081474040a7timgOZO5FNT0.jpg', '', 1, '2020-05-08', 34, NULL),
(71, '面', 5, 4, 'products/df7192b1-fe10-4480-be85-8b7a5c332f6atimg1ZYLFAO0.jpg', '', 1, '2020-05-08', 39, NULL);
/*!40000 ALTER TABLE `product` ENABLE KEYS */;
-- 导出 表 ssm_shenxian_shop.shopcartitem 结构
DROP TABLE IF EXISTS `shopcartitem`;
CREATE TABLE IF NOT EXISTS `shopcartitem` (
`cartitemid` int(11) NOT NULL AUTO_INCREMENT,
`uid` int(11) DEFAULT NULL,
`pid` int(11) DEFAULT NULL,
`pcount` int(11) DEFAULT NULL,
`price` double DEFAULT NULL,
`image` varchar(255) DEFAULT NULL,
`ptotal` double DEFAULT NULL,
`pname` varchar(255) DEFAULT NULL,
PRIMARY KEY (`cartitemid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- 正在导出表 ssm_shenxian_shop.shopcartitem 的数据:~0 rows (大约)
DELETE FROM `shopcartitem`;
/*!40000 ALTER TABLE `shopcartitem` DISABLE KEYS */;
/*!40000 ALTER TABLE `shopcartitem` ENABLE KEYS */;
-- 导出 表 ssm_shenxian_shop.user 结构
DROP TABLE IF EXISTS `user`;
CREATE TABLE IF NOT EXISTS `user` (
`uid` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(255) DEFAULT NULL,
`password` varchar(255) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`email` varchar(255) DEFAULT NULL,
`phone` varchar(255) DEFAULT NULL,
`addr` varchar(255) DEFAULT NULL,
`state` varchar(255) NOT NULL DEFAULT '1',
`code` varchar(50) DEFAULT NULL,
PRIMARY KEY (`uid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- 正在导出表 ssm_shenxian_shop.user 的数据:~4 rows (大约)
DELETE FROM `user`;
/*!40000 ALTER TABLE `user` DISABLE KEYS */;
INSERT INTO `user` (`uid`, `username`, `password`, `name`, `email`, `phone`, `addr`, `state`, `code`) VALUES
(1, 'user', '123456', '杨过', 'itszy@qq.com', '13520109111', '北京市', '1', NULL),
(2, 'jack', '123456', '马云', 'jack@qq.com', '13812312312', '中国', '1', NULL),
(3, 'hellokitty', '123456', '张三', 'aodamao@qq.com', '13555512345', '上海市', '0', 'ca0f6f5a-36da-402d-8c0f-22587423de20'),
(4, 'yuanmamatou', '123456', '无忌', '1347845688@qq.com', '13022502404', '北京市', '1', NULL);
/*!40000 ALTER TABLE `user` ENABLE KEYS */;
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。