Design and Implementation of MVC SSM rental management system based on free share

Today we will analyze a rental management system (rental vehicle online integrated management system is the basis of information provided by a car rental for complete set up by the whole micro Development Co., pipe systems include vehicle management, driver management, customer management, integrated business system, rent statistics for the overall management and development.) the project uses the framework for SSM (MYECLIPSE), the choice of development tools for MYECLIPSE. Rental management system as a background item.

To complete the system, we first need to analyze the needs of the system. A rental management system should include the user role administrator, customer, driver. 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 customers, orders the driver to set the table, record order information. Defines the relationship between the two tables in the order in which the order of the customer and the customer's mingzi field corresponds to the order of the customer id id field corresponds with the customer, mingzi field corresponds to the order of the driver and the driver, the driver of the order with the driver id corresponding to the id field

 

 

The summary results for all data systems: the administrator (admin), customer (kehu), driver (siji), orders (dingdan)

 

 

Administrators table

Field Name | Type | property | Description

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

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

xinyong | varchar (255) | | Credit

 

 

The driver table

Field Name | Type | property | Description

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

mingzi | varchar (255) | | name

username | varchar (255) | | account

password | varchar (255) | | password

nianling | varchar (255) | | Age

lianxifangshi | varchar (255) | | Contact

 

 

Orders table

Field Name | Type | property | Description

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

kehu | varchar (255) | | customers

kehuid | varchar (255) | | Customer id

siji | varchar (255) | | driver

sijiid | varchar (255) | | id driver

qidian | varchar (255) | | starting point

zhongdian | varchar (255) | | end

zhuangtai | varchar (255) | | state

 

sql statement for the construction of the table

SET FOREIGN_KEY_CHECKS=0;

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

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

-- Table structure for ggchuzucheguanli

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

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) 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 ' , `xinyong` VARCHAR ( 255 )DEFAULT NULL COMMENT '信用',PRIMARY KEY (`id`)

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

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

DROP TABLE IF EXISTS `t_siji`;

CREATE TABLE `t_siji` (`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 ' , `nianling` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' Age ' ,` lianxifangshi` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT 'Information ' , a PRIMARY  KEY ( `id`) 

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

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

the DROP  TABLE  the IF  EXISTS `t_dingdan`; 

the CREATE  TABLE ` t_dingdan` ( `id` int ( . 11 ) the NOT  NULL the AUTO_INCREMENT the COMMENT ' Order ID ' ,` kehu` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT' Customer ' , `kehuid` int ( . 11 ) the DEFAULT  NULL the COMMENT ' customer ID ' ,` siji` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' driver ' , `sijiid` int ( . 11 ) the DEFAULT  NULL the COMMENT ' driver ID ' ,` Qidian ` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' starting point ' ,` zhongdian` VARCHAR (255 ) the DEFAULT  NULL the COMMENT ' end ' , `zhuangtai` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' state ' , a PRIMARY  KEY (` id`) 

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

Source download

Guess you like

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