Data management method and device, electronic equipment and storage medium
By receiving invoice issuance requests, generating and sending issuance application requests, the automated application for invoice issuance is realized, and the invoice records are stored on the blockchain, solving the problem of invoice authenticity verification and ensuring the authenticity and efficient management of invoices.
Patent Information
- Application Number
- CN202411917286.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-24
- Publication Date
- 2025-04-04
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the prior art, the efficiency of invoice authenticity verification is low and is susceptible to the risk of tampering.
通过接收目标商家终端发送的发票开具请求,生成开具申请请求并发送至税控服务器,得到开具申请结果后,生成电子开具发票并存储其记录于区块链上。 Before the invoice is reimbursed, the reimbursement terminal can check in real time through records on the blockchain.
It realizes automated application for invoice issuance, improves the efficiency of invoice issuance, and ensures the authenticity of invoices through blockchain, reducing the workload of manual verification.
Smart Images

Figure CN119760791A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer application technology, and in particular to a data management method, device, electronic equipment and storage medium. Background Art
[0002] Currently, there is a phenomenon of tampering with invoice information through image processing software (Adobe Photoshop, PS) to make excessive reimbursements. Therefore, the authenticity of invoice information is usually verified before invoice reimbursement.
[0003] Common methods include checking the image attributes of the invoice to identify whether there are signs of tampering with the invoice, and logging into the merchant system to query the invoicing records to verify the authenticity of the invoice information, but the verification efficiency is low. Summary of the invention
[0004] The present invention provides a data management method, device, electronic device and storage medium to solve the technical problem of low efficiency in verifying the authenticity of invoices.
[0005] According to one aspect of the present invention, there is provided a data management method, the method comprising:
[0006] Receive the invoice issuance request sent by the target merchant terminal, determine the input invoice issuance information, and generate an issuance application request based on the invoice issuance information, and send the issuance application request to the tax control server through the tax control interface to obtain the issuance application result returned by the tax control server;
[0007] Generate an electronic invoice based on the issuance application result and the invoice issuance information, and generate an invoice issuance record corresponding to the electronic invoice, wherein the electronic invoice includes an electronic invoice identifier;
[0008] The invoice issuance record is stored on the target blockchain, and the electronic invoice is sent to the target merchant terminal;
[0009] Receive the invoice verification request sent by the target reimbursement terminal, determine the input invoice identifier to be verified, and retrieve the invoice issuance record of the target corresponding to the invoice identifier to be verified from the target blockchain, and send the invoice issuance record of the target to the target reimbursement terminal.
[0010] According to another aspect of the present invention, there is provided a data management device, the device comprising:
[0011] An invoice issuance module is used to receive an invoice issuance request sent by a target merchant terminal, determine the input invoice issuance information, and generate an issuance application request based on the invoice issuance information, and send the issuance application request to the tax control server through the tax control interface to obtain the issuance application result returned by the tax control server;
[0012] A record generation module, used to generate an electronic invoice based on the invoice application result and the invoice issuance information, and generate an invoice issuance record corresponding to the electronic invoice, wherein the electronic invoice includes an electronic invoice identifier;
[0013] A blockchain storage module, used to store the invoice issuance record on the target blockchain and send the electronic invoice to the target merchant terminal;
[0014] The invoice verification module is used to receive the invoice verification request sent by the target reimbursement terminal, determine the input invoice identifier to be verified, and retrieve the invoice issuance record of the target corresponding to the invoice identifier to be verified from the target blockchain, and send the invoice issuance record of the target to the target reimbursement terminal.
[0015] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0016] at least one processor; and
[0017] a memory communicatively connected to the at least one processor; wherein,
[0018] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the data management method described in any embodiment of the present invention.
[0019] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the data management method described in any embodiment of the present invention when executed.
[0020] The technical solution of the embodiment of the present invention receives an invoice issuance request sent by a target merchant terminal, determines the input invoice issuance information, generates an issuance application request based on the invoice issuance information, and sends the issuance application request to the tax control server through a tax control interface to obtain the issuance application result returned by the tax control server, thereby achieving the effect of automatically sending the issuance application request to the tax control server, realizing the automated application of invoice issuance, and improving the efficiency of invoice issuance; generates an electronic issuance invoice based on the issuance application result and the invoice issuance information, and generates an invoice issuance record corresponding to the electronic issuance invoice, wherein the electronic issuance invoice includes an electronic invoice identifier; stores the invoice issuance record on a target blockchain, and sends the electronic issuance invoice to the target merchant terminal; receives an invoice verification request sent by a target reimbursement terminal, determines the input invoice identifier to be verified, and retrieves the target invoice issuance record corresponding to the invoice identifier to be verified from the target blockchain, and sends the target invoice issuance record to the target reimbursement terminal. The present invention stores the invoice issuance records on a blockchain with a data immutable function, so that the reimbursement terminal can perform real-time verification of the invoice issuance information of the invoice to be reimbursed based on the records stored on the blockchain before the invoice is reimbursed, thereby solving the problem that the invoice to be reimbursed may be tampered with and ensuring the authenticity of the invoice to be reimbursed. Data management based on the present invention can reduce the workload of manual invoice data verification and improve the efficiency of invoice data management.
[0021] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. 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 creative work.
[0023] Figure 1 is a flow chart of a data management method provided according to Embodiment 1 of the present invention;
[0024] Figure 2 is a flow chart of a data management method provided according to Embodiment 2 of the present invention;
[0025] Figure 3 is an overall flow chart of a data management method provided according to an embodiment of the present invention;
[0026] Figure 4is a structural diagram of a data management device provided according to Embodiment 3 of the present invention;
[0027] Figure 5 It is a structural schematic diagram of an electronic device for implementing the data management method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0028] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings 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 should fall within the scope of protection of the present invention.
[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0030] Embodiment 1
[0031] Figure 1 A flowchart of a data management method is provided for the first embodiment of the present invention. This embodiment is applicable to the situation where invoice information is managed in a non-tamperable manner. The method can be executed by a data management device, which can be implemented in the form of hardware and / or software, and can be configured in a computer. Figure 1 As shown, the method includes:
[0032] S110, receiving the invoice issuance request sent by the target merchant terminal, determining the input invoice issuance information, and generating an issuance application request based on the invoice issuance information, and sending the issuance application request to the tax control server through the tax control interface to obtain the issuance application result returned by the tax control server.
[0033] Among them, the target merchant terminal can be understood as the merchant terminal that initiates the invoice issuance request. Optionally, the target merchant terminal can be a merchant terminal connected to the data management system. There can be multiple merchant terminals connected to the data management system. In an embodiment of the present invention, the merchant terminal can be preset according to the scenario requirements, and is not specifically limited here. Exemplarily, the merchant terminal may include a supermarket terminal, a restaurant terminal, a clothing store terminal, etc.
[0034] The invoice issuance information can be understood as the information related to invoice issuance input by the target merchant terminal. In the embodiment of the present invention, the invoice issuance information can be preset according to the scenario requirements and is not specifically limited here. Optionally, the invoice issuance information may include product information, sales information and merchant information. Exemplarily, the commodity information may include commodity name and commodity category, etc. The sales information may include sales quantity and sales unit price, etc. The merchant information may include merchant name and merchant category, etc.
[0035] The invoice issuance request may be a request sent by the target merchant terminal to the target server of the data management system. The execution subject of the embodiment of the present invention may be the target server of the data management system.
[0036] The application issuance request may be a request sent by a target server of a data management system to a tax control server of a tax control system.
[0037] The application result may be a result returned by the tax control server of the tax control system to the target server of the data management system. Optionally, the application result may include successful issuance and / or failed issuance.
[0038] The tax control interface can be understood as an interface between the data management system and the tax control system.
[0039] The tax control server can be understood as a server of the tax control system.
[0040] S120: Generate an electronic invoice based on the invoice application result and the invoice issuance information, and generate an invoice issuance record corresponding to the electronic invoice.
[0041] The electronically issued invoice can be understood as an issued electronic invoice. In the embodiment of the present invention, each electronically issued invoice corresponds to an electronic invoice identifier. The electronic invoice identifier can be understood as a unique identifier of the electronically issued invoice.
[0042] The invoice issuance record can be understood as the invoice issuance record corresponding to the electronic invoice. Optionally, the invoice issuance record also includes the invoice issuance information, the invoice issuance time and the tax control information of the tax control server. The tax control information can be an Internet Protocol Address (IP) address.
[0043] S130: Store the invoice issuance record on the target blockchain, and send the electronic invoice to the target merchant terminal.
[0044] The target blockchain can be understood as a blockchain of a data management system. The blockchain can be understood as a distributed database technology. In an embodiment of the present invention, the records stored on the target blockchain cannot be modified.
[0045] S140, receiving the invoice verification request sent by the target reimbursement terminal, determining the input invoice identifier to be verified, and retrieving the invoice issuance record of the target corresponding to the invoice identifier to be verified from the target blockchain, and sending the invoice issuance record of the target to the target reimbursement terminal.
[0046] The target reimbursement terminal may be understood as a terminal for invoice reimbursement. Optionally, the target reimbursement terminal may be a reimbursement terminal connected to a data management system. The reimbursement terminal connected to the data management system may be one or more. Exemplarily, the reimbursement terminal may be a terminal of the finance department of an enterprise.
[0047] The invoice verification request may be a verification request sent by a target reimbursement terminal to a target server of a data management system.
[0048] The invoice identifier to be verified may be an electronic invoice identifier input by the target reimbursement terminal and requiring invoice issuance information verification.
[0049] Optionally, the invoice verification request is sent based on the invoice to be reimbursed provided by the object to be reimbursed; the invoice to be reimbursed is associated with the merchant-provided invoice provided by the target merchant terminal to the object to be reimbursed based on the electronic invoice; the invoice to be reimbursed includes the merchant-provided invoice or the modified merchant-provided invoice; wherein, the merchant-provided invoice includes an electronic invoice and / or a paper invoice.
[0050] The invoice to be reimbursed can be understood as the invoice to be reimbursed.
[0051] The invoice issuance information in the invoice to be reimbursed may be the same as or different from the invoice issuance information in the invoice provided by the merchant.
[0052] The invoice provided by the merchant may be an electronic invoice and / or a paper invoice provided by the target merchant terminal to the object to be reimbursed based on the electronically issued invoice.
[0053] Optionally, after sending the target invoice issuance record to the target reimbursement terminal, the method further includes:
[0054] The target reimbursement terminal determines an invoice verification result based on the invoice issuance record and the invoice to be reimbursed, wherein the invoice verification result indicates whether the invoice issuance information in the invoice to be reimbursed is consistent. Optionally, the invoice verification result includes verification consistency and / or verification inconsistency.
[0055] The technical solution of the embodiment of the present invention receives an invoice issuance request sent by a target merchant terminal, determines the input invoice issuance information, generates an issuance application request based on the invoice issuance information, and sends the issuance application request to the tax control server through a tax control interface to obtain the issuance application result returned by the tax control server, thereby achieving the effect of automatically sending the issuance application request to the tax control server, realizing the automated application of invoice issuance, and improving the efficiency of invoice issuance; generates an electronic issuance invoice based on the issuance application result and the invoice issuance information, and generates an invoice issuance record corresponding to the electronic issuance invoice, wherein the electronic issuance invoice includes an electronic invoice identifier; stores the invoice issuance record on a target blockchain, and sends the electronic issuance invoice to the target merchant terminal; receives an invoice verification request sent by a target reimbursement terminal, determines the input invoice identifier to be verified, and retrieves the target invoice issuance record corresponding to the invoice identifier to be verified from the target blockchain, and sends the target invoice issuance record to the target reimbursement terminal. The present invention stores invoice issuance records on a blockchain with a data non-modifiable function so that the reimbursement terminal can perform real-time verification of the invoice issuance information of the invoice to be reimbursed based on the records stored on the blockchain before the invoice is reimbursed, thereby solving the problem that the invoice to be reimbursed may be tampered with and ensuring the authenticity of the invoice to be reimbursed. Data management based on the present invention can reduce the workload of manual data verification and improve data management efficiency.
[0056] Embodiment 2
[0057] Figure 2 This is a flow chart of a data management method provided in the second embodiment of the present invention. This embodiment is to send the invoice issuance record of the target to the target reimbursement terminal for supplementation as described in the above embodiment. Figure 2 As shown, the method includes:
[0058] Figure 3 is an overall flow chart of a data management method provided according to an embodiment of the present invention. Figure 2 and Figure 3 , the overall process of the data management method (invoice issuance, invoice verification and invoice reimbursement) is explained as follows.
[0059] S210, receiving the invoice issuance request sent by the target merchant terminal, determining the input invoice issuance information, and generating an issuance application request based on the invoice issuance information, and sending the issuance application request to the tax control server through the tax control interface to obtain the issuance application result returned by the tax control server.
[0060] S220: Generate an electronic invoice based on the invoice application result and the invoice issuance information, and generate an invoice issuance record corresponding to the electronic invoice.
[0061] S230: Store the invoice issuance record on the target blockchain, and send the electronic invoice to the target merchant terminal.
[0062] S240, receiving the invoice verification request sent by the target reimbursement terminal, determining the input invoice identifier to be verified, and retrieving the invoice issuance record of the target corresponding to the invoice identifier to be verified from the target blockchain, and sending the invoice issuance record of the target to the target reimbursement terminal.
[0063] S250, receiving the invoice reimbursement request from the target reimbursement terminal, and sending the reimbursement application request to the tax control server through the tax control interface to obtain the reimbursement application result returned by the tax control server.
[0064] The invoice reimbursement request may be understood as a reimbursement request sent by the target reimbursement terminal to the target server of the data management system. Optionally, the invoice reimbursement request is sent based on an invoice verification result, which is determined by the operation object of the target reimbursement terminal based on the invoice issuance record of the target and the invoice to be reimbursed.
[0065] The operation object may be understood as an object that operates the target reimbursement terminal.
[0066] In the embodiment of the present invention, the invoice reimbursement request may be initiated when the invoice verification result is the verification consistency.
[0067] The reimbursement application result may be a result returned by the tax control server of the tax control system to the target server of the data management system. Optionally, the reimbursement application result includes reimbursement success and / or reimbursement failure.
[0068] S260: Generate an invoice reimbursement record based on the reimbursement application result, and update the invoice issuance record of the target on the target blockchain based on the invoice reimbursement record to obtain an update record.
[0069] The invoice reimbursement record may be understood as a reimbursement record corresponding to the electronically issued invoice. Optionally, the invoice reimbursement record may at least include the invoice reimbursement time.
[0070] The update record may include the issuance-related data corresponding to the invoice reimbursement record and the reimbursement-related data corresponding to the invoice issuance record. Optionally, the update record may include the invoice issuance information, the invoice issuance time, the tax control information of the tax control server, and the invoice reimbursement time.
[0071] S270: Send the reimbursement application result to the target reimbursement terminal.
[0072] Optionally, the data management method further includes:
[0073] Receiving an invoice node query request from a target query terminal, determining an input invoice identifier to be queried, and determining a node-related record on the target blockchain corresponding to the invoice identifier to be queried, wherein the target query terminal includes a merchant terminal and / or a reimbursement terminal, and the node-related record includes the invoice issuance record or the update record;
[0074] A target invoice node is determined according to the node-related records, and the target invoice node is sent to the target query terminal, wherein the target invoice node includes an issued node or a reimbursed node.
[0075] The target query terminal may be understood as a terminal having data query authority.
[0076] The invoice node query request may be understood as a request for querying an invoice processing node.
[0077] The node-related records may be understood as storage records related to the invoice processing node.
[0078] Specifically, when the node-related records only include the invoice issuance records, the invoice node information is determined as the issued node; when the node-related records include the update records, the invoice node information is determined as the reimbursed node.
[0079] Based on the above technical solution, the effect of querying the actual processing node of the invoice is achieved.
[0080] Optionally, after obtaining the update record, the method further includes:
[0081] Receive a record query request from a target query terminal, determine the input invoice identifier to be queried, and determine the target update record corresponding to the invoice with the invoice identifier to be queried on the target blockchain;
[0082] The update record of the target is sent to the target query terminal.
[0083] Based on the above technical solution, the effect of querying the actual processing records of invoices is achieved.
[0084] The technical solution of the embodiment of the present invention receives the invoice reimbursement request of the target reimbursement terminal, sends the reimbursement application request to the tax control server through the tax control interface, so as to obtain the reimbursement application result returned by the tax control server; generates an invoice reimbursement record based on the reimbursement application result, updates the invoice issuance record of the target on the target blockchain based on the invoice reimbursement record, and obtains an update record; sends the reimbursement application result to the target reimbursement terminal. By storing the invoice reimbursement record on a blockchain with a data immutable function, the reimbursement terminal can perform real-time verification of the record update status of the invoice to be reimbursed based on the records stored on the blockchain before the invoice is reimbursed, thereby solving the problem of repeated invoice reimbursement and ensuring the single reimbursement of the invoice.
[0085] Embodiment 3
[0086] Figure 4 FIG. 1 is a schematic diagram of a data management device provided in Embodiment 3 of the present invention. Figure 4 As shown, the device includes: an invoice issuance module 310, a record generation module 320, a blockchain storage module 330 and an invoice verification module 340.
[0087] Among them, the invoice issuance module 310 is used to receive the invoice issuance request sent by the target merchant terminal, determine the input invoice issuance information, and generate an issuance application request based on the invoice issuance information, and send the issuance application request to the tax control server through the tax control interface to obtain the issuance application result returned by the tax control server; the record generation module 320 is used to generate an electronic issuance invoice based on the issuance application result and the invoice issuance information, and generate an invoice issuance record corresponding to the electronic issuance invoice, wherein the electronic issuance invoice includes an electronic invoice identifier; the blockchain storage module 330 is used to store the invoice issuance record on the target blockchain and send the electronic issuance invoice to the target merchant terminal; the invoice verification module 340 is used to receive the invoice verification request sent by the target reimbursement terminal, determine the input invoice identifier to be verified, and retrieve the target invoice issuance record corresponding to the invoice identifier to be verified from the target blockchain, and send the target invoice issuance record to the target reimbursement terminal.
[0088] The technical solution of the embodiment of the present invention receives an invoice issuance request sent by a target merchant terminal, determines the input invoice issuance information, generates an issuance application request based on the invoice issuance information, and sends the issuance application request to the tax control server through a tax control interface to obtain the issuance application result returned by the tax control server, thereby achieving the effect of automatically sending the issuance application request to the tax control server, realizing the automated application of invoice issuance, and improving the efficiency of invoice issuance; generates an electronic issuance invoice based on the issuance application result and the invoice issuance information, and generates an invoice issuance record corresponding to the electronic issuance invoice, wherein the electronic issuance invoice includes an electronic invoice identifier; stores the invoice issuance record on a target blockchain, and sends the electronic issuance invoice to the target merchant terminal; receives an invoice verification request sent by a target reimbursement terminal, determines the input invoice identifier to be verified, and retrieves the target invoice issuance record corresponding to the invoice identifier to be verified from the target blockchain, and sends the target invoice issuance record to the target reimbursement terminal. The present invention stores invoice issuance records on a blockchain with a data non-modifiable function so that the reimbursement terminal can perform real-time verification of the invoice issuance information of the invoice to be reimbursed based on the records stored on the blockchain before the invoice is reimbursed, thereby solving the problem that the invoice to be reimbursed may be tampered with and ensuring the authenticity of the invoice to be reimbursed. Data management based on the present invention can reduce the workload of manual data verification and improve data management efficiency.
[0089] Optionally, the invoice verification request is sent based on the invoice to be reimbursed provided by the object to be reimbursed; the invoice to be reimbursed is associated with the merchant-provided invoice provided by the target merchant terminal to the object to be reimbursed based on the electronic invoice; the invoice to be reimbursed includes the merchant-provided invoice or the modified merchant-provided invoice; wherein, the merchant-provided invoice includes an electronic invoice and / or a paper invoice.
[0090] Optionally, the data management device further includes: an invoice reimbursement module, a record update module and a result sending module;
[0091] The invoice reimbursement module is used to receive the invoice reimbursement request from the target reimbursement terminal after sending the target invoice issuance record to the target reimbursement terminal, and send the reimbursement application request to the tax control server through the tax control interface to obtain the reimbursement application result returned by the tax control server;
[0092] The record update module is used to generate an invoice reimbursement record based on the reimbursement application result, and update the invoice issuance record of the target on the target blockchain based on the invoice reimbursement record to obtain an updated record;
[0093] The result sending module is used to send the reimbursement application result to the target reimbursement terminal.
[0094] Optionally, the invoice reimbursement request is sent based on an invoice verification result, and the invoice verification result is determined by an operation object of the target reimbursement terminal based on the invoice issuance record of the target and the invoice to be reimbursed.
[0095] Optionally, the data management device further includes: a status query module and a status determination module;
[0096] The status query module is used to receive an invoice node query request from a target query terminal, determine the input invoice identifier to be queried, and determine the node-related record corresponding to the invoice identifier to be queried on the target blockchain, wherein the target query terminal includes a merchant terminal and / or a reimbursement terminal, and the node-related record includes the invoice issuance record or the update record;
[0097] The state determination module is used to determine the target invoice node according to the node-related records, and send the target invoice node to the target query terminal, wherein the target invoice node includes an issued node or a reimbursed node.
[0098] Optionally, the data management device further includes: a record query module and a record sending module;
[0099] The record query module is used to receive a record query request from a target query terminal after obtaining the update record, determine the input invoice identifier to be queried, and determine the update record of the target corresponding to the invoice with the invoice identifier to be queried on the target blockchain;
[0100] The record sending module is used to send the update record of the target to the target query terminal.
[0101] Optionally, the invoice issuance information includes product information, sales information and merchant information; the invoice issuance record also includes the invoice issuance information, invoice issuance time and tax control information of the tax control server.
[0102] The data management device provided in the embodiment of the present invention can execute the data management method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0103] Embodiment 4
[0104] Figure 5A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0105] like Figure 5 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0106] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0107] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a data management method.
[0108] In some embodiments, the data management method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the data management method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the data management method in any other appropriate manner (e.g., by means of firmware).
[0109] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0110] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0111] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0112] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0113] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0114] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0115] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0116] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A data management method, characterized in that: include: Receive the invoice issuance request sent by the target merchant terminal, determine the input invoice issuance information, and generate an issuance application request based on the invoice issuance information, and send the issuance application request to the tax control server through the tax control interface to obtain the issuance application result returned by the tax control server; Generate an electronic invoice based on the issuance application result and the invoice issuance information, and generate an invoice issuance record corresponding to the electronic invoice, wherein the electronic invoice includes an electronic invoice identifier; The invoice issuance record is stored on the target blockchain, and the electronic invoice is sent to the target merchant terminal; Receive the invoice verification request sent by the target reimbursement terminal, determine the input invoice identifier to be verified, and retrieve the invoice issuance record of the target corresponding to the invoice identifier to be verified from the target blockchain, and send the invoice issuance record of the target to the target reimbursement terminal.
2. The method according to claim 1, characterized in that The invoice verification request is sent based on the invoice to be reimbursed provided by the object to be reimbursed; the invoice to be reimbursed is associated with the merchant-provided invoice provided by the target merchant terminal to the object to be reimbursed based on the electronic invoice; the invoice to be reimbursed includes the merchant-provided invoice or the modified merchant-provided invoice; wherein, the merchant-provided invoice includes an electronic invoice and / or a paper invoice.
3. The method according to claim 1, characterized in that After sending the target invoice issuance record to the target reimbursement terminal, the method further includes: Receiving the invoice reimbursement request from the target reimbursement terminal, and sending the reimbursement application request to the tax control server through the tax control interface to obtain the reimbursement application result returned by the tax control server; Generate an invoice reimbursement record based on the reimbursement application result, and update the invoice issuance record of the target on the target blockchain based on the invoice reimbursement record to obtain an update record; The reimbursement application result is sent to the target reimbursement terminal.
4. The method according to claims 2 and 3, characterized in that The invoice reimbursement request is sent based on an invoice verification result, and the invoice verification result is determined by an operation object of the target reimbursement terminal based on the invoice issuance record of the target and the invoice to be reimbursed.
5. The method according to claim 3, characterized in that: Also includes: Receiving an invoice node query request from a target query terminal, determining an input invoice identifier to be queried, and determining a node-related record on the target blockchain corresponding to the invoice identifier to be queried, wherein the target query terminal includes a merchant terminal and / or a reimbursement terminal, and the node-related record includes the invoice issuance record or the update record; A target invoice node is determined according to the node-related records, and the target invoice node is sent to the target query terminal, wherein the target invoice node includes an issued node or a reimbursed node.
6. The method according to claim 3, characterized in that After obtaining the update record, the method further includes: Receive a record query request from a target query terminal, determine the input invoice identifier to be queried, and determine the target update record corresponding to the invoice with the invoice identifier to be queried on the target blockchain; The update record of the target is sent to the target query terminal.
7. The method according to claim 1, characterized in that The invoice issuance information includes product information, sales information and merchant information; the invoice issuance record also includes the invoice issuance information, invoice issuance time and tax control information of the tax control server.
8. A data management device, characterized in that: include: An invoice issuance module is used to receive an invoice issuance request sent by a target merchant terminal, determine the input invoice issuance information, and generate an issuance application request based on the invoice issuance information, and send the issuance application request to the tax control server through the tax control interface to obtain the issuance application result returned by the tax control server; A record generation module, used to generate an electronic invoice based on the invoice application result and the invoice issuance information, and generate an invoice issuance record corresponding to the electronic invoice, wherein the electronic invoice includes an electronic invoice identifier; A blockchain storage module, used to store the invoice issuance record on the target blockchain and send the electronic invoice to the target merchant terminal; The invoice verification module is used to receive the invoice verification request sent by the target reimbursement terminal, determine the input invoice identifier to be verified, and retrieve the invoice issuance record of the target corresponding to the invoice identifier to be verified from the target blockchain, and send the invoice issuance record of the target to the target reimbursement terminal.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the data management method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the data management method according to any one of claims 1 to 7 when executed.
Citation Information
Patent Citations
Information processing method and apparatus in invoice reimbursement, gateway server and medium in invoice reimbursement
CN109360077A
Invoice auditing method and device based on block chain
CN110264325A
High-availability electronic invoice issuing method and system
CN111738783A
Block chain-based invoice issuing method, invoice reimbursement method, device and equipment
CN115018569A