CN103473848A - Network invoice checking frame and method based on high concurrency - Google Patents

Network invoice checking frame and method based on high concurrency Download PDF

Info

Publication number
CN103473848A
CN103473848A CN2013104461905A CN201310446190A CN103473848A CN 103473848 A CN103473848 A CN 103473848A CN 2013104461905 A CN2013104461905 A CN 2013104461905A CN 201310446190 A CN201310446190 A CN 201310446190A CN 103473848 A CN103473848 A CN 103473848A
Authority
CN
China
Prior art keywords
invoice
examination
network
checking
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2013104461905A
Other languages
Chinese (zh)
Other versions
CN103473848B (en
Inventor
程林
吕亚伟
杨培强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing Inspur Government Cloud Management and Operation Co Ltd
Original Assignee
Shandong Inspur Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Inspur Software Co Ltd filed Critical Shandong Inspur Software Co Ltd
Priority to CN201310446190.5A priority Critical patent/CN103473848B/en
Publication of CN103473848A publication Critical patent/CN103473848A/en
Application granted granted Critical
Publication of CN103473848B publication Critical patent/CN103473848B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a network invoice checking frame and method based on high concurrency. The public can transmit invoice checking request messages to an invoice checking port through diverse channels, the invoice checking port stores checking requests in a queue cache, the checking requests are fetched from the queue cache by an invoice checking rule processing server and the checking requests are processed according to the formulated invoice checking rule. An invoice checking service processing the checking requests are determined and called. An invoice checking service processes the checking requests and feeds checking results back. According to the network invoice checking frame and method based on high concurrency, compared with the prior art, the requirements for timeliness, high efficiency, reliability and expansibility of checking of network invoices can be met and the foundation is laid for timely checking of invoices of the public nationwide.

Description

A kind of network invoice examination framework and the method concurrent based on height
Technical field
The present invention relates to tax invoice statistical technique field, specifically a kind of network invoice examination framework and the method concurrent based on height.
Background technology
Under current social condition, accounting all is based upon on papery invoice basis, accounting, cashier carry out with the papery invoice, therefore the network invoice of whole nation application at present is and utilizes network environment to open the papery invoice, be subject to ticket side to utilize network that the invoice electronic information is transferred to the tax authority, invoice information is printed on the papery invoice simultaneously, be subject to ticket side to receive the papery invoice.Under this pattern, integrality and the consistance of invoice examination to the certified invoice data, meet and be subject to the demand of ticket side's checking invoice information authenticity just particularly important.
Summary of the invention
Technical assignment of the present invention is to solve the deficiencies in the prior art, and a kind of network invoice examination framework and the method concurrent based on height are provided.
Technical scheme of the present invention realizes in the following manner, this a kind of network invoice examination framework concurrent based on height, adopt the EJB3.0 distributed structure/architecture, its structure is checked interface module, queue buffer module, distributed caching administration module, invoice examination rule treatments module, invoice examination business module and network invoice database six parts by invoice and is formed, wherein:
Invoice examination interface module is used for receiving the echo request that the public sends over, and echo request is put in the queue buffer module, waits for invoice examination result simultaneously; After receiving invoice examination result, will check result and return to the public;
The queue buffer module, for the service access flow of the current reality of timely grasp system, is carried out monitoring and early warning, prevents the high concurrent service the caused machine of delaying;
Cache information is offered to invoice examination rule treatments module to the distributed caching administration module and invoice examination business module calls, and the cache information here refers to: invoice examination object information, invoice examination Rule Information and invoice examination routing iinformation;
Invoice examination rule treatments module, call different invoice examination business modules by the invoice echo request processing rule of formulating and process invoice examination business;
Invoice examination business module is realized the examination function of invoice;
The network invoice database is for storing corresponding invoice data information.
Described invoice examination interface module adopts the deployment way of cluster, and according to the echo request amount, dynamic allocation cluster node number.
Described queue buffer adopts single node and two kinds of deployment way of cluster according to invoice examination portfolio.
Described invoice examination rule treatments module adopts the clustered deploy(ment) mode, according to the treatment capacity of echo request, and dynamic allocation cluster node number.
Described invoice examination business module adopts the clustered deploy(ment) mode, according to the treatment capacity of invoice examination business, and dynamic allocation cluster node number.
Described network invoice database splits storage to invoice data, and the fractionation mode is as follows: 1. by province, to data, divide storehouse; 2. avoid single table record number excessive, by the invoice code, carry out submeter; 3. avoid the IO bottleneck, by making out an invoice, the date is set up subregion to database table; 4. invoice code, invoice number and the amount of money are set up to index.
A kind of checking method based on above-mentioned network invoice examination framework, its specifically examination process is:
1) taxpayer inputs invoice examination information;
2) the preposition invoice echo request that receives of net ticket examination;
3) network invoice examination is preposition splits rule according to invoice data, the invoice echo request is sent to corresponding invoice examination business is preposition and processed;
4) business is preposition from database, obtains invoice information for invoice examination;
5) the preposition result of check of invoice examination business is returned to the network invoice and is checked preposition;
6) the preposition result of checking of network invoice examination is returned to corresponding channel;
7) the examination result is notified the taxpayer.
The detailed process of described step 3) is: invoice examination interface stores echo request in queue buffer into, echo request is taken out in the service of invoice examination rule treatments from queue buffer, according to the invoice examination rule of formulating, echo request is processed, determine the invoice examination business of processing this echo request and called, invoice examination business processing echo request is also carried out step 4).
The beneficial effect that the present invention compared with prior art produced is:
A kind of network invoice examination framework and the method concurrent based on height of the present invention adopt based on the EJB3.0 distributed structure/architecture, make system possess high scalability; System adopts queue buffer, for the flowing of access of Control Server, prevents the high concurrent service the caused machine of delaying; System adopts the distributed caching technology, improves invoice examination efficiency; Adopt the theory of service, Data Division, improve the promptness of network invoice examination; Adopt the mode of cluster, improve the reliability of system; Can meet the national state land tax tax authority, surpass more than 2,850 ten thousand taxpayers issuing invoices, and the invoice examination demand that surpasses the 2 Yi Wataru ticket public, can build unified, efficient, the safe invoice information examination platform in the whole nation, for consumer and the tax authority provide unified, efficient, safe network invoice checking system, met the requirement of and extendability timely, efficient, reliable to the examination of network invoice, carry out the invoice examination in time of nationwide lays a good foundation for the public, practical, be easy to promote.
The accompanying drawing explanation
Accompanying drawing 1 is network invoice examination frame construction schematic diagram of the present invention.
Accompanying drawing 2 is network invoice checking method schematic diagram of the present invention.
Embodiment
Below in conjunction with accompanying drawing, a kind of network invoice examination framework and the method concurrent based on height of the present invention are described in detail below.
As shown in Figure 1, a kind of network invoice examination framework concurrent based on height now is provided, adopt the EJB3.0 distributed structure/architecture, its structure is checked interface module, queue buffer module, distributed caching administration module, invoice examination rule treatments module, invoice examination business module and network invoice database six parts by invoice and is formed, wherein:
1) invoice examination interface module
For receiving the echo request sended over by multiple channel, and echo request is put in queue buffer, waits for invoice examination result simultaneously.After receiving invoice examination result, will check result and return to corresponding channel.Adopt the deployment way of cluster, can be according to the echo request amount, dynamic allocation cluster node number.
2) queue buffer module
By the queue buffer module, can grasp in time the service access flow of the current reality of system, carry out monitoring and early warning, prevent the high concurrent service the caused machine of delaying.Queue buffer can be checked portfolio according to invoice and be adopted single node and two kinds of deployment way of cluster.
4) distributed caching administration module
Cache information is offered to invoice examination rule treatments module to the distributed caching administration module and invoice examination business module calls, and cache information is as follows: invoice examination object information, invoice examination Rule Information and invoice examination routing iinformation.
3) invoice examination rule treatments module
Call different invoice examination business modules by the invoice echo request processing rule of formulating and process invoice examination business.Adopt the clustered deploy(ment) mode, can be according to the treatment capacity of echo request, dynamic allocation cluster node number.
4) invoice examination business module
The examination function of invoice that invoice has been checked business realizing.Adopt the clustered deploy(ment) mode, can check according to invoice the treatment capacity of business, dynamic allocation cluster node number.
5) network invoice database
2010 annual national universal machines are beaten the common invoice use amount and are about 231.7 hundred million parts, and the invoice consumption calculates with average annual growth 10%, and the common invoice consumption in the whole nation in 2013 is about 308.2 hundred million parts.The structured data capacity of every part of invoice is about 3KB, but consider the data such as standby redundancy, the database storage is calculated according to 5KB and is calculated, more than annual file storage capability reaches 150TB, invoice data to magnanimity like this is checked, and must be split invoice data.The fractionation mode is as follows: 1. by province, to data, divide storehouse, 2. avoid single table record number excessive, by the invoice code, carry out submeter, 3. avoid the IO bottleneck, by the date of making out an invoice, database table is set up to subregion, 4. invoice code, invoice number and the amount of money are set up to index.
As shown in Figure 2, a kind of checking method based on above-mentioned network invoice examination framework, its specifically examination process is:
One, the taxpayer inputs invoice examination information.
Two, the examination of net ticket is preposition receives the invoice echo request by multiple access channel.
Three, network invoice examination is preposition splits rule according to invoice data, the invoice echo request is sent to corresponding invoice examination business is preposition and processed.
Four, business is preposition from database, obtains invoice information for invoice examination.
Five, the preposition result of check of invoice examination business is returned to the network invoice and is checked preposition.
Six, the preposition result of checking of network invoice examination is returned to corresponding channel.
Seven, the examination result is notified the taxpayer.
Said method is embodied in above-mentioned examination framework and is: by multiple channel, by invoice echo request information, (be called for short: echo request) send to invoice examination interface, the multiple channel here refers to the various ways such as network, note or phone to the public.
Invoice examination interface stores echo request in queue buffer into.
Echo request is taken out in the service of invoice examination rule treatments from queue buffer.
According to the invoice examination rule of formulating, echo request is processed.
Determine the invoice examination business of processing this echo request and called.
Invoice examination business processing echo request is also returned to the examination result.
By above-mentioned framework and checking method, met the requirement of and extendability timely, efficient, reliable to the examination of network invoice, carry out the invoice examination in time of nationwide for the public and lay a good foundation.
Except the described technical characterictic of instructions, be the known technology of those skilled in the art.

