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 coal sales system (northern Shaanxi has abundant coal resources, excellent coal mining conditions and a good development in this century has become an important base for China's coal production. Currently, many small and medium sized northern Shaanxi coal sales coal mines mainly in the traditional manual-based. influenced by various factors and circumstances of coal storage and coal price, coal sales management seems to be rather confusing. Therefore, the establishment of high-yield and efficient management system, application of modern science and technology management technology, changing the traditional backward manual management, improve the management level and economic benefits of various types of coal have been very necessary.) the project uses the framework for SSM (MYECLIPSE), the choice of development tools for MYECLIPSE. Coal sales system as a background item.
To complete the system, we first need to analyze the needs of the system. Coal sales should include a system administrator user roles. 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.
The summary results of all system data: administrator (admin), coal (meitan), collection points (caijidian), the sale of land (chushoudi), customer (kehu)
Administrators table
Field Name | Type | property | describe the above mentioned id | INT ( 11 ) | PRIMARY KEY | administrator the above mentioned id username | VARCHAR ( 255 ) | | account password | VARCHAR ( 255 ) | | password
Coal table
Field Name | Type | properties | Description ID | the INT ( . 11 ) | a PRIMARY KEY | coal ID Mingcheng | VARCHAR ( 255 ) | | Name Zhongliang | VARCHAR ( 255 ) | | weight Zhonglei | VARCHAR ( 255 ) | | kind jiluriqi | VARCHAR ( 255 ) | |Record date danjia | VARCHAR ( 255 ) | | Price
Collection points table
Field Name | Type | properties | Description ID | the INT ( . 11 ) | a PRIMARY KEY | collection point ID Mingcheng | VARCHAR ( 255 ) | | Name
Sale Surface
Field Name | Type | property | describe the above mentioned id | INT ( 11 ) | PRIMARY KEY | sold to the above mentioned id mingcheng | VARCHAR ( 255 ) | | name
Customer table
Field Name | Type | property | describe the above mentioned id | INT ( 11 ) | PRIMARY KEY | client the above mentioned id mingzi | VARCHAR ( 255 ) | | name Jieshao | VARCHAR ( 255 ) | | Introduction lianxifangshi | VARCHAR ( 255 ) | | Contact
sql statement to build the table
SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- ---------------------------- -- Table structure for ggmeitanxiaoshou -- ---------------------------- 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_meitan`; CREATE TABLE `t_meitan` (`id` INT(11) NOT NULL AUTO_INCREMENT COMMENT '煤炭id' , `Mingcheng` VARCHAR ( 255 ) the DEFAULT NULL the COMMENT ' name ' ,` zhongliang` VARCHAR ( 255 ) the DEFAULT NULL the COMMENT ' wt ' , `zhonglei` VARCHAR ( 255 ) the DEFAULT NULL the COMMENT ' type ' ,` jiluriqi` VARCHAR ( 255 ) the DEFAULT NULL the COMMENT ' recording date ' , `danjia` VARCHAR ( 255) DEFAULT NULL COMMENT '单价',PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='煤炭'; -- ---------------------------- DROP TABLE IF EXISTS `t_caijidian`; CREATE TABLE `t_caijidian` (`id` INT(11) NOT NULL AUTO_INCREMENT COMMENT '采集点id',`mingcheng` VARCHAR(255 ) the DEFAULT NULL the COMMENT ' name ' , a PRIMARY KEY ( `id`) ) ENGINE = MyISAM the DEFAULT the CHARSET = UTF8 the COMMENT = ' collection point ' ; - ----------------- ----------- the DROP TABLE the IF EXISTS `t_chushoudi`; the CREATE TABLE ` t_chushoudi` ( `id` the INT ( . 11 ) the NOT NULL the AUTO_INCREMENT the COMMENT ' sell the ID ' ,` mingcheng` 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 ' , `jieshao` VARCHAR ( 255 ) the DEFAULT NULL the COMMENT ' introduction ' ,` lianxifangshi` VARCHAR ( 255 ) the DEFAULT NULL the COMMENT ' Information ' , a PRIMARY KEY ( `id`) ) ENGINE = MyISAM the DEFAULT the CHARSET = UTF8 the COMMENT = ' customer ' ;