CN105096172B - The generation of electronic invoice based on e-commerce platform and processing method and system - Google Patents

The generation of electronic invoice based on e-commerce platform and processing method and system Download PDF

Info

Publication number
CN105096172B
CN105096172B CN201510323398.7A CN201510323398A CN105096172B CN 105096172 B CN105096172 B CN 105096172B CN 201510323398 A CN201510323398 A CN 201510323398A CN 105096172 B CN105096172 B CN 105096172B
Authority
CN
China
Prior art keywords
invoice
electronic invoice
information
electronic
making out
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510323398.7A
Other languages
Chinese (zh)
Other versions
CN105096172A (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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke 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 Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201510323398.7A priority Critical patent/CN105096172B/en
Publication of CN105096172A publication Critical patent/CN105096172A/en
Application granted granted Critical
Publication of CN105096172B publication Critical patent/CN105096172B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of generations of electronic invoice based on e-commerce platform and processing method and system.The described method includes: receiving the information of making out an invoice pushed by online trade platform according to preset rules;It is made out an invoice order according to the acquisition of information of making out an invoice, the commodity tax rate is obtained according to merchandise news included by the order of making out an invoice, make out an invoice order and the commodity tax rate is combined into order information of making out an invoice and is saved in database for acquired;When detecting that generating invoice event triggers, the database is accessed by the way of parallel query, to obtain order information of making out an invoice;Obtain the electronic invoice template to match with the order information of making out an invoice and electronic invoice core information;Electronic invoice is generated according to the order information of making out an invoice, electronic invoice template and electronic invoice core information, the electronic invoice is digitally signed by digital certificate, efficiency of making out an invoice is improved, reduces the consumption of hardware and software to greatest extent.

Description

The generation of electronic invoice based on e-commerce platform and processing method and system
Technical field
The present invention relates to technical field of electronic commerce, are based especially on generation and the place of the electronic invoice of e-commerce platform Manage method and system.
Background technique
The fast development of present e-commerce, so that online shopping becomes a kind of popular, form of easily doing shopping, so that line The specific gravity that upper transaction accounts for entire retail trade is increasing.But due to must comply with traditional paper invoice management process, cause to send out Ticket relevant cost steeply rises, and invoice related service treatment effeciency is low, is unable to satisfy the spy that e-commerce is with no paper, rapid Point has become one of the bottleneck problem for restricting e-commerce fast development.In addition to this, traditional paper invoice and its management stream Journey makes out an invoice there is false invoice, or not writes out falsely invoice questions.
To solve the above problems, some mechanisms propose the scheme using electronic invoice substitution paper invoice.But it is existing Electronic invoice in technology generates system and needs when issuing electronic invoice, sends to obtain to online trade platform and opens electronic invoice Notice, order database is inquired, information of making out an invoice required for acquisition simultaneously returns after receiving the notice in online trade platform It is back to electronic invoice and generates system.The electronic invoice generates system and acquired information of making out an invoice is inserted corresponding electronics hair again Electronic invoice is generated in ticket template, the electronic invoice is digitally signed by digital certificate.Due to obtaining information of making out an invoice Need to search in order database, for electric business enterprise, the data volume that order database is stored be it is very huge, Real-time query order database easily causes order database increased pressure, so as to cause efficiency reduction of making out an invoice, is unable to satisfy E-commerce venture largely issues performance requirement and the timeliness requirement of electronic invoice.
Summary of the invention
The purpose of the present invention is to provide a kind of generation of electronic invoice based on e-commerce platform and processing method and System meets performance requirement and timeliness requirement that e-commerce platform high-volume issues electronic invoice.
In a first aspect, the present invention provides the generation and processing method of a kind of electronic invoice based on e-commerce platform, packet It includes:
Receive the information of making out an invoice pushed by online trade platform according to preset rules;
It is made out an invoice order according to the acquisition of information of making out an invoice, commodity is obtained according to merchandise news included by the order of making out an invoice The tax rate makes out an invoice order and the commodity tax rate is combined into order information of making out an invoice and is saved in database for acquired;
When detecting that generating invoice event triggers, the database is accessed by the way of parallel query, is opened with obtaining Ticket order information;
Obtain the electronic invoice template to match with the order information of making out an invoice and electronic invoice core information;
Electronic invoice is generated according to the order information of making out an invoice, electronic invoice template and electronic invoice core information, is passed through Digital certificate is digitally signed the electronic invoice.
Second aspect, the present invention provide the generation and processing system of a kind of electronic invoice based on e-commerce platform, packet It includes:
Order reception unit, for receiving the information of making out an invoice pushed by online trade platform according to preset rules;
Information acquisition unit makes out an invoice order for acquisition of information of making out an invoice according to, is made out an invoice included by order according to described Merchandise news obtain the commodity tax rate, make out an invoice order and the commodity tax rate is combined into order information of making out an invoice and is saved in number for acquired According to library;
Database lookup unit, for being accessed by the way of parallel query when detecting that generating invoice event triggers The database, to obtain order information of making out an invoice;
Template acquiring unit, for obtaining the electronic invoice template to match with the order information of making out an invoice and electronic invoice Core information;
Invoice generation unit, for order information of making out an invoice according to, electronic invoice template and electronic invoice core information Electronic invoice is generated, the electronic invoice is digitally signed by digital certificate.
The generation of electronic invoice provided in an embodiment of the present invention based on e-commerce platform and processing method and system are led to It crosses and receives the information of making out an invoice that online trade platform is pushed according to preset rules;It is made out an invoice order information according to the acquisition of information of making out an invoice With the commodity tax rate, and table technology is divided to make out an invoice order information and the commodity tax rate is stored in server buffer for described using a point library In database;The each database of parallel query obtains make out an invoice order information and the commodity tax rate, obtains and the order of making out an invoice The electronic invoice template and electronic invoice core information that information matches, according to the order information of making out an invoice, electronic invoice template Electronic invoice is generated with electronic invoice core information, the electronic invoice is digitally signed by digital certificate, is improved It makes out an invoice efficiency, reduces the consumption of hardware and software to greatest extent, meet e-commerce platform high-volume and issue electronics hair Performance requirement and the timeliness requirement of ticket.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, institute in being described below to the embodiment of the present invention Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention Example, for those of ordinary skill in the art, without creative efforts, can also implement according to the present invention The content of example and these attached drawings obtain other attached drawings.
Fig. 1 is the generation of the electronic invoice based on e-commerce platform in the embodiment of the present invention and the network of processing system Phylogenetic relationship schematic diagram;
Fig. 2 is the generation of the electronic invoice based on e-commerce platform in the embodiment of the present invention one and the stream of processing method Cheng Tu;
Fig. 3 is the generation of the electronic invoice based on e-commerce platform in the embodiment of the present invention two and the stream of processing method Cheng Tu;
Fig. 4 a is the realization stream of the generation method of the electronic invoice based on e-commerce platform in the embodiment of the present invention three Cheng Tu;
Fig. 4 b is the realization stream of the processing method of the electronic invoice based on e-commerce platform in the embodiment of the present invention three Cheng Tu;
Fig. 5 is the generation of the electronic invoice based on e-commerce platform in the embodiment of the present invention four and the knot of processing system Structure schematic diagram.
Specific embodiment
To keep the technical problems solved, the adopted technical scheme and the technical effect achieved by the invention clearer, below It will the technical scheme of the embodiment of the invention will be described in further detail in conjunction with attached drawing, it is clear that described embodiment is only It is a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those skilled in the art exist Every other embodiment obtained under the premise of creative work is not made, shall fall within the protection scope of the present invention.
To further illustrate the technical scheme of the present invention below with reference to the accompanying drawings and specific embodiments.
Embodiment one
Fig. 2 is the generation of the electronic invoice based on e-commerce platform in the embodiment of the present invention one and the stream of processing method Cheng Tu.This method can realize that Fig. 1 is the present invention by the generation of the electronic invoice based on e-commerce platform and processing system The network system relation schematic diagram that embodiment is applicable in, which is related to online trade platform, electronic invoice generates system, commodity Middleware, electronic invoice information management system and digital signature system.The generation and processing system are configured in arbitrary access Memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory) and portable In the computer-readable mediums such as formula compact disc read-only memory (CDROM).
Referring to shown in Fig. 2, the generation and processing method of the electronic invoice based on e-commerce platform, mainly by electronics Invoice generates system and electronic invoice information management system to execute, and specifically comprises the following steps:
The information of making out an invoice that S101, reception are pushed by online trade platform according to preset rules.
The order that e-commerce platform generates daily be it is very huge, cause the data volume of order information very huge. If it is also relatively high for searching time cost spent by the information of making out an invoice of order to be made out an invoice in so huge data.For The operation for avoiding information of making out an invoice that order to be made out an invoice is searched from order database, makes out an invoice required previously according to electronic invoice Data be arranged screening conditions, from order information obtain meet condition make out an invoice information and be pushed to electronic invoice generate and processing System.
S102, acquisition of information of making out an invoice according to are made out an invoice order, are obtained according to merchandise news included by the order of making out an invoice The commodity tax rate is taken, makes out an invoice order and the commodity tax rate is combined into order information of making out an invoice and is saved in database for acquired.
According to preset business rule of making out an invoice, filters out meet out in the information of making out an invoice of transaction platform push from network The order of making out an invoice of ticket condition obtains data of making out an invoice from the order of making out an invoice.Wherein, the preset business rule of making out an invoice can be with It is that whether user selects to issue electronic invoice, user buys whether commodity are whether self-operation commodity or order merge with other orders Payment etc. can be identified for that the rule for needing to issue electronic invoice.Number of making out an invoice is obtained from the order of making out an invoice for need to issue electronic invoice According to the data of making out an invoice include:
Invoice main information: order number, invoice type, invoice status, invoice come back, and content of making out an invoice, order total amount is ordered Single deadline, mechanism, subscriber mailbox, user account, user mobile phone number etc..
Invoice managing detailed catalogue: order number, goods number, product name, commodity amount, cargo price, commodity total amount are single Position, the tax rate, commodity code etc..
After data are made out an invoice in acquisition, the commodity tax rate can be obtained with merchandise news.It is exemplary, in online trade platform and electricity Sub- invoice is generated designs commodity middleware between processing system, for safeguarding merchandise news and the tax rate corresponding with the commodity Information etc., and Outside Access interface is provided, it can be convenient user query merchandise news and the commodity tax rate.Acquired making out an invoice is ordered The single and corresponding commodity tax rate, which is combined into, makes out an invoice order information and is saved in database.It is exemplary, it makes out an invoice and orders described in acquisition Order number in list, according to the order number obtain the order included by product name, according to the product name determine The commodity tax rate.By the identified commodity tax rate and the order combination of making out an invoice of the order number at order information of making out an invoice.Using dividing library Divide table technology that the order information of making out an invoice is stored in the database in the server buffer on the generation and processing system backstage It is interior, it realizes the distributed deployment of data, improves the data-carrying capacity and data-handling capacity of database, reduce data processing Expense.
S103, detect generate invoice event triggering when, access the database, by the way of parallel query to obtain Take away ticket order information.
Electronic invoice distributed timing task is opened in real time, and triggering is generated invoice event, visited by the way of parallel query It asks each database, concurrently obtains the order information of making out an invoice for not issuing electronic invoice, the response of query processing can be shortened Time.
S104, the electronic invoice template to match with the order information of making out an invoice and electronic invoice core information are obtained.
The format of the invoice of the tax authority in different areas may be different, therefore, before obtaining electronic invoice template, Regional information belonging to the mechanism of the electronic invoice is issued in the order information determination that needs first to make out an invoice according to, and according to described Regional information determines the format of the electronic invoice template.The electricity of the different regions tax authority is stored in electronic invoice template library Sub- invoice template, the electronic invoice template library is stored in server, and issues situation according to electronic invoice, will use frequency The higher electronic invoice template of rate is stored in server buffer.It, can be first from server when searching electronic invoice template The electronic invoice template to match with the format is searched in caching, if not inquiring in the server buffer and the version The electronic invoice template that formula matches accesses the electronic invoice template library then to obtain the electronics to match with the format and send out Ticket template shortens the time needed for searching electronic invoice template.It is exemplary, according to mechanism number, obtain belonging to corresponding mechanism Administrative region obtains electronics corresponding with the format according to the format of the electronic invoice of the tax authority in the administrative region and sends out The template of HTML (Hypertext Markup Language, hypertext markup language) format of ticket.
With tax system establish communicate to connect, and from the tax system obtain issue electronic invoice needed for information, Acquired information is decrypted using decipherment algorithm, obtains invoice codes, invoice number, two dimensional code, security code etc. Invoice core information.
S105, order information of making out an invoice according to, electronic invoice template and electronic invoice core information generate electronic invoice, The electronic invoice is digitally signed by digital certificate.
By acquired electronic invoice mould acquired in order information and the corresponding filling of electronic invoice core information of making out an invoice Electronic invoice is generated in plate.When the template that the electronic invoice uses is html format, pdf document skill is turned by html file Art changes into the electronic invoice file for the html format issued the electronic invoice file of PDF format, in order to utilize number card Book signs to the electronic invoice of the PDF format.
The present embodiment provides the methods of the generation of the electronic invoice based on e-commerce platform and processing, online by receiving The information of making out an invoice that transaction platform is pushed according to preset rules;It is made out an invoice order and the commodity tax rate according to the acquisition of information of making out an invoice, and Table technology is divided to make out an invoice order and order information of making out an invoice that the commodity tax rate is combined into is stored in server buffer for described using point library In database in;The each database of parallel query obtains order information of making out an invoice, acquisition and the order information phase of making out an invoice Matched electronic invoice template and electronic invoice core information, according to the order information of making out an invoice, electronic invoice template and electronics Invoice core information generates electronic invoice, is digitally signed by digital certificate to the electronic invoice, improves effect of making out an invoice Rate reduces the consumption of hardware and software to greatest extent, meets the property that e-commerce platform high-volume issues electronic invoice It can require and timeliness requires.
Preferably, after being digitally signed by digital certificate to the electronic invoice, further includes: by described Electronic invoice is digitally signed the storage event for triggering the electronic invoice, the electronic invoice after generating digital signature Byte stream;Byte stream generated is saved in cloud storage system, the position stored is deposited in the form of the link encrypted It stores up in the database.The benefit designed in this way be so that electronic invoice can prevent invoice from losing with persistence, and it is square Just user inquires or downloads at any time, and the situation of making out an invoice of statistics electronic invoice.
Embodiment two
Fig. 3 is the generation of the electronic invoice based on e-commerce platform in the embodiment of the present invention two and the stream of processing method Cheng Tu.This method is on the basis of the technical solution of embodiment one, further, is receiving by online trade platform according to default rule After the information of making out an invoice then pushed, increase following technical characteristic:
When detecting processing electronic invoice request, triggering processing electronic invoice event verifies the processing electronic invoice Whether request is legitimate request;
When processing electronic invoice request is legitimate request, responds the processing electronic invoice and request and return and institute It states processing electronic invoice and requests corresponding processing result, wherein the processing electronic invoice request includes that inquiry electronic invoice is asked Summation statistics electronic invoice request.
It is shown in Figure 3, the generation and processing method of the electronic invoice based on e-commerce platform, including walk as follows It is rapid:
The information of making out an invoice that S201, reception are pushed by online trade platform according to preset rules, generates and saves electronic invoice.
After receiving the information of making out an invoice by online trade platform push, it can be opened by acquisition of information of making out an invoice described in screening Ticket order, then the commodity tax rate is obtained by the merchandise news that the order of making out an invoice includes.Then, by it is described make out an invoice order with it is described The combination of the commodity tax rate constitutes order information of making out an invoice, and the order information of making out an invoice is stored in database.Generating invoice event When triggering, accesses the database and obtain order information of making out an invoice.It obtains corresponding with the mechanism number that the order information of making out an invoice includes Electronic invoice html format template.It communicates with tax system foundation, will be connect from the tax system using decryption technology The information of receipts is decrypted, and obtains electronic invoice core information.According to make out an invoice order information and electronic invoice core information in electricity Above- mentioned information are inserted the electronic invoice template and obtain electronic invoice, and utilize digital certificate by the position on sub- invoice template The electronic invoice is digitally signed.It is deposited by being digitally signed the triggering electronic invoice to the electronic invoice Storage event, the byte stream of the electronic invoice after generating digital signature;Byte stream generated is saved in cloud storage system In, the position stored is stored in the form of the link encrypted into the database.
S202, judge whether to detect processing electronic invoice request, if so, S203 is executed, if it is not, then executing S204.
Inquiry external interface is to obtain processing electronic invoice request.Wherein, the request of processing electronic invoice includes inquiry electronics Invoice request and statistics electronic invoice request.Such as: page interrogation mode is provided for the generation of user query electronic invoice Track.When user inputs order number, the order number is obtained by external interface, generation detects processing electronic invoice request Notice.When detecting processing electronic invoice request, S203 is executed;When processing electronic invoice request is not detected, execute S204。
Whether S203, the verifying processing electronic invoice request are legitimate request, if so, S206 is executed, if otherwise holding Row S207.
According to it is described detect processing electronic invoice request notice, obtain institute it is received processing electronic invoice request tool Body information.The specifying information includes user's request content and client ip address etc..For example, receiving the processing electricity of user Sub- invoice request, and client ip address is extracted from processing electronic invoice request, in the IP address and database When the IP address of middle user preset is consistent, then illustrate that the user has permission the operation for carrying out processing electronic invoice, it is corresponding to handle The request of electronic invoice is legitimate request;Otherwise, if the IP address is not consistent with the IP address of user preset in database, Illustrate that user's lack of competence carries out the operation of processing electronic invoice, the corresponding request for handling electronic invoice is illegal request.In When the processing electronic invoice request is legitimate request, S206 is executed;When processing electronic invoice request is illegal request, Execute S207.
S204, judge whether to update electronic invoice template, if so, S205 is executed, if it is not, then executing S201.
Electronic invoice template be not it is unalterable, the provincial tax authority change electronic invoice pattern when, generate more New notice, pushes to the generation and management system of the electronic invoice based on e-commerce platform, make the electronic invoice template into Row updates.When receiving the update notification, S205 is executed;If not receiving the update notification, S201 is executed.
S205, preferential update electronic invoice template, and suspend the operation for obtaining electronic invoice template.
When detecting electronic invoice template renewal, the thread for accessing the electronic invoice template is made using synchronous lock technology It is waited for, until completing to update operation.Wherein, described to update operation including described in successively update server buffer The electronic invoice template in electronic invoice template and electronic invoice template library.After completing to update operation, release lock makes to visit The process restarting of the electronic invoice template is asked, to obtain updated electronic invoice template.
S206, the response processing electronic invoice request and return to processing knot corresponding with the processing electronic invoice request Fruit.
Based on the received processing electronic invoice request, inquire the electronic invoice based on e-commerce platform generation and Processing system, to return to corresponding processing result according to the type of the processing electronic invoice request.
For example, obtaining the inquiry of user's input if processing electronic invoice request is inquiry electronic invoice request Parameter (can be order number), inquires the system according to the query argument, is being generated with obtaining electronic invoice to be checked Position described in track.If detecting that the electronic invoice has been in completion status of making out an invoice, display, which is made out an invoice, completes shape State, while showing the download address of the electronic invoice to be checked.
If processing electronic invoice request is statistics electronic invoice request, the parameter for obtaining user's input (including is made out an invoice Mechanism, user account and state of making out an invoice etc.), according to database described in the parameter query, to count opening for the electronic invoice Ticket situation, and a variety of file formats are provided and select file format derived from statistical result for user, so that electronic invoice is issued It is more efficient with managing.
S207, prompt are without access authority.
When the processing electronic invoice request of user is illegal request, the electronic invoice based on e-commerce platform is raw At with processing system prompt, without access authority, the processing electronic invoice request of the user is intercepted, prevents the electronic invoice of user from believing The leakage of breath and other important informations.
The present embodiment provides the methods of the generation of the electronic invoice based on e-commerce platform and processing, so that electronic invoice Issue and manage it is more efficient;Other efficient interception controlling mechanisms such as real ip address by control client, to block Cut the request of the illegal processing electronic invoice of lack of competence user, it is therefore prevented that the electronic invoice information and other important informations of user Leakage.Meanwhile by managing electronic invoice template, the function of electronic invoice template described in real-time update is realized.
Embodiment three
Fig. 1 is the generation of the electronic invoice based on e-commerce platform in the embodiment of the present invention and the network of processing system Phylogenetic relationship schematic diagram.Shown in Figure 1, the generation of the electronic invoice based on e-commerce platform and processing system include Electronic invoice generates system and electronic invoice information management system.It is flat with online transaction respectively that the electronic invoice generates system Platform, commodity middleware, digital signature system and electronic invoice information management system are communicated by interface protocol.
Fig. 4 a is the realization stream of the generation method of the electronic invoice based on e-commerce platform in the embodiment of the present invention three Cheng Tu.
Referring to fig. 4 shown in a, the generation system of electronic invoice, including order information acquisition module, electronic invoice generation module With electronic invoice memory module.
The order information acquisition module receives the ordering system that transaction platform (electric business system) includes from network and pushes It makes out an invoice information.According to preset business rule of making out an invoice, the order of making out an invoice for meeting electronics billing conditions is filtered out.Pass through interface protocol It establishes and communicates to connect with commodity middleware, obtained according to the merchandise news that the order of making out an invoice includes corresponding with the merchandise news The commodity tax rate.Order is made out an invoice and commodity tax rate combination is made out an invoice order information according to described.According to the order letter of making out an invoice The order number that breath includes divides table technology to make out an invoice order information storage into database for described using a point library.The data inventory It is stored in the caching of server.
Whether the electronic invoice generation module real-time detection electronic invoice distributed timing task opens.In electronic invoice When distributed timing task is opened, the database in server buffer is accessed to obtain order information of making out an invoice.Secondly, according to described Server buffer is searched to obtain electronic invoice template corresponding with the mechanism number by the mechanism number that order information of making out an invoice includes. If not finding electronic invoice template corresponding with the mechanism number in the server buffer, electronic invoice template library is inquired Obtain electronic invoice template corresponding with the mechanism number.Again, it is established and is communicated to connect by interface system and tax system, led to It crosses decipherment algorithm the information obtained from the tax system is decrypted, obtains invoice codes, invoice number, two dimension The invoices core information such as code, security code.By acquired make out an invoice order information and the corresponding filling institute of electronic invoice core information Electronic invoice is generated in the electronic invoice template of acquisition.When electronic invoice is html format, pdf document is turned by html file Technology changes into the electronic invoice file for the html format issued the electronic invoice file of PDF format.Finally, passing through interface Agreement and digital signature system, which are established, to be communicated to connect, and is digitally signed using digital certificate to the electronic invoice.
When detecting the event being digitally signed using digital certificate to the electronic invoice, electronic invoice is triggered Storage event.It is described after generating digital signature when the electronic invoice memory module detects that the storage event is triggered The byte stream of electronic invoice;Byte stream generated is saved in cloud storage system, generates the electronic invoice in the cloud The access link of storage location in storage system.Institute's storage location is stored in the form of the link encrypted to the database In, and access link storage corresponding with order information of making out an invoice, so that electronic invoice can prevent invoice from losing with persistence It loses, can be convenient user and inquire or download at any time, and count electronic ticket and make out an invoice situation.
Fig. 4 b is the realization stream of the processing method of the electronic invoice based on e-commerce platform in the embodiment of the present invention three Cheng Tu.
Referring to fig. 4 shown in b, electronic invoice information management system includes: that electronic invoice template management module, electronic invoice are looked into Ask module, electronic invoice statistical module and external interface module.
The external interface module receives looking into for online trade platform (e-commerce website) transmission by interface protocol Ask the request of electronic invoice.Whether verifying client real ip address is consistent with the IP address of user preset in database, if so, The generation system of the electronic invoice is docked, according to the inquiry electronic invoice request then to inquire electronic invoice in its generation rail The location of in mark.If being in completion status of making out an invoice, completion status of making out an invoice is shown, while showing described to be checked The download address of electronic invoice.
The electronic invoice template management module, which provides the page, can carry out electronic invoice template maintenance.It is safeguarding every time After the completion, the electronic invoice template in server buffer is updated first, and using synchronous lock technology, makes to access electronic invoice template Thread be waited for, it is to be updated after the completion of release lock, restore it is described access electronic invoice template thread so that being read The electronic invoice template taken is new template.After the completion of server buffer updates, then save electronic invoice template library.
The electronic invoice query template provides the mode of page interrogation, and after user input query parameter, system is returned Electronic invoice to be checked generates location in track at it.If being in completion status of making out an invoice, display has been made out an invoice At state, while showing the download address of the electronic invoice to be checked.
The electronic invoice statistical module provides the mode of page interrogation, and user inputs statistical parameter, and (statistical parameter is main Including mechanism of making out an invoice, user account and state etc. of making out an invoice), system quickly returns to statistical result using Data cache technology, and System additionally provides a variety of export formats to export the statistical result.
Example IV
Fig. 5 is the generation of the electronic invoice based on e-commerce platform in the embodiment of the present invention four and the knot of processing system Structure schematic diagram.The generation and processing system of the electronic invoice based on e-commerce platform, comprising:
Order reception unit 401, for receiving the information of making out an invoice pushed by online trade platform according to preset rules;
Information acquisition unit 402 is made out an invoice order for acquisition of information of making out an invoice according to, is wrapped according to the order of making out an invoice The merchandise news that includes obtains the commodity tax rate, makes out an invoice order and the commodity tax rate is combined into order information of making out an invoice and is saved in for acquired Database;
Database lookup unit 03, for being visited by the way of parallel query when detecting that generating invoice event triggers The database is asked, to obtain order information of making out an invoice;
Template acquiring unit 404, for obtaining the electronic invoice template to match with the order information of making out an invoice and electronics Invoice core information;
Invoice generation unit 405 is believed for order information of making out an invoice according to, electronic invoice template and electronic invoice core Breath generates electronic invoice, is digitally signed by digital certificate to the electronic invoice.
Further, the information acquisition unit 402 is specifically used for:
It is determined for compliance with the order of making out an invoice of billing conditions according to preset business rule of making out an invoice, is obtained from the order of making out an invoice Merchandise news;
The commodity tax rate is obtained by the merchandise news using middleware Technology;
It makes out an invoice order described in combination and commodity tax rate acquisition is made out an invoice order information;
In the database for dividing table technology that the order information of making out an invoice is stored in server buffer using point library.
Further, the template acquiring unit 404 is specifically used for:
Regional information belonging to the mechanism of the electronic invoice is issued according to the information determination of making out an invoice;
And the format of the electronic invoice template is determined according to the regional information;
The electronic invoice template to match with the format is searched from server buffer, if in the server buffer The electronic invoice template to match with the format is not found, then accesses the electronic invoice template library to obtain and the version The electronic invoice template that formula matches;
Algorithm process is decrypted in communication data with tax system, obtains the electronic invoice that the tax system generates Core information.
Further, the system also includes:
Invoice storage unit, for after being digitally signed by digital certificate to the electronic invoice, by right The electronic invoice is digitally signed the storage event for triggering the electronic invoice, the electronics hair after generating digital signature The byte stream of ticket;
Byte stream generated is saved in cloud storage system, the position stored is deposited in the form of the link encrypted It stores up in the database.
Further, the system also includes:
Requests verification unit, after receiving the information of making out an invoice pushed by online trade platform according to preset rules, In When detecting processing electronic invoice request, triggering processing electronic invoice event, verify the processing electronic invoice request whether be Legitimate request;
Request-response unit, for responding the processing electronics when processing electronic invoice request is legitimate request Invoice requests and returns to processing result corresponding with the processing electronic invoice request, wherein the processing electronic invoice request Including the request of inquiry electronic invoice and statistics electronic invoice request.
Further, the system also includes:
Template renewal unit, for being made described in access using synchronous lock technology when detecting electronic invoice template renewal The thread of electronic invoice template is waited for, until completing to update operation, wherein the update operation includes successively updating The electronic invoice template in server buffer and the electronic invoice template in electronic invoice template library.
The present embodiment provides the systems of the generation of the electronic invoice based on e-commerce platform and processing, pass through order reception Unit 401 receives the information of making out an invoice pushed by online trade platform according to preset rules, secondly, passing through information acquisition unit 402 Obtain make out an invoice order and the commodity tax rate is combined into order information of making out an invoice;Again, it is being detected by database lookup unit 403 When generating the triggering of invoice event, the database is accessed by the way of parallel query, to obtain order information of making out an invoice;And The electronic invoice template to match with the order information of making out an invoice is obtained by template acquiring unit 404 and electronic invoice core is believed Breath;Finally, generating electronic invoice by invoice generation unit 405, and number is carried out to the electronic invoice by digital certificate Signature.Using the efficiency of making out an invoice of the system improving in the present embodiment, reduce the consumption of hardware and software to greatest extent, meets E-commerce platform high-volume issues performance requirement and the timeliness requirement of electronic invoice.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (12)