Claims (8)

1. a network invoice concurrent based on height checked framework, it is characterized in that: adopt the EJB3.0 distributed structure/architecture, its structure is checked interface module, queue buffer module, distributed caching administration module, invoice examination rule treatments module, invoice examination business module and network invoice database six parts by invoice and is formed, wherein:
Invoice examination interface module is used for receiving the echo request that the public sends over, and echo request is put in the queue buffer module, waits for invoice examination result simultaneously; After receiving invoice examination result, will check result and return to the public;
The queue buffer module, for the service access flow of the current reality of timely grasp system, is carried out monitoring and early warning, prevents the high concurrent service the caused machine of delaying;
Cache information is offered to invoice examination rule treatments module to the distributed caching administration module and invoice examination business module calls, and the cache information here refers to: invoice examination object information, invoice examination Rule Information and invoice examination routing iinformation;
Invoice examination rule treatments module, call different invoice examination business modules by the invoice echo request processing rule of formulating and process invoice examination business;
Invoice examination business module is realized the examination function of invoice;
The network invoice database is for storing corresponding invoice data information.
2. a kind of network invoice concurrent based on height according to claim 1 checked framework, it is characterized in that: described invoice examination interface module adopts the deployment way of cluster, and according to the echo request amount, dynamic allocation cluster node number.
3. a kind of network invoice concurrent based on height according to claim 1 checked framework, it is characterized in that: described queue buffer adopts single node and two kinds of deployment way of cluster according to invoice examination portfolio.
4. a kind of network invoice concurrent based on height according to claim 1 checked framework, it is characterized in that: described invoice examination rule treatments module adopts the clustered deploy(ment) mode, according to the treatment capacity of echo request, and dynamic allocation cluster node number.
5. a kind of network invoice concurrent based on height according to claim 1 checked framework, it is characterized in that: described invoice examination business module adopts the clustered deploy(ment) mode, according to the treatment capacity of invoice examination business, and dynamic allocation cluster node number.
6. a kind of network invoice concurrent based on height according to claim 1 checked framework, and it is characterized in that: described network invoice database splits storage to invoice data, and the fractionation mode is as follows: 1. by province, to data, divide storehouse; 2. avoid single table record number excessive, by the invoice code, carry out submeter; 3. avoid the IO bottleneck, by making out an invoice, the date is set up subregion to database table; 4. invoice code, invoice number and the amount of money are set up to index.
7. the checking method based on above-mentioned network invoice examination framework, it is characterized in that: its specifically examination process is:
1) taxpayer inputs invoice examination information;
2) the preposition invoice echo request that receives of net ticket examination;
3) network invoice examination is preposition splits rule according to invoice data, the invoice echo request is sent to corresponding invoice examination business is preposition and processed;
4) business is preposition from database, obtains invoice information for invoice examination;
5) the preposition result of check of invoice examination business is returned to the network invoice and is checked preposition;
6) the preposition result of checking of network invoice examination is returned to corresponding channel;
7) the examination result is notified the taxpayer.
8. network invoice checking method according to claim 7, it is characterized in that: the detailed process of described step 3) is: invoice examination interface stores echo request in queue buffer into, echo request is taken out in the service of invoice examination rule treatments from queue buffer, according to the invoice examination rule of formulating, echo request is processed, determine the invoice examination business of processing this echo request and called, invoice examination business processing echo request is also carried out step 4).
CN201310446190.5A 2013-09-27 2013-09-27 Network invoice checking framework and method based on high concurrency Active CN103473848B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310446190.5A CN103473848B (en) 2013-09-27 2013-09-27 Network invoice checking framework and method based on high concurrency

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310446190.5A CN103473848B (en) 2013-09-27 2013-09-27 Network invoice checking framework and method based on high concurrency

