CN110689386B - Electronic bill issuing method and system - Google Patents

Electronic bill issuing method and system Download PDF

Info

Publication number
CN110689386B
CN110689386B CN201910764819.8A CN201910764819A CN110689386B CN 110689386 B CN110689386 B CN 110689386B CN 201910764819 A CN201910764819 A CN 201910764819A CN 110689386 B CN110689386 B CN 110689386B
Authority
CN
China
Prior art keywords
billing
service
platform
data
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910764819.8A
Other languages
Chinese (zh)
Other versions
CN110689386A (en
Inventor
曹传奎
董佳佳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangsu Suning Cloud Computing Co ltd
SuningCom Co ltd
Original Assignee
Suning Cloud Computing 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 Suning Cloud Computing Co Ltd filed Critical Suning Cloud Computing Co Ltd
Priority to CN201910764819.8A priority Critical patent/CN110689386B/en
Publication of CN110689386A publication Critical patent/CN110689386A/en
Application granted granted Critical
Publication of CN110689386B publication Critical patent/CN110689386B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/04Billing or invoicing
    • 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/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Abstract

The invention discloses an electronic bill making method and a system, wherein the method comprises the following steps: the service platform processes the service data acquired in real time to form data information for making an invoice as invoice making data; the service platform sends an invoicing request containing invoicing data to a routing system; after receiving the invoicing request, the routing system matches a target identifier in the invoicing data in a corresponding relation between a pre-stored target identifier and an invoicing platform, determines a target invoicing platform and pushes the invoicing request to the target invoicing platform; the target billing platform performs billing after receiving the billing request, generates a billing result and returns the billing result to the routing system; and the routing system returns the billing result to the corresponding service platform. The invention realizes the transmission of data information between different service platforms and billing platforms through the allocation of the routing system, and ensures the accuracy and timeliness of billing.

Description

Electronic bill issuing method and system
Technical Field
The invention relates to the technical field of computers, in particular to an electronic bill issuing method and system.
Background
In the prior art, an electronic bill needs to call a third-party bill issuing company to issue an invoice, as shown in fig. 1, a traditional invoicing process needs participation of a service platform and a third-party billing platform, and the specific operation process is as follows: the method comprises the steps that an invoicing request is pushed to a service platform at regular time, the service platform sends an invoicing request address to a third party invoicing platform, the third party invoicing platform provides open electronic invoicing service, and after the third party invoicing platform finishes invoicing, an invoicing result is synchronously returned to the service platform. However, as the number of invoices increases, the following defects are highlighted in the conventional invoicing system and method during operation:
1. the method completely depends on a third-party billing platform, the billing platform is single in arrangement, and the consumption capacity is insufficient in the face of a large number of billing requests;
2. the billing response time is unstable, and the billing efficiency is low;
3. the third party billing platform returns the billing result in a synchronous mode, and the whole amount of data uses the same interface, so that data transmission is blocked.
Disclosure of Invention
In order to solve the problems of the prior art, the invention provides an electronic bill issuing method and system. The technical scheme is as follows:
in a first aspect, there is provided an electronic ticket issuing method, the method including:
the service platform processes the service data acquired in real time to form data information for making an invoice as invoice making data;
the service platform sends an invoicing request containing invoicing data to a routing system;
after receiving the invoicing request, the routing system matches a target identifier in the invoicing data in a corresponding relation between a pre-stored target identifier and an invoicing platform, determines a target invoicing platform and pushes the invoicing request to the target invoicing platform;
the target billing platform performs billing after receiving the billing request, generates a billing result and returns the billing result to the routing system;
and the routing system returns the billing result to the corresponding service platform.
Further, the billing result comprises the target identification;
the routing system returning the billing result to the corresponding service platform comprises the following steps:
and the routing system matches the target identification in the invoicing result with the corresponding relation between the pre-stored target identification and the service platform, determines a target service platform and returns the invoicing result to the target service platform.
Further, the service platform includes: the system comprises a data receiving module and an invoicing data generating module;
the service platform processes the service data acquired in real time, and the forming of data information for invoicing as invoicing data comprises the following steps: the data receiving module acquires the service data according to a service structure, performs basic processing on the service data, and transmits the processed service data to the billing data generating module by using a message middleware in a message alignment mode;
and the billing data generation module receives the service data and then performs service processing to generate the billing data.
Further, the billing platform comprises at least two service modules;
the method further comprises the following steps:
the routing system determines the service type according to the information in the invoice request;
the routing system matches the service type in a corresponding relation between the service type and the service module which is prestored, and a target service module is determined;
and the routing system pushes the billing request to the target service module of the target billing platform.
Further, the service module includes: the system comprises a synchronous opening service module and an asynchronous opening service module;
the routing system determining the service type according to the information in the invoice request comprises:
if the invoicing data in the invoice request is compensation data, the routing system determines that the service type is synchronous invoicing service; if the invoicing data in the invoice request is non-compensation data, the routing system determines that the service type is asynchronous invoicing service;
the routing system matches the service type in a pre-stored corresponding relation between the service type and the service module, and determining a target service module comprises:
if the service type is the synchronous opening service, the routing system determines that the target service module is the synchronous opening service module; and if the service type is the asynchronous opening service, the routing system determines that the target service module is the asynchronous opening service module.
Further, the method further comprises:
the service platform, the billing platform and the routing system store the received and generated data in respective relational databases;
the service platform, the billing platform and the routing system store the data in the relational databases into the Hive database in a full-scale manner in an incremental extraction manner;
the billing platform asynchronously and synchronously sends the billing result to a distributed message system and pushes the billing result to a search engine database in real time through message middleware;
and the billing platform stores the electronic file corresponding to the billing result into a distributed file storage system.
In a second aspect, an electronic bill issuing method is provided, which is applied to a routing system, and includes:
receiving an invoicing request which is sent by a service platform and contains invoicing data, wherein the invoicing data is data information for invoicing which is formed by the service platform after being sorted according to business data;
matching the target identification in the billing data in a corresponding relation between a prestored target identification and a billing platform, determining the target billing platform, and pushing the billing request to the target billing platform;
and receiving the billing result sent by the target billing platform, and returning the billing result to the corresponding service platform.
Further, the billing result includes the target identifier, and returning the billing result to the corresponding service platform includes:
and matching the target identification in the invoicing result in a pre-stored corresponding relation between the target identification and the service platform, determining a target service platform, and returning the invoicing result to the target service platform.
Further, the billing platform comprises at least two service modules;
the method further comprises the following steps: determining the service type according to the information in the invoice request; matching the service type in a corresponding relation between the service type and the service module which is prestored, and determining a target service module; and pushing the billing request to the target service module of the target billing platform.
Further, the service module includes: the system comprises a synchronous opening service module and an asynchronous opening service module;
determining a service type according to information in the invoice request includes: if the invoicing data in the invoice request is compensation data, determining that the service type is synchronous invoicing service; if the invoicing data in the invoice request is non-compensation data, determining that the service type is asynchronous invoicing service;
matching the service type in a pre-stored corresponding relation between the service type and the service module, and determining a target service module comprises: if the service type is the synchronous opening service, determining that the target service module is the synchronous opening service module; and if the service type is the asynchronous opening service, determining that the target service module is the asynchronous opening service module.
Further, the method further comprises:
storing configuration relationship information in a relational database, the configuration relationship information comprising: the corresponding relationship between the target identifier and the billing platform may further include: the corresponding relation between the target identification and the service platform and the corresponding relation between the service type and the service module;
and saving the total data in the relational database into the Hive database in an incremental extraction mode.
In a third aspect, an electronic bill issuing method is provided, which is applied to at least two service platforms, and the method includes:
processing the service data acquired in real time to form data information for making out an invoice as invoice data;
sending an invoicing request containing invoicing data to a routing system;
and receiving the invoicing result returned by the routing system.
Further, the processing the service data acquired in real time to form data information for making out an invoice as the invoicing data includes:
and acquiring the service data according to a service structure, performing basic processing on the service data, dividing the processed service data into message queue data, and sequentially performing service processing to generate the billing data.
Further, the method further comprises:
storing the acquired service data and the generated billing data in a relational database;
and saving the total data in the relational database into the Hive database in an incremental extraction mode.
In a fourth aspect, an electronic billing method is provided, which is applied to at least two billing platforms, and the method includes:
receiving an invoicing request containing invoicing data, and generating an invoicing result according to the invoicing request;
and returning the billing result to the routing system.
Further, the returning the billing result to the routing system further includes:
and returning the billing result according to the service type in the billing request.
Further, the method further comprises:
storing the invoicing results in a relational database;
storing the total data in the relational database into the Hive database in an incremental extraction mode;
asynchronously and synchronously sending the invoicing result to a distributed message system, and pushing the invoicing result to a search engine database in real time through message middleware;
and storing the electronic file corresponding to the invoicing result into a distributed file storage system.
A fifth aspect, corresponding to the first aspect, provides an electronic ticket issuing system, comprising:
the system comprises a routing system, at least two service platforms and at least two billing platforms;
the service platform corresponds to the service, and is used for receiving corresponding service data in real time, processing the service data, forming data information for invoicing as invoicing data, and sending an invoicing request containing the invoicing data to the routing system;
the routing system is used for matching the target identification in the billing data in the corresponding relation between the pre-stored target identification and the billing platform after receiving the billing request, determining the target billing platform, pushing the billing request to the target billing platform and returning the billing result received from the target billing platform to the corresponding service platform;
and the billing platform is used for billing after receiving the billing request, generating a billing result and returning the billing result to the routing system.
Further, the billing result comprises the target identification;
the routing system is specifically configured to match the target identifier in the billing result with a pre-stored corresponding relationship between the target identifier and the service platform, determine a target service platform, and return the billing result to the target service platform.
Further, the service platform comprises: the system comprises a data receiving module and an invoicing data generating module;
the data receiving module is used for acquiring the service data according to a service structure, performing basic processing on the service data, and transmitting the processed service data to the billing data generating module by using a message middleware in a message alignment mode;
and the billing data generation module is used for receiving the service data and then processing the service data to generate the billing data.
Furthermore, the billing platform at least comprises a synchronous billing service module and an asynchronous billing service module;
the routing system is also used for determining the service type according to the information in the invoice request; matching the service type in a corresponding relation between the service type and the service module which is prestored, and determining a target service module; and pushing the billing request to the target service module of the target billing platform.
Further, the routing system is specifically configured to determine that the service type is a synchronous invoicing service if the invoicing data in the invoice request is compensation data; if the invoicing data in the invoice request is non-compensation data, the routing system determines that the service type is asynchronous invoicing service;
if the service type is the synchronous opening service, the routing system determines that the target service module is the synchronous opening service module; and if the service type is asynchronous opening service, the routing system determines that the target service module is an asynchronous opening service module.
Further, the system further comprises:
the relational database storage module is used for storing the data received and generated by the service platform, the billing platform and the routing system;
the Hive database is used for storing and storing data in the relational databases of the service platform, the billing platform and the routing system in a full amount in an incremental extraction mode;
and the distributed message system is used for storing the invoicing result in a distributed manner and pushing the invoicing result to a search engine database in real time through message middleware.
A sixth aspect, corresponding to the second aspect, provides a routing system for an electronic ticket issuing method, including:
the routing service module is used for receiving an invoicing request which is sent by a service platform and contains invoicing data, and the invoicing data is formed by the service platform according to the data information for invoicing after the service platform finishes the data information;
and the route configuration module is used for determining a target billing platform according to the corresponding relationship between the pre-stored billing platform and the target identifier in the billing data, pushing the billing request to the target billing platform, receiving a billing result sent by the target billing platform and returning the billing result to the corresponding service platform.
Further, the route configuration module is further configured to match the target identifier in the billing result with a corresponding relationship between the pre-stored target identifier and the service platform, determine a target service platform, and return the billing result to the target service platform.
Further, the route configuration module is further configured to determine a service type according to information in the invoice request; matching the service type in a corresponding relation between the service type and the service module which is prestored, and determining a target service module; and pushing the billing request to the target service module of the target billing platform.
Further, the routing configuration module is specifically configured to determine, by the routing system, that the service type is a synchronous invoicing service if the invoicing data in the invoice request is compensation data; if the invoicing data in the invoice request is non-compensation data, the routing system determines that the service type is asynchronous invoicing service;
if the service type is the synchronous opening service, the routing system determines that the target service module is the synchronous opening service module; and if the service type is asynchronous opening service, the routing system determines that the target service module is an asynchronous opening service module.
A seventh aspect, corresponding to the third aspect, provides a service platform for an electronic ticket issuing method, including: the system comprises a data receiving module and an invoicing data generating module;
the data receiving module is used for acquiring the service data according to a service structure, performing basic processing on the service data, and transmitting the processed service data to the billing data generating module by using a message middleware in a message alignment mode;
and the billing data generation module is used for receiving the service data and then processing the service data to generate the billing data.
An eighth aspect, corresponding to the fourth aspect, provides a billing platform for an electronic ticket issuing method, including:
the data transmission module is used for receiving an invoicing request which is pushed by the routing system and contains invoicing data, and returning an invoicing result to the routing system;
and the billing module is used for billing according to the billing request and generating a billing result.
Further, the billing module includes:
the synchronous invoicing service module is used for synchronously returning the invoicing result;
and the asynchronous invoicing service module is used for asynchronously returning the invoicing result.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
1. the method disclosed by the invention realizes the issuing of the electronic bill through the interaction of the service platform, the routing system and the billing platform, wherein the billing platform can execute a main billing task, can be externally connected with other information systems to obtain billing regulations and information, and does not need to completely rely on a third-party billing platform for billing;
2. the service platform and the billing platform are at least two, so that the problem of difficult platform expansion in the service expansion process is solved, and the issue of electronic bills in different service ranges can be solved through configuration and platform expansion;
3. in the invention, the data of the service platform, the routing system and the billing platform are stored in a multidimensional way, so that the data transmission congestion can be prevented, and the service platform can be butted with different functional systems to provide diversified services;
4. the invention realizes the transmission of data information between different service platforms and billing platforms through the allocation of the routing system, and ensures the accuracy and timeliness of billing.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of a prior art electronic billing system;
fig. 2 is a process diagram of an electronic ticket issuing method provided by the embodiment of the invention;
FIG. 3 is a block diagram of an electronic billing system according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a data storage structure of an electronic bill issuing system according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Because the service platform and the third-party billing platform in the existing electronic billing system are single, the configuration of a data transmission path is lacked, and different services in each platform are integrated, the coupling degree of the platforms is too high, the expansion of the billing system is hindered, the existing billing system cannot adapt to the processing of mass data, the billing efficiency is poor, and the data transmission is not smooth.
In order to solve the above technical problems, embodiments of the present invention provide an electronic ticket issuing method and system, in which a service platform and an issuing platform are augmented and a routing system is used to perform data allocation between the service platform and the routing platform to implement high-timeliness data transmission, so as to improve accuracy and efficiency of issuing electronic tickets, and simultaneously, the whole system is more suitable for service expansion and different issuing requirements.
Example 1
As shown in fig. 2, an electronic ticket issuing method includes:
the service platform processes the service data acquired in real time to form data information for making an invoice as invoice making data;
the service platform sends the billing request containing billing data to the routing system;
after receiving the invoicing request, the routing system matches the target identification in the invoicing data in the corresponding relation between the pre-stored target identification and the invoicing platform, determines the target invoicing platform and pushes the invoicing request to the target invoicing platform;
the target billing platform performs billing after receiving the billing request, generates a billing result and returns the billing result to the routing system;
and the routing system returns the billing result to the corresponding service platform.
The method can be used for the electronic bill and document billing services such as electronic invoice billing service or electronic application form billing service and the like. The billing data is data information required when billing is performed, the service data is data information related to the service and including the billing data, and the billing data may be systematically and structurally stored in the service data or randomly stored in the service data, so that the billing data needs to be found by cleaning, refining, integrating and the like. The target identification is contained in the invoicing data and is used for determining a target invoicing platform, taking an electronic invoice as an example, the target identification can be a tax number, different invoicing platforms in the invoicing platform are responsible for invoicing the invoice of the corresponding tax number, and then the target invoicing platform can be corresponding to the target invoicing platform through the tax number. The service platform is mainly used for acquiring the business data and arranging the invoicing data according to the business data. The billing platform mainly executes specific billing tasks. The method is applied to an invoicing system at least comprising two service platforms, two invoicing platforms and a routing system, and the main principle for realizing the method is to match a target identifier in invoicing data with a corresponding relation between the target identifier and the invoicing platform so as to find the target invoicing platform. The determination of the target service platform may be determined according to the target identifier, or may be determined according to the number of the service platform that issues the invoicing request, for example: and when the billing request sent by the 001-number service platform returns the billing result, the billing result is returned to the 001-number service platform. Therefore, the issuing of the electronic bill is efficiently completed through the corresponding transmission of the issuing request and the issuing result, and the space for adding the service platform and the issuing platform is reserved for the issuing system through the scheduling function in the method.
When the target service platform determines according to the target identification, the billing result needs to contain the target identification. The routing system returns the billing result to the corresponding service platform and comprises the following steps: and the routing system matches the target identification in the invoicing result in the corresponding relationship between the pre-stored target identification and the service platform, determines the target service platform and returns the invoicing result to the target service platform.
In the method, the corresponding relation between the target identification and the billing platform can be that one target identification corresponds to a plurality of billing platform target billing platforms, so that a plurality of target billing platforms matched with one target identification are possible, and the routing system can select the corresponding target billing platform from the target billing platforms according to the current operating conditions of the billing platforms, thereby realizing the reasonable configuration of billing platform resources. The specific method for acquiring the current running state of each target billing platform may be various, for example: each target billing platform sends the current state information to a routing system, and the routing system judges the current state information; or the routing system automatically records the number of the invoicing requests sent to each target invoicing platform and sends the invoicing requests to be sent to the target invoicing platform which obtains the least invoicing requests. The invention does not limit the method for acquiring the current running state information of the target billing platform.
In order to further implement decoupling between service platform modules, the service platform in the embodiment of the present invention includes: the system comprises a data receiving module and an invoicing data generating module.
On the basis of the module setting, the service platform processes the service data acquired in real time, and the forming of the invoicing data comprises the following steps: the data receiving module acquires the service data according to the service structure, performs basic processing on the service data, and transmits the processed service data to the billing data generation module by using the message middleware in a message alignment mode. And the billing data generation module receives the service data and then performs service processing to generate billing data.
Through the module configuration of the service platform, the data receiving module is mainly used for acquiring the business data and performing basic processing on the business data, and the billing data generating module is mainly used for performing business processing on the business data on the basis of the basic processing to generate billing data, so that the functions of the modules are separated to reduce the coupling between the modules. The basic processing of the service data mainly comprises primary cleaning, duplicate removal and compensation processing of the service data, and the service processing of the service data mainly refers to that the billing information in the service data is extracted for billing service, and the cleaning, duplicate removal and compensation processing are carried out.
In order to further realize the decoupling between the billing platform modules, the billing platform in the embodiment of the invention further comprises at least two service modules which are arranged aiming at different service types.
Based on the arrangement of the billing platform service module, the method disclosed by the embodiment of the invention further comprises the following steps:
the routing system determines the service type according to the information in the invoice request;
the routing system matches the service type in the corresponding relation between the pre-stored service type and the service module to determine a target service module;
and the routing system pushes the billing request to a target service module of the target billing platform.
For example: the two service modules may be: the system comprises a synchronous billing service module and an asynchronous billing service module. The synchronous billing service module is used for immediately billing after sending the billing data to obtain billing results and is mainly used for data compensation. The asynchronous billing service module sends the billing data in batch and then respectively performs billing to obtain billing results, so that the billing results are not sent out at one time but are sent out asynchronously, and the risk of data transmission congestion is reduced.
Therefore, in order to adapt to the module setting of the billing platform, in the embodiment of the present invention, the billing request further includes: the type of service. Then, the routing system determining the service type from the information in the invoice request includes:
if the billing data in the invoice request is compensation data, the routing system determines that the service type is synchronous billing service, and if the billing data in the invoice request is non-compensation data, the routing system determines that the service type is asynchronous billing service;
the routing system matches the service type in the corresponding relation between the pre-stored service type and the service module, and the step of determining the target service module comprises the following steps:
if the service type is synchronous opening service, the routing system determines that the target service module is a synchronous opening service module, and if the service type is asynchronous opening service, the routing system determines that the target service module is an asynchronous opening service module.
In addition, in order to ensure stability of data storage and transmission, a multidimensional storage mode is adopted for data storage of each platform in the embodiment of the invention.
The service platform, the billing platform and the routing system store the received and generated data in respective relational databases and cache data; the service platform, the billing platform and the routing system also save the data in the respective relational databases into the Hive database in an incremental extraction mode to be used as a big data platform for data analysis. And the billing platform stores the electronic file corresponding to the billing result into the distributed file storage system.
Through the multi-dimensional data storage, different data can be stored and managed respectively, and different data application requirements are met. The search engine described above preferably uses an elastic search. The routing system can store the data in the cache while storing the data in the relational database, so that the database pressure under the high concurrency condition is reduced, and the concurrency capability of service use is improved.
As shown in fig. 3, based on the above electronic ticket issuing method, an embodiment of the present invention further provides an electronic ticket issuing system, including: at least one routing system, two service platforms and two billing platforms.
The service platform corresponds to the service, and is used for receiving corresponding service data in real time, processing the service data, forming data information for invoicing as invoicing data, and sending an invoicing request containing the invoicing data to the routing system. Specifically, the service platform includes: the system comprises a data receiving module and an invoicing data generating module. And the data receiving module is used for acquiring the service data according to the service structure, performing basic processing on the service data and transmitting the processed service data to the billing data generating module by using the message middleware in a message alignment mode. And the billing data generation module is used for processing the business data after receiving the business data to generate billing data.
And the billing platform is used for billing after receiving the billing request, generating a billing result and returning the billing result to the routing system. The billing platform at least comprises a synchronous billing service module and an asynchronous billing service module. The synchronous opening service module is used for providing a service of synchronously opening and returning bills, and the asynchronous opening service module is used for providing a service of asynchronously opening and returning bills.
And the routing system is used for matching the target identifier in the billing data in the corresponding relation between the pre-stored target identifier and the billing platform after receiving the billing request, determining the target billing platform, pushing the billing request to the target billing platform, and returning the billing result received from the target billing platform to the corresponding service platform.
In addition, the routing system in the system can also determine a target service platform according to the target identifier, and specifically comprises the following steps: the billing result comprises a target identifier, and the routing system is specifically configured to match the target identifier in the billing result with a corresponding relationship between a pre-stored target identifier and a service platform, determine the target service platform, and return the billing result to the target service platform.
In order to further realize the determination of the target service module in the invoicing platform, the routing system in the embodiment of the invention is also used for determining the service type according to the information in the invoice request; matching the service type in the corresponding relation between the pre-stored service type and the service module to determine a target service module; and pushing the billing request to a target service module of the target billing platform. Specifically, when the service type is determined, if the invoicing data in the invoice request is compensation data, the routing system determines that the service type is synchronous invoicing service, and if the invoicing data in the invoice request is non-compensation data, the routing system determines that the service type is asynchronous invoicing service; if the service type is the synchronous opening service, the routing system determines that the target service module is the synchronous opening service module; and if the service type is asynchronous opening service, the routing system determines that the target service module is an asynchronous service module.
As shown in fig. 4, in order to store data such as service data, configuration relationship information, billing result, etc. in the system in a multi-dimensional manner, the electronic ticket issuing system further includes:
the relational database storage module is used for storing data received and generated by the service platform, the billing platform and the routing system;
the Hive database is used for storing and storing data in the respective relational databases in a full amount by the service platform, the billing platform and the routing system in an incremental extraction mode;
and the distributed message system is used for storing the invoicing result in a distributed manner and pushing the invoicing result to the search engine database in real time through the message middleware.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
1. the method disclosed by the invention realizes the issuing of the electronic bill through the interaction of the service platform, the routing system and the billing platform, wherein the billing platform can execute a main billing task and can be externally connected with other information systems to obtain billing regulations and information without completely depending on the billing of a third-party billing platform;
2. the service platform and the billing platform are at least two, so that the problem of difficult platform expansion in the service expansion process is solved, and the issue of electronic bills in different service ranges can be solved through configuration and platform expansion;
3. in the invention, the data of the service platform, the routing system and the billing platform are stored in a multidimensional way, so that the data transmission congestion can be prevented, and the service platform can be butted with different functional systems to provide diversified services;
4. the invention realizes the transmission of data information between different service platforms and billing platforms through the allocation of the routing system, and ensures the accuracy and timeliness of billing.
Example 2
The embodiment of the invention provides an electronic bill issuing method based on the embodiment 1, which is applied to a routing system and comprises the following steps:
receiving an invoicing request which is sent by a service platform and contains invoicing data, wherein the invoicing data is data information for invoicing which is formed by the service platform after being sorted according to business data;
matching the target identification in the billing data in the corresponding relation between the pre-stored target identification and the billing platform, determining the target billing platform, and pushing a billing request to the target billing platform;
and receiving the billing result sent by the target billing platform, and returning the billing result to the corresponding service platform.
In the method, the invoicing result is returned to the corresponding service platform, and the invoicing result can be correspondingly returned according to the serial number of the service platform sending the invoicing request, and can also be returned according to the corresponding relation between the target identifier and the service platform. When the latter is the case, the above method comprises: and matching the target identification in the invoicing result in the corresponding relation between the pre-stored target identification and the service platform, determining the target service platform, and returning the invoicing result to the target service platform.
In order to provide various invoicing services in the method, the invoicing platform may comprise a plurality of service modules. The above method therefore further comprises: determining the service type according to the information in the invoice request; matching the service type in the corresponding relation between the pre-stored service type and the service module to determine a target service module; and pushing the billing request to a target service module of the target billing platform. Specifically, the billing platform at least comprises: a synchronous opening service module and an asynchronous opening service module. The method for determining the target service module specifically includes: if the invoicing data in the invoice request is compensation data, determining the service type as synchronous invoicing service; if the invoicing data in the invoice request is non-compensation data, determining that the service type is asynchronous invoicing service; if the service type is the synchronous opening service, determining that the target service module is the synchronous opening service module; and if the service type is the asynchronous opening service, determining that the target service module is the asynchronous opening service module.
In the method, the corresponding relation between the target identifier and the billing platform, the corresponding relation between the target identifier and the service platform, the corresponding relation between the service type and the service module and other configuration relation information are stored in a relational database and a cache database, and the total data in the relational database is stored in a Hive database in an incremental extraction mode.
In addition, an embodiment of the present invention further provides a routing system, including:
and the routing service module is used for receiving an invoicing request which is sent by the service platform and contains invoicing data, and the invoicing data is formed by the service platform according to the data information for invoicing which is formed after the service platform is arranged according to the business data.
The route configuration module is used for determining a target billing platform according to the corresponding relation between the pre-stored billing platform and the target identification in the billing data, pushing the billing request to the target billing platform, receiving the billing result sent by the target billing platform and returning the billing result to the corresponding service platform;
the system is also used for matching the target identification in the invoicing result in the corresponding relation between the pre-stored target identification and the service platform, determining the target service platform and returning the invoicing result to the target service platform;
the invoice management system is also used for determining the service type according to the information in the invoice request; matching the service type in the corresponding relation between the pre-stored service type and the service module to determine a target service module; and pushing the billing request to a target service module of the target billing platform. Specifically, if the invoicing data in the invoice request is compensation data, the routing system determines that the service type is synchronous invoicing service; if the invoicing data in the invoice request is non-compensation data, the routing system determines that the service type is asynchronous invoicing service; if the service type is the synchronous opening service, the routing system determines that the target service module is the synchronous opening service module; if the service type is asynchronous opening service, the routing system determines that the target service module is an asynchronous opening service module.
The routing system stores the configuration relationship information in a multi-dimensional manner, and the routing service module and the routing configuration module are favorable for system decoupling and further expansion, so that the stable transmission of the data of the whole billing system is realized.
Example 3
The embodiment of the invention provides an electronic bill issuing method based on the embodiment 1, which is applied to a service platform and comprises the following steps:
processing the service data acquired in real time to form data information for making out an invoice as invoice data;
storing the acquired service data and the generated billing data in a relational database and a cache database, wherein the cache database adopts Redis;
the data in the relational database is totally stored in the Hive database in an incremental extraction mode;
sending an invoicing request containing invoicing data to a routing system;
and receiving the billing result returned by the routing system.
The generation of the invoicing data specifically comprises the following steps:
and acquiring service data according to the service structure, performing basic processing on the service data, dividing the processed service data into message queue data, and sequentially performing service processing to generate billing data.
In addition, an embodiment of the present invention further provides a service system, including: the system comprises a data receiving module and an invoicing data generating module.
The data receiving module is used for acquiring the service data according to the service structure, performing basic processing on the service data and transmitting the processed service data to the billing data generating module by using the message middleware in a message alignment mode;
and the billing data generation module is used for processing the business after receiving the business data to generate billing data.
In the system, the data receiving module and the billing data generating module operate independently, and message transmission is performed through the message middleware, so that transmission congestion under the condition of high concurrency is prevented.
Example 4
The embodiment of the invention provides an electronic bill making method based on embodiment 1, which is applied to a making platform and comprises the following steps:
receiving an invoicing request containing invoicing data, and generating an invoicing result according to the invoicing request;
returning the billing result to the routing system, wherein the billing result is returned according to the service type in the billing request;
storing the generated billing result data in a relational database and a cache database, wherein the cache database adopts Redis;
the data in the relational database is totally stored in the Hive database in an incremental extraction mode;
asynchronously and synchronously sending the invoicing result to a distributed message system, and pushing the invoicing result to a search engine database in real time through a message middleware;
and storing the electronic file corresponding to the invoicing result into a distributed file storage system.
In the electronic bill issuing method disclosed by the embodiment of the invention, the issuing platform can be butted with other information systems to obtain an issuing rule. The invoicing platform respectively stores invoicing results in a relational database, a cache database, a Hive database and a search engine database, and stores electronic files with invoicing, such as PDF (portable document format) bills, in a distributed file system, wherein the relational database is used as basic storage, the cache database can prevent data congestion under the high concurrency condition, the Hive database is used for large data platform calculation, and the search engine database is used for providing retrieval query service. Therefore, the method disclosed by the embodiment can enable the billing platform to interface with a plurality of systems for application through multidimensional storage.
Based on the foregoing method, this embodiment further provides an invoicing platform, including:
the data transmission module is used for receiving an invoicing request which is pushed by the routing system and contains invoicing data, and returning an invoicing result to the routing system;
the billing module is used for billing according to the billing request and generating a billing result, and specifically comprises: the synchronous invoicing service module is used for synchronously returning invoicing results; and the asynchronous invoicing service module is used for asynchronously returning the invoicing result. The synchronous opening service module is mainly used for data compensation.
The billing platform can realize the respective processing of different billing requests, reduce the load of each service module and ensure the normal operation of the whole system.
All the above optional technical solutions may be combined arbitrarily to form optional embodiments of the present invention, and are not described in detail herein.
The present invention is not limited to the above preferred embodiments, and any modifications, equivalent replacements, improvements, etc. within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. An electronic bill issuing method, comprising:
the service platform processes the service data acquired in real time to form data information for making an invoice as invoice making data;
the service platform sends an invoicing request containing invoicing data to a routing system;
after receiving the invoicing request, the routing system matches a target identifier in the invoicing data in a corresponding relation between a pre-stored target identifier and an invoicing platform, determines a target invoicing platform and pushes the invoicing request to the target invoicing platform;
the target billing platform performs billing after receiving the billing request, generates a billing result and returns the billing result to the routing system;
the routing system returns the billing result to the corresponding service platform;
the corresponding relation between the target identification and the billing platform is as follows:
one target identification corresponds to a plurality of billing platforms;
wherein, the target billing platform comprises: the routing system selects a target billing platform from the corresponding billing platforms according to the current running condition of the billing platform;
the billing platform comprises at least two service modules, and the service modules comprise a synchronous billing service module and an asynchronous billing service module;
the electronic ticket issuing method further comprises the following steps:
if the billing data in the billing request is compensation data, the routing system determines that the service type is synchronous billing service; if the billing data in the billing request is uncompensated data, the routing system determines that the service type is asynchronous billing service;
if the service type is the synchronous opening service, the routing system determines that the target service module is the synchronous opening service module; and if the service type is asynchronous opening service, the routing system determines that the target service module is an asynchronous opening service module.
2. The electronic ticket issuing method according to claim 1, wherein the issuing result includes the object identifier;
the routing system returning the billing result to the corresponding service platform comprises the following steps:
and the routing system matches the target identification in the invoicing result with the corresponding relation between the pre-stored target identification and the service platform, determines a target service platform and returns the invoicing result to the target service platform.
3. The electronic ticket issuing method according to claim 1, wherein said service platform comprises: the system comprises a data receiving module and an invoicing data generating module;
the service platform processes the service data acquired in real time, and the forming of data information for invoicing as invoicing data comprises the following steps: the data receiving module acquires the service data according to a service structure, performs basic processing on the service data, and transmits the processed service data to the billing data generating module by using a message middleware in a message alignment mode;
and the billing data generation module receives the service data and then performs service processing to generate the billing data.
4. The electronic ticket issuing method according to any one of claims 1 to 3, wherein said method further comprises:
the service platform, the billing platform and the routing system store the received and generated data in respective relational databases;
the service platform, the billing platform and the routing system store the data in the relational databases into the Hive database in a full-scale manner in an incremental extraction manner;
the billing platform asynchronously and synchronously sends the billing result to a distributed message system and pushes the billing result to a search engine database in real time through message middleware;
and the billing platform stores the electronic file corresponding to the billing result into a distributed file storage system.
5. An electronic bill issuing method, comprising:
the routing system receives an invoicing request which is sent by a service platform and contains invoicing data, wherein the invoicing data is data information for invoicing formed by the service platform after being sorted according to business data;
matching the target identification in the billing data in a corresponding relation between a pre-stored target identification and a billing platform, determining the target billing platform, and pushing the billing request to the target billing platform;
receiving an invoicing result sent by the target invoicing platform, and returning the invoicing result to the corresponding service platform;
the corresponding relation between the target identification and the billing platform is as follows:
one target identification corresponds to a plurality of billing platforms;
wherein, the target billing platform comprises: the routing system selects a target billing platform from the corresponding billing platforms according to the current running condition of the billing platform;
the billing platform comprises at least two service modules, and the service modules comprise a synchronous billing service module and an asynchronous billing service module;
if the billing data in the billing request is compensation data, the routing system determines that the service type is synchronous billing service; if the billing data in the billing request is uncompensated data, the routing system determines that the service type is asynchronous billing service;
if the service type is the synchronous opening service, the routing system determines that a target service module is a synchronous opening service module; and if the service type is asynchronous opening service, the routing system determines that the target service module is an asynchronous opening service module.
6. An electronic ticket issuing system, comprising:
the system comprises a routing system, at least two service platforms and at least two billing platforms;
the service platform corresponds to the service, and is used for receiving corresponding service data in real time, processing the service data, forming data information for invoicing as invoicing data, and sending an invoicing request containing the invoicing data to the routing system;
the routing system is used for matching the target identification in the billing data in the corresponding relation between the pre-stored target identification and the billing platform after receiving the billing request, determining the target billing platform, pushing the billing request to the target billing platform and returning the billing result received from the target billing platform to the corresponding service platform;
the target billing platform is used for billing after receiving the billing request, generating a billing result and returning the billing result to the routing system;
the corresponding relation between the target identification and the billing platform is as follows:
one target identification corresponds to a plurality of billing platforms;
wherein, the target billing platform comprises: the routing system selects a target billing platform from the corresponding billing platforms according to the current running condition of the billing platform;
the billing platform comprises at least two service modules, and the service modules comprise a synchronous billing service module and an asynchronous billing service module;
if the billing data in the billing request is compensation data, the routing system determines that the service type is synchronous billing service; if the billing data in the billing request is uncompensated data, the routing system determines that the service type is asynchronous billing service;
if the service type is the synchronous opening service, the routing system determines that the target service module is the synchronous opening service module; and if the service type is asynchronous opening service, the routing system determines that the target service module is an asynchronous opening service module.
7. The electronic ticketing system of claim 6, wherein said target identification is included in said ticketing results;
the routing system is further configured to match the target identifier in the billing result with a pre-stored corresponding relationship between the target identifier and the service platform, determine a target service platform, and return the billing result to the target service platform.
8. A routing system, comprising:
the routing service module is used for receiving an invoicing request which is sent by a service platform and contains invoicing data, wherein the invoicing data is data information for invoicing which is formed by the service platform after being sorted according to business data;
the route configuration module is used for determining a target billing platform according to the corresponding relation between the pre-stored billing platform and the target identification in the billing data, pushing the billing request to the target billing platform, receiving a billing result sent by the target billing platform and returning the billing result to the corresponding service platform;
the corresponding relation between the billing platform and the target identification in the billing data is as follows:
one target identification corresponds to a plurality of billing platforms;
wherein, the target billing platform comprises: the routing system selects a target billing platform from the corresponding billing platforms according to the current running condition of the billing platform;
the billing platform comprises at least two service modules, and the service modules comprise a synchronous billing service module and an asynchronous billing service module;
if the billing data in the billing request is compensation data, the routing system determines that the service type is synchronous billing service; if the billing data in the billing request is non-compensation data, the routing system determines that the service type is asynchronous billing service;
if the service type is the synchronous opening service, the routing system determines that the target service module is the synchronous opening service module; and if the service type is asynchronous opening service, the routing system determines that the target service module is an asynchronous opening service module.
CN201910764819.8A 2019-08-19 2019-08-19 Electronic bill issuing method and system Active CN110689386B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910764819.8A CN110689386B (en) 2019-08-19 2019-08-19 Electronic bill issuing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910764819.8A CN110689386B (en) 2019-08-19 2019-08-19 Electronic bill issuing method and system

Publications (2)

Publication Number Publication Date
CN110689386A CN110689386A (en) 2020-01-14
CN110689386B true CN110689386B (en) 2022-10-11

Family

ID=69108389

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910764819.8A Active CN110689386B (en) 2019-08-19 2019-08-19 Electronic bill issuing method and system

Country Status (1)

Country Link
CN (1) CN110689386B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113034178A (en) * 2021-03-15 2021-06-25 深圳市麦谷科技有限公司 Multi-system integral calculation method and device, terminal equipment and storage medium
CN113610586B (en) * 2021-08-18 2024-01-23 国网数字科技控股有限公司 Invoice application data compensation method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102364921A (en) * 2011-11-21 2012-02-29 携程计算机技术(上海)有限公司 Realization method and equipment for enterprise service bus and corresponding platform
CN106874267A (en) * 2015-12-10 2017-06-20 航天信息股份有限公司 A kind of method that asynchronous implement invoice is uploaded in real time
CN107871252A (en) * 2016-12-30 2018-04-03 大象慧云信息技术有限公司 A kind of electronic bill management system and method
CN109754292A (en) * 2018-10-26 2019-05-14 西安艾润物联网技术服务有限责任公司 Stop self-service billing method, device and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003107145A2 (en) * 2002-06-18 2003-12-24 Mastercard International Incorporated System and method for integrated electronic invoice presentment and payment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102364921A (en) * 2011-11-21 2012-02-29 携程计算机技术(上海)有限公司 Realization method and equipment for enterprise service bus and corresponding platform
CN106874267A (en) * 2015-12-10 2017-06-20 航天信息股份有限公司 A kind of method that asynchronous implement invoice is uploaded in real time
CN107871252A (en) * 2016-12-30 2018-04-03 大象慧云信息技术有限公司 A kind of electronic bill management system and method
CN109754292A (en) * 2018-10-26 2019-05-14 西安艾润物联网技术服务有限责任公司 Stop self-service billing method, device and electronic equipment

Also Published As

Publication number Publication date
CN110689386A (en) 2020-01-14

Similar Documents

Publication Publication Date Title
CN111460023A (en) Service data processing method, device, equipment and storage medium based on elastic search
CN109299157B (en) Data export method and device for distributed big single table
CN109783512A (en) Data processing method, device, computer equipment and storage medium
CN110689386B (en) Electronic bill issuing method and system
CN110147470B (en) Cross-machine-room data comparison system and method
CN110162522A (en) A kind of distributed data search system and method
CN105763595A (en) Method of improving data processing efficiency and server
CN112328688B (en) Data storage method, device, computer equipment and storage medium
CN114398520A (en) Data retrieval method, system, device, electronic equipment and storage medium
US20070050231A1 (en) Item allocation method, system and program for workflow system
CN110737425A (en) billing platform system application program establishing method and device
CN115658753A (en) Method and device for inquiring electronic receipt and related equipment
CN112860680B (en) Data processing method and system, and data query method and system
CN115658750A (en) Service data processing method and device, electronic equipment and storage medium
CN111858657B (en) Method and equipment for accelerating data parallel query based on high-frequency data processing
CN101452486A (en) System data management method for [inscriptions on bones or tortoise shells and apparatus thereof
CN114896073A (en) Data allocation processing method, device and system
CN114090686A (en) Account-out acceleration method and device
CN114281819A (en) Data query method, device, equipment and storage medium
CN111343101A (en) Server current limiting method and device, electronic equipment and readable storage medium
CN105868197B (en) A kind of statistical method and statistic device of call bill data
CN117033392A (en) Transaction information processing method and device, electronic equipment and storage medium
CN114063931B (en) Data storage method based on big data
CN115599838B (en) Data processing method, device, equipment and storage medium based on artificial intelligence
CN116383294A (en) Data integration method, device, storage medium and computer equipment

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
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: No.1-1 Suning Avenue, Xuzhuang Software Park, Xuanwu District, Nanjing, Jiangsu Province, 210000

Patentee after: Jiangsu Suning cloud computing Co.,Ltd.

Address before: No.1-1 Suning Avenue, Xuzhuang Software Park, Xuanwu District, Nanjing, Jiangsu Province, 210000

Patentee before: Suning Cloud Computing Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240111

Address after: 210000, 1-5 story, Jinshan building, 8 Shanxi Road, Nanjing, Jiangsu.

Patentee after: SUNING.COM Co.,Ltd.

Address before: No.1-1 Suning Avenue, Xuzhuang Software Park, Xuanwu District, Nanjing, Jiangsu Province, 210000

Patentee before: Jiangsu Suning cloud computing Co.,Ltd.