1. a kind of generation and processing method of the electronic invoice based on e-commerce platform characterized by comprising
Receive the information of making out an invoice pushed by online trade platform according to preset rules;
It is made out an invoice order according to the acquisition of information of making out an invoice, commodity tax is obtained according to merchandise news included by the order of making out an invoice Rate makes out an invoice order and the commodity tax rate is combined into order information of making out an invoice and is saved in database for acquired;
When detecting that generating invoice event triggers, the database is accessed by the way of parallel query, is ordered with obtaining to make out an invoice Single information;
Obtain the electronic invoice template to match with the order information of making out an invoice and electronic invoice core information;Wherein, obtain with The electronic invoice template that the order information of making out an invoice matches, comprising: the electricity is issued according to the order information determination of making out an invoice Regional information belonging to the mechanism of sub- invoice;The format of the electronic invoice template is determined according to the regional information;Obtain with The electronic invoice template that the format matches;
Electronic invoice is generated according to the order information of making out an invoice, electronic invoice template and electronic invoice core information, passes through number Certificate is digitally signed the electronic invoice;
It is made out an invoice order according to the acquisition of information of making out an invoice, commodity tax is obtained according to merchandise news included by the order of making out an invoice Rate makes out an invoice order and the commodity tax rate is combined into order information of making out an invoice and is saved in database for acquired, comprising:
It is determined for compliance with the order of making out an invoice of billing conditions according to preset business rule of making out an invoice, obtains commodity from the order of making out an invoice Information;
The commodity tax rate is obtained by the merchandise news using middleware Technology;
It makes out an invoice order described in combination and commodity tax rate acquisition is made out an invoice order information;
In the database for dividing table technology that the order information of making out an invoice is stored in server buffer using point library.
2. the method according to claim 1, wherein obtaining the electronic invoice mould to match with the format Plate, comprising:
The electronic invoice template to match with the format is searched from server buffer, if not looking into the server buffer The electronic invoice template to match with the format is found, then accesses the electronic invoice template library to obtain and the format phase Matched electronic invoice template.
3. the method according to claim 1, wherein carrying out number to the electronic invoice by digital certificate After signature, further includes:
The storage event of the electronic invoice is triggered by being digitally signed to the electronic invoice, after generating digital signature The byte stream of the electronic invoice;
Byte stream generated is saved in cloud storage system, the position stored is stored in the form of the link encrypted and is arrived In the database.
4. according to the method described in claim 3, it is characterized in that, the reception is pushed away by online trade platform according to preset rules After the information of making out an invoice sent, further includes:
When detecting processing electronic invoice request, triggering processing electronic invoice event verifies the processing electronic invoice request It whether is legitimate request;
When processing electronic invoice request is legitimate request, responds the processing electronic invoice and request and return and the place Manage electronic invoice and request corresponding processing result, wherein the processing electronic invoice request include the request of inquiry electronic invoice with Count electronic invoice request.
5. according to the method described in claim 4, it is characterized by further comprising:
When detecting electronic invoice template renewal, it is in the thread for accessing the electronic invoice template using synchronous lock technology Wait state, until completing to update operation, wherein the update operation includes the electronics successively updated in server buffer The electronic invoice template in invoice template and electronic invoice template library.
6. a kind of generation and processing system of the electronic invoice based on e-commerce platform characterized by comprising
Order reception unit, for receiving the information of making out an invoice pushed by online trade platform according to preset rules;
Information acquisition unit is made out an invoice order for acquisition of information of making out an invoice according to, according to quotient included by the order of making out an invoice The product acquisition of information commodity tax rate makes out an invoice order and the commodity tax rate is combined into order information of making out an invoice and is saved in data for acquired Library;
Database lookup unit, for being accessed by the way of parallel query described when detecting that generating invoice event triggers Database, to obtain order information of making out an invoice;
Template acquiring unit, for obtaining the electronic invoice template and electronic invoice core that match with the order information of making out an invoice Information, wherein obtain the electronic invoice template to match with the order information of making out an invoice, comprising: according to the order letter of making out an invoice Regional information belonging to the mechanism of the electronic invoice is issued in breath determination;The electronic invoice mould is determined according to the regional information The format of plate;Obtain the electronic invoice template to match with the format;
Invoice generation unit is generated for order information of making out an invoice according to, electronic invoice template and electronic invoice core information Electronic invoice is digitally signed the electronic invoice by digital certificate;
The information acquisition unit is specifically used for:
It is determined for compliance with the order of making out an invoice of billing conditions according to preset business rule of making out an invoice, obtains commodity from the order of making out an invoice Information;
The commodity tax rate is obtained by the merchandise news using middleware Technology;
It makes out an invoice order described in combination and commodity tax rate acquisition is made out an invoice order information;
In the database for dividing table technology that the order information of making out an invoice is stored in server buffer using point library.
7. system according to claim 6, which is characterized in that obtain the electronic invoice mould to match with the format Plate, comprising:
The electronic invoice template to match with the format is searched from server buffer, if not looking into the server buffer The electronic invoice template to match with the format is found, then accesses the electronic invoice template library to obtain and the format phase Matched electronic invoice template.
8. system according to claim 6, which is characterized in that the system also includes:
Invoice storage unit, for after being digitally signed by digital certificate to the electronic invoice, by described Electronic invoice is digitally signed the storage event for triggering the electronic invoice, the electronic invoice after generating digital signature Byte stream;
Byte stream generated is saved in cloud storage system, the position stored is stored in the form of the link encrypted and is arrived In the database.
9. system according to claim 8, which is characterized in that the system also includes:
Requests verification unit is detecting after receiving the information of making out an invoice pushed by online trade platform according to preset rules To when processing electronic invoice request, triggering processing electronic invoice event verifies whether the processing electronic invoice request is legal Request;
Request-response unit, for responding the processing electronic invoice when processing electronic invoice request is legitimate request It requests and returns to processing result corresponding with the processing electronic invoice request, wherein processing electronic invoice request includes Inquire electronic invoice request and statistics electronic invoice request.
10. system according to claim 9, which is characterized in that the system also includes:
Template renewal unit, for making to access the electronics using synchronous lock technology when detecting electronic invoice template renewal The thread of invoice template is waited for, up to completing to update operation, wherein the update operation includes successively more new demand servicing The electronic invoice template in the electronic invoice template and electronic invoice template library in device caching.
11. a kind of equipment characterized by comprising
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The generation and processing method of the existing electronic invoice a method as claimed in any one of claims 1 to 5 based on e-commerce platform.
12. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that described program is processed Device realizes generation and the processing side of the electronic invoice a method as claimed in any one of claims 1 to 5 based on e-commerce platform when executing Method.
CN201510323398.7A 2015-06-12 2015-06-12 The generation of electronic invoice based on e-commerce platform and processing method and system Active CN105096172B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510323398.7A CN105096172B (en) 2015-06-12 2015-06-12 The generation of electronic invoice based on e-commerce platform and processing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510323398.7A CN105096172B (en) 2015-06-12 2015-06-12 The generation of electronic invoice based on e-commerce platform and processing method and system