Publications (2)

Publication Number Publication Date
CN103473848A true CN103473848A (en) 2013-12-25
CN103473848B CN103473848B (en) 2016-09-28

Family

ID=49798679

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310446190.5A Active CN103473848B (en) 2013-09-27 2013-09-27 Network invoice checking framework and method based on high concurrency

Country Status (1)

Country Link
CN (1) CN103473848B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104504092A (en) * 2014-12-29 2015-04-08 浪潮软件集团有限公司 Invoice checking system and method based on Internet
CN106789615A (en) * 2017-02-04 2017-05-31 重庆优启科技有限公司 A kind of raising web processes the method for concurrent request and uses its service station
CN107193986A (en) * 2017-05-27 2017-09-22 国家计算机网络与信息安全管理中心 A kind of internet finance data public's checking method
CN107316377A (en) * 2017-07-18 2017-11-03 山东浪潮商用系统有限公司 A kind of invoice checking method applied based on mobile phone
CN110109907A (en) * 2017-12-27 2019-08-09 航天信息股份有限公司 A kind of storage of tax data, querying method and device
CN113688158A (en) * 2021-09-07 2021-11-23 京东科技控股股份有限公司 Processing method, device, equipment, system and medium for business rule verification

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1369850A (en) * 2002-02-22 2002-09-18 何长杰 Receipt discriminating system and method
CN101930472A (en) * 2010-09-09 2010-12-29 南京中兴特种软件有限责任公司 Parallel query method for distributed database
CN102289508A (en) * 2011-08-31 2011-12-21 上海西本网络科技有限公司 Distributed cache array and data inquiry method thereof
CN102291324A (en) * 2011-06-28 2011-12-21 北京神州泰岳软件股份有限公司 Highly concurrent service request processing method
CN102521265A (en) * 2011-11-21 2012-06-27 华中科技大学 Dynamic consistency control method in massive data management
CN102567495A (en) * 2011-12-22 2012-07-11 国网信息通信有限公司 Mass information storage system and implementation method
CN102591970A (en) * 2011-12-31 2012-07-18 北京奇虎科技有限公司 Distributed key-value query method and query engine system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1369850A (en) * 2002-02-22 2002-09-18 何长杰 Receipt discriminating system and method
CN101930472A (en) * 2010-09-09 2010-12-29 南京中兴特种软件有限责任公司 Parallel query method for distributed database
CN102291324A (en) * 2011-06-28 2011-12-21 北京神州泰岳软件股份有限公司 Highly concurrent service request processing method
CN102289508A (en) * 2011-08-31 2011-12-21 上海西本网络科技有限公司 Distributed cache array and data inquiry method thereof
CN102521265A (en) * 2011-11-21 2012-06-27 华中科技大学 Dynamic consistency control method in massive data management
CN102567495A (en) * 2011-12-22 2012-07-11 国网信息通信有限公司 Mass information storage system and implementation method
CN102591970A (en) * 2011-12-31 2012-07-18 北京奇虎科技有限公司 Distributed key-value query method and query engine system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
浪潮集团有限公司: "浪潮网络发票云的建设探索", 《新闻链接》, no. 12, 31 December 2012 (2012-12-31), pages 28 *
王少琨: "四川省地税发票查验系统的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》, no. 6, 15 June 2013 (2013-06-15) *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104504092A (en) * 2014-12-29 2015-04-08 浪潮软件集团有限公司 Invoice checking system and method based on Internet
CN106789615A (en) * 2017-02-04 2017-05-31 重庆优启科技有限公司 A kind of raising web processes the method for concurrent request and uses its service station
CN107193986A (en) * 2017-05-27 2017-09-22 国家计算机网络与信息安全管理中心 A kind of internet finance data public's checking method
CN107316377A (en) * 2017-07-18 2017-11-03 山东浪潮商用系统有限公司 A kind of invoice checking method applied based on mobile phone
CN110109907A (en) * 2017-12-27 2019-08-09 航天信息股份有限公司 A kind of storage of tax data, querying method and device
CN110109907B (en) * 2017-12-27 2021-08-24 航天信息股份有限公司 Tax data storage and query method and device
CN113688158A (en) * 2021-09-07 2021-11-23 京东科技控股股份有限公司 Processing method, device, equipment, system and medium for business rule verification

