CN103473848B - Network invoice checking framework and method based on high concurrency - Google Patents

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

Info

Publication number
CN103473848B
CN103473848B CN201310446190.5A CN201310446190A CN103473848B CN 103473848 B CN103473848 B CN 103473848B CN 201310446190 A CN201310446190 A CN 201310446190A CN 103473848 B CN103473848 B CN 103473848B
Authority
CN
China
Prior art keywords
invoice
examination
module
echo request
business
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.)
Active
Application number
CN201310446190.5A
Other languages
Chinese (zh)
Other versions
CN103473848A (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
Inspur Software Group 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 Inspur Software Group Co Ltd filed Critical Inspur Software Group 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

Landscapes

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

Abstract

The invention provides a network invoice checking framework and a method based on high concurrency.A social public sends invoice checking request information to an invoice checking interface through a plurality of channels, the invoice checking interface stores a checking request into a queue buffer, an invoice checking rule processing service takes out the checking request from the queue buffer, processes the checking request according to a formulated invoice checking rule, determines and calls an invoice checking service for processing the checking request, and the invoice checking service processes the checking request and returns a checking result. Compared with the prior art, the high concurrency-based network invoice checking framework and the method meet the requirements of timeliness, high efficiency, reliability and expansibility for checking the network invoices and lay a foundation for the social public to check the invoices in time nationwide.

Description

A kind of invoice examination framework concurrent based on height and method
Technical field
The present invention relates to tax invoice statistical technique field, a kind of invoice examination framework concurrent based on height and method.
Background technology
Under current social circumstance, accounting is all built upon on paper invoice basis, accounting, cashier are carried out with paper invoice, therefore the invoice of whole nation application at present is and utilizes network environment to open paper invoice, Drawee Party utilizes network by invoice electro-nic message transmissions to the tax authority, printing on paper invoice by invoice information, Drawee Party receives paper invoice simultaneously.In such a mode, invoice checks the integrity to certified invoice data and concordance, meets Drawee Party and verifies that the demand of invoice information verity is the most particularly important.
Summary of the invention
The technical assignment of the present invention is to solve the deficiencies in the prior art, it is provided that a kind of invoice examination framework concurrent based on height and method.
The technical scheme is that and realize in the following manner, this a kind of invoice examination framework concurrent based on height, use EJB3.0 distributed structure/architecture, its structure is checked interface module, queue buffer module, distributed caching management module, invoice examination rule treatments module, invoice examination business module and invoice data base six part by invoice and is formed, wherein:
Invoice examination interface module is for receiving the echo request that the public sends over, and echo request is put in queue buffer module, waits invoice examination result simultaneously;After receiving invoice examination result, examination result is returned to the public;
Queue buffer module grasps, in time, the service access flow that system is currently practical, is monitored early warning, prevents the high service concurrently caused from delaying machine;
Cache information is supplied to invoice examination rule treatments module by distributed caching management module and invoice examination business module calls, and cache information here refers to: invoice examination object information, invoice examination Rule Information and invoice examination routing iinformation;
Invoice examination rule treatments module, the invoice examination business module processing rule invocation different by the invoice echo request formulated processes invoice examination business;
Invoice examination business module realizes the examination function of invoice;
Invoice data base is used for storing corresponding invoice data information.
Described invoice examination interface module uses the deployment way of cluster, and according to echo request amount, dynamic config set group node number.
Described queue buffer uses single node and two kinds of deployment way of cluster according to invoice examination portfolio.
Described invoice examination rule treatments module uses clustered deploy(ment) mode, according to the treating capacity of echo request, dynamic config set group node number.
Described invoice examination business module uses clustered deploy(ment) mode, according to the treating capacity of invoice examination business, dynamic config set group node number.
Invoice data is carried out splitting storage by described invoice data base, splits mode as follows: 1. by province, data are carried out a point storehouse;2. avoid single table record bar number excessive, carry out a point table by invoice codes;3. avoiding I/O bottleneck, by making out an invoice, database table is set up subregion by the date;4. invoice codes, invoice number and the amount of money are set up index.
A kind of checking method based on above-mentioned invoice examination framework, its concrete ping procedure is:
1) taxpayer inputs invoice examination information;
2) net ticket examination preamble reception is to invoice echo request;
3) invoice examination is preposition splits rule according to invoice data, and invoice echo request is sent to the examination of corresponding invoice, and business is preposition processes;
4) business is preposition obtains invoice information from data base in invoice examination;
5) invoice examination business is preposition by preposition for examination result return invoice examination;
6) invoice examination is preposition returns examination result to corresponding channel;
7) examination result notifies taxpayer.
The detailed process of described step 3) is: echo request is stored in queue buffer by invoice examination interface, echo request is taken out in invoice examination rule treatments service from queue buffer, echo request is processed by the invoice examination rule according to formulating, determining and process the invoice examination business of this echo request and call, invoice examination Business Processing echo request also carries out step 4).
The present invention compared with prior art produced by provide the benefit that:
A kind of concurrent based on the high invoice examination framework of the present invention and method use based on EJB3.0 distributed structure/architecture, make system possess high scalability;System uses queue buffer, for controlling the flowing of access of server, prevents the high service concurrently caused from delaying machine;System uses distributed caching technology, improves invoice examination efficiency;The theory using service, data to split, improves the promptness of invoice examination;Use the mode of cluster, improve the reliability of system;The whole nation land tax tax authority of state, ten thousand taxpayers issuing invoices more than more than 2850 can be met, and check demand more than the invoice of the 200000000 ticket public, the invoice information examination platform that the whole nation is unified, efficient, safe can be built, unified, efficient, safe invoice checking system is provided for consumer and the tax authority, meet timely to invoice examination, efficient, the reliable and requirement of autgmentability, carry out the invoice of nationwide for the public to check in time and lay a good foundation, practical, it is easy to promote.
Accompanying drawing explanation
Accompanying drawing 1 is the invoice examination frame construction schematic diagram of the present invention.
Accompanying drawing 2 is the invoice checking method schematic diagram of the present invention.
Detailed description of the invention
A kind of concurrent based on high invoice examination framework and method to the present invention are described in detail below below in conjunction with the accompanying drawings.
As shown in Figure 1, a kind of invoice examination framework concurrent based on height is now provided, use EJB3.0 distributed structure/architecture, its structure is checked interface module, queue buffer module, distributed caching management module, invoice examination rule treatments module, invoice examination business module and invoice data base six part by invoice and is formed, wherein:
1) invoice examination interface module
The echo request sended over by multiple channel for reception, and echo request is put in queue buffer, wait invoice examination result simultaneously.After receiving invoice examination result, examination result is returned to corresponding channel.Use the deployment way of cluster, can be according to echo request amount, dynamic config set group node number.
2) queue buffer module
By queue buffer module, it is possible to grasp in time the service access flow that system is currently practical, be monitored early warning, prevent the high service concurrently caused from delaying machine.Queue buffer can use single node and two kinds of deployment way of cluster according to invoice examination portfolio.
4) distributed caching management module
Cache information is supplied to invoice examination rule treatments module by distributed caching management 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
The invoice examination business module processing rule invocation different by the invoice echo request formulated processes invoice examination business.Use clustered deploy(ment) mode, can be according to the treating capacity of echo request, dynamic config set group node number.
4) invoice examination business module
The business realizing examination function of invoice checked by invoice.Use clustered deploy(ment) mode, can be according to the treating capacity of invoice examination business, dynamic config set group node number.
5) invoice data base
2010 annual whole nation universal machines are beaten common invoice usage amount and are about 231.7 hundred million parts, and invoice consumption calculates with average annual growth 10%, then 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 in view of data such as standby redundancies, database purchase calculates and calculates according to 5KB, and the most annual file storage capability reaches more than 150TB, the invoice data of such magnanimity is checked, it is necessary to invoice data is split.Fractionation mode is as follows: 1. by province, data are carried out a point storehouse, 2. avoids single table record bar number excessive, carries out a point table by invoice codes, 3. avoid I/O bottleneck, and by making out an invoice, database table is set up subregion by the date, 4. invoice codes, invoice number and the amount of money is set up index.
As shown in Figure 2, a kind of checking method based on above-mentioned invoice examination framework, its concrete ping procedure is:
One, taxpayer inputs invoice examination information.
Two, the examination of net ticket is preposition receives invoice echo request by multiple access channel.
Three, invoice examination is preposition splits rule according to invoice data, and invoice echo request is sent to the examination of corresponding invoice, and business is preposition processes.
Four, business is preposition obtains invoice information from data base in invoice examination.
Five, invoice examination business is preposition by preposition for examination result return invoice examination.
Six, invoice examination is preposition returns examination result to corresponding channel.
Seven, examination result notifies taxpayer.
Said method is embodied in above-mentioned examination framework and is: invoice echo request information (being called for short: echo request) is sent to invoice examination interface by multiple channel by the public, and multiple channel here refers to the various ways such as network, note or phone.
Echo request is stored in queue buffer by invoice examination interface.
Echo request is taken out in invoice examination rule treatments service from queue buffer.
Echo request is processed by the invoice examination rule according to formulating.
Determine and process the invoice examination business of this echo request and call.
Invoice examination Business Processing echo request also returns examination result.
By above-mentioned framework and checking method, meet invoice examination in time, efficiently, the reliable and requirement of autgmentability, carry out the invoice of nationwide for the public and check in time and lay a good foundation.
In addition to the technical characteristic described in description, it is the known technology of those skilled in the art.