Publications (2)

Publication Number Publication Date
CN105096172A CN105096172A (en) 2015-11-25
CN105096172B true CN105096172B (en) 2019-11-05

Family

ID=54576532

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510323398.7A Active CN105096172B (en) 2015-06-12 2015-06-12 The generation of electronic invoice based on e-commerce platform and processing method and system

Country Status (1)

Country Link
CN (1) CN105096172B (en)

Families Citing this family (40)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106557958A (en) * 2015-09-24 2017-04-05 上海合印包装服务有限公司 A kind of client management system of progress monitoring of supporting to make out an invoice
CN105553954B (en) * 2015-12-09 2020-01-21 百度在线网络技术(北京)有限公司 Data processing method and system
CN106934703A (en) * 2015-12-28 2017-07-07 航天信息股份有限公司 Tax data processing method and tax control server
CN106934675A (en) * 2015-12-30 2017-07-07 航天信息股份有限公司 A kind of invoice issuing method and system based on sales data collection
CN107301178B (en) * 2016-04-14 2021-07-02 创新先进技术有限公司 Data query processing method, device and system
CN105956893A (en) * 2016-06-24 2016-09-21 北京交通大学 Method for realizing tax invoicing system universal interface on the basis of production service system
CN107516251A (en) * 2016-06-24 2017-12-26 深圳市银信网银科技有限公司 The method and system of interactive operation based on electronic bill
CN106408380A (en) * 2016-09-07 2017-02-15 东信和平科技股份有限公司 Shipping list generation method and system
CN107807931B (en) * 2016-09-09 2020-09-01 北京京东尚科信息技术有限公司 Method and system for template information management
CN107301573B (en) * 2016-10-28 2020-11-10 西安艾润物联网技术服务有限责任公司 Method and system for automatically acquiring electronic invoice
CN108122139B (en) * 2016-11-29 2022-01-28 阿里巴巴集团控股有限公司 Invoice data processing method, equipment and system
CN107301681B (en) * 2016-12-05 2020-07-31 北京奥斯达兴业科技有限公司 Method, system and user terminal for automatically acquiring parking fee electronic invoice
CN107133831A (en) * 2017-05-12 2017-09-05 百望电子发票数据服务有限公司 A kind of self-service method and system for issuing electronic invoice
CN107357773B (en) * 2017-07-12 2021-01-29 国信电子票据平台信息服务有限公司 PDF electronic invoice generation method and system
CN107391657A (en) * 2017-07-18 2017-11-24 百望电子发票数据服务有限公司 A kind of method and system for generating electronic invoice layout files
CN107705179A (en) * 2017-10-10 2018-02-16 掌合天下(北京)信息技术有限公司 Order management method and device
CN107845001A (en) * 2017-10-27 2018-03-27 百望电子发票数据服务有限公司 A kind of method and system of electronic invoice flow operation
CN107943845A (en) * 2017-11-01 2018-04-20 中国银行股份有限公司 A kind of electronic receipt generation method and equipment
CN109829723A (en) * 2017-11-21 2019-05-31 北京京东尚科信息技术有限公司 The method and apparatus for generating business voucher
CN109840812A (en) * 2017-11-27 2019-06-04 航天信息股份有限公司 A kind of method and device to issue invoice
CN108022163A (en) * 2017-11-29 2018-05-11 平安普惠企业管理有限公司 Obtain method, apparatus, equipment and the storage medium of the Fee Amount tax rate
CN108052668A (en) * 2017-12-29 2018-05-18 北京百旺金赋科技有限公司 The endowed method and system of intelligence based on commodity code
CN109034923B (en) * 2018-07-18 2021-09-21 西安艾润物联网技术服务有限责任公司 Electronic invoice issuing method, electronic invoice management platform and storage medium
CN110852815B (en) * 2018-07-25 2023-10-31 阿里巴巴集团控股有限公司 Data processing method, apparatus and machine readable medium
CN109255604A (en) * 2018-08-08 2019-01-22 北京京东尚科信息技术有限公司 Payment based on e-commerce platform and the methods, devices and systems made out an invoice
CN110232607A (en) * 2018-08-23 2019-09-13 天津荣易达信息技术有限公司 Third party's business novel integrated service system on international logistics line
CN110969494A (en) * 2018-09-30 2020-04-07 厦门雅迅网络股份有限公司 Electronic invoice issuing method based on cloud-sharing taxi platform, terminal device and storage medium
CN109767275A (en) * 2018-12-13 2019-05-17 浙江数链科技有限公司 Billing method, device, computer equipment and readable storage medium storing program for executing
CN109801149A (en) * 2018-12-20 2019-05-24 航天信息股份有限公司 The method for creating tax return, device, storage medium and electronic equipment
CN109949111B (en) 2019-03-06 2023-12-08 深圳市智税链科技有限公司 Electronic bill identification distribution method, electronic bill generation method, device and system
CN112347488B (en) * 2019-08-07 2023-11-03 北京京东振世信息技术有限公司 Order information processing method and device, equipment and storage medium
CN110473031A (en) * 2019-08-13 2019-11-19 携程计算机技术(上海)有限公司 Processing method, system, electronic equipment and the storage medium of invoice data
CN110459022A (en) * 2019-08-13 2019-11-15 杭州有赞科技有限公司 A kind of Small Ticket Printing System and method
CN110738535A (en) * 2019-09-11 2020-01-31 国信电子票据平台信息服务有限公司 electronic receipt issuing method and electronic equipment
CN110992116A (en) * 2019-10-22 2020-04-10 威富通科技有限公司 Electronic invoice generation method, device, equipment and storage medium based on ETC system
CN111192048B (en) * 2019-12-26 2023-11-03 航天信息股份有限公司 Trusted security electronic certificate generation method
CN111210324A (en) * 2019-12-27 2020-05-29 大象慧云信息技术有限公司 General invoice data processing method and system based on parallel computing
TWI809250B (en) * 2020-02-17 2023-07-21 智安帳本科技股份有限公司 Financial and accounting system platform for blockchain electronic invoice, digital voucher buyer and seller automatically notify receipt, and payment and confirmation receipt notification
CN111681061A (en) * 2020-05-20 2020-09-18 厦门区块链云科技有限公司 Electronic invoice management system and method based on distributed accounting
CN111897777A (en) * 2020-06-22 2020-11-06 百望股份有限公司 Method, device and equipment for processing electronic invoice layout file and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102855587A (en) * 2012-08-20 2013-01-02 清华大学 Electronic invoice generating system for electronic commerce website
CN102930659A (en) * 2012-10-23 2013-02-13 杭州通策会综合服务有限公司 Electronic invoice system
CN103164810A (en) * 2013-04-12 2013-06-19 重庆市远大印务有限公司 Electronic invoice service system based on cloud computing technology and big data technology
CN103500411A (en) * 2013-08-22 2014-01-08 王亚君 System and method for achieving electronic invoice
CN104680381A (en) * 2013-12-03 2015-06-03 航天信息软件技术有限公司 Quick electronic invoice generating method and system based on ERP (Enterprise Resource Planning) system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102855587A (en) * 2012-08-20 2013-01-02 清华大学 Electronic invoice generating system for electronic commerce website
CN102930659A (en) * 2012-10-23 2013-02-13 杭州通策会综合服务有限公司 Electronic invoice system
CN103164810A (en) * 2013-04-12 2013-06-19 重庆市远大印务有限公司 Electronic invoice service system based on cloud computing technology and big data technology
CN103500411A (en) * 2013-08-22 2014-01-08 王亚君 System and method for achieving electronic invoice
CN104680381A (en) * 2013-12-03 2015-06-03 航天信息软件技术有限公司 Quick electronic invoice generating method and system based on ERP (Enterprise Resource Planning) system

