JAVA Asset Management System

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

Thinking today, to complete a JAVA-based asset management system project, which features need to achieve?
Such projects commonly described as follows:
In this era of data that is resource-based personal financial management application account management will be the new direction of development of Internet banking big data era. This paper describes the concept and significance of personal financial management, to present a variety of viable service model were aligned, and discusses its business model on this basis. Currently very popular uses B / S architecture, as developed in JAVA technology relying on SSM technical framework, mysql database.
SSM (MYECLIPSE) framework for JAVA and asset management system that can reduce duplication of effort using the MVC idea to a great extent. And SSM (MYECLIPSE) framework with the best development tools is MYECLIPSE. MYECLIPSE integrates a large number of plug-ins, you can better use the SSM (MYECLIPSE) for development projects, while making more effective project development.
Through careful analysis of the JAVA-based asset management system can be drawn based on JAVA asset management system is a back-end system project.
In such a project, the system login role is essential for each login role is set account and password. To ensure the system can log in normal use. SSM (MYECLIPSE) contained in the project administrator login role.

Summary drawn JAVA asset management system based on all project data: administrator (admin), income (shouru), expenses (zhichu), balance (jieyu)

Based asset management systems administrators Table of JAVA

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

 

Income statement based asset management systems on JAVA

Field Name | Type | property | describe 
the above mentioned id |  INT ( 11 ) |  PRIMARY  KEY  | income the above mentioned id 
gongzishouru |  VARCHAR ( 255 ) |  | wage 
licaishouru |  VARCHAR ( 255 ) |  | financial income 
qitashouru |  VARCHAR ( 255 ) |  | Other income

 

Based on expenditures in asset management systems on JAVA

Field Name | Type | property | describe 
the above mentioned id |  INT ( 11 ) |  PRIMARY  KEY  | spending the above mentioned id 
shenghuokaizhi |  VARCHAR ( 255 ) |  | living expenses 
yulekaizhi |  VARCHAR ( 255 ) |  | entertainment expenses 
xuexikaizhi |  VARCHAR ( 255 ) |  | academic expenses 
qitakaizhi |  VARCHAR ( 255 ) | | Other expenses

 

Based on balance sheet assets management system of the JAVA

Field Name | Type | property | describe 
the above mentioned id |  INT ( 11 ) |  PRIMARY  KEY  | balance of the above mentioned id 
shangyuejieyu |  VARCHAR ( 255 ) |  | last month balance 
benyuejieyu |  VARCHAR ( 255 ) |  | month balances 
yuemohuizong |  VARCHAR ( 255 ) |  | end summary

 

 

SET FOREIGN_KEY_CHECKS=0;

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

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

-- Table structure for ggjyJAVAdzcglxt

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

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

CREATE TABLE `t_shouru` (`id` INT(11) NOT NULL AUTO_INCREMENT COMMENT '收入id' , `Gongzishouru` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' wages ' ,` licaishouru` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' financial income ' , `qitashouru` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' other income ' , PRIMARY  KEY ( id` `) 

) ENGINE = MyISAM the DEFAULT CHARSET = utf8 the COMMENT = ' income' ; 

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

the DROP  TABLE  the IF  EXISTS `t_zhichu`; 

the CREATE  TABLE ` t_zhichu` ( `id` the INT ( 11 ) the NOT  NULL AUTO_INCREMENT the COMMENT ' spending the above mentioned id ' , `shenghuokaizhi` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' living expenses ' ,` yulekaizhi` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' entertainment expenses ' , `xuexikaizhi`VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' learning expenditure ' , `qitakaizhi` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' other expenses ' , a PRIMARY  KEY (` id`) 

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

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

the DROP  TABLE  the IF  EXISTS `t_jieyu`; 

the CREATE  TABLE ` t_jieyu` ( `id`The INT ( . 11 ) the NOT  NULL the AUTO_INCREMENT the COMMENT ' balances ID ' , `shangyuejieyu` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' month balance ' ,` benyuejieyu` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' month balance ' , `yuemohuizong` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' end summary ' , a PRIMARY  KEY ( `id`)

) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='结余';

 

 

Add Balance module:

Defined tianjiajieyuact receiving incoming pages in jieyuController the balance parameters , defined as jieyu. Jieyu which contains fields: last month balance, the balance of this month, at the end of the summary, use tianjiajieyuact the balance objects stored in the database, insert method defined in jieyuMapper, the matching database insert into jieyu statement to achieve the balance of the data stored in the database operation. The part of the core code is as follows:

Jieyudao by the insert method to add a page transmitted to the balance database jieyudao.insert (jieyu);

Add the balance of success information stored in the message request, give the user prompt request.setAttribute in the page ( "message", "add the balance of success");

Return to balance management interface

return "forward:/tianjiajieyu.action";

Balance inquiries module:

When entering the balance of the query page in a browser, then the browser address bar is jieyuguanli.action, the address will respond jieyuController class jieyuguanli, in the process, get all the information selectByexample balance method, and the information save the request, make cycle through the pages. The part of the core code is as follows:

Generating a sample balance class, query by example defined JieyuExample example = new JieyuExample ();

Query all the balance information List jieyuall = jieyudao.selectByExample (example) by the method jieyudao of selectByExample;

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

Return to balance management interface

return "forward:/jieyuguanli.action";

Modify the balance of modules:

Information has been uploaded on the balance can be modified operation, this part of the operation in the balance management interface, click the Modify button to jump to the page modify balances. In the modified page, the balance will initialize all the fields of information, field information including last month balance, the balance of this month, at the end of the summary . Field information content available through the balance id. The modified information is passed to the receiving jieyuController jieyu. There is contained in jieyuController advance defined jieyudao, the parameter is jieyuMapper is achieved. jieyuMapper 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:

Modified corresponding balance jieyudao.updateByPrimaryKeySelective (jieyu) by modifying the method according to the id of jieyudao;

Will modify the balance of success information stored in the message request, give the user prompt request.setAttribute in the page ( "message", "modify the balance of information successfully");

Return to balance management interface

return "forward:/jieyuguanli.action";

Delete Balance module:

In the management page, click Delete. Href attribute page through a tag, the method using the get balance

Id is uploaded to the server, the server receives through jieyuController class shanchujieyu, after calling deleteByPrimaryKey jieyuMapper method according to delete the ID. Save the information to delete the message request, the user is given delete successful message in the page, the part of the core code is as follows:

Delete by deleting the corresponding method according jieyudao balance id jieyudao.deleteByPrimaryKey (id);

The balance will be deleted success information, saved to the message request, the user is given prompt request.setAttribute in the page ( "message", "deleted successfully balances");

Return to balance management interface

return "forward:/jieyuguanli.action";

Guess you like

Origin www.cnblogs.com/lsjyy/p/11613931.html