Also Published As

Publication number Publication date
CN103473848B (en) 2016-09-28

Similar Documents

Publication Publication Date Title
CN103473848A (en) Network invoice checking frame and method based on high concurrency
CN108415944B (en) Real time computation system and its implementation based on micro services under a kind of traffic environment
CN106651633A (en) Power utilization information acquisition system and method based on big data technology
CN104601664B (en) A kind of control system of cloud computing platform resource management and scheduling virtual machine
CN104516989B (en) Incremental data supplying system and method
CN109739919B (en) Front-end processor and acquisition system for power system
CN106170016A (en) A kind of method and system processing high concurrent data requests
CN107066319A (en) A kind of multidimensional towards heterogeneous resource dispatches system
CN103677759B (en) Objectification parallel computing method and system for information system performance improvement
CN103106249A (en) Data parallel processing system based on Cassandra
CN112860695B (en) Monitoring data query method, device, equipment, storage medium and program product
CN106850258A (en) A kind of Log Administration System, method and device
CN103067486B (en) Based on the large data processing method of PaaS platform
CN102929899A (en) Distributed reporting system based on intermediate table
CN106131227A (en) Balancing method of loads, meta data server system and load balance system
CN103455633A (en) Method of distributed analysis for massive network detailed invoice data
CN103207920A (en) Parallel metadata acquisition system
CN103399894A (en) Distributed transaction processing method on basis of shared storage pool
CN107070645A (en) Compare the method and system of the data of tables of data
CN102571782B (en) Novel load balancing server cluster system
CN112559634A (en) Big data management system based on computer cloud computing
CN205899536U (en) Geographic information service system based on tile map
CN104035775A (en) Comprehensive front-end system of bank
CN106599036A (en) Server cluster-based parallel real-time database
CN105912621A (en) Area building energy consumption platform data storing and query method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 250100 Ji'nan science and Technology Development Zone, Shandong Branch Road No. 2877

