Design and implementation of online shopping system and Mybatis Spring Framework-based free share

Hello everyone, I am the founder of the whole micro-complete set of the team, this team is good at JAVA (SSM, SSH, SPRINGBOOT), PYTHON, PHP, C #, Andrews and many other technologies.

Today we will analyze a computer accessories online shopping (This design uses JAVA + MySQL technology, has designed an online shopping system based on B / S mode. Background can publish product information, product maintenance, manage orders, manage comments, etc.) the project uses the framework for SSM (MYECLIPSE), the choice of development tools for MYECLIPSE. Computer accessories online shopping as a background item.

To complete the system, we first need to analyze the needs of the system. A computer accessories online shopping should include user roles administrator user. In order to allow the user a smooth landing system to complete the related operations, landing roles you need to set up an account and password for each field.

In order to complete the function of the system needs to be commodities, user comments set tables, records review information. It defines the relationship between the two tables in the comments, where id field biaoti field review of commodity and commodity corresponding, product reviews and product id corresponding to the user name and user comments mingzi field corresponds to the user id and comment corresponding to the user id field

 

 

The summary results of all system data: administrator (admin), user (yonghu), commodities (shangping), Comments (pinglun)

 

 

Administrators table

Field Name | Type | property | Description

id | int (11) | PRIMARY KEY | administrator id

username | varchar (255) | | account

password | varchar (255) | | password

 

 

user table

Field Name | Type | property | Description

id | int (11) | PRIMARY KEY | user id

mingzi | varchar (255) | | name

username | varchar (255) | | account

password | varchar (255) | | password

yue | varchar (255) | | Balance

 

 

Product Table

Field Name | Type | property | Description

id | int(11) | PRIMARY KEY | 商品id

biaoti | varchar (255) | | Title

neirong | varchar (255) | | Content

jiage | varchar (255) | | Price

 

 

Comments Table

Field Name | Type | property | Description

id | int (11) | PRIMARY KEY | Comments id

shangping | varchar (255) | | Product

shangpingid | varchar (255) | | Product id

yonghu | varchar (255) | | Username

yonghuid | varchar (255) | | user id

neirong | varchar (255) | | Content

shijian | varchar (255) | | Time

sql statement to build the table

SET FOREIGN_KEY_CHECKS=0;

-- ----------------------------

-- ----------------------------

-- Table structure for ggdiannaopeijianwlgw

-- ----------------------------

DROP TABLE IF EXISTS `t_admin`;

CREATE TABLE `t_admin` (`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '管理员id',`username` varchar(255) DEFAULT NULL COMMENT '账号', `password` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' password ' , a PRIMARY  KEY (` id`) 

) ENGINE = MyISAM the DEFAULT the CHARSET = UTF8 the COMMENT = ' Administrators ' ; 

- ----------- ----------------- 

the DROP  TABLE  the IF  EXISTS `t_yonghu`; 

the CREATE  TABLE ` t_yonghu` ( `id` int ( . 11 ) the NOT  NULL the AUTO_INCREMENT the COMMENT ' user id' , `Mingzi` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' name ' ,` username` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' account ' , `password` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' password ' ,` yue` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' balance ' , a PRIMARY  KEY ( `id`)

) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='用户';

-- ----------------------------

DROP TABLE IF EXISTS `t_shangping`;

CREATE TABLE `t_shangping` (`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '商品id',`biaoti` varchar(255) DEFAULT NULL COMMENT '标题',`neirong` varchar(255) DEFAULT NULL COMMENT '内容',`jiage` varchar(255) DEFAULT NULL COMMENT '价格',PRIMARY KEY (`id`)

) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='商品';

-- ----------------------------

DROP TABLE IF EXISTS `t_pinglun`;

CREATE TABLE `t_pinglun` (`id` int(. 11 ) the NOT  NULL the AUTO_INCREMENT the COMMENT ' comments ID ' , `shangping` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' product ' ,` shangpingid` int ( . 11 ) the DEFAULT  NULL the COMMENT ' commodity ID ' , `yonghu` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' user name ' , `yonghuid` int ( 11 ) the DEFAULT  NULLThe COMMENT ' user ID ' , `neirong` VARCHAR ( 5000 ) the DEFAULT  NULL the COMMENT ' content ' ,` shijian` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' time ' , a PRIMARY  KEY ( `id`) 

) ENGINE = MyISAM the DEFAULT the CHARSET = UTF8 the COMMENT = ' comments ' ;

 

Source download

Guess you like

Origin www.cnblogs.com/qwcx/p/11517985.html