JAVA audio and video distribution system under the framework of ssm

Today and a friend completed the design and implementation of a project of audio and video distribution system, we use in the development of the framework is SSM (MYECLIPSE) framework. Limited knowledge of my friend, only this framework, ha ha, is designed to facilitate him. As usual selection of simple and convenient MYECLIPSE as a development tool, which is a background program. Introduction of this system is this: online audio and video products sales system is a typical WEB-based e-commerce system to achieve operation of the database by JAVA technology and flexible use of SQL statements. General system performance is good, safe and convenient. By topic of "Design and Implementation of audio and video distribution system," the design and implementation, we can learn more about the social information requirements of the times, to better understand the direction of the information in this era of rapid development of computer technology and applications to be developed. Can help companies in the commercial sector has been the target of widespread sales of a particular area of application management, project progress, even predict trends, so that managers or customers to more quickly and easily access to useful data and information to make decisions. Can help companies in the commercial sector has been the target of widespread sales of a particular area of application management, project progress, even predict trends, so that managers or customers to more quickly and easily access to useful data and information to make decisions. The design of the audio and video distribution system is a sales analysis system based on JAVA technology and design. Its interface is divided into design store sales and sales analysis, design background data into the data warehouse design and database design. Audio sales analysis system is the customer's consumption and sales of audio-visual analysis. Business managers can be analyzed according to the consumer's situation, so you can control the audio and video consumer spending tend to. Design and implementation of a system should include audio and video sales administrator user role, 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.
There is any relationship between the mall system, we will save its association in the Orders table. Their relationship is such that the order of the name of the mall mingzi field corresponds to the price and store orders jiage corresponding field.

The summary results of all system data: administrator (admin), user (yonghu), mall (shangcheng), orders (dingdan)

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

 

user table

Field Name | Type | property | describe 
the above mentioned id |  INT ( 11 ) |  PRIMARY  KEY  | user the above mentioned id 
Xingming |  VARCHAR ( 255 ) |  | name 
username |  VARCHAR ( 255 ) |  | account 
password |  VARCHAR ( 255 ) |  | password 
nianling |  VARCHAR ( 255 ) |  |Age 
xingbie |  VARCHAR ( 255 ) |  | Sex

 

Table Mall

Field Name | Type | property | describe 
the above mentioned id |  INT ( 11 ) |  PRIMARY  KEY  | mall the above mentioned id 
Zhonglei |  VARCHAR ( 255 ) |  | kind 
Shuliang |  VARCHAR ( 255 ) |  | number 
jiage |  VARCHAR ( 255 ) |  | Price 
Xinghao |  VARCHAR ( 255 ) |  |Model 
mingzi |  VARCHAR ( 255 ) |  | name

 

Orders table

Field Name | Type | property | describe 
the above mentioned id |  INT ( 11 ) |  PRIMARY  KEY  | orders for the above mentioned id 
mingzi |  VARCHAR ( 255 ) |  | name 
jiage |  VARCHAR ( 255 ) |  | Price 
Shuliang |  VARCHAR ( 255 ) |  | number 
Xingming |  VARCHAR ( 255 ) |  |Name 
shouhuodi |  VARCHAR ( 255 ) |  | receipt

 

 

SET FOREIGN_KEY_CHECKS=0;

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

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

-- Table structure for ggyinxiangxiaoshoudsjysx

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

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

CREATE TABLE `t_yonghu` (`id` INT(11) NOT NULL AUTO_INCREMENT COMMENT 'User ID ' , `xingming` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' name ' ,` username` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' account number ' , `password` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' password ' ,` nianling` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' aged ' , `xingbie` VARCHAR (255) DEFAULT NULL COMMENT '性别',PRIMARY KEY (`id`)

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

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

DROP TABLE IF EXISTS `t_shangcheng`;

CREATE TABLE `t_shangcheng` (`id` INT(11) NOT NULL AUTO_INCREMENT COMMENT '商城id',`zhonglei` VARCHAR( 255 ) the DEFAULT  NULL the COMMENT ' type ' , `shuliang` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' number ' ,` jiage` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' price ' , `xinghao` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' model ' , `mingzi` VARCHAR ( 255 ) the 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',`mingzi` VARCHAR(255) DEFAULT NULL the COMMENT ' name ' , `jiage` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' price ' ,` shuliang` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' number ' , `xingming` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' name ' ,` shouhuodi ` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' receipt ',PRIMARY KEY (`id`)

) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='订单';

 

 

Add an order module:

Defined tianjiadingdanact page to receive incoming orders in dingdanController the parameters defined as dingdan. Dingdan which contains fields: name, price, quantity, name, receipt, use tianjiadingdanact the order object stored in the database, insert method defined in dingdanMapper, the matching database insert into dingdan statement to achieve the order data into operation of the database. The part of the core code is as follows:

Dingdandao by the insert method to add a page to the transmission line database dingdandao.insert (dingdan);

Add the success of the order information, save the message request, the user is given prompt request.setAttribute in the page ( "message", "Add an order successfully");

Back Order Management Interface

return "forward:/tianjiadingdan.action";

 

Delete Orders modules:

By a label, shanchudingdan the page? Id = id will be passed to the background , the id to receive orders via shanchudingdan. Use of deleteByid

Delete the order, complete the deletion. Delete the definition of a successful message, delete orders successfully and saved to the request, the part of the code is as follows:

Deletes the corresponding order dingdandao.deleteByPrimaryKey (id) id by removing method according to the dingdandao;

Orders will be deleted success information stored in the message request, give the user prompt request.setAttribute in the page ( "message", "Delete Orders success");

Back Order Management Interface

return "forward:/dingdanguanli.action";

Guess you like

Origin www.cnblogs.com/mlxbc/p/11575083.html