Also Published As

Publication number Publication date
CN105096172A (en) 2015-11-25

Similar Documents

Publication Publication Date Title
CN105096172B (en) The generation of electronic invoice based on e-commerce platform and processing method and system
CN108897615B (en) Second killing request processing method, application server cluster and storage medium
CN108122139B (en) Invoice data processing method, equipment and system
US8751398B2 (en) Preventing an unauthorized card transaction
US6826617B1 (en) Territorial determination of remote computer location in a wide area network for conditional delivery of digitized products
CN110458562B (en) Bill reimbursement method, device and equipment and computer storage medium
CN101546195A (en) Ticket service system and method for preventing scalping train tickets
CN101295391A (en) On-line transaction method and on-line transaction system
CN101093572A (en) A preposition system and a centralized data processing system
JP2014040265A (en) Self oil feed system and self oil feed method
US20140095218A1 (en) Virtual gift card gifting or sharing
US11914732B2 (en) Systems and methods for hard deletion of data across systems
US20190362305A1 (en) Systems and Methods Exception Handling in a Distributed Computing Environment
CN112669157A (en) Transaction method, device and system based on block chain and readable storage medium
CN101841809A (en) Mobile phone terminal supporting simulated POS transactions and system
CN110599273A (en) Data processing method, data processing device, node equipment and storage medium
KR20150046805A (en) Apparatus and method for issuing in connection with coupon usage information
WO2018001120A1 (en) Method and device facilitating expansion of primary payment instruments
CN104243581A (en) Multi-level cache method and system achieving high cohesion and low coupling
KR20200119671A (en) method of distributing digital content by the amount of issuance, server performing the method, and computer program
CN106530033A (en) Method, system and device for transferring electronic ticket
JP2013536481A (en) Method and system for providing universal access to one of a plurality of services
CN107291906B (en) Data processing method and system for map interface
JP5607205B2 (en) Information providing apparatus, information providing method, and information providing system
CN106130740B (en) Digital certificate synchronous method, digital signature server and digital certificate synchronization system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant