CN116450695A - Electronic bill query processing method and device - Google Patents

Electronic bill query processing method and device Download PDF

Info

Publication number
CN116450695A
CN116450695A CN202310452379.9A CN202310452379A CN116450695A CN 116450695 A CN116450695 A CN 116450695A CN 202310452379 A CN202310452379 A CN 202310452379A CN 116450695 A CN116450695 A CN 116450695A
Authority
CN
China
Prior art keywords
bill
transaction
node
electronic
mapped
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310452379.9A
Other languages
Chinese (zh)
Inventor
孟超峰
孙浩
论旻雯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alipay Hangzhou Information Technology Co Ltd
Original Assignee
Alipay Hangzhou Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alipay Hangzhou Information Technology Co Ltd filed Critical Alipay Hangzhou Information Technology Co Ltd
Priority to CN202310452379.9A priority Critical patent/CN116450695A/en
Publication of CN116450695A publication Critical patent/CN116450695A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2457Query processing with adaptation to user needs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/12Accounting
    • G06Q40/125Finance or payroll
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/18Legal services

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Technology Law (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Development Economics (AREA)
  • Tourism & Hospitality (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Computational Linguistics (AREA)
  • Databases & Information Systems (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Primary Health Care (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the specification provides an electronic bill query processing method and device, wherein the electronic bill query processing method comprises the following steps: according to the electronic bill, reading the bill key information of the inquired electronic bill, inquiring a bill chain containing bill nodes corresponding to the inquired electronic bill, inquiring at least one target bill node related to the bill nodes in the bill chain, and acquiring the electronic bill corresponding to the at least one target bill node and the transaction certificate mapped by the target bill node as inquiry input query output.

Description

Electronic bill query processing method and device
Technical Field
The present document relates to the field of data processing technologies, and in particular, to a method and an apparatus for electronic bill query processing.
Background
Along with the development of internet technology and the continuous liveness of economic activities, more and more enterprises choose to open electronic bills in economic activities, the electronic bills are convenient to carry, easy to submit and difficult to lose, and financial work of the enterprises is greatly facilitated, but along with the continuous popularization of the electronic bills, the number of the electronic bills is also increased, the processing of the electronic bills is more difficult, and the processing mode of the electronic bills is more demanding.
Disclosure of Invention
One or more embodiments of the present disclosure provide an electronic bill query processing method, including: and carrying out bill inquiry according to the bill codes input by inquiry, and reading the bill key information of the inquired electronic bill. And inquiring a bill chain containing bill nodes corresponding to the electronic bill based on the bill key information. At least one target bill node associated with the bill node is queried in the bill chain. And the association of the bill node and the target bill node is established based on the bill association relationship between the transaction certificate mapped by the bill node and the associated transaction certificate mapped by the associated bill node. And acquiring the electronic bill corresponding to the at least one target bill node and the mapped transaction certificate as query output of the query input.
One or more embodiments of the present specification provide an electronic bill query processing apparatus, including: and the bill key information reading module is configured to perform bill inquiry according to the bill codes input by inquiry and read the bill key information of the inquired electronic bill. And the bill chain query module is configured to query a bill chain containing the bill nodes corresponding to the electronic bill based on the bill key information. A target ticket node querying module configured to query the ticket chain for at least one target ticket node associated with the ticket node. And the association of the bill node and the target bill node is established based on the bill association relationship between the transaction certificate mapped by the bill node and the associated transaction certificate mapped by the associated bill node. And the query result output module is configured to acquire the electronic bill corresponding to the at least one target bill node and the mapped transaction certificate as query output of the query input.
One or more embodiments of the present specification provide an electronic bill query processing apparatus including: a processor; and a memory configured to store computer-executable instructions that, when executed, cause the processor to: and carrying out bill inquiry according to the bill codes input by inquiry, and reading the bill key information of the inquired electronic bill. And inquiring a bill chain containing bill nodes corresponding to the electronic bill based on the bill key information. At least one target bill node associated with the bill node is queried in the bill chain. And the association of the bill node and the target bill node is established based on the bill association relationship between the transaction certificate mapped by the bill node and the associated transaction certificate mapped by the associated bill node. And acquiring the electronic bill corresponding to the at least one target bill node and the mapped transaction certificate as query output of the query input.
One or more embodiments of the present specification provide a storage medium storing computer-executable instructions that, when executed by a processor, implement the following: and carrying out bill inquiry according to the bill codes input by inquiry, and reading the bill key information of the inquired electronic bill. And inquiring a bill chain containing bill nodes corresponding to the electronic bill based on the bill key information. At least one target bill node associated with the bill node is queried in the bill chain. And the association of the bill node and the target bill node is established based on the bill association relationship between the transaction certificate mapped by the bill node and the associated transaction certificate mapped by the associated bill node. And acquiring the electronic bill corresponding to the at least one target bill node and the mapped transaction certificate as query output of the query input.
Drawings
For a clearer description of one or more embodiments of the present description or of the solutions of the prior art, the following brief description of the drawings is provided for the purpose of making it apparent, to those skilled in the art, that the drawings in the following description are only some of the embodiments described in the present description, from which other drawings can be obtained without the need for inventive labour;
FIG. 1 is a schematic diagram of an implementation environment of an electronic bill query processing method according to one or more embodiments of the present disclosure;
FIG. 2 is a flowchart of a method for processing an electronic ticket query according to one or more embodiments of the present disclosure;
FIG. 3 is a schematic diagram of a bill chain provided in one or more embodiments of the present disclosure;
FIG. 4 is a process flow diagram of a processing method for tax query scenarios provided in one or more embodiments of the present disclosure;
FIG. 5 is a process flow diagram of a process method for applying to an audit query scenario provided in one or more embodiments of the present disclosure;
FIG. 6 is a schematic diagram of an embodiment of an electronic bill query processing apparatus according to one or more embodiments of the present disclosure;
Fig. 7 is a schematic structural diagram of an electronic ticket query processing apparatus according to one or more embodiments of the present disclosure.
Detailed Description
In order to enable a person skilled in the art to better understand the technical solutions in one or more embodiments of the present specification, the technical solutions in one or more embodiments of the present specification will be clearly and completely described below with reference to the drawings in one or more embodiments of the present specification, and it is obvious that the described embodiments are only some embodiments of the present specification, not all embodiments. All other embodiments, which can be made by one or more embodiments of the present disclosure without inventive effort, are intended to be within the scope of the present disclosure.
The electronic bill query processing method provided in one or more embodiments of the present invention is applicable to an implementation environment of electronic bill query, and referring to fig. 1, the implementation environment includes at least a server 101. The server 101 may be one server cluster or a server cluster formed by a plurality of servers, or a cloud server of a cloud computing platform, and the server 101 is configured to query an electronic ticket based on an input ticket code, and query and output an electronic ticket associated with the electronic ticket and a corresponding transaction certificate based on the electronic ticket.
The implementation environment may further include an electronic bill database 102, where the electronic bill database 102 stores a data packet of an electronic bill and a bill chain including bill nodes, the server 101 may read bill key information of the electronic bill from the electronic bill database 102, and the server 101 may also send a query instruction of the bill chain including the bill node corresponding to the electronic bill database 102 according to the bill key information. An electronic ticket database 102 may also be deployed in the server 101.
In addition, the electronic ticket stored in the electronic ticket database may be stored in an issuer or a acquirer of the electronic ticket, and the server 101 may read a data packet of the electronic ticket from the issuer or the acquirer of the electronic ticket for performing the electronic ticket query processing.
In the implementation environment, in the process of inquiring the electronic bill, the server 101 inquires the electronic bill according to the inputted bill code and reads the bill key information of the inquired electronic bill, inquires a bill chain containing bill nodes corresponding to the electronic bill based on the bill key information, inquires at least one target bill node associated with the bill nodes in the inquired bill chain, acquires the electronic bill corresponding to the at least one target bill node and the mapped transaction certificate, and takes the electronic bill and the mapped transaction certificate as the inquired input inquiry output, so that an electronic bill inquirer can inquire the electronic bill and the transaction certificate which have association relations with the electronic bill corresponding to the bill code according to the inputted bill code, and the inquiring efficiency of the electronic bill is improved.
One or more embodiments of an electronic bill query processing method provided in the present specification are as follows:
referring to fig. 2, the method for processing electronic bill inquiry provided in this embodiment specifically includes steps S202 to S208.
Step S202, bill inquiry is carried out according to the bill codes input by inquiry, and the bill key information of the inquired electronic bill is read.
The bill code in this embodiment refers to unique identification information carried by an electronic bill and used for inquiring electronic bill information, queries and obtains a data packet of the electronic bill corresponding to the bill code based on the bill code input by an electronic bill inquiring party, and can inquire a field corresponding to the bill information of the electronic bill through the data packet, wherein the bill code can be a two-dimensional code of the electronic bill, or an invoice code, or an invoice number, or an code corresponding to an invoice picture. The bill key information refers to a field corresponding to at least one bill information in the queried bill information of the electronic bill, such as a field corresponding to the name of the drawer and/or a field corresponding to the name of the acquirer.
Optionally, the bill code is input by the audit organization or tax organization calling the inquiry interface, i.e. the electronic bill inquiry party can be the audit organization or tax organization.
When the method is implemented, the bill inquiry is carried out according to the bill code input by the inquiry, and after the electronic bill corresponding to the bill code is inquired, the bill key information of the inquired electronic bill is read. Specifically, under the condition that the electronic bill inquiring party inputs the bill code, according to the inputted bill code, inquiry processing is carried out based on an inquiry algorithm, a data packet of the electronic bill corresponding to the bill code is output, and the bill key information in a bill information corresponding field of the electronic bill in the data packet is read.
In addition, in the process of reading the queried electronic bill key information, different electronic bill query parties can take different corresponding fields of the bill information as the bill key information, and aiming at the bill key information, the determination of the bill key information can be carried out, so that the bill key information can be read more accurately.
In the specific execution process, in the process of reading the queried bill key information of the electronic bill, the electronic bill querying party can select the bill key information according to the read bill information, the bill key information is determined in a control interaction mode, for example, the electronic bill querying party can trigger to select the name of the issuing party as the bill key information through the control, then the field corresponding to the name of the issuing party of the queried electronic bill is read, and the field corresponding to the name of the issuing party is used as the bill key information;
Or, at least one bill information can be preset as bill key information, for example, a ticket receiver name is preset as the bill key information, namely, a field corresponding to the ticket receiver name of the inquired electronic bill is read, and the field corresponding to the ticket receiver name is used as the bill key information;
or, the judgment of the ticket key information can be performed according to the mechanism type of the electronic ticket inquiring party, corresponding fields of the ticket information are set as the ticket key information based on different mechanism types, for example, the ticket key information corresponding to the auditing mechanism is preset as the name of the issuing party, under the condition that the auditing mechanism inquires the ticket, the fields corresponding to the name of the issuing party of the inquired electronic ticket are read, and the fields corresponding to the name of the issuing party are used as the ticket key information.
Step S204, inquiring a bill chain containing bill nodes corresponding to the electronic bill based on the bill key information.
The bill chain in this embodiment is a chain composed of one or more bill nodes and transaction certificates of the one or more bill nodes, where the bill nodes record corresponding fields of at least one bill information of an electronic bill, that is: the bill nodes are in one-to-one correspondence with the electronic bills, the at least one bill information can be an issuer name and/or a acquirer name, and the transaction voucher can be a transaction order and/or an electronic transaction contract. Optionally, at least one same transaction party exists in the transaction parties recorded in at least one bill body field of the electronic bill corresponding to the bill node of the bill chain; for example, in the billing party name corresponding field of the electronic bill corresponding to the bill node in the bill chain of the enterprise a, at least the name of the enterprise a exists, namely: and if the name of the enterprise A exists in the name corresponding field of the billing party of the electronic bill corresponding to the bill node in the bill chain, the data chain is the data chain of the enterprise A.
In addition, the bill chain can also comprise one or more bill jump nodes, so that the bill chain can be jumped to a transaction participant to which the bill jump nodes belong through the bill jump nodes.
The mapping relationship between the bill node and the transaction certificate in the bill chain may be established based on the corresponding relationship between the electronic bill corresponding to the bill node and the transaction certificate, for example, the mobile phone sales invoice a corresponding to the bill node 301 shown in fig. 3 is placed according to the mobile phone sales order 302, and then the mapping relationship between the bill node 301 and the mobile phone sales order 302 is established.
In addition, the transaction credentials mapped by the bill nodes in the bill chain can have a credential association relationship, and the credential association relationship can be established based on circulation correspondence relationship among recorded transaction objects of the transaction credentials; or establishing a preparation relation between transaction objects based on the transaction credential records; or, it is established based on contract dependencies between transaction vouchers.
In addition, the relation of the certificate association can also be the relation between transaction objects of the transaction certificate record; optionally, the ticket association relation of the transaction ticket mapped by any two ticket nodes in the ticket chain comprises at least one of the following: the trade circulation relation of the trade object of the trade certificate record, the purpose preparation relation of the trade object of the trade certificate record. Further, preparing a relationship between the buying and selling circulation relationship of the trade object and the use of the trade object; optionally, the buy-sell circulation relationship includes a buy-in circulation relationship and a sell-out circulation relationship, and the use preparation relationship includes a preparation input relationship and a preparation output relationship.
Aiming at the establishment of the voucher association relationship of the transaction vouchers mapped by the bill nodes in the bill chain, in practical application, preparation matching processing can be carried out on transaction objects recorded by the transaction vouchers mapped by any two bill nodes in the bill chain, so that the establishment of the voucher association relationship of the transaction vouchers mapped by any two bill nodes is carried out according to the preparation relationship between the transaction objects, and in an optional implementation provided by the embodiment, the following operations are carried out on any two bill nodes in the bill chain:
extracting preparation information of a first transaction object of a transaction certificate record mapped by a first bill node and preparation information of a second transaction object of a transaction certificate record mapped by a second bill node;
if the preparation matching relation between the preparation information of the first transaction object and the preparation information corresponding to the second transaction is detected, establishing a voucher association relation of transaction vouchers mapped by any two bill nodes;
in another case, if the preparation matching relationship between the preparation information of the first transaction object and the preparation information corresponding to the second transaction is not detected, no processing is performed.
Specifically, for any two bill nodes in the bill chain, extracting preparation information of a first transaction object recorded by a transaction certificate mapped by a first bill node, extracting preparation information of a second transaction object recorded by a transaction certificate mapped by a second bill node, performing preparation relation matching processing on the preparation information of the first transaction object and the preparation information of the second transaction object, and if the preparation relation matching confirmation of the preparation information of the first transaction object and the preparation information of the second transaction object indicates that the preparation relation exists between the preparation information of the first transaction object and the preparation information of the second transaction object, establishing a certificate association relation between the transaction certificate mapped by the first bill node and the transaction certificate mapped by the second bill node.
For example, in a bill chain of a mobile phone manufacturer as shown in fig. 3, preparation information of a mobile phone battery recorded by a mobile phone battery sales contract 304 mapped by a bill node 303 is extracted, preparation relation of a battery cell recorded by a battery cell sales contract mapped by the bill node 305 is extracted, preparation relation matching processing is performed on the mobile phone battery and the battery cell, preparation relation matching confirmation is performed, and a certificate association relation of the mobile phone battery sales contract 304 mapped by the bill node 303 and the battery cell sales contract 306 mapped by the bill node 305 is established.
In addition, for the establishment of the credential association relationship of any two bill nodes in the bill chain, the establishment of the credential association relationship can also be performed by detecting the contract dependency relationship of the transaction electronic contract mapped by any two bill nodes in the bill chain, and in another optional implementation provided in this embodiment, the following operations are performed for any two bill nodes in the bill chain:
detecting whether the transaction object of the electronic transaction contract record mapped by the first bill node is the same as the transaction object of the electronic transaction contract record mapped by the second bill node;
if not, no treatment is carried out;
if yes, detecting whether contract dependency relationship exists between the electronic transaction contract mapped by the first bill node and the electronic transaction contract mapped by the second bill node, and if yes, establishing a certificate association relationship of transaction certificates of any two bill nodes.
If not, no processing is performed.
Specifically, for any two bill nodes in the bill chain, extracting a transaction object of an electronic transaction contract record mapped by a first bill node, extracting a transaction object of an electronic transaction contract record mapped by a second bill node, detecting whether the transaction object of the electronic transaction contract record mapped by the first bill node is identical to the transaction object of the electronic transaction contract record mapped by the second bill node, if so, detecting whether a contract dependency relationship exists between the electronic transaction contract mapped by the first bill node and the electronic transaction contract mapped by the second bill node, and if so, carrying out a certificate association relationship between a transaction certificate mapped by the first bill node and a transaction certificate mapped by the second bill node, wherein the contract dependency relationship can be a primary-secondary contract relationship or a batch shipment/supply contract relationship of the same contract.
In addition, whether the order dependency relationship exists between the transaction orders mapped between any two bill nodes can be detected, and if the order dependency relationship exists, the coupon association relationship of the transaction coupons mapped between any two bill nodes is established.
For example, in the bill chain of the handset manufacturer as shown in fig. 3, the transaction object of the handset sales parent contract record 308 mapped by the bill node 307 is extracted, the transaction object of the handset sales child contract 310 recorded by the bill node 309 is extracted, the transaction objects of the sales contracts mapped by the bill node 307 and the bill node 309 are all handsets, the fact that the sales child contract 308 is a child contract of the sales parent contract 310 is detected, and the credential association relationship between the handset sales parent contract 308 mapped by the bill node 307 and the handset sales child contract 310 mapped by the bill node 309 is established.
It should be noted that, the above two establishment methods for the coupon association relationship of the transaction coupon mapped by any two coupon nodes in the coupon chain may be combined, so that the query result of the electronic coupon query party is more targeted, for example: extracting preparation information of a first transaction object of a transaction certificate record mapped by a first bill node and preparation information of a second transaction object of a transaction certificate record mapped by a second bill node; detecting whether preparation matching relation exists between the preparation information of the first transaction object and the preparation information corresponding to the second transaction; if yes, detecting whether contract dependency relationship exists between the electronic transaction contract mapped by the first bill node and the electronic transaction contract mapped by the second bill node, and if yes, establishing a certificate association relationship of the transaction certificates mapped by any two bill nodes.
In addition, the bill nodes in the bill chain can also have association relation, and optionally, the association of the bill nodes and the target bill nodes is established based on the bill association relation between the transaction certificates mapped by the bill nodes and the associated transaction certificates mapped by the associated bill nodes.
And in the concrete implementation, according to the bill key information of the inquired electronic bill, inquiring a bill chain containing the bill node corresponding to the electronic bill. In the specific query process, at least one bill chain corresponding to the name of the ticket collector can be queried according to the field corresponding to the name of the ticket collector, the bill node corresponding to the electronic bill is queried in the at least one bill chain, and the bill chain containing the bill node corresponding to the electronic bill is selected.
In practical application, for a newly signed transaction certificate or a newly issued electronic bill, a bill node in a bill chain is required to be constructed, so that the bill chain can be updated and supplemented, and for the construction of the bill node in the bill chain, in an optional implementation provided in this embodiment, any one bill node in the bill chain is constructed in the following manner:
after detecting a payment instruction or a collection instruction of a transaction party for the transaction certificate, creating a bill node to be configured in the bill chain;
Associating the transaction certificate acquired through the first data interface to the bill node to be configured;
after the electronic bill of the transaction certificate is generated, initializing the bill node to be configured based on the bill information of the electronic bill of the transaction certificate, and obtaining the bill node corresponding to the electronic bill of the transaction certificate.
Specifically, after a payment instruction or a collection instruction of a transaction party for a transaction certificate is detected, a bill node to be configured is created in a bill chain, a first data interface is called to acquire the transaction certificate, the transaction certificate is related to the bill node to be configured, after the electronic bill of the transaction certificate is generated, the bill node to be configured is initialized based on bill information of the electronic bill of the transaction order, and the bill node corresponding to the electronic bill of the transaction certificate is acquired.
For example, in the bill chain of the mobile phone manufacturer shown in fig. 3, after detecting the receipt instruction of the mobile phone sales order 302, a bill node to be configured is created in the bill chain of the mobile phone manufacturer, and after the mobile phone sales invoice a is generated, the bill node 301 corresponding to the mobile phone sales order 302 is obtained by initializing the bill node to be configured based on the invoice information of the mobile phone sales invoice a.
Step S206, inquiring at least one target bill node associated with the bill node in the bill chain.
In the specific implementation, at least one bill node associated with the bill node corresponding to the queried electronic bill is queried in the bill chain based on the queried bill chain, and the at least one bill node associated with the bill node is taken as a target bill node.
Based on the construction of any bill node in the bill chain, in practical application, the coupon association relationship between the transaction coupon mapped by any bill node in the constructed bill chain and the associated transaction coupon of the associated bill node can be established through the circulation correspondence of circulation batch information of the transaction object in the transaction coupon, and in an optional implementation manner provided in this embodiment, the coupon association relationship between the transaction coupon mapped by the bill node and the associated transaction coupon mapped by the associated bill node is established in the following manner:
acquiring circulation batch information of a transaction object of the transaction certificate submitted through a second data interface;
if the circulation batch information and the transaction object of the associated transaction voucher mapped by the associated bill node have circulation corresponding relations, establishing a voucher association relation between the transaction voucher of the bill node and the associated transaction voucher of the associated bill node;
If the circulation batch information and the transaction object of the associated transaction certificate mapped by the associated bill node have no circulation corresponding relation, no processing is carried out.
Specifically, after the bill node in the bill chain is built, the transaction certificate is obtained through a second data interface, circulation batch information of a transaction object and a transaction object in the transaction certificate is extracted, if circulation corresponding relation exists between the circulation batch information and the transaction object of the associated transaction certificate mapped by the associated bill node, a certificate association relation between the transaction certificate of the bill node and the associated transaction certificate of the associated bill node is built, so that the bill node and the target bill node are associated through the certificate association relation between the transaction certificate of the bill node and the associated transaction certificate of the associated bill node, the second data interface can obtain the circulation batch information from a transaction party after detecting an acquisition instruction of the circulation batch information of the transaction object of the transaction certificate, and the circulation batch can be a sales batch and/or a preparation batch.
In addition, the method of establishing the voucher association relation for the circulation corresponding relation of the circulation batch information of the transaction objects in the transaction voucher can also acquire the preparation batch information and/or the sales batch information of the transaction objects of the transaction order submitted through the second data interface; if the preparation batch information and the transaction object of the transaction certificate mapped by the target bill node have a preparation dependency relationship, establishing a certificate association relationship between the bill node and the target bill node.
Based on the construction of any bill node in the bill chain, in practical application, the coupon association relationship between the transaction coupon mapped by any bill node in the bill chain and the associated transaction coupon of the associated bill node can also be established through the preparation relationship corresponding to the transaction object in the transaction coupon and the associated transaction object in the associated transaction, and in another optional implementation manner provided in this embodiment, the coupon association relationship between the transaction coupon mapped by the bill node and the associated transaction coupon mapped by the associated bill node is established in the following manner:
extracting the application information of the transaction object of the electronic transaction contract record mapped by the bill node;
determining a preparation relation between the transaction object and the associated transaction object based on the usage information and preparation information of the associated transaction object of the associated electronic transaction contract record mapped by the associated bill node;
if the preparation relation is a preset preparation relation, establishing a voucher association relation between the electronic transaction contract of the bill node and the associated electronic transaction contract of the associated bill node;
if the preparation relationship is not the preset preparation relationship, no treatment is carried out.
Specifically, after the construction of the bill node in the bill chain is completed, extracting application information of a transaction object of an electronic transaction contract record mapped by the bill node, determining a preparation relation between the transaction object and the associated transaction object based on the application information and preparation information of the associated transaction object of the associated electronic transaction contract record mapped by the associated bill node, if the preparation is a preset preparation relation, indicating that the transaction object of the electronic transaction contract of the bill node and the transaction object of the associated electronic transaction contract of the associated bill node are preset preparation relations, establishing a certificate association relation between a transaction certificate of the bill node and an associated transaction certificate of the associated bill node, and the application information can be manufacturing information and/or use information.
In addition, the method of establishing the voucher association relation aiming at the preparation relation corresponding to the transaction object in the transaction voucher and the associated transaction object in the associated transaction voucher can also extract the preparation information of the transaction object of the electronic transaction contract record mapped by the bill node; determining the preparation relation between the transaction object and the associated transaction object based on the preparation information and the preparation information of the associated transaction object of the associated electronic transaction contract record mapped by the associated bill node; if the preparation relation is a preset preparation relation, establishing a certificate association relation between the bill node and the associated bill.
It should be noted that, based on the above-mentioned bill node construction manner in the bill chain, the establishment of the voucher association relationship between the transaction voucher mapped by the bill node and the associated transaction voucher mapped by the associated bill node may also be performed by adopting the establishment manner and the combination manner of the voucher association relationship between any two bill node mapped transaction vouchers in the bill chain, in addition, the establishment manner of the two voucher association relationships provided above may also be combined to establish a more targeted voucher association relationship, for example: acquiring circulation batch information of a transaction object of the transaction order submitted through a second data interface; detecting whether a circulation corresponding relation exists between the circulation batch information and a transaction object of the associated transaction certificate mapped by the associated bill node; if so, extracting preparation information of a transaction object of the electronic transaction contract record mapped by the bill node; detecting whether the preparation relation of the preparation information of the associated transaction object of the associated electronic transaction contract record mapped by the associated bill node is a preset preparation relation or not; and establishing a certificate association relation between the bill node and the associated bill.
In addition, the establishment of the certificate association relation of any two bill node mappings in the bill chain can also be realized by adopting the establishment mode and the combination mode of the certificate association relation of the transaction certificates mapped by the bill nodes and the associated transaction certificates mapped by the associated bill nodes.
In the case that the voucher association relationship of the transaction voucher mapped by any two bill nodes in the bill chain includes the transaction circulation relationship of the transaction object of the transaction voucher record and/or the purpose preparation relationship of the transaction object of the transaction voucher record, the method includes, for at least one target bill node associated with a query bill node in the bill chain, querying, in an optional implementation manner provided in this embodiment, at least one target bill node associated with the bill node in the bill chain, including:
inquiring a transaction object of a transaction certificate record mapped by a candidate bill node in the bill chain as a candidate transaction object;
and detecting candidate transaction objects with a buying and selling circulation relation and/or a use preparation relation in the transaction objects of the transaction document records mapped by the bill nodes in the candidate transaction objects, and taking the candidate bill nodes mapped by the transaction document to which the candidate transaction objects belong, which are obtained by detection, as target bill nodes.
Specifically, a transaction object of a transaction certificate record mapped by a candidate bill node in a bill chain is extracted, the transaction object is used as a candidate transaction object, the transaction object of the transaction certificate record mapped by the bill node is extracted, a buying and selling circulation relation and/or circulation preparation relation between the transaction object and the candidate transaction object are detected, if the relation exists, a candidate bill node corresponding to the transaction certificate of the candidate transaction object with the relation is inquired, the candidate bill node is used as a target bill node, and the candidate bill node can be at least one bill node except for the bill node corresponding to the inquired electronic bill in the bill chain.
For example, in the bill chain of the mobile phone manufacturer shown in fig. 3, if the bill node corresponding to the queried electronic bill is the bill node 301, the transaction objects of the transaction certificates mapped by the bill node 303, the bill node 305, the bill node 307 and the bill node 309 in the bill chain are extracted, the transaction objects of the mobile phone sales order 302 mapped by the bill node 301 are extracted, the sales circulation relationship between the mobile phone recorded by the mobile phone sales order 302 and the mobile phone sales parent contract 308 is detected, the preparation input relationship between the mobile phone recorded by the mobile phone sales order 302 and the mobile phone battery recorded by the mobile phone battery sales contract 304 is detected, the bill node 303 corresponding to the mobile phone sales parent contract 308 and the bill node 303 corresponding to the mobile phone battery sales contract 304 are queried, and the bill node 303 and the bill node 307 are used as target bill nodes.
In addition, when at least one target bill node associated with a bill node is queried in a bill chain, the query of the target bill node may also be performed according to the contract dependency relationship of the electronic transaction contract mapped by the bill node, and in an optional implementation manner provided in this embodiment, the query of at least one target bill node associated with the bill node in the bill chain includes:
and inquiring candidate bill nodes with contract dependency relationship between the candidate electronic transaction contracts mapped by the candidate bill nodes in the bill chain and the electronic transaction contracts mapped by the bill nodes as the target bill nodes.
Specifically, extracting candidate electronic transaction contracts mapped by candidate bill nodes in the bill chain, extracting electronic transaction contracts mapped by bill nodes, detecting whether contract dependency relationship exists between the candidate electronic transaction contracts and the electronic transaction contracts, if the candidate bill node exists, searching candidate bill nodes corresponding to the candidate electronic transaction contracts with contract dependency relationship with the electronic transaction contracts, and taking the candidate bill nodes as target bill nodes.
For example, in the bill chain of the handset manufacturer shown in fig. 3, if the bill node corresponding to the queried electronic bill is the bill node 307, the electronic transaction contracts mapped by the bill node 301, the bill node 303, the bill node 305 and the bill node 309 in the bill chain are extracted, the handset sales parent contract 308 mapped by the bill node 307 is extracted, the fact that the handset sales child contract 310 has contract dependency relationship with the handset sales parent contract 308 is detected, the bill node 307 corresponding to the handset sales parent contract 308 is queried, and the bill node 307 is used as the target bill node.
Step S208, the electronic bill corresponding to the at least one target bill node and the mapped transaction certificate are obtained as query output of the query input.
In the implementation, aiming at the inquired target bill node, at least one electronic bill corresponding to the target bill node and at least one transaction certificate mapped by the target bill node are obtained and used as the inquiry output of the inquiry input. Specifically, for the queried target bill node, extracting the electronic bill corresponding to the at least one target bill node and the transaction certificate mapped by the at least one target bill node, and taking the electronic bill corresponding to the at least one target bill node and the transaction certificate mapped by the at least one target bill node as output results of query input.
Further, for the output result of query output, only the electronic bill corresponding to the target bill node or the transaction certificate corresponding to the target bill node can be used as the query result of query output; or, the electronic bill inquiring party selects at least one bill information of the electronic bill corresponding to the target bill node as an inquiring result of inquiring output in a control interaction mode, so that the electronic bill inquiring party can select the inquiring result; or, the query output is preset according to the mechanism type of the electronic bill querying party, for example: and under the condition that the electronic bill inquiring party is an audit institution, taking the transaction order and the transaction electronic contract corresponding to the target bill node as inquiry output.
In practical application, in the case that the transaction credential has a cooperative relationship between a plurality of transaction parties or a cooperative relationship between a plurality of transacted parties, the electronic bill inquiry party may need to inquire the transaction credential of a bill node of the partner, by setting a bill skip node in a bill chain, so that the electronic bill inquiry party can inquire the transaction credential of the bill node in the bill chain of the transaction party, optionally, the bill chain further includes the bill skip node of the transaction party of the transaction credential mapped by each bill node, and accordingly, in an optional implementation provided in this embodiment, further includes:
if a jump inquiry instruction aiming at the bill jump node is detected, jumping to a bill chain of a transaction participant to which the bill jump node belongs;
and extracting the associated transaction certificate of the corresponding bill node in the bill chain of the transaction participant as the query output of the query input.
Specifically, under the condition that a skip instruction of a bill skip node of a transaction participant of an electronic transaction contract mapped by a bill node is detected, skipping to a bill chain of the transaction participant to which the bill skip node belongs, inquiring an associated transaction credential of the bill node corresponding to the bill skip node in the bill chain, and outputting the associated transaction credential as an inquiry input inquiry.
For example, in the bill chain of the handset vendor as shown in fig. 3, in the case that a jump instruction for the bill jump node 311 of the transaction participant is detected, jumping into the bill chain of the handset transaction participant, querying the electronic transaction contract mapped by the bill node in the bill chain of the handset transaction participant, and outputting the electronic transaction contract as a query input.
In summary, according to the method for processing the electronic bill query provided in the embodiment, after the electronic bill query party inputs the bill code, the electronic bill query party performs the bill query according to the inputted bill code, reads the bill key information in the data packet of the queried electronic bill, so as to query the bill chain through the bill key information, thereby improving the query convenience of the electronic bill, aiming at the query process of the bill chain, querying the bill chain containing the bill node corresponding to the electronic bill based on the bill key information, querying at least one target bill node associated with the bill node corresponding to the electronic bill in the bill chain, and then taking the acquired electronic bill corresponding to the target bill node and the mapped transaction certificate as the query output result of query input, so that the electronic bill query party can query the electronic bill and the transaction certificate in the bill chain through the inputted bill code, and in addition, the query efficiency of the electronic bill query party is improved, and the electronic bill query party can select the key information according to the needs of the electronic bill query party, thereby improving the query pertinence;
Furthermore, the electronic bill can be communicated with the enterprises at the upstream and downstream of the product based on the electronic bill, so that the circulation relationship and the preparation relationship of the product are clearer, the inquiry of the electronic bill and the transaction certificate is more convenient, and in addition, the tax institution can be connected to process the electronic bill, so that the tax institution can develop work more efficiently.
The following further describes the electronic bill query processing method provided in this embodiment by taking the application of the electronic bill query processing method provided in this embodiment to a tax query scene as an example, and referring to fig. 4, the electronic bill query processing method applied to the tax query scene specifically includes the following steps.
Step S402, according to the tax agency, calling the bill code input by the query interface to query the bill, and reading the name of the bill receiver of the queried commodity purchase invoice.
Before this, after detecting a payment instruction receipt instruction of the transaction party for the transaction order, a bill node to be configured is created in the bill chain. And associating the transaction order acquired through the payment application interface to the bill node to be configured. After the electronic bill of the trade order is generated, initializing bill nodes to be configured based on bill information of the electronic bill of the trade order, and obtaining bill nodes corresponding to the electronic bill of the trade order. If the bill node exists, establishing a voucher association relationship between the transaction order of the bill node and the associated transaction order of the associated bill node.
Or extracting the purpose information of the transaction object of the transaction order record mapped by the bill node. And determining the preparation relation between the transaction object and the associated transaction object based on the usage information and the preparation information of the associated transaction object of the associated transaction order record mapped by the associated bill node. If the preparation relation is a preset preparation relation, establishing a voucher association relation between the transaction order of the bill node and the associated transaction order of the associated bill node.
Step S404, inquiring a bill chain containing bill nodes corresponding to commodity purchase invoices based on the name of the ticket collector.
Step S406, inquiring the transaction commodity of the transaction order record mapped by the candidate bill node in the bill chain as the candidate transaction commodity.
The association of the bill node and the target bill node in the bill chain is established based on the trading order mapped by the bill node and the buying and selling circulation relation of the associated trading order mapped by the associated bill node.
Step S408, detecting candidate transaction commodities in which the transaction commodities recorded in the transaction order mapped with the bill nodes have a buying and selling circulation relationship in the candidate transaction commodities, and taking the candidate bill node corresponding to the transaction order to which the candidate transaction commodity obtained through detection belongs as a target bill node.
Step S410, acquiring the electronic invoice corresponding to the target bill node and the transaction order as query output of query input.
Step S412, a skip inquiry command of the bill skip node for the transaction order is detected, and the bill chain of the transaction participant to which the bill skip node belongs is skipped.
Step S414, extracting the associated electronic transaction contract of the corresponding bill node in the bill chain of the transaction participant as the query output of the query input.
The following further describes the electronic bill query processing method provided in this embodiment by taking the application of the electronic bill query processing method provided in this embodiment to an audit query scene as an example, and referring to fig. 5, the electronic bill query processing method applied to the audit query scene specifically includes the following steps.
Step S502, according to the bill code input by the audit organization calling inquiry interface, bill inquiry is carried out, and the name of the invoicer of the inquired service sales invoice is read.
Before that, the preparation information of the first transaction object of the electronic transaction contract record mapped by the first bill node and the preparation information of the second transaction object of the electronic transaction contract record mapped by the second bill node are extracted. If the preparation matching relation between the preparation information of the first transaction object and the preparation information corresponding to the second transaction is detected, establishing a certificate association relation between the electronic transaction contract mapped by the first bill node and the electronic transaction contract mapped by the second bill node.
Or, detecting whether the transaction object of the electronic transaction contract record mapped by the first bill node is the same as the transaction object of the electronic transaction contract record mapped by the second bill node. If so, detecting whether a contract dependency relationship exists between the electronic transaction contract mapped by the first bill node and the electronic transaction contract mapped by the second bill node, and if so, establishing a certificate association relationship between the electronic transaction contract mapped by the first bill node and the electronic transaction mapped by the second bill node.
Step S504, inquiring a bill chain containing bill nodes corresponding to the service sales invoice based on the name of the invoicer.
Step S506, inquiring candidate bill nodes with contract dependency relationship between the candidate electronic transaction contracts mapped by the candidate bill nodes and the electronic transaction contracts mapped by the bill nodes in the bill chain as target bill nodes.
The association of the bill node and the target bill node is established based on the bill node mapped transaction certificate and the certificate association relation of the associated transaction certificate mapped by the associated bill node.
Step S508, the electronic invoice corresponding to the target bill node and the mapped electronic transaction contract are obtained as query output of query input.
The embodiment of the electronic bill inquiry processing device provided in the specification is as follows:
in the foregoing embodiments, an electronic bill query processing method and an electronic bill query processing device corresponding to the electronic bill query processing method are provided, and the electronic bill query processing device is described below with reference to the accompanying drawings.
Referring to fig. 6, a schematic diagram of an embodiment of an electronic ticket query processing apparatus provided in this embodiment is shown.
Since the apparatus embodiments correspond to the method embodiments, the description is relatively simple, and the relevant portions should be referred to the corresponding descriptions of the method embodiments provided above. The device embodiments described below are merely illustrative.
The embodiment provides an electronic bill inquiry processing device, which comprises:
the bill key information reading module 602 is configured to perform bill inquiry according to the bill code input by inquiry and read the bill key information of the inquired electronic bill;
a bill chain query module 604 configured to query a bill chain including a bill node corresponding to the electronic bill based on the bill key information;
a target ticket node querying module 606 configured to query the ticket chain for at least one target ticket node associated with the ticket node; the bill node is associated with the target bill node, and a bill association relationship is established based on the transaction certificates mapped by the bill node and the associated transaction certificates mapped by the associated bill node;
A query result output module 608 configured to obtain the electronic ticket corresponding to the at least one target ticket node and the mapped transaction credential as a query output of the query input.
The embodiment of the electronic bill inquiry processing device provided in the specification is as follows:
corresponding to the above-described electronic bill query processing method, one or more embodiments of the present disclosure further provide an electronic bill query processing device, which is configured to execute the above-provided electronic bill query processing method, and fig. 7 is a schematic structural diagram of an electronic bill query processing device provided by one or more embodiments of the present disclosure, based on the same technical concept.
The electronic bill inquiry processing device provided in this embodiment includes:
as shown in fig. 7, the electronic bill query processing device may have a relatively large difference due to different configurations or performances, and may include one or more processors 701 and a memory 702, where the memory 702 may store one or more storage applications or data. Wherein the memory 702 may be transient storage or persistent storage. The application programs stored in memory 702 may include one or more modules (not shown in the figures), each of which may include a series of computer-executable instructions in an electronic ticket query processing device. Still further, the processor 701 may be configured to communicate with the memory 702 and execute a series of computer executable instructions in the memory 702 on the electronic ticket query processing device. The electronic ticket query processing device may also include one or more power supplies 703, one or more wired or wireless network interfaces 704, one or more input/output interfaces 705, one or more keyboards 706, and the like.
In a particular embodiment, an electronic ticket query processing device includes a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions for the electronic ticket query processing device, and configured to be executed by the one or more processors, the one or more programs including computer-executable instructions for:
according to the bill code input by inquiry, making bill inquiry and reading the bill key information of inquired electronic bill;
inquiring a bill chain containing bill nodes corresponding to the electronic bill based on the bill key information;
querying the bill chain for at least one target bill node associated with the bill node; the bill node is associated with the target bill node, and a bill association relationship is established based on the transaction certificates mapped by the bill node and the associated transaction certificates mapped by the associated bill node;
and acquiring the electronic bill corresponding to the at least one target bill node and the mapped transaction certificate as query output of the query input.
An embodiment of a storage medium provided in the present specification is as follows:
corresponding to the above-described electronic bill query processing method, one or more embodiments of the present disclosure further provide a storage medium based on the same technical concept.
The storage medium provided in this embodiment is configured to store computer executable instructions that, when executed by a processor, implement the following flow:
according to the bill code input by inquiry, making bill inquiry and reading the bill key information of inquired electronic bill;
inquiring a bill chain containing bill nodes corresponding to the electronic bill based on the bill key information;
querying the bill chain for at least one target bill node associated with the bill node; the bill node is associated with the target bill node, and a bill association relationship is established based on the transaction certificates mapped by the bill node and the associated transaction certificates mapped by the associated bill node;
and acquiring the electronic bill corresponding to the at least one target bill node and the mapped transaction certificate as query output of the query input.
It should be noted that, in the present specification, the embodiment about the storage medium and the embodiment about the electronic bill query processing method in the present specification are based on the same inventive concept, so that the specific implementation of this embodiment may refer to the implementation of the foregoing corresponding method, and the repetition is not repeated.
In this specification, each embodiment is described in a progressive manner, and the same or similar parts of each embodiment are referred to each other, and each embodiment focuses on the differences from other embodiments, for example, an apparatus embodiment, and a storage medium embodiment, which are all similar to a method embodiment, so that description is relatively simple, and relevant content in reading apparatus embodiments, and storage medium embodiments is referred to the part description of the method embodiment.
The foregoing describes specific embodiments of the present disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
In the 30 s of the 20 th century, improvements to one technology could clearly be distinguished as improvements in hardware (e.g., improvements to circuit structures such as diodes, transistors, switches, etc.) or software (improvements to the process flow). However, with the development of technology, many improvements of the current method flows can be regarded as direct improvements of hardware circuit structures. Designers almost always obtain corresponding hardware circuit structures by programming improved method flows into hardware circuits. Therefore, an improvement of a method flow cannot be said to be realized by a hardware entity module. For example, a programmable logic device (Programmable Logic Device, PLD) (e.g., field programmable gate array (Field Programmable Gate Array, FPGA)) is an integrated circuit whose logic function is determined by the programming of the device by a user. A designer programs to "integrate" a digital system onto a PLD without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Moreover, nowadays, instead of manually manufacturing integrated circuit chips, such programming is mostly implemented by using "logic compiler" software, which is similar to the software compiler used in program development and writing, and the original code before the compiling is also written in a specific programming language, which is called hardware description language (Hardware Description Language, HDL), but not just one of the hdds, but a plurality of kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), lava, lola, myHDL, PALASM, RHDL (Ruby Hardware Description Language), etc., VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog are currently most commonly used. It will also be apparent to those skilled in the art that a hardware circuit implementing the logic method flow can be readily obtained by merely slightly programming the method flow into an integrated circuit using several of the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer readable medium storing computer readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable logic controllers, and embedded microcontrollers, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, atmel AT91SAM, microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic of the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller in a pure computer readable program code, it is well possible to implement the same functionality by logically programming the method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers, etc. Such a controller may thus be regarded as a kind of hardware component, and means for performing various functions included therein may also be regarded as structures within the hardware component. Or even means for achieving the various functions may be regarded as either software modules implementing the methods or structures within hardware components.
The system, apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. One typical implementation is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being functionally divided into various units, respectively. Of course, the functions of each unit may be implemented in the same piece or pieces of software and/or hardware when implementing the embodiments of the present specification.
One skilled in the relevant art will recognize that one or more embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, one or more embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present description can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The present description is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the specification. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
One or more embodiments of the present specification may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. One or more embodiments of the specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The foregoing description is by way of example only and is not intended to limit the present disclosure. Various modifications and changes may occur to those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. that fall within the spirit and principles of the present document are intended to be included within the scope of the claims of the present document.

Claims (15)

1. An electronic bill inquiry processing method comprises the following steps:
according to the bill code input by inquiry, making bill inquiry and reading the bill key information of inquired electronic bill;
inquiring a bill chain containing bill nodes corresponding to the electronic bill based on the bill key information;
querying the bill chain for at least one target bill node associated with the bill node; the bill node is associated with the target bill node, and a bill association relationship is established based on the transaction certificates mapped by the bill node and the associated transaction certificates mapped by the associated bill node;
and acquiring the electronic bill corresponding to the at least one target bill node and the mapped transaction certificate as query output of the query input.
2. The electronic bill inquiry processing method according to claim 1, wherein bill nodes in the bill chain are constructed by adopting the following modes:
After detecting a payment instruction or a collection instruction of a transaction party for the transaction certificate, creating a bill node to be configured in the bill chain;
associating the transaction certificate acquired through the first data interface to the bill node to be configured;
after the electronic bill of the transaction certificate is generated, initializing the bill node to be configured based on the bill information of the electronic bill of the transaction certificate, and obtaining the bill node corresponding to the electronic bill of the transaction certificate.
3. The electronic bill inquiry processing method according to claim 2, wherein the bill node mapped transaction credential and the associated bill node mapped credential association relationship of the associated transaction credential are established by the following manner:
acquiring circulation batch information of a transaction object of the transaction order submitted through a second data interface;
if the circulation batch information and the transaction object of the association transaction order mapped by the association bill node have circulation corresponding relation, establishing a certificate association relation between the transaction certificate of the bill node and the association transaction certificate of the association bill node.
4. The electronic bill inquiry processing method according to claim 2, wherein the bill node mapped transaction credential and the associated bill node mapped credential association relationship of the associated transaction credential are established by the following manner:
Extracting the application information of the transaction object of the electronic transaction contract record mapped by the bill node;
determining a preparation relation between the transaction object and the associated transaction object based on the usage information and preparation information of the associated transaction object of the associated electronic transaction contract record mapped by the associated bill node;
if the preparation relation is a preset preparation relation, establishing a voucher association relation between the transaction voucher of the bill node and the associated transaction voucher of the associated bill node.
5. The electronic bill inquiry processing method according to claim 1, wherein for any two bill nodes in the bill chain, the following operations are performed:
extracting preparation information of a first transaction object of a transaction certificate record mapped by a first bill node and preparation information of a second transaction object of a transaction certificate record mapped by a second bill node;
if the preparation matching relation between the preparation information of the first transaction object and the preparation information corresponding to the second transaction is detected, establishing a certificate association relation of the transaction certificates mapped by any two bill nodes.
6. The electronic bill inquiry processing method according to claim 1, wherein for any two bill nodes in the bill chain, the following operations are performed:
Detecting whether the transaction object of the electronic transaction contract record mapped by the first bill node is the same as the transaction object of the electronic transaction contract record mapped by the second bill node;
if yes, detecting whether contract dependency relationship exists between the electronic transaction contract mapped by the first bill node and the electronic transaction contract mapped by the second bill node, and if yes, establishing a certificate association relationship of transaction certificates of any two bill nodes.
7. The electronic bill inquiry processing method according to claim 1, wherein the bill association relation of the transaction certificates mapped by any two bill nodes in the bill chain comprises at least one of the following:
the trade circulation relation of the trade object of the trade evidence record, the purpose preparation relation of the trade object of the trade evidence record;
wherein the buying and selling circulation relationship comprises a buying circulation relationship and a selling circulation relationship; the usage preparation relationship includes a preparation input relationship and a preparation output relationship.
8. The electronic bill query processing method according to claim 7, the querying the bill chain for at least one target bill node associated with the bill node, comprising:
inquiring a transaction object of a transaction certificate record mapped by a candidate bill node in the bill chain as a candidate transaction object;
And detecting candidate transaction objects with a buying and selling circulation relation and/or a use preparation relation in the transaction objects of the transaction document records mapped by the bill nodes in the candidate transaction objects, and taking the candidate bill nodes corresponding to the transaction documents to which the candidate transaction objects belong, which are obtained by detection, as target bill nodes.
9. The electronic bill query processing method according to claim 1, the querying the bill chain for at least one target bill node associated with the bill node, comprising:
and inquiring candidate bill nodes with contract dependency relationship between the candidate electronic transaction contracts mapped by the candidate bill nodes in the bill chain and the electronic transaction contracts mapped by the bill nodes as the target bill nodes.
10. The electronic bill inquiry processing method according to claim 1, wherein at least one identical transaction party exists in transaction parties recorded in at least one bill body field of the electronic bill corresponding to the bill node of the bill chain.
11. The electronic bill inquiry processing method according to claim 1, further comprising bill jump nodes of transaction participants of the transaction certificates mapped by each bill node in the bill chain;
If a jump inquiry instruction aiming at the bill jump node is detected, jumping to a bill chain of a transaction participant to which the bill jump node belongs;
and extracting the associated transaction certificate of the corresponding bill node in the bill chain of the transaction participant as the query output of the query input.
12. The electronic bill inquiry processing method according to claim 1, wherein the bill code is input by calling an inquiry interface by an audit agency or a tax agency.
13. An electronic bill inquiry processing device, comprising:
the bill key information reading module is configured to perform bill inquiry according to the bill codes input by inquiry and read the bill key information of the inquired electronic bill;
the bill chain inquiry module is configured to inquire a bill chain containing bill nodes corresponding to the electronic bill based on the bill key information;
a target bill node querying module configured to query the bill chain for at least one target bill node associated with the bill node; the bill node is associated with the target bill node, and a bill association relationship is established based on the transaction certificates mapped by the bill node and the associated transaction certificates mapped by the associated bill node;
And the query result output module is configured to acquire the electronic bill corresponding to the at least one target bill node and the mapped transaction certificate as query output of the query input.
14. An electronic bill inquiry processing apparatus comprising:
a processor; and a memory configured to store computer-executable instructions that, when executed, cause the processor to:
according to the bill code input by inquiry, making bill inquiry and reading the bill key information of inquired electronic bill;
inquiring a bill chain containing bill nodes corresponding to the electronic bill based on the bill key information;
querying the bill chain for at least one target bill node associated with the bill node; the bill node is associated with the target bill node, and a bill association relationship is established based on the transaction certificates mapped by the bill node and the associated transaction certificates mapped by the associated bill node;
and acquiring the electronic bill corresponding to the at least one target bill node and the mapped transaction certificate as query output of the query input.
15. A storage medium storing computer-executable instructions that when executed by a processor implement the following:
According to the bill code input by inquiry, making bill inquiry and reading the bill key information of inquired electronic bill;
inquiring a bill chain containing bill nodes corresponding to the electronic bill based on the bill key information;
querying the bill chain for at least one target bill node associated with the bill node; the bill node is associated with the target bill node, and a bill association relationship is established based on the transaction certificates mapped by the bill node and the associated transaction certificates mapped by the associated bill node;
and acquiring the electronic bill corresponding to the at least one target bill node and the mapped transaction certificate as query output of the query input.
CN202310452379.9A 2023-04-21 2023-04-21 Electronic bill query processing method and device Pending CN116450695A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310452379.9A CN116450695A (en) 2023-04-21 2023-04-21 Electronic bill query processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310452379.9A CN116450695A (en) 2023-04-21 2023-04-21 Electronic bill query processing method and device

Publications (1)

Publication Number Publication Date
CN116450695A true CN116450695A (en) 2023-07-18

Family

ID=87123665

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310452379.9A Pending CN116450695A (en) 2023-04-21 2023-04-21 Electronic bill query processing method and device

Country Status (1)

Country Link
CN (1) CN116450695A (en)

Similar Documents

Publication Publication Date Title
CN109615495B (en) Data reconciliation method, device, equipment and system
CN112016921B (en) Transaction processing method, device and equipment
CN111738737B (en) Method, device and equipment for generating digital property right certificate
CN113222723B (en) Bill processing method, device, equipment and storage medium
WO2021259147A1 (en) Block chain-based resource transfer method, apparatus and device
CN110503435B (en) Transaction early warning method, device and equipment based on blockchain
CN113222555B (en) Data processing method, device, equipment and system
CN112967046B (en) Associated payment processing method and device
CN110992040A (en) Transaction processing method, device and equipment
CN111882317A (en) Business processing system, readable storage medium and electronic device
WO2024046121A1 (en) Service processing method and apparatus
CN114548963B (en) Payment interaction processing method and device
CN116450695A (en) Electronic bill query processing method and device
CN113095828B (en) Data storage method and device based on blockchain
CN115423461A (en) Bill processing method and device
CN113419794B (en) Payment processing method and device
CN115330372A (en) Payment processing method and device based on prepaid voucher
CN111985919B (en) Payment data processing method and device and electronic equipment
CN113419793B (en) Payment processing method and device
CN116362735A (en) Payment method and device
CN115641129A (en) Payment processing method and device based on digital wallet
CN116051182A (en) Member certificate processing method and device
CN117556804A (en) Data analysis processing method and device
CN117764670A (en) Order settlement method and device for service item
CN115983845A (en) Payment method and device based on user identity

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40093275

Country of ref document: HK