Design and implementation of real estate corporate website SSM-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 real estate website based SSM (real estate website Daquan aim is to facilitate the users to quickly find the local real estate rental, sale website platform, without having to remember too many complex URLs; also provides real estate website publishers rental, sale and other information platform.), using the framework of the project SSM (MYECLIPSE), the choice of development tools for MYECLIPSE. SSM-based real estate website as a background item.

To complete the system, we first need to analyze the needs of the system. SSM based on a real estate website should contain user roles administrator, customers and sales. 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.

To complete the system functions required for the customer, customer sales table set up sales, record sales customer information. Defines the relationship between the two clients in the sales table, where sales account customer name and customer mingzi field corresponds to sell customer's customer id id field corresponds with the customer, the customer's sales and marketing mingzi corresponding field sales, sales customer id field sales and sales of the corresponding id

 

 

The summary results for all data systems: the administrator (admin), customer (kehu), sales (xiaoshou), sales customers (xiaoshoukehu), buildings (loufang)

 

 

Administrators table

Field Name | Type | property | Description

id | int (11) | PRIMARY KEY | Administrator

username | varchar (255) | | account

password | varchar (255) | | password

 

 

Customer table

Field Name | Type | property | Description

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

mingzi | varchar (255) | | name

username | varchar (255) | | account

password | varchar (255) | | password

yue | varchar (255) | | Balance

 

 

Sales Sheet

Field Name | Type | property | Description

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

mingzi | varchar (255) | | name

username | varchar (255) | | account

password | varchar (255) | | password

yeji | varchar (255) | | 业绩

 

 

Sales Customer table

Field Name | Type | property | Description

id | int (11) | PRIMARY KEY | Sales Customer id

kehu | varchar (255) | | Customer name

kehuid | varchar (255) | | Customer id

xiaoshou | varchar (255) | | Sales

xiaoshouid | varchar (255) | | Sales id

 

 

Table buildings

Field Name | Type | property | Description

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

mingcheng | varchar (255) | | name

mianji | varchar (255) | | area

wuyefei | varchar (255) | | property costs

kaipanshijian | varchar (255) | | Opening time

louceng | varchar (255) | | floor

sql statement for the construction of the table

SET FOREIGN_KEY_CHECKS=0;

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

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

-- Table structure for ggfangchanwangzhan

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

DROP TABLE IF EXISTS `t_admin`;

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

) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='管理员';

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

DROP TABLE IF EXISTS `t_kehu`;

CREATE TABLE `t_kehu` (`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '客户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_xiaoshou`;

CREATE TABLE `t_xiaoshou` (`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '销售id',`mingzi` varchar(255) DEFAULT NULL COMMENT '名字',`username` varchar(255) The DEFAULT  NULL the COMMENT ' account number ' , `password` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' password ' ,` yeji` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' performance ' , a PRIMARY  KEY ( `id`) 

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

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

the DROP TABLE  the IF  EXISTS `t_xiaoshoukehu`; 

the CREATE  TABLE ` t_xiaoshoukehu` ( `id` int ( . 11 ) the NOT  NULL the AUTO_INCREMENT the COMMENT ' sale customer ID ' ,` kehu` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' client name ' , `kehuid` int ( . 11 ) the DEFAULT  NULL the COMMENT ' customer ID ' , `xiaoshou` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT' Sales ' , `xiaoshouid` int ( . 11 ) the DEFAULT  NULL the COMMENT ' sales ID ' , a PRIMARY  KEY (` id`) 

) ENGINE = MyISAM the DEFAULT the CHARSET = UTF8 the COMMENT = ' sale customer ' ; 

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

the DROP  TABLE  the IF  EXISTS `t_loufang`; 

the CREATE  TABLE ` t_loufang` ( `id` int ( . 11 ) the NOT  NULLThe COMMENT AUTO_INCREMENT ' building the above mentioned id ' , `mingcheng` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' name ' ,` mianji` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' area ' , `wuyefei` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' management fee ' , kaipanshijian` ` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' opening time ', `louceng` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' floor ' , a PRIMARY  KEY (` id`) 

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

 

Source download

Guess you like

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