数据库脚本下载地址: https://download.csdn.net/download/itrjxxs_com/86427643
主要使用技术
Struts2+Hibernate+JSP+CSS+JS+Mysql
功能介绍
系统有五类用户,分别是:会员用户,商品管理员,订单管理员,会员管理员,系统管理员;
系统完成的主要功能有:
系统的登录注册:账号wangkun 密码 wangkun;
商品展示:商品的展示不仅按类型分类,还有特价商品和普通商品的分类,这样更方便客户根据自己的需求,对书籍进行一个筛选;
商品详情:里面描述书籍的基本信息;
购物车管理:对已添加到购物车的商品增删改查,填写地址,提交订单;
订单管理:订单的查看及删除;
留言模块:平台所有留言的显示,以及个人留言的提交功能;
个人资料修改:修改自己的基本信息和密码;
搜索栏:按分类模糊搜索书籍;
数据库脚本
USE `db_eshop`;
/*Table structure for table `admin` */
DROP TABLE IF EXISTS `admin`;
CREATE TABLE `admin` (
`ID` int(4) NOT NULL AUTO_INCREMENT,
`AdminType` int(4) DEFAULT NULL,
`AdminName` char(12) DEFAULT NULL,
`LoginName` char(12) DEFAULT NULL,
`LoginPwd` char(12) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=gb2312;
DROP TABLE IF EXISTS `cart`;
CREATE TABLE `cart` (
`ID` int(4) NOT NULL AUTO_INCREMENT,
`Member` int(4) NOT NULL,
`Money` decimal(9,2) DEFAULT NULL,
`CartStatus` int(4) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=gb2312;
DROP TABLE IF EXISTS `cartselectedmer`;
CREATE TABLE `cartselectedmer` (
`ID` int(4) NOT NULL AUTO_INCREMENT,
`Cart` int(4) NOT NULL,
`Merchandise` int(4) NOT NULL,
`Number` int(4) NOT NULL DEFAULT '1',
`Price` decimal(8,2) NOT NULL DEFAULT '0.00',
`Money` decimal(9,2) NOT NULL DEFAULT '0.00',
PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=gb2312;
DROP TABLE IF EXISTS `category`;
CREATE TABLE `category` (
`ID` int(4) NOT NULL AUTO_INCREMENT,
`CateName` char(40) DEFAULT NULL,
`CateDesc` text,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=gb2312;
DROP TABLE IF EXISTS `leaveword`;
CREATE TABLE `leaveword` (
`ID` int(4) NOT NULL AUTO_INCREMENT,
`Member` int(4) NOT NULL,
`Admin` int(4) DEFAULT NULL,
`Title` char(60) DEFAULT NULL,
`Content` text,
`LeaveDate` datetime DEFAULT NULL,
`AnswerContent` text,
`AnswerDate` datetime DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=gb2312;
DROP TABLE IF EXISTS `member`;
CREATE TABLE `member` (
`ID` int(4) NOT NULL AUTO_INCREMENT,
`Memberlevel` int(4) NOT NULL,
`LoginName` char(12) DEFAULT NULL,
`LoginPwd` char(12) DEFAULT NULL,
`MemberName` char(20) DEFAULT NULL,
`Phone` char(15) DEFAULT NULL,
`Address` varchar(100) DEFAULT NULL,
`Zip` char(10) DEFAULT NULL,
`RegDate` datetime DEFAULT NULL,
`LastDate` datetime DEFAULT NULL,
`LoginTimes` int(4) DEFAULT NULL,
`EMail` varchar(100) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=gb2312;
DROP TABLE IF EXISTS `memberlevel`;
CREATE TABLE `memberlevel` (
`ID` int(4) NOT NULL AUTO_INCREMENT,
`LevelName` char(20) DEFAULT NULL,
`Favourable` int(4) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=gb2312;
DROP TABLE IF EXISTS `merchandise`;
CREATE TABLE `merchandise` (
`ID` int(4) NOT NULL AUTO_INCREMENT,
`Category` int(4) NOT NULL,
`MerName` char(40) DEFAULT NULL,
`Price` decimal(8,2) DEFAULT NULL,
`SPrice` decimal(8,2) DEFAULT NULL,
`MerModel` char(40) DEFAULT NULL,
`Picture` varchar(100) DEFAULT NULL,
`MerDesc` text,
`Manufacturer` char(60) DEFAULT NULL,
`LeaveFactoryDate` datetime DEFAULT NULL,
`Special` int(4) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=gb2312;
DROP TABLE IF EXISTS `orders`;
CREATE TABLE `orders` (
`ID` int(4) NOT NULL AUTO_INCREMENT,
`Member` int(4) NOT NULL,
`Cart` int(4) NOT NULL,
`OrderNO` char(20) DEFAULT NULL,
`OrderDate` datetime DEFAULT NULL,
`OrderStatus` int(4) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=gb2312;