Network Journal submission system, JAVA-based system on B / S

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

Today's project is the Journal Record network submission system, this project is such a thing: In order to solve the drawbacks of the current submission via e-mail online presence, improve work efficiency periodical editorial department, referring to the traditional journal editorial department workflow, JAVA win 10 of the environment, the use of JSP + Mysql database, the development of Internet-based online submission system. The system can be completed online submission of the manuscript self-management, real-time tracking the progress review, edit online review, manuscripts online management, editors and authors, communication between the author and the author and other major functions can be managed under the authority of the manuscript and website , covering the journal editorial department manage the whole process. To improve user access speed, the use of technology to dynamically generate static pages. And in accordance with the actual situation, the proposed new requirements for online submission of the editorial staff. .
To do this project, we need to use SSM (MYECLIPSE) framework, development tools choose the most adept MYECLIPSE.
Network Journal submission system project is a project background.
When developing the system, needs analysis is an essential part. Network Journal submission system has a role, including the administrator's login user.
Set the identity of each account, account number, password is essential, administrators, users are included in these login roles that some field.
In the function of the system, it is an important contribution table. This table allows the user to associate up. Submission of the table in the submission of the user's mingzi field corresponds to the submission of the corresponding user id and the id field
, they have a relationship.

The summary results of all system data: administrator (admin), journals (qikan), submission (tougao), user (yonghu)

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

 

Journal table

Field Name | Type | property | describe 
the above mentioned id |  INT ( 11 ) |  PRIMARY  KEY  | journals the above mentioned id 
mingcheng |  VARCHAR ( 255 ) |  | Name 
Shijian |  VARCHAR ( 255 ) |  | Time

 

Posted Table

Field Name | Type | property | describe 
the above mentioned id |  INT ( 11 ) |  PRIMARY  KEY  | Contributors the above mentioned id 
biaoti |  VARCHAR ( 255 ) |  | title 
neirong |  VARCHAR ( 255 ) |  | Content 
Shijian |  VARCHAR ( 255 ) |  | time 
zuozhe |  VARCHAR ( 255 ) |  | author
zuozheid |  VARCHAR ( 255 ) |  | Author id

 

user table

Field Name | Type | property | describe 
the above mentioned id |  INT ( 11 ) |  PRIMARY  KEY  | user the above mentioned id 
mingzi |  VARCHAR ( 255 ) |  | name 
username |  VARCHAR ( 255 ) |  | account 
password |  VARCHAR ( 255 ) |  | password

 

 

SET FOREIGN_KEY_CHECKS=0;

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

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

-- Table structure for ggxueyuantougao

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

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 ) the DEFAULT  NULL the COMMENT ' password ' , a PRIMARY  KEY (` id`) 

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

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

the DROP  TABLE  the IF  EXISTS `t_qikan`; 

the CREATE  TABLE ` t_qikan` ( `id` the INT ( . 11 ) the NOT  NULL the AUTO_INCREMENT the COMMENT ' Periodical id',`mingcheng` VARCHAR(255) DEFAULT NULL COMMENT '名称',`shijian` VARCHAR(255) DEFAULT NULL COMMENT '时间',PRIMARY KEY (`id`)

) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='期刊';

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

DROP TABLE IF EXISTS `t_tougao`;

CREATE TABLE `t_tougao` (` id` the INT ( . 11 ) the NOT  NULL the AUTO_INCREMENT the COMMENT ' contribution ID ' , `biaoti` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' title ' ,` neirong` VARCHAR ( 5000 ) the DEFAULT  NULL the COMMENT ' content ' , ` shijian` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' time ' , `zuozhe` VARCHAR (255) DEFAULT NULL COMMENT '作者',`zuozheid` INT(11) DEFAULT NULL COMMENT '作者id',PRIMARY KEY (`id`)

) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='投稿';

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

DROP TABLE IF EXISTS `t_yonghu`;

CREATE TABLE `t_yonghu` (`id` INT(. 11 ) the NOT  NULL the AUTO_INCREMENT the COMMENT ' user ID ' , `mingzi` 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 ' , a PRIMARY  KEY ( `id`) 

) ENGINE = MyISAMThe DEFAULT the CHARSET = UTF8 the COMMENT = ' user ' ;

 

 

Add submission module:

Defined contribution tianjiatougaoact receiving incoming page in tougaoController parameters, define as tougao. Tougao which contains fields: title, content, time, author, author id, the submission target using tianjiatougaoact stored in the database, insert method defined in tougaoMapper, the matching database insert into tougao statement to achieve the submission of data stored in the database operation. The part of the core code is as follows:

The method of the insert by the page transmission tougaodao posted added to the database in tougaodao.insert (tougao);

Add the successful submission of information, save the message request, the user is given prompt request.setAttribute in the page ( "message", "add the successful submission");

Return submission management interface

return "forward:/tianjiatougao.action";

Query submission module:

Submission of a query module implementations to initiate tougaoguanli.action request page. By this request, the server response tougaoController class tougaoguanli, query data by selectByexample operation in the process. After all posting information query, save it to request the tougaoall in, on display in the page and return tougaoguanli.jsp, the part of the core code is as follows:

Generating a sample-based contribution, defined by the example query TougaoExample example = new TougaoExample ();

Check out all the posting information List tougaoall = tougaodao.selectByExample (example) by selectByExample method of tougaodao;

The submission information stored in the request, on display request.setAttribute ( "tougaoall", tougaoall) page by foreach method;

Return submission management interface

return "forward:/tougaoguanli.action";

Modify the submission module:

Submission of information has been uploaded can be modified operation, this part of the operation in the submission management interface, click the Modify button to jump to modify the submission page. In the modified page will initialize all contributors field information, field information including title, content, time, author, author id. Content id field information obtained through submission. The modified information is passed to the receiving tougaoController tougao. In tougaoController contains advance defined tougaodao, the parameter is tougaoMapper is achieved. tougaoMapper defined modification method, modify the method used here is updateByPrimaryKeySelective, the method can be modified after the synchronization information to the database, the information will eventually be modified successfully returned the page. The part of the code as follows:

By modifying the method according tougaodao modified id corresponding contribution tougaodao.updateByPrimaryKeySelective (tougao);

The successful submission modify information stored in the message request, give the user prompt request.setAttribute in the page ( "message", "Modify posting information successfully");

Return submission management interface

return "forward:/tougaoguanli.action";

Delete submission module:

Delete submission feature implemented in tougaoController, the implementation is shanchutougao. shanchutougao.action the page by the get method? Id form will need to remove the posting id uploaded to the server, the corresponding response method, call deleteByPrimaryKey method tougaodao in complete deletion. Will delete successful message is returned to the page, complete the operation to delete data. The part of the core code:

Deletes the corresponding contribution tougaodao.deleteByPrimaryKey (id) id by removing method according to the tougaodao;

Submission Successful information will be deleted, saved to the message request, the user is given prompt request.setAttribute in the page ( "message", "delete successful submission");

Return submission management interface

return "forward:/tougaoguanli.action";

Guess you like

Origin www.cnblogs.com/bfmbch/p/11587404.html