A bill management method and related equipment based on blockchain network
By using blockchain network technology in scenic spot naming invoices, the problems of high issuance costs and low efficiency are solved, safe and efficient bill management is achieved, and bill forgery is prevented.
Patent Information
- Application Number
- CN201910972129.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-10-14
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2040-07-18
AI Technical Summary
The issuance cost of existing scenic spot naming invoices is high, the operation steps are cumbersome, and the efficiency is low. Moreover, the security of electronic invoices is insufficient and they are vulnerable to the threat of forgery.
Using a bill management method based on the blockchain network, the invoicing server receives the invoicing request submitted by the ticketing system, sends the invoicing data to the tax bureau server, and writes the data in the blockchain network to generate an electronic invoice containing the target scenic spot identification. Ensure data security and non-tamperability.
It greatly reduces the cost of issuance of scenic spot naming invoices, improves invoicing efficiency, and improves the security of electronic invoices through blockchain technology, effectively preventing bill forgery.
Smart Images

Figure CN110738471B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a bill management method and related equipment based on a blockchain network. Background Art
[0002] At present, the traditional paper invoice issuance method is still used for scenic spot naming invoices. The tax bureau's collection and management department needs to allocate number segments, each scenic spot needs to receive the number segments, apply for and report the number of copies to be printed, and then they are printed by a specialized printing company, mailed to the scenic spot, and then distributed by the scenic spot. It can be seen that this method of issuing scenic spot naming invoices is costly, the operation steps are cumbersome, and the efficiency is low. Summary of the invention
[0003] The embodiment of the present invention provides a bill management method and related equipment based on a blockchain network, which can greatly reduce the cost of issuing scenic spot naming invoices, improve the efficiency of invoicing, and also improve the security of electronic invoices, effectively preventing bill forgery.
[0004] In a first aspect, an embodiment of the present invention provides a bill management method based on a blockchain network, the method comprising:
[0005] The ticket issuing server receives the ticket issuing request submitted by the ticketing system server, wherein the ticket issuing request carries the ticket purchase order information of the target scenic spot;
[0006] The invoicing server sends the invoicing data to the tax bureau server based on the invoicing request, so that after the tax bureau server verifies the invoicing data, it sends a notification message of allowing invoicing to the invoicing server, and writes the invoicing data into the blockchain through the blockchain network, wherein the invoicing data includes the identifier of the target scenic spot;
[0007] When receiving the notification message of allowing the issuance of invoices, the invoicing server generates an electronic invoice according to the invoicing data, wherein the electronic invoice includes the identifier of the target scenic spot.
[0008] In a second aspect, an embodiment of the present invention provides a bill management method based on a blockchain network, wherein the blockchain network includes multiple nodes, and the method includes:
[0009] The tax bureau server receives the invoicing data sent by the invoicing server, wherein the invoicing data is generated by the invoicing server based on the invoicing request after receiving the invoicing request submitted by the ticketing system server, and the invoicing request carries the ticket purchase order information of the target scenic spot;
[0010] The tax bureau server verifies the invoicing data, and after the invoicing data is verified, sends the invoicing data to the nodes in the blockchain network, so that the nodes in the blockchain network write the invoicing data into the blockchain after the consensus verification of the invoicing data is passed, and the invoicing data includes the identification of the target scenic spot;
[0011] After verifying the invoicing data, the tax bureau server sends a notification message of allowing invoicing to the invoicing server, so that the invoicing server generates an electronic invoice according to the invoicing data, and the electronic invoice contains the identifier of the target scenic spot.
[0012] In a third aspect, an embodiment of the present invention provides a bill management device, the device comprising:
[0013] A receiving module, used to receive a ticketing request submitted by a ticketing system server, wherein the ticketing request carries the ticket purchase order information of a target scenic spot;
[0014] A sending module, configured to send the invoicing data to the tax bureau server based on the invoicing request, so that the tax bureau server sends a notification message of allowing invoicing to the ticket management device after verifying the invoicing data, and writes the invoicing data into the blockchain through the blockchain network, wherein the invoicing data includes the identifier of the target scenic spot;
[0015] A generating module is used to generate an electronic invoice according to the invoicing data when receiving the notification message of allowing invoicing, wherein the electronic invoice includes the identification of the target scenic spot.
[0016] In a fourth aspect, an embodiment of the present invention provides a bill management device, which is applied to a blockchain network, wherein the blockchain network includes a plurality of nodes, and the device includes:
[0017] A receiving module, configured to receive the ticketing data sent by the ticketing server, wherein the ticketing data is generated by the ticketing server based on the ticketing request after receiving the ticketing request submitted by the ticketing system server, and the ticketing request carries the ticket purchase order information of the target scenic spot;
[0018] A verification module, used for verifying the invoicing data;
[0019] A sending module, configured to send the invoicing data to the nodes in the blockchain network after the invoicing data is verified, so that the nodes in the blockchain network write the invoicing data into the blockchain after the consensus verification of the invoicing data is passed, wherein the invoicing data includes the identifier of the target scenic spot;
[0020] The sending module is further used to send a notification message of allowing the invoicing to the invoicing server after the invoicing data is verified, so that the invoicing server generates an electronic invoice according to the invoicing data, and the electronic invoice contains the identifier of the target scenic spot.
[0021] In a fifth aspect, an embodiment of the present invention provides a server, comprising a processor, a network interface and a storage device, wherein the processor, the network interface and the storage device are interconnected, wherein the network interface is controlled by the processor for sending and receiving data, the storage device is used to store a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions to execute the bill management method based on the blockchain network described in the first aspect or the second aspect.
[0022] In the sixth aspect, an embodiment of the present invention provides a computer storage medium, which stores program instructions. When the program instructions are executed, they are used to implement the bill management method based on the blockchain network described in the first aspect or the second aspect.
[0023] In an embodiment of the present invention, an invoicing server can receive an invoicing request submitted by a ticketing system server, where the invoicing request carries the ticket purchase order information of a target scenic spot. The invoicing server sends invoicing data to a tax bureau server based on the invoicing request, so that after the tax bureau server verifies the invoicing data, it sends a notification message allowing invoicing to the invoicing server, and writes the invoicing data including the identification of the target scenic spot into the blockchain through the blockchain network. When the invoicing server receives the notification message allowing invoicing, it generates an electronic invoice including the identification of the target scenic spot according to the invoicing data to complete the invoicing, thereby enabling scenic spot naming invoices to be issued through blockchain technology, greatly reducing the cost of issuing such invoices and improving invoicing efficiency. In addition, writing invoices into the blockchain can also improve the security of electronic invoices and effectively prevent bill forgery. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0025] Figure 1a It is a schematic diagram of the architecture of a bill management system provided by an embodiment of the present invention;
[0026] Figure 1b It is a schematic diagram of the structure of a blockchain provided by an embodiment of the present invention;
[0027] Figure 1c is a schematic diagram of a process of generating a new block provided by an embodiment of the present invention;
[0028] Figure 2 It is a flowchart of a bill management method based on a blockchain network provided by an embodiment of the present invention;
[0029] Figure 3a This is a schematic diagram of a scenic spot ticket purchase interface provided by an embodiment of the present invention;
[0030] Figure 3b This is another schematic diagram of a scenic spot ticket purchase interface provided by an embodiment of the present invention;
[0031] Figure 3c This is another schematic diagram of a scenic spot ticket purchase interface provided by an embodiment of the present invention;
[0032] Figure 4 It is a flowchart of another bill management method based on a blockchain network provided by an embodiment of the present invention;
[0033] Figure 5 It is a flowchart of another bill management method based on a blockchain network provided by an embodiment of the present invention;
[0034] Figure 6 It is a structural schematic diagram of a bill management device provided by an embodiment of the present invention;
[0035] Figure 7 is a structural diagram of another bill management device provided by an embodiment of the present invention;
[0036] Figure 8 It is a structural diagram of a server provided by an embodiment of the present invention;
[0037] Fig. 9 It is a schematic diagram of the structure of another server provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0038] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0039] In view of the current problems of high cost and low efficiency in issuing scenic spot naming invoices, the embodiments of the present invention provide a bill management method based on a blockchain network, which can issue scenic spot naming invoices through blockchain technology, greatly reducing the cost of issuing such invoices and improving the efficiency of invoicing. In addition, writing invoices into the blockchain can also improve the security of electronic invoices and effectively prevent bill forgery.
[0040] See also Figure 1a , is a schematic diagram of the architecture of a bill management system provided by an embodiment of the present invention, the bill management system includes a blockchain network 10, a user terminal 102, a ticketing system server 103, a billing server 104 and a tax bureau server 105, wherein:
[0041] The blockchain network 10 refers to a network for sharing data between nodes, and the blockchain network may include multiple nodes 101. Each node 101 can receive input information when performing normal work, and maintain the shared data (i.e., blockchain) in the blockchain network based on the received input information. In order to ensure the information intercommunication within the blockchain network, there can be an information connection between each node, and peer-to-peer (P2P) communication can be achieved between any two nodes, and P2P communication can be performed specifically through a wired communication link or a wireless communication link. For example, when any node in the blockchain network receives input information, other nodes obtain the input information according to the consensus algorithm, and store the input information as data in the shared data, so that the data stored on all nodes in the blockchain network are consistent.
[0042] The user terminal 102 may be a device held by consumers, tourists, etc.; the ticketing system server 103 is used to provide services such as the operation portal for purchasing scenic spot tickets and issuing scenic spot-named invoices; the invoicing server 104 may be a device corresponding to the invoicing service provider, and the invoicing service provider may include, for example, a third-party invoicing agent, etc., for providing invoicing services to the ticketing system server 103, and providing the issued electronic invoice to the user terminal 102; the tax bureau server 105 is used to maintain and manage bills such as electronic invoices, and the tax bureau server 105 can access the blockchain network 10 and communicate with the node 101 in the blockchain network 10, for example, sending the bill information to the node 101 to be written into the blockchain. Among them, the user terminal 102 may specifically be a smart phone, a tablet computer, a laptop computer, a desktop computer, a vehicle-mounted smart terminal, etc., which is not limited in the embodiment of the present invention.
[0043] It should be noted that Figure 1a The number of nodes shown in is only for illustration, and any number of nodes may be deployed according to actual needs.
[0044] Among them, for each node in the blockchain network, there is a node identifier corresponding to it, and each node in the blockchain network can store the node identifiers of other nodes in the blockchain network, so that the generated blocks can be broadcast to other nodes in the blockchain network according to the node identifiers of other nodes. Each node can maintain a node identifier list as shown in the following table, and the node name and node identifier are stored in the node identifier list accordingly. Among them, the node identifier can be an Internet Protocol (IP) address and any other information that can be used to identify the node. The table only uses the IP address as an example for illustration.
[0045] Node Name Node ID Node 1 117.114.151.174 Node 2 117.116.189.145 ... ... Node N 119.123.789.258
[0046] Each node in the blockchain network stores the same blockchain. The blockchain consists of multiple blocks, see Figure 1b The blockchain consists of multiple blocks. The genesis block includes a block header and a block body. The block header stores the input information characteristic value, version number, timestamp and difficulty value, and the block body stores the input information; the next block of the genesis block takes the genesis block as the parent block, and the next block also includes a block header and a block body. The block header stores the input information characteristic value of the current block, the block header characteristic value, version number, timestamp and difficulty value of the parent block, and so on, so that the block data stored in each block in the blockchain is associated with the block data stored in the parent block, ensuring the security of the input information in the block.
[0047] Among them, when generating each block in the blockchain, see Figure 1c , when the node where the blockchain is located receives the input information, it verifies the input information. After the verification is completed, the input information is stored in the memory pool and the hash tree used to record the input information is updated; then, the update timestamp is updated to the time when the input information is received, and the Byzantine fault tolerance technology BFT-RAFT algorithm is used to obtain the current block. Subsequently, the node where the blockchain is located sends the newly generated block to other nodes in the blockchain network according to the node identification of other nodes in the blockchain network. Other nodes verify the newly generated block and add the newly generated block to the blockchain stored in it after the verification is completed.
[0048] In some feasible implementations, the invoicing server 104 receives an invoicing request submitted by the ticketing system server 103, and the invoicing request carries the ticket purchase order information of the target scenic spot. The invoicing server 1014 sends the invoicing data to the tax bureau server 105 based on the invoicing request. After the tax bureau server 105 verifies the invoicing data, it sends a notification message allowing invoicing to the invoicing server 104, and writes the invoicing data including the identification of the target scenic spot into the blockchain through the blockchain network 10. When the invoicing server 104 receives the notification message allowing invoicing, it generates an electronic invoice including the identification of the target scenic spot according to the invoicing data and completes the invoicing. In this way, scenic spot naming invoices can be issued through blockchain technology, which greatly reduces the cost of issuing such invoices and improves the efficiency of invoicing. In addition, writing invoices into the blockchain can also improve the security of electronic invoices and effectively prevent bill counterfeiting.
[0049] In some feasible implementations, after generating an electronic invoice according to the invoicing data, the invoicing server 104 may send the electronic invoice to the user terminal 102 , and the user terminal 102 collects the electronic invoice into a target application. The electronic invoice includes an identifier of the target scenic spot.
[0050] The implementation details of the technical solution of the embodiment of the present invention are described in detail below:
[0051] See also Figure 2 , is an embodiment of the present invention based on Figure 1a The flowchart of a bill management method based on a blockchain network provided by the bill management system shown in the figure is as follows. The bill management method based on a blockchain network in an embodiment of the present invention is mainly described from the side of the bill issuing server. The bill management method based on a blockchain network includes the following steps:
[0052] 201. The ticket issuing server receives a ticket issuing request submitted by the ticketing system server, wherein the ticket issuing request carries ticket purchase order information of a target scenic spot.
[0053] Among them, the ticket purchase order information may include information such as the number of tickets purchased, unit price, total price, etc.
[0054] Specifically, the user can issue a ticket confirmation operation through the scenic spot ticket order management interface provided by the ticketing system server on the user terminal. After detecting the user terminal's ticket confirmation operation for the target scenic spot's ticket order in the scenic spot ticket order management interface, the ticketing system server submits a ticket request to the ticketing server. That is to say, after purchasing the ticket for the target scenic spot, the user can request an invoice for the target scenic spot's ticket order through the scenic spot ticket order management interface provided by the ticketing system server.
[0055] In some feasible implementations, users may be allowed to choose to issue an invoice named after the scenic spot during the ticket purchase process, such as Figure 3a As shown, the option of issuing blockchain electronic title tickets can be provided in the ticket purchase interface of the scenic spot. It can be set to issue by default. Of course, the user can click to enter the settings page and choose not to issue it for the time being, such as Figure 3b As shown, in addition, an introduction function for blockchain electronic title tickets can also be provided. Click the question mark icon on the right side of the blockchain electronic title ticket to pop up the introduction of the blockchain electronic title ticket, such as Figure 3c shown.
[0056] 202. The invoicing server sends the invoicing data to the tax bureau server based on the invoicing request, so that after the tax bureau server verifies the invoicing data, it sends a notification message allowing invoicing to the invoicing server, and writes the invoicing data into the blockchain through the blockchain network, and the invoicing data includes the identifier of the target scenic spot.
[0057] Specifically, after receiving the invoicing request, the invoicing server can generate invoicing data based on the invoicing request and send the invoicing data to the tax bureau server for verification. The tax bureau server can verify the invoicing qualifications of the target scenic spot and the ticket purchase order information. If the target scenic spot is qualified to issue invoices and the ticket purchase order information is true and correct, the invoicing data verification is confirmed to have passed, and a notification message allowing invoicing can be sent to the invoicing server, and the invoicing data can be sent to the blockchain network, so that the blockchain network will write the invoicing data including the location information at the time of invoicing into the blockchain.
[0058] 203. When receiving the notification message of allowing the issuance of invoices, the invoicing server generates an electronic invoice according to the invoicing data, wherein the electronic invoice includes the identifier of the target scenic spot.
[0059] Specifically, when the invoicing server receives the notification message sent by the tax bureau server allowing invoicing, it can generate an electronic invoice based on the invoicing data, that is, a blockchain electronic title ticket.
[0060] In an embodiment of the present invention, an invoicing server can receive an invoicing request submitted by a ticketing system server, where the invoicing request carries the ticket purchase order information of a target scenic spot. The invoicing server sends invoicing data to a tax bureau server based on the invoicing request, so that after the tax bureau server verifies the invoicing data, it sends a notification message allowing invoicing to the invoicing server, and writes the invoicing data including the identification of the target scenic spot into the blockchain through the blockchain network. When the invoicing server receives the notification message allowing invoicing, it generates an electronic invoice including the identification of the target scenic spot according to the invoicing data to complete the invoicing, thereby enabling scenic spot naming invoices to be issued through blockchain technology, greatly reducing the cost of issuing such invoices and improving invoicing efficiency. In addition, writing invoices into the blockchain can also improve the security of electronic invoices and effectively prevent bill forgery.
[0061] In some feasible implementations, after receiving the ticketing request from the ticketing system server, the ticketing server can obtain the ticket purchase order information of the target scenic spot carried in the ticketing request, and obtain the identification of the target scenic spot, and then generate ticketing data for issuing an invoice based on the identification of the target scenic spot and the ticket purchase order information.
[0062] In some feasible implementations, after the invoicing server generates an electronic invoice based on the invoicing data, it can send the electronic invoice to the user terminal. The electronic invoice includes the identification of the target scenic spot. The user terminal can collect the electronic invoices into the target application (such as a mini program or a designated APP) to facilitate the unified storage of the invoices. The identification of the target scenic spot can also be displayed in the electronic invoice.
[0063] See also Figure 4 , is an embodiment of the present invention based on Figure 1a The flowchart of another bill management method based on blockchain network provided by the bill management system shown in the figure is as follows. The bill management method based on blockchain network in the embodiment of the present invention is mainly described from the side of the tax bureau server. The blockchain network includes multiple nodes. The bill management method based on blockchain network includes the following steps:
[0064] 401. The tax bureau server receives the invoicing data sent by the invoicing server. The invoicing data is generated by the invoicing server based on the invoicing request after receiving the invoicing request submitted by the ticketing system server. The invoicing request carries the ticket purchase order information of the target scenic spot.
[0065] 402. The tax bureau server verifies the invoicing data, and after the invoicing data is verified, sends the invoicing data to the nodes in the blockchain network, so that the nodes in the blockchain network write the invoicing data into the blockchain after the consensus verification of the invoicing data is passed, and the invoicing data includes the identification of the target scenic spot.
[0066] Specifically, after the tax bureau server receives the invoicing data sent by the invoicing server, it can query the invoicing qualification of the target scenic spot according to the identification of the target scenic spot, and verify the ticket purchase order information. If the target scenic spot is qualified to issue invoices and the ticket purchase order information is true and correct, the invoicing data verification is confirmed to have passed. After the invoicing data verification is passed, the invoicing data will be uploaded to the chain.
[0067] Among them, the invoicing data includes the ticket purchase order information and identification of the target scenic spot. The specific implementation method of the tax bureau server uploading the invoicing data to the chain can be: the tax bureau server can obtain the summary of the ticket purchase order information of the target scenic spot (such as a hash value), and send the summary of the ticket purchase order information of the target scenic spot and the identification of the target scenic spot as data to be uploaded to the chain to the nodes in the blockchain network. After the consensus verification of the above-mentioned data to be uploaded is passed, the nodes in the blockchain network will write the data to be uploaded including the identification of the target scenic spot into the blockchain.
[0068] 403. After verifying the invoicing data, the tax bureau server sends a notification message of allowing invoicing to the invoicing server, so that the invoicing server generates an electronic invoice according to the invoicing data, and the electronic invoice includes the identifier of the target scenic spot.
[0069] Specifically, after the tax bureau server verifies the invoicing data, it sends a notification message allowing invoicing to the invoicing server, so that the invoicing server generates an electronic invoice based on the invoicing data. The electronic invoice contains the identification of the target scenic spot. After the tax bureau server verifies the invoicing data, the invoicing server can automatically issue an invoice for the scenic spot.
[0070] In an embodiment of the present invention, the tax bureau server receives the invoicing data sent by the invoicing server, and the invoicing data includes the ticket order information and identification of the target scenic spot. After the invoicing data is verified, the invoicing data is sent to the nodes in the blockchain network. After the consensus verification of the invoicing data is passed, the nodes in the blockchain network write the invoicing data including the identification of the target scenic spot into the blockchain. After the tax bureau server verifies the invoicing data, it can also send a notification message allowing invoicing to the invoicing server, so that the invoicing server generates an electronic invoice according to the invoicing data and completes the invoicing. In this way, the scenic spot naming invoice can be issued through blockchain technology, which greatly reduces the cost of issuing such invoices and improves the efficiency of invoicing. In addition, writing the invoice into the blockchain can also improve the security of the electronic invoice and effectively prevent the counterfeiting of bills.
[0071] In some feasible implementations, when verifying the issued blockchain electronic title ticket, the identification of the scenic spot corresponding to the electronic invoice can be queried from the node of the blockchain network, and compared with the identification of the scenic spot displayed in the electronic invoice provided by the user to confirm whether they are consistent. If they are consistent, it is confirmed that the identification of the scenic spot displayed on the electronic invoice has not been tampered with, so that the bill can be verified by utilizing the tamper-proof property of the data in the blockchain, further ensuring the accuracy of the bill verification.
[0072] Specifically, when verifying the electronic invoice to be verified, the reimbursement unit (such as an enterprise) can use the query terminal to query the corresponding scenic spot identification through the tax bureau server, which may include: the tax bureau server receives the scenic spot identification query request sent by the query terminal for the electronic invoice to be verified, and responds to the scenic spot identification query request. The tax bureau server can obtain the identification of the scenic spot corresponding to the electronic invoice to be verified from any node in the blockchain network, and then return the identification of the scenic spot corresponding to the electronic invoice to be verified to the query terminal.
[0073] In some feasible implementations, the query terminal can also communicate with any node of the blockchain network and directly query the identification of the scenic spot corresponding to the electronic invoice to be verified from the node without going through the tax bureau server, which is not limited in the embodiments of the present invention.
[0074] See also Figure 5 , is an embodiment of the present invention based on Figure 1a The flowchart of another bill management method based on blockchain network provided by the bill management system shown in the figure is as follows. The bill management method based on blockchain network in the embodiment of the present invention is mainly described from multiple sides such as user terminal, ticketing system server, billing server, tax bureau server, and blockchain network nodes. The blockchain network includes multiple nodes. The bill management method based on blockchain network includes the following steps:
[0075] 501. The user terminal submits a ticket issuance confirmation operation for a ticket purchase order for a target scenic spot to a ticketing system server.
[0076] 502. The ticketing system server submits a ticketing request to a ticketing server, wherein the ticketing request carries the ticket purchase order information of the target scenic spot.
[0077] 503. The ticket issuing server generates ticket issuing data according to the identifier of the target scenic spot and the ticket purchase order information.
[0078] 504. The invoicing server sends the invoicing data to the tax bureau server.
[0079] 505. The tax bureau server verifies the invoicing data.
[0080] 506. After verifying the invoicing data, the tax bureau server sends the invoicing data to the nodes in the blockchain network.
[0081] 507. After the nodes in the blockchain network pass the consensus verification on the invoicing data, the invoicing data is written into the blockchain.
[0082] 508. After verifying the invoicing data, the tax bureau server sends a notification message allowing invoicing to the invoicing server.
[0083] 509. The invoicing server generates an electronic invoice according to the invoicing data.
[0084] 510. The invoicing server sends the electronic invoice to the user terminal, where the electronic invoice includes the identifier of the target scenic spot.
[0085] 511. The user terminal collects the electronic invoice into a target application.
[0086] The specific implementation of steps 501 to 511 may refer to the specific description in the above embodiments, which will not be repeated here.
[0087] It should be noted that the order of steps 506, 507 and steps 508 to 511 is not limited, and steps 508 to 511 may be performed first. Of course, steps 506, 507 and steps 508 to 511 may also be performed simultaneously.
[0088] See also Figure 6 , is a schematic diagram of the structure of a bill management device according to an embodiment of the present invention. The bill management device according to the embodiment of the present invention comprises:
[0089] The receiving module 601 is used to receive a ticketing request submitted by the ticketing system server, wherein the ticketing request carries the ticket purchase order information of the target scenic spot;
[0090] The sending module 602 is used to send the invoicing data to the tax bureau server based on the invoicing request, so that the tax bureau server sends a notification message of allowing invoicing to the ticket management device after verifying the invoicing data, and writes the invoicing data into the blockchain through the blockchain network, wherein the invoicing data includes the identifier of the target scenic spot;
[0091] The generating module 603 is used to generate an electronic invoice according to the invoicing data when receiving the notification message of allowing invoicing, wherein the electronic invoice includes the identifier of the target scenic spot.
[0092] Optionally, the sending module 602 is specifically configured to:
[0093] Generate ticketing data according to the identifier of the target scenic spot and the ticket purchase order information;
[0094] The invoicing data is sent to the tax bureau server.
[0095] Optionally, the sending module 602 is further configured to send the electronic invoice to a user terminal, so that the user terminal collects the electronic invoice into a target application.
[0096] Optionally, the ticketing request is specifically submitted by the ticketing system server to the ticketing server after detecting a ticketing confirmation operation of the user terminal for the ticket purchase order of the target scenic spot.
[0097] It should be noted that the functions of the various functional modules of the bill management device of the embodiment of the present invention can be specifically implemented according to the method in the above method embodiment. The specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.
[0098] See also Figure 7 , is a schematic diagram of the structure of another bill management device according to an embodiment of the present invention. The bill management device according to the embodiment of the present invention is applied to a blockchain network, the blockchain network includes multiple nodes, and the device includes:
[0099] The receiving module 701 is used to receive the ticketing data sent by the ticketing server, wherein the ticketing data is generated by the ticketing server based on the ticketing request after receiving the ticketing request submitted by the ticketing system server, and the ticketing request carries the ticket purchase order information of the target scenic spot;
[0100] Verification module 702, used to verify the invoicing data;
[0101] The sending module 703 is used to send the invoicing data to the nodes in the blockchain network after the invoicing data is verified, so that the nodes in the blockchain network write the invoicing data into the blockchain after the consensus verification of the invoicing data is passed, and the invoicing data includes the identification of the target scenic spot;
[0102] The sending module 703 is further configured to send a notification message of allowing the issuance of tickets to the ticketing server after the ticketing data is verified, so that the ticketing server generates an electronic invoice according to the ticketing data, wherein the electronic invoice includes the identifier of the target scenic spot.
[0103] Optionally, the device further includes an acquisition module 704, wherein:
[0104] The receiving module 701 is also used to receive a scenic spot identification query request sent by the query terminal for the electronic invoice to be verified;
[0105] The acquisition module 704 is used to respond to the scenic spot identification query request and obtain the identification of the scenic spot corresponding to the electronic invoice to be verified from the node in the blockchain network;
[0106] The sending module 703 is further used to send the identification of the scenic spot corresponding to the electronic invoice to be verified to the query terminal.
[0107] It should be noted that the functions of the various functional modules of the bill management device of the embodiment of the present invention can be specifically implemented according to the method in the above method embodiment. The specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.
[0108] See also Figure 8 , is a schematic diagram of the structure of a server according to an embodiment of the present invention, the server according to the embodiment of the present invention corresponds to the invoicing server described above, the server includes a power supply module and other structures, and includes a processor 801, a storage device 802 and a network interface 803. The processor 801, the storage device 802 and the network interface 803 can exchange data.
[0109] The storage device 802 may include a volatile memory, such as a random-access memory (RAM); the storage device 802 may also include a non-volatile memory, such as a flash memory, a solid-state drive (SSD), etc.; the storage device 802 may also include a combination of the above-mentioned types of memory.
[0110] The processor 801 may be a central processing unit (CPU) 801. In one embodiment, the processor 801 may also be a graphics processing unit (GPU) 801. The processor 801 may also be a combination of a CPU and a GPU. In one embodiment, the storage device 802 is used to store program instructions. The processor 801 may call the program instructions to perform the following operations:
[0111] Receive a ticketing request submitted by a ticketing system server, wherein the ticketing request carries ticket purchase order information of a target scenic spot;
[0112] Sending invoicing data to the tax bureau server based on the invoicing request, so that after the tax bureau server verifies the invoicing data, it sends a notification message of allowing invoicing to the invoicing server, and writes the invoicing data into the blockchain through the blockchain network, wherein the invoicing data includes the identifier of the target scenic spot;
[0113] When the notification message of allowing invoicing is received, an electronic invoice is generated according to the invoicing data, and the electronic invoice includes the identifier of the target scenic spot.
[0114] Optionally, the processor 801 is specifically configured to:
[0115] Generate ticketing data according to the identifier of the target scenic spot and the ticket purchase order information;
[0116] The invoicing data is sent to the tax bureau server.
[0117] Optionally, the processor 801 is further configured to send the electronic invoice to a user terminal, so that the user terminal collects the electronic invoice into a target application.
[0118] Optionally, the ticketing request is specifically submitted by the ticketing system server to the ticketing server after detecting a ticketing confirmation operation of the user terminal for the ticket purchase order of the target scenic spot.
[0119] In a specific implementation, the processor 801, the storage device 802, and the network interface 803 described in the embodiment of the present invention can execute the embodiment of the present invention. Figure 2 The implementation method described in the related embodiments of the provided bill management method based on the blockchain network can also be implemented in the embodiments of the present invention. Figure 6 The implementation method described in the relevant embodiment of the provided bill management device will not be repeated here.
[0120] See also Fig. 9 , is a schematic diagram of the structure of a server in an embodiment of the present invention. The server in the embodiment of the present invention corresponds to the tax bureau server mentioned above. The server includes a power supply module and other structures, and includes a processor 901, a storage device 902 and a network interface 903. The processor 901, the storage device 902 and the network interface 903 can exchange data.
[0121] The storage device 902 may include a volatile memory, such as a random-access memory (RAM); the storage device 902 may also include a non-volatile memory, such as a flash memory, a solid-state drive (SSD), etc.; the storage device 902 may also include a combination of the above-mentioned types of memory.
[0122] The processor 901 may be a central processing unit (CPU) 901. In one embodiment, the processor 901 may also be a graphics processing unit (GPU) 901. The processor 901 may also be a combination of a CPU and a GPU. In one embodiment, the storage device 902 is used to store program instructions. The processor 901 may call the program instructions to perform the following operations:
[0123] Receiving the ticketing data sent by the ticketing server, wherein the ticketing data is generated by the ticketing server based on the ticketing request after receiving the ticketing request submitted by the ticketing system server, and the ticketing request carries the ticket purchase order information of the target scenic spot;
[0124] Verifying the invoicing data, and after the invoicing data is verified, sending the invoicing data to the nodes in the blockchain network, so that the nodes in the blockchain network write the invoicing data into the blockchain after the consensus verification of the invoicing data is passed, wherein the invoicing data includes the identifier of the target scenic spot;
[0125] After the invoicing data is verified, a notification message of allowing invoicing is sent to the invoicing server, so that the invoicing server generates an electronic invoice according to the invoicing data, and the electronic invoice contains the identifier of the target scenic spot.
[0126] Optionally, the processor 901 is further configured to:
[0127] Receiving a scenic spot identification query request sent by a query terminal for the electronic invoice to be verified;
[0128] In response to the scenic spot identification query request, obtaining the identification of the scenic spot corresponding to the electronic invoice to be verified from the node in the blockchain network;
[0129] The identification of the scenic spot corresponding to the electronic invoice to be verified is sent to the query terminal.
[0130] In a specific implementation, the processor 901, the storage device 902, and the network interface 903 described in the embodiment of the present invention can execute the embodiment of the present invention. Figure 4 The implementation method described in the related embodiments of the provided bill management method based on the blockchain network can also be implemented in the embodiments of the present invention. Figure 7 The implementation method described in the relevant embodiment of the provided bill management device will not be repeated here.
[0131] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0132] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described order of actions, because according to the present invention, some steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0133] In the several embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the above-mentioned units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0134] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0135] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0136] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server or a network device, etc., specifically a processor in a computer device) to perform all or part of the steps of the above-mentioned methods of various embodiments of the present invention. Among them, the aforementioned storage medium may include: U disk, mobile hard disk, magnetic disk, optical disk, read-only memory (English: Read-Only Memory, abbreviated: ROM) or random access memory (English: Random Access Memory, abbreviated: RAM) and other media that can store program codes.
[0137] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A bill management method based on blockchain network, characterized in that: The method comprises: The ticket issuing server receives the ticket issuing request submitted by the ticketing system server, wherein the ticket issuing request carries the ticket purchase order information of the target scenic spot, and the ticket purchase order information includes the number of tickets purchased, the unit price and the total price; The invoicing server generates invoicing data according to the identifier of the target scenic spot and the ticket purchase order information, and sends the invoicing data to the tax bureau server, so that the tax bureau server verifies the invoicing qualification of the target scenic spot and the ticket purchase order information. If the target scenic spot has the invoicing qualification and the ticket purchase order information is true, the verification is confirmed to be passed, and a notification message of allowing invoicing is sent to the invoicing server, and the data to be uploaded to the blockchain network corresponding to the invoicing data is sent to the blockchain network, so as to write the data to be uploaded to the blockchain corresponding to the invoicing data through the blockchain network; wherein, the data to be uploaded to the blockchain includes a summary of the ticket purchase order information of the target scenic spot and the identifier of the target scenic spot; when receiving a scenic spot identifier query request sent by the query terminal for the electronic invoice to be verified, the tax bureau server obtains the identifier of the scenic spot corresponding to the electronic invoice to be verified from the blockchain network, and sends the identifier of the scenic spot corresponding to the electronic invoice to be verified to the query terminal, and the identifier of the scenic spot corresponding to the electronic invoice to be verified is used to verify the identifier of the scenic spot included in the electronic invoice to be verified; When receiving the notification message of allowing the issuance of invoices, the invoicing server generates an electronic invoice according to the invoicing data, wherein the electronic invoice includes the identifier of the target scenic spot; The invoicing server sends the electronic invoice to the user terminal, so that the user terminal collects the electronic invoice into a target application.
2. The method according to claim 1, characterized in that The ticketing request is specifically submitted by the ticketing system server to the ticketing server after detecting the ticketing confirmation operation of the user terminal for the ticket purchase order of the target scenic spot.
3. A bill management method based on blockchain network, characterized in that: The blockchain network includes multiple nodes, and the method includes: The tax bureau server receives the invoicing data sent by the invoicing server, wherein the invoicing data is generated by the invoicing server after receiving the invoicing request submitted by the ticketing system server, based on the identifier of the target scenic spot and the ticket purchase order information of the target scenic spot carried in the invoicing request, wherein the ticket purchase order information includes the number of tickets purchased, the unit price and the total price; The tax bureau server verifies the ticket issuing qualification of the target scenic spot and the ticket purchase order information. If the target scenic spot is qualified to issue tickets and the ticket purchase order information is true, the verification is confirmed to be passed, and the data to be uploaded to the chain corresponding to the ticket issuing data is sent to the nodes in the blockchain network, so that the nodes in the blockchain network write the data to be uploaded to the chain corresponding to the ticket issuing data into the blockchain after the consensus verification of the data to be uploaded to the chain corresponding to the ticket issuing data is passed; wherein the data to be uploaded to the chain includes a summary of the ticket purchase order information of the target scenic spot and an identifier of the target scenic spot; After the tax bureau server verifies the invoicing data, it sends a notification message of allowing invoicing to the invoicing server, so that the invoicing server generates an electronic invoice according to the invoicing data, and sends the electronic invoice to the user terminal, so that the user terminal collects the electronic invoice into the target application, and the electronic invoice contains the identifier of the target scenic spot; The tax bureau server receives a scenic spot identification query request sent by the query terminal for the electronic invoice to be verified; The tax bureau server responds to the scenic spot identification query request and obtains the identification of the scenic spot corresponding to the electronic invoice to be verified from the node in the blockchain network; The tax bureau server sends the identification of the scenic spot corresponding to the electronic invoice to be verified to the query terminal, and the identification of the scenic spot corresponding to the electronic invoice to be verified is used to verify the identification of the scenic spot included in the electronic invoice to be verified.
4. A bill management device, characterized in that: The device comprises: A receiving module, configured to receive a ticketing request submitted by a ticketing system server, wherein the ticketing request carries the ticket purchase order information of a target scenic spot, and the ticket purchase order information includes the number of tickets purchased, the unit price, and the total price; A sending module, used to generate invoicing data according to the identifier of the target scenic spot and the ticket purchase order information, and send the invoicing data to the tax bureau server, so that the tax bureau server verifies the invoicing qualification of the target scenic spot and the ticket purchase order information. If the target scenic spot has the invoicing qualification and the ticket purchase order information is true, it is confirmed that the verification is passed, and a notification message of allowing invoicing is sent to the ticket management device, and the data to be uploaded to the blockchain network corresponding to the invoicing data is sent to the blockchain network, so as to write the invoicing data into the blockchain through the blockchain network; wherein, the data to be uploaded to the blockchain includes a summary of the ticket purchase order information of the target scenic spot and the identifier of the target scenic spot; when receiving a scenic spot identifier query request sent by a query terminal for the electronic invoice to be verified, the tax bureau server obtains the identifier of the scenic spot corresponding to the electronic invoice to be verified from the blockchain network, and sends the identifier of the scenic spot corresponding to the electronic invoice to be verified to the query terminal, and the identifier of the scenic spot corresponding to the electronic invoice to be verified is used to verify the identifier of the scenic spot included in the electronic invoice to be verified; A generating module, configured to generate an electronic invoice according to the invoicing data when receiving the notification message of allowing invoicing, wherein the electronic invoice includes an identifier of the target scenic spot; The sending module is further used to send the electronic invoice to the user terminal, so that the user terminal collects the electronic invoice into the target application.
5. A bill management device, characterized in that: Applied to a blockchain network, the blockchain network includes a plurality of nodes, and the device includes: A receiving module, configured to receive the ticketing data sent by the ticketing server, wherein the ticketing data is generated by the ticketing server after receiving the ticketing request submitted by the ticketing system server, based on the identifier of the target scenic spot and the ticket purchase order information of the target scenic spot carried in the ticketing request, wherein the ticket purchase order information includes the number of tickets purchased, the unit price and the total price; A verification module is used to verify the ticket issuing qualification of the target scenic spot and the ticket purchase order information. If the target scenic spot has the ticket issuing qualification and the ticket purchase order information is true, then confirm that the verification has passed; A sending module, configured to send the data to be uploaded to the blockchain corresponding to the invoicing data to the nodes in the blockchain network after the verification is passed, so that the nodes in the blockchain network write the data to be uploaded to the blockchain corresponding to the invoicing data after the consensus verification of the data to be uploaded to the blockchain corresponding to the invoicing data is passed; wherein the data to be uploaded to the blockchain includes a summary of the ticket purchase order information of the target scenic spot and an identifier of the target scenic spot; The sending module is further configured to send a notification message of allowing the invoicing to the invoicing server after the invoicing data is verified, so that the invoicing server generates an electronic invoice according to the invoicing data, and sends the electronic invoice to the user terminal, so that the user terminal collects the electronic invoice into a target application, and the electronic invoice contains the identifier of the target scenic spot; The receiving module is further used to receive a scenic spot identification query request sent by the query terminal for the electronic invoice to be verified; An acquisition module, used to respond to the scenic spot identification query request and obtain the identification of the scenic spot corresponding to the electronic invoice to be verified from the node in the blockchain network; The sending module is also used to send the identification of the scenic spot corresponding to the electronic invoice to be verified to the query terminal, and the identification of the scenic spot corresponding to the electronic invoice to be verified is used to verify the identification of the scenic spot included in the electronic invoice to be verified.
6. A server, characterized in that: The server includes a processor, a network interface and a storage device, and the processor, the network interface and the storage device are interconnected, wherein the network interface is controlled by the processor for sending and receiving data, and the storage device is used to store a computer program, and the computer program includes program instructions. The processor is configured to call the program instructions to execute the bill management method based on the blockchain network described in any one of claims 1 to 2 or the bill management method based on the blockchain network described in claim 3.
7. A computer storage medium, characterized in that: The computer storage medium stores program instructions, which, when executed, are used to implement the blockchain network-based bill management method described in any one of claims 1 to 2 or the blockchain network-based bill management method described in claim 3.
8. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a computer processor, the bill management method based on the blockchain network described in any one of claims 1 to 2 or the bill management method based on the blockchain network described in claim 3 is implemented.
Citation Information
Patent Citations
Automatic invoicing method and system
CN107025581A
Electronic invoice generation method and system, computer equipment and storage medium
CN108364203A
Electronic invoice system based on blockchain and realization method
CN108830600A
Electronic invoice data processing method, device and system, medium and apparatus
CN108961030A
Data processing method, apparatus, storage medium and device for electronic bills
CN109087078A
