SSM trading company order management platform

Record learning every day, have a good mood every day. * ^ _ ^ *

Today's record is project based trading company SSM order management platform, SSM trading company based Order Management Platform project is such a thing: This article is designed and implemented a scalable enterprise order management system logistics enterprise order management systems. The system involves the circulation of goods under the order management process, orders shipping management, order status inquiry and order exception handling and other functions, all aspects of the information and data collected will be intelligent logistics process, through modern information technology analysis and processing, logistics system for rational coordination in order to achieve high efficiency and high-quality logistics management in order to achieve the objective of reducing logistics costs and management costs. Currently very popular uses B / S architecture, as developed in JSP technology relying on SSM technical framework, mysql database to establish the system.
Do the time based trading company SSM's order management platform, we need to use SSM (MYECLIPSE) framework, development tools choose the most adept MYECLIPSE.
SSM trading company based order management platform project is a background program.
When developing the system, needs analysis is an essential part. Log role-based trading company SSM has order management platform including the administrator.
Set the identity of each account, account number, password is essential, administrators are included in some of these login role of the field.
There is any relationship between the customer system, we will save their relationship in the Orders table. Their relationship is such that the customer orders and customer mingzi field corresponds to the order of the customer id and customer id field corresponds
.

Summary results based trading company SSM's order management platform for all project data: administrator (admin), orders (dingdan), customer (kehu)

Based administrator table SSM trading company's order management platform

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

 

Orders table based trading company SSM's order management platform

Field Name | Type | property | describe 
the above mentioned id |  INT ( 11 ) |  PRIMARY  KEY  | orders for the above mentioned id 
mingcheng |  VARCHAR ( 255 ) |  | name 
miaoshu |  VARCHAR ( 255 ) |  | Description 
jine |  VARCHAR ( 255 ) |  | Amount 
kehu |  VARCHAR ( 255 ) |  | customers
kehuid |  VARCHAR ( 255 ) |  | Customer id

 

SSM trading company based order management platform of the customer table

Field Name | Type | property | describe 
the above mentioned id |  INT ( 11 ) |  PRIMARY  KEY  | client the above mentioned id 
mingzi |  VARCHAR ( 255 ) |  | name 
username |  VARCHAR ( 255 ) |  | account 
password |  VARCHAR ( 255 ) |  | password 
lianxifangshi |  VARCHAR ( 255 ) |  |Contact 
dizhi |  VARCHAR ( 255 ) |  | Address

 

 

SET FOREIGN_KEY_CHECKS=0;

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

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

-- Table structure for ggjySSMdmygsddglpt

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

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_dingdan`;

CREATE TABLE `t_dingdan` (`id` INT(11) NOT NULL AUTO_INCREMENT COMMENT '订单id' , `Mingcheng` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' name ' ,` miaoshu` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' description ' , `jine` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' amount ' ,` kehu` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' customer ' , `kehuid` INT ( 11 )DEFAULT NULL COMMENT '客户id',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 ' , `lianxifangshi` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' Contact ' , dizhi` ` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' address',PRIMARY KEY (`id`)

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

 

 

Add the client module:

Defined tianjiakehuact page to receive incoming client parameters in kehuController, define as kehu. Kehu which contains fields: name, account number, password, contact information, address, using tianjiakehuact the client object stored in the database, insert method defined in kehuMapper, the matching database insert into kehu statement to achieve the customer data stored in the database operation. The part of the core code is as follows:

The customer page transmitted by the insert method kehudao added to the database kehudao.insert (kehu);

Add the customer success information stored in the message request, the user is given the page prompt request.setAttribute ( "message", "Add customer success");

Returns Customer Management Interface

return "forward:/tianjiakehu.action";

Query client module:

Customer-defined query module in the background, click on Customer Management in the sidebar, you can jump to the customer management interface. Defined kehuguanli respond to customer inquiries by kehuController module in the page. Check out all the information in kehuguanli, the return cycle through pages. Query method selectByexample method kehudao in. The part of the core code is as follows:

Generate a client-based examples, query by example defined KehuExample example = new KehuExample ();

Check out all the customer information List kehuall = kehudao.selectByExample (example) by selectByExample method of kehudao;

Customer information, stored in the request, on display request.setAttribute ( "kehuall", kehuall) page by foreach method;

Returns Customer Management Interface

return "forward:/kehuguanli.action";

Modify the client module:

After completion of customer information to fill in the page modification, the portion of the data into xiugaikehu.action address, and submit by post. After receiving submitted by xiugaikehu in kehuController in all fields packaged as a client entity. And the entity in the incoming updateByPrimaryKeySelective method kehudao, the definition of a client by client id to update the rest of the field in the method, the part of the field, including name, account number, password, contact information, address, the part of the core code shown below :

Corresponding modified by modifying the method according kehudao customer id kehudao.updateByPrimaryKeySelective (kehu);

Modifies the customer information is successful, save the message request, the user is given prompt request.setAttribute in the page ( "message", "modify client information successfully");

Returns Customer Management Interface

return "forward:/kehuguanli.action";

Delete the client module:

Remove the client function is implemented in kehuController, the implementation is shanchukehu. shanchukehu.action the page by the get method? Id form will need to remove the client id uploaded to the server in response to a corresponding method, call deleteByPrimaryKey method kehudao in complete deletion. Will delete successful message is returned to the page, complete the operation to delete data. The part of the core code:

Delete by deleting the corresponding method according kehudao customer id kehudao.deleteByPrimaryKey (id);

Customer Success will delete information stored in the message request, give the user prompt request.setAttribute in the page ( "message", "delete customer success");

Returns Customer Management Interface

return "forward:/kehuguanli.action";

 

Source download

Guess you like

Origin www.cnblogs.com/lqby/p/11620062.html