Claims (3)

1. check framework based on the invoice that height is concurrent for one kind, it is characterized in that: use EJB3.0 distributed structure/architecture, its structure is checked interface module, queue buffer module, distributed caching management module, invoice examination rule treatments module, invoice examination business module and invoice data base six part by invoice and is formed, wherein:
Invoice examination interface module is for receiving the echo request that the public sends over, and echo request is put in queue buffer module, waits invoice examination result simultaneously;After receiving invoice examination result, examination result is returned to the public;This invoice examination interface module uses the deployment way of cluster, and according to echo request amount, dynamic config set group node number;
Queue buffer module grasps, in time, the service access flow that system is currently practical, is monitored early warning, prevents the high service concurrently caused from delaying machine, and this queue buffer uses single node and two kinds of deployment way of cluster according to invoice examination portfolio;
Cache information is supplied to invoice examination rule treatments module by distributed caching management module and invoice examination business module calls, and cache information here refers to: invoice examination object information, invoice examination Rule Information and invoice examination routing iinformation;
Invoice examination rule treatments module, the invoice examination business module processing rule invocation different by the invoice echo request formulated processes invoice examination business, this invoice examination rule treatments module uses clustered deploy(ment) mode, according to the treating capacity of echo request, dynamic config set group node number;
Invoice examination business module realizes the examination function of invoice;This invoice examination business module uses clustered deploy(ment) mode, according to the treating capacity of invoice examination business, dynamic config set group node number;
Invoice data base is used for storing corresponding invoice data information;Invoice data is carried out splitting storage by this invoice data base, splits mode as follows: 1. by province, data are carried out a point storehouse;2. avoid single table record bar number excessive, carry out a point table by invoice codes;3. avoiding I/O bottleneck, by making out an invoice, database table is set up subregion by the date;4. invoice codes, invoice number and the amount of money are set up index.
2. the checking method checking framework based on invoice described in claim 1, it is characterised in that: its concrete ping procedure is:
1) taxpayer inputs invoice examination information;
2) net ticket examination preamble reception is to invoice echo request;
3) invoice examination is preposition splits rule according to invoice data, and invoice echo request is sent to the examination of corresponding invoice, and business is preposition processes;
4) business is preposition obtains invoice information from data base in invoice examination;
5) invoice examination business is preposition by preposition for examination result return invoice examination;
6) invoice examination is preposition returns examination result to corresponding channel;
7) examination result notifies taxpayer.
Checking method based on invoice examination framework the most according to claim 2, it is characterized in that: the detailed process of described step 3) is: echo request is stored in queue buffer by invoice examination interface, echo request is taken out in invoice examination rule treatments service from queue buffer, echo request is processed by the invoice examination rule according to formulating, determining and process the invoice examination business of this echo request and call, invoice examination Business Processing echo request also carries 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 CN103473848A (en) 2013-12-25
CN103473848B true 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)