Applicant after: INSPUR GROUP Co.,Ltd.

Address before: 250104 Ji'nan science and Technology Development Zone, Shandong Branch Road No. 2877

Applicant before: Shandong Inspur software Co.,Ltd.

COR Change of bibliographic data
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20180809

Address after: 250100 S06 tower, 1036, Chao Lu Road, hi tech Zone, Ji'nan, Shandong.

Patentee after: SHANDONG LANGCHAO YUNTOU INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 250100 Ji'nan hi tech Zone No. 2877, Shandong Province

Patentee before: INSPUR GROUP Co.,Ltd.

TR01 Transfer of patent right
CP03 Change of name, title or address

Address after: 250100 No. 1036 Tidal Road, Jinan High-tech Zone, Shandong Province, S01 Building, Tidal Science Park

Patentee after: Inspur cloud Information Technology Co.,Ltd.

Address before: 250100 Ji'nan science and technology zone, Shandong high tide Road, No. 1036 wave of science and Technology Park, building S06

Patentee before: SHANDONG LANGCHAO YUNTOU INFORMATION TECHNOLOGY Co.,Ltd.

CP03 Change of name, title or address
TR01 Transfer of patent right

Effective date of registration: 20221013

Address after: No. 5-398, Yunhan Avenue, Shuitu Hi tech Industrial Park, Beibei District, Chongqing 400722

Patentee after: Chongqing Inspur Government Cloud Management and Operation Co.,Ltd.

Address before: 250100 No. 1036 Tidal Road, Jinan High-tech Zone, Shandong Province, S01 Building, Tidal Science Park

Patentee before: Inspur cloud Information Technology Co.,Ltd.

TR01 Transfer of patent right