CN109978636A - A kind of system and method to be issued invoice based on company information memory object tree - Google Patents

A kind of system and method to be issued invoice based on company information memory object tree Download PDF

Info

Publication number
CN109978636A
CN109978636A CN201711450652.5A CN201711450652A CN109978636A CN 109978636 A CN109978636 A CN 109978636A CN 201711450652 A CN201711450652 A CN 201711450652A CN 109978636 A CN109978636 A CN 109978636A
Authority
CN
China
Prior art keywords
invoice
billing server
company information
service request
making out
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.)
Pending
Application number
CN201711450652.5A
Other languages
Chinese (zh)
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.)
Aisino Corp
Original Assignee
Aisino Corp
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 Aisino Corp filed Critical Aisino Corp
Priority to CN201711450652.5A priority Critical patent/CN109978636A/en
Publication of CN109978636A publication Critical patent/CN109978636A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/04Billing or invoicing

Landscapes

  • Business, Economics & Management (AREA)
  • Development Economics (AREA)
  • Accounting & Taxation (AREA)
  • Economics (AREA)
  • Finance (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a kind of systems to be issued invoice based on company information memory object tree, it is characterized in that, it include: tax control server, it is managed for the information to multiple Golden Taxes disks, wherein the packet includes: the status information of each Golden Taxes disk and corresponding company information, wherein the company information are as follows: the initial distribution of information of enterprise or enterprise's modification information;Monitoring module, for the corresponding company information of Golden Taxes disk each in tax control server to be sent to billing server;For being monitored in real time to the operating status of tax control server and being sent to billing server;Billing server, for will the corresponding company information generation company information memory object tree of each Golden Taxes disk;For receiving service request of making out an invoice, and the service request of making out an invoice is handled using the company information memory object tree;Load balancer, a billing server being sent to service request of making out an invoice for the load balance rule according to setting in billing server cluster.

Description

A kind of system and method to be issued invoice based on company information memory object tree
Technical field
The present invention relates to tax control technical fields, and are opened more particularly, to one kind based on company information memory object tree Has the system and method for invoice.
Background technique
With the development in China, existing enterprise's billing server is often opened when electronics value-added tax common invoice is issued The problems such as ticket amount is big and invoicing speed is slow.In order to solve this problem, application No. is in 201611005811.6 patent, stress In the tax control server for managing single deployment, is called using tax control server management module by interface and obtain tax control core board Essential information, and the essential information of tax control core board is stored in the database of billing server, then using in database Essential information carry out network booking and blank invoice being stored to database.
Application No. is the composition and function that in 201010121701.2 patent, lay particular emphasis on description billing server, constructions It is a kind of to be based on enterprise's billing server system, so that enterprise is realized that multiple spot is made out an invoice function in a network environment.Terminal of making out an invoice can mention Billing request is handed over to realize invoice issuing, inquire, copy tax and printing function.Billing server realizes invoice data storage, receives simultaneously All kinds of processing results are returned to terminal of making out an invoice by the types of functionality request for responding terminal of making out an invoice.
Above two tax control server Managed Solution is managed to the company information of single tax controlling equipment, Ge Gekai There is no data interaction between ticket server, management system reads enterprise's essential information in tax controlling equipment and is stored in database, then The purchase of invoice neck, invoice issuing are carried out using these essential informations and send a duplicate to tax function.Billing server under this mode is made out an invoice Performance is low, reliability is low, can not dual-active operation, be not able to satisfy high speed now and constantly make out an invoice demand.
Summary of the invention
It is existing to solve the present invention provides a kind of system and method to be issued invoice based on company information memory object tree Invoice issuing when the amount of making out an invoice that occurs is big and invoicing speed is slow problem.
To solve the above-mentioned problems, according to an aspect of the invention, there is provided a kind of be based on company information memory object The system to issue invoice is set, the system comprises:
Tax control server is managed for the information to multiple Golden Taxes disks, wherein the packet includes: each Golden Taxes disk Status information and corresponding company information, wherein the company information are as follows: the initial distribution of information of enterprise or enterprise's modification information;
Monitoring module is connected with the tax control server and billing server respectively, and being used for will be every in tax control server The corresponding company information of a Golden Taxes disk is sent to billing server;For being supervised in real time to the operating status of tax control server Control, and the operating status of the tax control server is sent to billing server;
Billing server, for will the corresponding company information generation company information memory object tree of each Golden Taxes disk; For receiving service request of making out an invoice, and the service request of making out an invoice is handled using the company information memory object tree;
Load balancer is sent to billing server collection for the service request that will make out an invoice of the load balance rule according to setting On a billing server in group.
Preferably, wherein the initial distribution of information of the enterprise includes: enterprise's duty paragraph, enterprise name, tax rate authorization message, row Industry authorization message, tax authority's information and ticket kind authorization message.
Preferably, wherein the billing server includes:
Database storage unit, all hairs for receiving the corresponding company information of each Golden Taxes disk and having issued Ticket information;
Memory enterprise information management unit, for will be in the corresponding company information generation company information of each Golden Taxes disk Deposit object tree.
Preferably, wherein the billing server, receives service request of making out an invoice, and utilize the company information memory object Tree handles the service request of making out an invoice, comprising:
Billing server dispatches an idle thread from thread pool and goes service request of making out an invoice described in processing;
Billing server according to enterprise's duty paragraph traverse company information memory object tree in all object nodes, determination described in The corresponding node of service request of making out an invoice;
The corresponding Golden Taxes disk information of billing server verifying node corresponding with the service request of making out an invoice, if verifying is logical It crosses, then the service request of making out an invoice is handled;If verifying does not pass through, service request of making out an invoice described in termination returns to mistake Information.
Preferably, wherein the corresponding Golden Taxes disk of billing server verifying node corresponding with the service request of making out an invoice Information, comprising:
Whether the corresponding Golden Taxes disk of the corresponding node of the service request of making out an invoice is arrived and copies the tax calendar, whether arrives the locked phase, is It is no to have offline invoice, whether have the remaining offline amount of money, whether arrive and lock phase and counterpart terminal offline whether be with being verified.
Preferably, wherein the system also includes:
Signature sign test server, carries out signature sign test for the ticket face data to service request of making out an invoice, will after being verified The ticket face data, which is inserted into database storage unit, completes processing of making out an invoice.
Preferably, wherein the billing server during operation, keeps heartbeat with monitoring module always, if in heartbeat Disconnected, then control module sends control command to billing server, and notice billing server stops handling all service requests of making out an invoice.
Preferably, wherein the system also includes:
When updating in tax control server or being inserted into Golden Taxes disk, monitoring module sends data more newer command to the service of making out an invoice Device, notice billing server parse and update company information, and billing server updates the company information memory object tree in memory Node and database storage unit in corresponding company information.
Preferably, wherein the system also includes:
Data simultaneous module, for guaranteeing the company information memory pair of every billing server in billing server cluster It is consistent as setting.
According to another aspect of the present invention, a kind of side to issue invoice based on company information memory object tree is provided Method, which comprises
It is managed using information of the tax control server to multiple Golden Taxes disks, wherein the packet includes: each Golden Taxes disk Status information and corresponding company information, wherein the company information are as follows: the initial distribution of information of enterprise or enterprise's modification information;
The corresponding company information of Golden Taxes disk each in the tax control server is sent to billing server by monitoring module, and The operating status of tax control server is monitored in real time, and the operating status of the tax control server is sent to the service of making out an invoice Device;
The corresponding company information of each Golden Taxes disk is generated company information memory object tree by billing server;
Load balancer is sent in billing server cluster according to the load balance rule of the setting service request that will make out an invoice A billing server on.
Billing server is made out an invoice service request described in receiving, and is made out an invoice using the company information memory object tree described Service request is handled.
Preferably, wherein the initial distribution of information of the enterprise includes: enterprise's duty paragraph, enterprise name, tax rate authorization message, row Industry authorization message, tax authority's information and ticket kind authorization message.
Preferably, wherein
All hairs for receiving the corresponding company information of each Golden Taxes disk using database storage unit and having issued Ticket information;
The corresponding company information of each Golden Taxes disk is generated in company information using memory enterprise information management unit Deposit object tree.
Preferably, wherein the billing server receive described in make out an invoice service request, and utilize the company information memory Object tree handles the service request of making out an invoice, comprising:
Billing server dispatches an idle thread from thread pool and goes service request of making out an invoice described in processing;
Billing server according to enterprise's duty paragraph traverse company information memory object tree in all object nodes, determination described in The corresponding node of service request of making out an invoice;
The corresponding Golden Taxes disk information of billing server verifying node corresponding with the service request of making out an invoice, if verifying is logical It crosses, then the service request of making out an invoice is handled;If verifying does not pass through, service request of making out an invoice described in termination returns to mistake Information.
Preferably, wherein the corresponding Golden Taxes disk of billing server verifying node corresponding with the service request of making out an invoice Information, comprising:
Whether the corresponding Golden Taxes disk of the corresponding node of the service request of making out an invoice is arrived and copies the tax calendar, whether arrives the locked phase, is It is no to have offline invoice, whether have the remaining offline amount of money, whether arrive and lock phase and counterpart terminal offline whether be with being verified.
Preferably, wherein the method also includes:
Signature sign test is carried out to the ticket face data for service request of making out an invoice using signature sign test server, it, will after being verified The ticket face data, which is inserted into database storage unit, completes processing of making out an invoice.
Preferably, wherein the billing server during operation, keeps heartbeat with monitoring module always, if in heartbeat Disconnected, then control module sends control command to billing server, and notice billing server stops handling all service requests of making out an invoice.
Preferably, wherein the method also includes:
When updating in tax control server or being inserted into Golden Taxes disk, monitoring module sends data more newer command to the service of making out an invoice Device, notice billing server parse and update company information, and billing server updates the company information memory object tree in memory Node and database storage unit in corresponding company information.
Preferably, wherein the method also includes:
Guarantee the company information memory pair of every billing server in billing server cluster using data simultaneous module It is consistent as setting.
The present invention provides a kind of system and method to be issued invoice based on company information memory object tree, billing servers Company information generates company information memory object tree first in reading database when starting;When some billing server receives Company information first in more new database when monitoring module sends order, then the corresponding node of upgating object tree, others are opened Ticket server by utilizing data synchronizing function updates the data of modification into the object tree of oneself to guarantee data consistency;When When billing server receives service request, load balancer according to the load balance rule of setting will make out an invoice service request send On a billing server into billing server cluster, service request of making out an invoice described in billing server reception, and utilize institute Company information memory object tree is stated to handle the service request of making out an invoice.The present invention can greatly improve electronic invoice and open Availability, continuity and the manageability of tool, safely and efficiently processing business is requested.
Detailed description of the invention
By reference to the following drawings, exemplary embodiments of the present invention can be more fully understood by:
Fig. 1 is showing according to the system 100 of embodiment of the present invention to be issued invoice based on company information memory object tree It is intended to;
Fig. 2 is the example according to the system of embodiment of the present invention to be issued invoice based on company information memory object tree Figure;
Fig. 3 is the internal logic structure figure according to the billing server of embodiment of the present invention;And
Fig. 4 is the stream according to the method 400 of embodiment of the present invention to be issued invoice based on company information memory object tree Cheng Tu.
Specific embodiment
Exemplary embodiments of the present invention are introduced referring now to the drawings, however, the present invention can use many different shapes Formula is implemented, and is not limited to the embodiment described herein, and to provide these embodiments be at large and fully disclose The present invention, and the scope of the present invention is sufficiently conveyed to person of ordinary skill in the field.Show for what is be illustrated in the accompanying drawings Term in example property embodiment is not limitation of the invention.In the accompanying drawings, identical cells/elements use identical attached Icon note.
Unless otherwise indicated, term (including scientific and technical terminology) used herein has person of ordinary skill in the field It is common to understand meaning.Further it will be understood that with the term that usually used dictionary limits, should be understood as and its The context of related fields has consistent meaning, and is not construed as Utopian or too formal meaning.
Fig. 1 is showing according to the system 100 of embodiment of the present invention to be issued invoice based on company information memory object tree It is intended to.As shown in Figure 1, in the system to be issued invoice based on company information memory object tree that embodiment of the present invention provides, Company information generates company information memory object tree first in reading database when billing server starts;When some clothes of making out an invoice Business device receives when monitoring module sends order company information first in more new database, then the corresponding knot of upgating object tree Point, other billing servers utilize data synchronizing function, and the data of modification are updated into the object tree of oneself to guarantee number According to consistency;When billing server receives service request, load balancer will make out an invoice according to the load balance rule of setting Service request is sent on a billing server in billing server cluster, and the business of making out an invoice described in billing server reception is asked It asks, and the service request of making out an invoice is handled using the company information memory object tree.The present invention can be mentioned greatly Availability, continuity and the manageability that high electronic invoice is issued, safely and efficiently processing business is requested.Embodiment based on The system 100 that company information memory object tree issues invoice includes: tax control server 101, monitoring module 102, billing server 103, load balancer 104.Preferably, the tax control server 101 is managed for the information to multiple Golden Taxes disks, Described in information include: each Golden Taxes disk status information and corresponding company information, wherein the company information are as follows: at the beginning of enterprise Originate row information or enterprise more new information.
Preferably, wherein the initial distribution of information of the enterprise includes: enterprise's duty paragraph, enterprise name, tax rate authorization message, row Industry authorization message, tax authority's information and ticket kind authorization message.
Preferably, the monitoring module 102, is connected with the tax control server and billing server respectively, and being used for will The corresponding company information of each Golden Taxes disk is sent to billing server in tax control server;For in real time to the fortune of tax control server Row state is monitored, and the operating status of the tax control server is sent to billing server.
Preferably, the billing server 103, for believing each Golden Taxes disk corresponding company information generation enterprise Cease memory object tree;For receiving service request of making out an invoice, and using the company information memory object tree to the business of making out an invoice Request is handled.
Preferably, wherein the billing server includes:
Database storage unit, all hairs for receiving the corresponding company information of each Golden Taxes disk and having issued Ticket information;
Memory enterprise information management unit, for will be in the corresponding company information generation company information of each Golden Taxes disk Deposit object tree.
Preferably, wherein the billing server, receives service request of making out an invoice, and utilize the company information memory object Tree handles the service request of making out an invoice, comprising:
Billing server dispatches an idle thread from thread pool and goes service request of making out an invoice described in processing;
Billing server according to enterprise's duty paragraph traverse company information memory object tree in all object nodes, determination described in The corresponding node of service request of making out an invoice;
The corresponding Golden Taxes disk information of billing server verifying node corresponding with the service request of making out an invoice, if verifying is logical It crosses, then the service request of making out an invoice is handled;If verifying does not pass through, service request of making out an invoice described in termination returns to mistake Information.
Preferably, wherein the corresponding Golden Taxes disk of billing server verifying node corresponding with the service request of making out an invoice Information, comprising:
Whether the corresponding Golden Taxes disk of the corresponding node of the service request of making out an invoice is arrived and copies the tax calendar, whether arrives the locked phase, is It is no to have offline invoice, whether have the remaining offline amount of money, whether arrive and lock phase and counterpart terminal offline whether be with being verified.
Preferably, the load balancer 104, for the load balance rule according to setting will make out an invoice service request send On a billing server into billing server cluster.
Preferably, wherein the system also includes:
Signature sign test server, carries out signature sign test for the ticket face data to service request of making out an invoice, will after being verified The ticket face data, which is inserted into database storage unit, completes processing of making out an invoice.
Preferably, wherein the billing server during operation, keeps heartbeat with monitoring module always, if in heartbeat Disconnected, then control module sends control command to billing server, and notice billing server stops handling all service requests of making out an invoice.
Preferably, wherein the system also includes:
When updating in tax control server or being inserted into Golden Taxes disk, monitoring module sends data more newer command to the service of making out an invoice Device, notice billing server parse and update company information, and billing server updates the company information memory object tree in memory Node and database storage unit in corresponding company information.
Preferably, wherein the system also includes:
Data simultaneous module, for guaranteeing the company information memory pair of every billing server in billing server cluster It is consistent as setting.
The embodiment illustrated the present invention in detail below
Fig. 2 is the example according to the system of embodiment of the present invention to be issued invoice based on company information memory object tree Figure.As shown in Fig. 2, embodiment of the present invention includes: to be opened by 2 based on the company information memory object tree system that issues invoice Billing server cluster, load balancer, signature the sign test server, two C200 tax control servers and two of ticket server composition A C200 monitoring module.
Each C200 tax control server is that can to accommodate the every 40 Golden Taxes disks of tax controlling equipment of 200 Golden Taxes disks be one group, Totally 5 groups, each Golden Taxes disk stores the initial distribution of information an of enterprise, also stores entire tax control in C200 tax control server The running state information of server, the running state information include: the insertion and disconnection of single or multiple Golden Taxes disks.C200 prison Control module is used to call the operating status of physical layer interface real time monitoring C200 tax control server, i.e., Golden Taxes in the described tax control server Disk is that have whether replacement, company information are changed, and send the service of making out an invoice according to different command numbers for various operating statuses Device.
Each billing server includes the memory enterprise information management system (i.e. memory enterprise information management unit) and data Library (i.e. database storage unit), the memory enterprise information management system receive the enterprise that C200 monitoring module is sent and initially issue letter Breath generates company information memory object tree, while company information being stored in database.When company information changes, C200 Monitoring module thinks that billing server sends the corresponding command number information of the operating status, and billing server reacquires change Then company information generates the company information memory object tree updated using the memory enterprise information management system, meanwhile, it will update Company information storage in the database.When issuing invoice, billing server is requested according to various businesses, returns to processing knot Fruit.
Fig. 3 is the internal logic structure figure according to the billing server of embodiment of the present invention.As shown in figure 3, such as Fig. 3 institute Show, memory object tree management system includes: memory object tree, business interface processing module, C200 monitor processing module and WEB pipe Manage module.Memory object tree management system reads the company information in data when system starts, and generates memory object tree. C200 monitoring module is communicated by http protocol JSON interface and memory object tree management system.
Load balancer is used to that various businesses to be requested to be evenly dispersed into each billing server according to certain strategy On, guarantee good service of the server without interruption.
Signature sign test server by utilizing tax digital certificate treats the ticket face data drawn a bill and carries out signature sign test, guarantees hair Upload to tax local side to ticket complete safety.
The system of embodiment of the present invention to be issued invoice based on company information memory object tree is united using memory object tree All company informations of one management cluster billing server are handled to high concurrent according to keyword quick-searching object nodal value Various businesses request;The physical location of hardware tax control C200 tax control server can concentrate trustship or enterprise to control oneself;Simultaneously should System uses unified interface, unified communication protocol and unified hardware device, and docking is simple, can be with numerous platforms such as Wechat, Ali, Jingdone district etc. are unified to dock;It supports to make out an invoice the diversification access of terminal, from PC to mobile phone, the mobile terminals such as PAD.
The tool to be issued invoice using the system of embodiment of the present invention to be issued invoice based on company information memory object tree Body process are as follows: in billing server starting, existing company information data includes enterprise's duty paragraph, billing machine in reading database Number, authorization ticket kind data, terminal data and offline invoice data, by these data configurations at an object node, be inserted into It deposits in object tree, completes initialization operation.Terminal of making out an invoice or ERP system send service request on load balancer, bear Billing server can be used by carrying balanced device and forwarding requests in cluster billing server one according to customized load balance rule On.After billing server receives service request, corresponding function is completed according to service request type.Such as request of making out an invoice, it opens Ticket server dispatches an idle thread from thread pool and goes to handle the request, traverses memory object tree according to pin side's duty paragraph first In all Object nodes, check the corresponding Golden Taxes disk of node whether arrive copy the tax calendar, whether arrive the phase of locking, whether have offline invoice, Whether there is the remaining offline amount of money, whether arrive locked phase, counterpart terminal offline and whether can use etc..If finding the Golden Taxes of the condition of satisfaction Function of making out an invoice then is completed using node information after disk, otherwise terminates request, returns to error message.Determine the Golden Taxes disk for the condition that meets Afterwards, corresponding node information is filled into invoice by thread, is then called signature sign test server interface, is carried out to ticket face data Signature sign test.Finally invoice data is inserted into database and completes function of making out an invoice, and returns to corresponding message of making out an invoice, so far thread Task terminates, and returns to thread pool and waits next processing request.Billing server operation during, C200 monitoring module all with open Ticket server keeps heartbeat, to guarantee the long connection of both sides.After the two heartbeat mechanism disconnects, C200 sends control command notice and opens Ticket server deactivates all company informations;When being updated in C200 tax control server or being inserted into Golden Taxes disk, C200 monitoring module hair Data command notice billing server parsing data are sent, while updating corresponding letter in the object tree node in memory and data library Breath.Multiple billing servers share the same Production database and multiple queries database, in order to guarantee between billing server Company information in synchronizing thread scan database is arranged in the data consistency of memory object tree, each billing server, if any Update the corresponding company information of node for being then synchronized to memory object tree.
Fig. 4 is the stream according to the method 400 of embodiment of the present invention to be issued invoice based on company information memory object tree Cheng Tu.As shown in figure 4, the method 400 to be issued invoice based on company information memory object tree that embodiment of the present invention provides Since step 401 place, it is managed in step 401 using information of the tax control server to multiple Golden Taxes disks, wherein the letter Breath include: each Golden Taxes disk status information and corresponding company information, wherein the company information are as follows: enterprise initially issues letter Breath or enterprise's modification information.
Preferably, wherein the initial distribution of information of the enterprise includes: enterprise's duty paragraph, enterprise name, tax rate authorization message, row Industry authorization message, tax authority's information and ticket kind authorization message.
Preferably, the corresponding company information of Golden Taxes disk each in the tax control server is sent out in step 402 monitoring module It send to billing server, and the operating status of tax control server is monitored in real time, and by the operation of the tax control server State is sent to billing server.
Preferably, the corresponding company information of each Golden Taxes disk is generated into company information in step 403 billing server Memory object tree.
Preferably, wherein
All hairs for receiving the corresponding company information of each Golden Taxes disk using database storage unit and having issued Ticket information;
The corresponding company information of each Golden Taxes disk is generated in company information using memory enterprise information management unit Deposit object tree.
Preferably, wherein the method also includes:
When updating in tax control server or being inserted into Golden Taxes disk, monitoring module sends data more newer command to the service of making out an invoice Device, notice billing server parse and update company information, and billing server updates the company information memory object tree in memory Node and database storage unit in corresponding company information.
Preferably, wherein the method also includes:
Guarantee the company information memory pair of every billing server in billing server cluster using data simultaneous module It is consistent as setting.
Preferably, it is sent in step 404 load balancer according to the load balance rule of the setting service request that will make out an invoice On a billing server in billing server cluster.
Preferably, it makes out an invoice service request described in being received in step 405 billing server, and utilizes the company information memory Object tree handles the service request of making out an invoice.
Preferably, wherein the billing server receive described in make out an invoice service request, and utilize the company information memory Object tree handles the service request of making out an invoice, comprising:
Billing server dispatches an idle thread from thread pool and goes service request of making out an invoice described in processing;
Billing server according to enterprise's duty paragraph traverse company information memory object tree in all object nodes, determination described in The corresponding node of service request of making out an invoice;
The corresponding Golden Taxes disk information of billing server verifying node corresponding with the service request of making out an invoice, if verifying is logical It crosses, then the service request of making out an invoice is handled;If verifying does not pass through, service request of making out an invoice described in termination returns to mistake Information.
Preferably, wherein the corresponding Golden Taxes disk of billing server verifying node corresponding with the service request of making out an invoice Information, comprising:
Whether the corresponding Golden Taxes disk of the corresponding node of the service request of making out an invoice is arrived and copies the tax calendar, whether arrives the locked phase, is It is no to have offline invoice, whether have the remaining offline amount of money, whether arrive and lock phase and counterpart terminal offline whether be with being verified.
Preferably, wherein the billing server during operation, keeps heartbeat with monitoring module always, if in heartbeat Disconnected, then control module sends control command to billing server, and notice billing server stops handling all service requests of making out an invoice.
Preferably, wherein the method also includes:
Signature sign test is carried out to the ticket face data for service request of making out an invoice using signature sign test server, it, will after being verified The ticket face data, which is inserted into database storage unit, completes processing of making out an invoice.
The method 400 to be issued invoice based on company information memory object tree of the embodiment of the present invention with it is of the invention another The system 100 of a embodiment to be issued invoice based on company information memory object tree is corresponding, and details are not described herein.
The present invention is described by reference to a small amount of embodiment.However, it is known in those skilled in the art, as Defined by subsidiary Patent right requirement, in addition to the present invention other embodiments disclosed above equally fall in it is of the invention In range.
Normally, all terms used in the claims are all solved according to them in the common meaning of technical field It releases, unless in addition clearly being defined wherein.All references " one/described/be somebody's turn to do [device, component etc.] " are all opened ground At least one example being construed in described device, component etc., unless otherwise expressly specified.Any method disclosed herein Step need not all be run with disclosed accurate sequence, unless explicitly stated otherwise.

Claims (18)

1. a kind of system to be issued invoice based on company information memory object tree, which is characterized in that the system comprises:
Tax control server is managed for the information to multiple Golden Taxes disks, wherein the packet includes: the shape of each Golden Taxes disk State information and corresponding company information, wherein the company information are as follows: the initial distribution of information of enterprise or enterprise's modification information;
Monitoring module is connected with the tax control server and billing server respectively, is used for gold each in tax control server The corresponding company information of tax disk is sent to billing server;For being monitored in real time to the operating status of tax control server, and The operating status of the tax control server is sent to billing server;
Billing server, for will the corresponding company information generation company information memory object tree of each Golden Taxes disk;For Reception is made out an invoice service request, and is handled using the company information memory object tree the service request of making out an invoice;
Load balancer is sent in billing server cluster for the service request that will make out an invoice of the load balance rule according to setting A billing server on.
2. system according to claim 1, which is characterized in that the initial distribution of information of enterprise includes: enterprise's duty paragraph, enterprise Industry title, tax rate authorization message, industry authorization message, tax authority's information and ticket kind authorization message.
3. system according to claim 1, which is characterized in that the billing server includes:
Database storage unit, all invoice letters for receiving the corresponding company information of each Golden Taxes disk and having issued Breath;
Memory enterprise information management unit, for will the corresponding company information generation company information memory pair of each Golden Taxes disk As tree.
4. system according to claim 3, which is characterized in that the billing server receives service request of making out an invoice, and benefit The service request of making out an invoice is handled with the company information memory object tree, comprising:
Billing server dispatches an idle thread from thread pool and goes service request of making out an invoice described in processing;
Billing server traverses all object nodes in company information memory object tree according to enterprise's duty paragraph, makes out an invoice described in determination The corresponding node of service request;
The corresponding Golden Taxes disk information of billing server verifying node corresponding with the service request of making out an invoice, if being verified, The service request of making out an invoice is handled;If verifying does not pass through, service request of making out an invoice described in termination returns to error message.
5. system according to claim 4, which is characterized in that the billing server verifying and the service request of making out an invoice The corresponding Golden Taxes disk information of corresponding node, comprising:
Whether the corresponding Golden Taxes disk of the corresponding node of the service request of making out an invoice is arrived and copies the tax calendar, whether arrives the locked phase, whether has Whether whether offline invoice have the remaining offline amount of money, arrive and lock phase and counterpart terminal offline can be with being verified.
6. system according to claim 3, which is characterized in that the system also includes:
Signature sign test server, carries out signature sign test for the ticket face data to service request of making out an invoice, will be described after being verified Ticket face data, which is inserted into database storage unit, completes processing of making out an invoice.
7. system according to any one of claim 1 to 6, which is characterized in that the billing server during operation, Always heartbeat is kept with monitoring module, if heartbeat interrupt, control module sends control command to billing server, and notice is made out an invoice Server stops handling all service requests of making out an invoice.
8. system according to claim 7, which is characterized in that the system also includes:
When updating in tax control server or being inserted into Golden Taxes disk, monitoring module sends data more newer command to billing server, leads to Know that billing server parses and update company information, billing server updates the node of the company information memory object tree in memory With company information corresponding in database storage unit.
9. system according to claim 7, which is characterized in that the system also includes:
Data simultaneous module, for guaranteeing the company information memory object tree of every billing server in billing server cluster Unanimously.
10. a kind of method to be issued invoice based on company information memory object tree, which is characterized in that the described method includes:
It is managed using information of the tax control server to multiple Golden Taxes disks, wherein the packet includes: the shape of each Golden Taxes disk State information and corresponding company information, wherein the company information are as follows: the initial distribution of information of enterprise or enterprise's modification information;
The corresponding company information of Golden Taxes disk each in the tax control server is sent to billing server by monitoring module, and in real time The operating status of tax control server is monitored, and the operating status of the tax control server is sent to billing server;
The corresponding company information of each Golden Taxes disk is generated company information memory object tree by billing server;
Load balancer is sent in billing server cluster for the service request that will make out an invoice of the load balance rule according to setting A billing server on.
Billing server is made out an invoice service request described in receiving, and using the company information memory object tree to the business of making out an invoice Request is handled.
11. according to the method described in claim 10, it is characterized in that, the initial distribution of information of the enterprise include: enterprise's duty paragraph, Enterprise name, tax rate authorization message, industry authorization message, tax authority's information and ticket kind authorization message.
12. according to the method described in claim 10, it is characterized in that,
All invoice letters for receiving the corresponding company information of each Golden Taxes disk using database storage unit and having issued Breath;
The corresponding company information of each Golden Taxes disk is generated into company information memory pair using memory enterprise information management unit As tree.
13. according to the method for claim 12, which is characterized in that the business of making out an invoice described in the billing server reception is asked It asks, and the service request of making out an invoice is handled using the company information memory object tree, comprising:
Billing server dispatches an idle thread from thread pool and goes service request of making out an invoice described in processing;
Billing server traverses all object nodes in company information memory object tree according to enterprise's duty paragraph, makes out an invoice described in determination The corresponding node of service request;
The corresponding Golden Taxes disk information of billing server verifying node corresponding with the service request of making out an invoice, if being verified, The service request of making out an invoice is handled;If verifying does not pass through, service request of making out an invoice described in termination returns to error message.
14. according to the method for claim 13, which is characterized in that the billing server verifying is asked with the business of making out an invoice Seek the corresponding Golden Taxes disk information of corresponding node, comprising:
Whether the corresponding Golden Taxes disk of the corresponding node of the service request of making out an invoice is arrived and copies the tax calendar, whether arrives the locked phase, whether has Whether whether offline invoice have the remaining offline amount of money, arrive and lock phase and counterpart terminal offline can be with being verified.
15. according to the method for claim 12, which is characterized in that the method also includes:
Signature sign test is carried out to the ticket face data for service request of making out an invoice using signature sign test server, it, will be described after being verified Ticket face data, which is inserted into database storage unit, completes processing of making out an invoice.
16. method described in any one of 0 to 15 according to claim 1, which is characterized in that the billing server is in the runtime Between, heartbeat is kept with monitoring module always, if heartbeat interrupt, control module sends control command, notice to billing server Billing server stops handling all service requests of making out an invoice.
17. according to the method for claim 16, which is characterized in that the method also includes:
When updating in tax control server or being inserted into Golden Taxes disk, monitoring module sends data more newer command to billing server, leads to Know that billing server parses and update company information, billing server updates the node of the company information memory object tree in memory With company information corresponding in database storage unit.
18. according to the method for claim 16, which is characterized in that the method also includes:
Guarantee the company information memory object tree of every billing server in billing server cluster using data simultaneous module Unanimously.
CN201711450652.5A 2017-12-27 2017-12-27 A kind of system and method to be issued invoice based on company information memory object tree Pending CN109978636A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711450652.5A CN109978636A (en) 2017-12-27 2017-12-27 A kind of system and method to be issued invoice based on company information memory object tree

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711450652.5A CN109978636A (en) 2017-12-27 2017-12-27 A kind of system and method to be issued invoice based on company information memory object tree

Publications (1)

Publication Number Publication Date
CN109978636A true CN109978636A (en) 2019-07-05

Family

ID=67071913

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711450652.5A Pending CN109978636A (en) 2017-12-27 2017-12-27 A kind of system and method to be issued invoice based on company information memory object tree

Country Status (1)

Country Link
CN (1) CN109978636A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112669097A (en) * 2020-12-02 2021-04-16 航天信息股份有限公司 Billing service system and method based on tax Ukey disk group

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103747060A (en) * 2013-12-26 2014-04-23 惠州华阳通用电子有限公司 Distributed monitor system and method based on streaming media service cluster
CN105809849A (en) * 2014-12-29 2016-07-27 航天信息股份有限公司 Invoicing system and invoicing method capable of supporting various taxi control devices
US20170053255A1 (en) * 2011-09-02 2017-02-23 Humana Inc. Financial intermediary for electronic health claims processing
CN106530021A (en) * 2016-10-31 2017-03-22 青岛瑞宏科技有限公司 Electronic invoice making out system apparatus
CN106779988A (en) * 2016-11-15 2017-05-31 百望金赋科技有限公司 A kind of tax control server management system and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170053255A1 (en) * 2011-09-02 2017-02-23 Humana Inc. Financial intermediary for electronic health claims processing
CN103747060A (en) * 2013-12-26 2014-04-23 惠州华阳通用电子有限公司 Distributed monitor system and method based on streaming media service cluster
CN105809849A (en) * 2014-12-29 2016-07-27 航天信息股份有限公司 Invoicing system and invoicing method capable of supporting various taxi control devices
CN106530021A (en) * 2016-10-31 2017-03-22 青岛瑞宏科技有限公司 Electronic invoice making out system apparatus
CN106779988A (en) * 2016-11-15 2017-05-31 百望金赋科技有限公司 A kind of tax control server management system and method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
侯玉香,谭鸿健,郑旋: "《JSP Web应用开发案例教程》", 30 September 2017, 上海交通大学出版社 *
***: "《综合布线技术与网络工程》", 31 May 2015, 中国建材工业出版社 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112669097A (en) * 2020-12-02 2021-04-16 航天信息股份有限公司 Billing service system and method based on tax Ukey disk group

Similar Documents

Publication Publication Date Title
CN106502769B (en) Distributed transaction processing method, apparatus and system
US8788565B2 (en) Dynamic and distributed queueing and processing system
US20200175035A1 (en) System and method for maintaining a master replica for reads and writes in a data store
US5826239A (en) Distributed workflow resource management system and method
US6041306A (en) System and method for performing flexible workflow process execution in a distributed workflow management system
US5937388A (en) System and method for performing scalable distribution of process flow activities in a distributed workflow management system
CN101189595B (en) Solution deployment in a server farm
CN112069265B (en) Synchronization method of configuration data, business data system, computer system and medium
CN109120678A (en) The method and apparatus of service tray for distributed memory system
CN109656599A (en) The method and system updated for client release
CA2502855A1 (en) System and method for sharing objects between computers over a network
CN108965355A (en) Method, apparatus and computer readable storage medium for data transmission
CN109391516A (en) Realize the cloud third party NMS system of more producer UTN equipment centralized maintenance management
CN109783151B (en) Method and device for rule change
CN108011846A (en) The method and device of management business in network function virtualization architecture
CN106789432A (en) Test system based on autonomous controllable cloud platform technology
US11831746B2 (en) Time consistency synchronization method for distributed simulation
CN108804238A (en) A kind of flexible bus communication means based on remote procedure call
CN107818484A (en) Manage the method and system for rule of making out an invoice
US8856155B2 (en) Management of configuration data structures in multi-layer data models
CN110213156A (en) A kind of span centre heart group's instant communicating method and system
CN108366110A (en) A kind of website data interactive system and method
CN109189431A (en) A kind of client side upgrading method, device, equipment and readable storage medium storing program for executing
CN109978636A (en) A kind of system and method to be issued invoice based on company information memory object tree
CN102916830A (en) Implement system for resource service optimization allocation fault-tolerant management

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190705