Families Citing this family (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
CN107193986B (en) * 2017-05-27 2020-06-12 国家计算机网络与信息安全管理中心 Public checking method for internet financial data
CN107316377A (en) * 2017-07-18 2017-11-03 山东浪潮商用系统有限公司 A kind of invoice checking method applied based on mobile phone
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

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

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
四川省地税发票查验系统的设计与实现;王少琨;《中国优秀硕士学位论文全文数据库 信息科技辑》;20130615(第6期);正文第6、18-29、33-35、45-46页 *
浪潮网络发票云的建设探索;浪潮集团有限公司;《新闻链接》;20121231(第12期);第28页 *

Also Published As

Publication number Publication date
CN103473848A (en) 2013-12-25

Similar Documents

Publication Publication Date Title
CN103473848B (en) Network invoice checking framework and method based on high concurrency
Zhang et al. An effective heuristic for on-line tenant placement problem in SaaS
CN106528683B (en) A kind of the big data cloud search system and its method balanced based on index burst
CN105933408B (en) A kind of implementation method and device of Redis universal middleware
CN105959395A (en) Cluster self-feedback type load balancing scheduling system and method
CN104679594B (en) A kind of middleware distributed computing method
CN101071434B (en) User distributing method, device and system for distributed database system
CN104536965B (en) A kind of data query display systems under the conditions of big data and method
CN102024008A (en) Limitation method of Web server concurrent number
CN109739919A (en) A kind of front end processor and acquisition system for electric system
CN103067486B (en) Based on the large data processing method of PaaS platform
CN106528853A (en) Data interaction management device and cross-database data interaction processing device and method
CN101902497A (en) Cloud computing based internet information monitoring system and method
CN103838855A (en) Method for updating residual tickets
CN103455633A (en) Method of distributed analysis for massive network detailed invoice data
CN106131227A (en) Balancing method of loads, meta data server system and load balance system
CN108880896B (en) Program gray level publishing method and device based on mainframe
CN102479354A (en) Data processing method and system based on workflow
CN105872082B (en) Fine granularity resource response system based on container cluster load-balancing algorithm
Latchoumi et al. Multi agent systems in distributed datawarehousing
CN104580422A (en) Cluster rendering node data access method based on shared cache
Liu et al. KubFBS: A fine‐grained and balance‐aware scheduling system for deep learning tasks based on kubernetes
CN201726426U (en) Internet information monitoring system based on cloud computing
CN102609314A (en) Quantification management method and quantification management system for virtual machine
CN108616398A (en) A kind of container dynamic capacity reduction method based on DNS load-balancing techniques

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