CN109829723A - The method and apparatus for generating business voucher - Google Patents
The method and apparatus for generating business voucher Download PDFInfo
- Publication number
- CN109829723A CN109829723A CN201711164571.9A CN201711164571A CN109829723A CN 109829723 A CN109829723 A CN 109829723A CN 201711164571 A CN201711164571 A CN 201711164571A CN 109829723 A CN109829723 A CN 109829723A
- Authority
- CN
- China
- Prior art keywords
- product
- business
- business voucher
- check code
- voucher
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a kind of method and apparatus for generating business voucher, are related to field of computer technology.One specific embodiment of this method includes: the identification code according to product, obtains the product information of product;According to the product information of product, the business voucher data of the affiliated business of product are inquired;Business voucher is generated according to business voucher data.The embodiment can reduce the time for generating business voucher by the business voucher of the affiliated business of identification code Intelligent generation product of product, improve the efficiency for generating business voucher.
Description
Technical field
The present invention relates to field of computer technology more particularly to a kind of method and apparatus for generating business voucher.
Background technique
With the rapid development of society, the work rhythm of all trades and professions is increasingly accelerated, and the purchasing and selling commodities of people are provided or connect
The also gradually interconnection networking comprehensively of other business activities modes is serviced and is engaged in, correspondingly people are for above-mentioned all kinds of internets
The demand for issuing business voucher and timeliness of business have higher expectation.Since for Internet service, Ren Menxi
Product involved in prestige business can be most fast arrival hand in and the corresponding business voucher of business can also receive therewith, be convenient for the later period
Reimbursement, reconciliation and guarantee etc..Therefore, how highly effective and safe issue business voucher be it is current need to solve mainly ask
Topic.
The scheme for issuing business voucher at present is: during generating business voucher, staff finds current production institute
The information such as corresponding business number, and according to the information for the product that can issue business voucher in business number inquiry business,
And by these data inputs to issuing in certificate system, then issue certificate system according to the information of typing generate have business with
Demonstrate,prove the business voucher data of the fixed format of information, such as html page, staff is by the printing function of browser later,
Driving business voucher printer carries out business voucher and issues printing, finally by business voucher follow product be together sent to
Client.
In realizing process of the present invention, at least there are the following problems in the prior art for inventor's discovery: one, in the prior art
The process for issuing business voucher is cumbersome, and the period needed is longer, and the efficiency for issuing business voucher is very low;Two, people in the prior art
It is excessive to operate, it is easy to appear operating mistake, business voucher is caused to issue information errors or failure, business voucher is increased and opens
The cost of tool;Three, number is issued without verification business voucher in the prior art, will cause the phenomenon that business voucher issues repetition,
Business voucher is issued in even someone's security breaches that business voucher is issued whereby, repetition, is resell at a profit business voucher, is caused economically
Unnecessary loss;Four, the prior art can reduce customer experience.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of method and apparatus for generating business voucher, it being capable of intelligentized life
At business voucher, cost of labor is reduced, improves the efficiency for generating business voucher.
To achieve the above object, according to an aspect of an embodiment of the present invention, a kind of side for generating business voucher is provided
Method.
A kind of method of generation business voucher of the embodiment of the present invention includes: the identification code according to product, obtains the production
The product information of product;According to the product information of the product, the business voucher data of the affiliated business of the product are inquired;According to institute
It states business voucher data and generates business voucher.
Optionally, before the identification code according to product, the product information for obtaining the product, the method also includes:
The identification code of the product is generated according to the product information of the product.
Optionally, in the product information according to the product, inquire the affiliated business of the product business voucher data it
Before, the method also includes: after service creation, the corresponding relationship of the business Yu its related products is saved, and is generated
The business voucher data of the business.
Optionally, the product information further includes the first check code of product;And believe according to the product of the product
Breath, is inquired before the business voucher data of the affiliated business of the product, using the first check code of product as the second school of product
Code is tested to be saved.
Optionally, in the product information according to the product, inquire the affiliated business of the product business voucher data it
Before, the method also includes: according to product dimension save the product product information and the second check code, affiliated business, with
And the corresponding relationship of the business voucher data of affiliated business.
Optionally, the method also includes: according to the business voucher data generate business voucher before, described in judgement
Whether the first check code of product and second check code are consistent, if unanimously, generating industry according to the business voucher data
Business voucher;And after generating business voucher according to the business voucher data for the first time, change institute involved in the business
There is the second check code of product.
To achieve the above object, according to another aspect of an embodiment of the present invention, a kind of dress for generating business voucher is provided
It sets.
The device of a kind of generation business voucher of the embodiment of the present invention, comprising: module is obtained, for the identification according to product
Code, obtains the product information of the product;Enquiry module inquires the product institute for the product information according to the product
The business voucher data of category business;Generation module, for generating business voucher according to the business voucher data.
Optionally, described device further include: identification code generation module, for generating institute according to the product information of the product
State the identification code of product.
Optionally, described device further include: preserving module, for saving the business and being related to it after service creation
And product corresponding relationship, and generate the business voucher data of the business.
Optionally, the product information includes the first check code of product;And the preserving module is also used to: will be produced
First check code of product is saved as the second check code of product.
Optionally, the preserving module is also used to: product information and the second school of the product are saved according to product dimension
Test the corresponding relationship of the business voucher data of code, affiliated business and affiliated business.
Optionally, the generation module is also used to: before generating business voucher according to the business voucher data, judgement
Whether the first check code of the product and second check code are consistent, if unanimously, it is raw according to the business voucher data
At business voucher;And it after generating business voucher according to the business voucher data for the first time, changes involved in the business
All products the second check code.
To achieve the above object, according to an embodiment of the present invention in another aspect, providing a kind of electronic equipment.
The a kind of electronic equipment of the embodiment of the present invention, comprising: one or more processors;Storage device, for storing one
A or multiple programs, when one or more of programs are executed by one or more of processors, so that one or more
The method that a processor realizes the generation business voucher of the embodiment of the present invention.
To achieve the above object, another aspect according to an embodiment of the present invention, provides a kind of computer-readable medium.
A kind of computer-readable medium of the embodiment of the present invention, is stored thereon with computer program, and program is held by processor
The method of the generation business voucher of the embodiment of the present invention is realized when row.
One embodiment in foregoing invention has the following advantages that or the utility model has the advantages that can be by the identification code intelligence of product
Metaplasia improves the efficiency for generating business voucher at the business voucher of the affiliated business of product so as to reduce cost of labor;This hair
The identification code for generating product in bright embodiment by the product information of product, is identified to be advantageously implemented by scanning recognition code
Product achievees the effect that Intelligent generation business voucher, reduces the time for generating business voucher;Pass through guarantor in the embodiment of the present invention
The corresponding relationship of business Yu its related products is deposited, and generates business voucher data, so as to by any one in business
A product inquires the business voucher data of affiliated business;By being related to the first check code and of product in the embodiment of the present invention
The comparison of two check codes improves the safety of the business voucher of generation so as to increase to the calibration link for generating business voucher
Property;In the embodiment of the present invention according to product dimension save the product product information and the second check code, affiliated business and
The corresponding relationship of the business voucher data of affiliated business, so as to directly inquire the second verification of product by product information
Code and/or business voucher data improve the efficiency for generating business voucher;In the embodiment of the present invention after business voucher generation
The second check code is changed, so as to avoid the generation for repeating to issue, resell at a profit phenomena such as business voucher.
Further effect possessed by above-mentioned non-usual optional way adds hereinafter in conjunction with specific embodiment
With explanation.
Detailed description of the invention
Attached drawing for a better understanding of the present invention, does not constitute an undue limitation on the present invention.Wherein:
Fig. 1 is the schematic diagram of the key step of the method according to an embodiment of the present invention for generating business voucher;
Fig. 2 is the schematic diagram of the service architecture of the method according to an embodiment of the present invention for generating business voucher;
Fig. 3 is the schematic diagram of the main flow of the method according to an embodiment of the present invention for generating business voucher;
Fig. 4 is the schematic diagram of the main modular of the device according to an embodiment of the present invention for generating business voucher;
Fig. 5 is that the embodiment of the present invention can be applied to exemplary system architecture figure therein;
Fig. 6 is adapted for the structural representation of the computer system for the terminal device or server of realizing the embodiment of the present invention
Figure.
Specific embodiment
Below in conjunction with attached drawing, an exemplary embodiment of the present invention will be described, including the various of the embodiment of the present invention
Details should think them only exemplary to help understanding.Therefore, those of ordinary skill in the art should recognize
It arrives, it can be with various changes and modifications are made to the embodiments described herein, without departing from scope and spirit of the present invention.Together
Sample, for clarity and conciseness, descriptions of well-known functions and structures are omitted from the following description.
Fig. 1 is the schematic diagram of the key step of the method according to an embodiment of the present invention for generating business voucher, such as Fig. 1 institute
Show, the method for the generation business voucher of the embodiment of the present invention mainly comprises the steps that
Step S101: according to the identification code of product, the product information of product is obtained.Wherein, the present invention in product identification
Code can be two dimensional code and be also possible to bar code, and certainly, the identification code of product is not limited to above two form in the present invention,
It can be the identification class figure of other forms.In the embodiment of the present invention, product information can be obtained from identification code.Production herein
Product information may include the unique identification of product.It is, of course, also possible to need to carry out according to business include in flexible setting identification code
Product information, it is such as following one or more of: the unique identification (such as product number) of product, the classification of product, product
Title, the unit price of product, tax rate of product etc..Product can be directly obtained by the identification code of product in the present invention
Product information.
Step S102: according to the product information of product, the business voucher data of the affiliated business of product are inquired.Wherein, one
Business is related to one or more products.Product information (the unique mark of product as described above got by step S101
Know), the business voucher data of the affiliated business of product can be inquired.For example, user has purchased product, product at this time is exactly to order
The commodity for including in list, the affiliated business of product are exactly the order generated in shopping, and corresponding business voucher can be shopping receipt,
It is also possible to purchase invoice.
Step S103: business voucher is generated according to business voucher data.Step S102 inquire business voucher data it
Afterwards, business voucher can be generated according to the business voucher data inquired.
In the embodiment of the present invention, before the product information for obtaining product according to the identification code of product, business voucher is generated
Method can also include: according to the product information of product generate product identification code.It, can be first according to product in the present invention
Product information generate identification code and so as to achieve the effect that Intelligent generation business voucher according to identification code reduce life
At the time of business voucher.
In the embodiment of the present invention, according to the business voucher data of the affiliated business of information query product of product it
Before, the method for generating business voucher can also include: to save business pass corresponding with its related products after service creation
System, and generate the business voucher data of business.In the present invention, a business can be related to one or more products, therefore create
It builds after business, the corresponding relationship of business and related products can be saved, and analyze the business related products,
Such as in certain business, which product, which belongs to, issues business voucher, which product (such as present) is not belonging to issue business voucher
Range, the business voucher data of the business are generated, so as to inquire the business by any one product in business
Business voucher data.
In the embodiment of the present invention, product information can also include the first check code of product.Wherein, the first verification of product
Code can be according to the generation of the unique identification of product, for example generate first according to the product number of the unique identification as product
Check code is also possible to what multiple information of combination product generated, such as the unit price and product of the title of combination product, product
The tax rate generates the first check code.In the present invention, the link of verification business voucher can be increased by the first check code of setting.
In addition, in the embodiment of the present invention, in the business voucher number according to the affiliated business of information query product of product
It can also include: to be given the first check code of product as the second check code of product according to the method for before, generating business voucher
To save.
In the embodiment of the present invention, according to the business voucher data of the affiliated business of information query product of product it
Before, the method for generating business voucher can also include: that the product information and the second check code, institute of product are saved according to product dimension
The corresponding relationship of the business voucher data of category business and affiliated business.For example, two products involved in a business, to produce
Product number in product information is the business voucher number that dimension stores the product information of product, affiliated business and affiliated business
According to corresponding relationship, there are two product in caching, number is " SP1001 " and " SP1002 ", their corresponding business and business with
Card data be it is identical, corresponding second check code be respectively " 2000 " and " 4000 ".
In the embodiment of the present invention, the method for generating business voucher can also include: to generate industry according to business voucher data
It is engaged in front of voucher, judges whether the first check code of product and the second check code are consistent, if unanimously, according to business voucher data
Generate business voucher;And after generating business voucher according to business voucher data for the first time, own involved in change business
Second check code of product.In the present invention, when generating business voucher for the first time, the first check code of product involved in business
Be with the second check code it is identical, at this time according to business voucher data generate business voucher.Then business voucher is being generated for the first time
Later, the second check code of all products involved in business is changed, at this time the first check code of product involved in business
Be with the second check code it is different, so as to avoid repeatedly generating the generation of business voucher phenomenon, improve generation business
The safety of voucher.
In order to facilitate understanding, Fig. 2 and Fig. 3 are to carry out so that the shopping of electric business platform issues invoice as an example to the embodiment of the present invention
Description, " business " is taken as " order ", " product " is taken as " commodity ", " product ID " be taken as " invoice two dimensional code ", " business with
Card data " are taken as " the invoice page ", " business voucher " is taken as " invoice " and is described in detail, certain " shopping of electric business platform " not
It is defined for the protection scope to technical solution of the present invention, " order ", " commodity ", " invoice two dimensional code ", " hair in the present invention
The ticket page ", " invoice " can be adaptively adjusted according to specific business scenario.
Fig. 2 is the schematic diagram of the service architecture of the method according to an embodiment of the present invention for generating business voucher.Such as Fig. 2 institute
Show, the service architecture for generating the method for business voucher may include: order commodity and service 201, invoice two dimensional code service 202, hair
Ticket buffer service 203, printed invoice service 204.Wherein, order commodity and service 201, which provides, saves order information, commodity letter
The function of the corresponding relationship of breath, invoice basic information and order and commodity;Invoice two dimensional code service 202 provides generation commodity
The first check code and invoice two dimensional code function, and further provide invoice two-dimensional code scanning identification function;Invoice is slow
Deposit service 203 provide generate order the invoice page function, caching the invoice page and the second check code of commodity function,
The safety check function repeatedly generated by the function and invoice of the invoice page in O/No. or goods number query caching
Energy;Printed invoice service 204 provides the binding function of smart machine and printer, and it is automatic to provide the invoice page
The function of printout.
Fig. 3 is the schematic diagram of the main flow of the method according to an embodiment of the present invention for generating business voucher.Such as Fig. 3 institute
Show, the main flow for generating the method for business voucher may include: step S301, generate commodity according to the basic information of commodity
First check code and invoice two dimensional code;Step S302, save order information, merchandise news, invoice basic information and order and
The corresponding relationship of commodity;Step S303 generates the invoice page of order;Step S304, obtains the second check code of commodity, and protects
Deposit the corresponding relationship of the invoice page, the second check code and commodity;Step S305 obtains commodity according to the invoice two dimensional code of commodity
Unique number and the first check code;Step S306 inquires the generated invoice page and commodity according to the unique number of commodity
The second check code;Whether step S307, the first check code for judging commodity and the second check code of commodity are consistent;Step
S308, according to invoice page print invoice;Step S309 changes the second check code.
In step S301, when procurement of commodities storage, invoice two dimensional code service 202 is called, according to the commodity
The information such as unique number, product name, unit price, the tax rate generate the first check code of commodity, for example, commodity A number " SP1001 ",
First check code " 2000 ";Commodity B numbers " SP3003 ", the first check code " 4000 ".Then according to merchandise news and first
Check code generates the invoice two dimensional code of commodity, and invoice two dimensional code is pasted on commodity.It, can also be by commodity in the present invention
Invoice two dimensional code, which prints, to be pasted on commodity, can also use other methods, this is not limited by the present invention.
In step s 302, after the order for receiving user's submission, order commodity and service 201 is called to save order letter
The corresponding relationship of the unique number of all commodity under breath, merchandise news, invoice basic information and O/No. and order.Example
Such as, O/No. " DD5005 " and goods number " SP1001 ", " SP3003 ".Invoice basic information may include: to issue invoice
Company's new line, company's duty paragraph, invoice content etc..For example, company comes back: " AAA company ";Company's duty paragraph: " BBB111222 ";
Invoice content: " office appliance ".
In step S303, after saving completion, invoice buffer service 203 is called, by generation required for order
Merchandise news, invoice basic information calculate and tissue obtains at least one invoice, and obtained invoice content is spliced to one
A invoice page.An order can be split as by multiple invoices according to limit, item number and the tax rate in the present invention.Wherein, according to
Invoice limit is split, and such as invoice limit 5000, commodity total value 6000 needs to be split as two tickets.According to the item of printing invoice
Number is split, and if invoice at most prints 6 commodity details, if order has 10 commodity, needs to be split as two invoices.According to
The different tax rates splits an order to different invoices.Certainly, one can also be ordered using other rules in the present invention
It is singly split as different invoices, this is not construed as limiting.In the present invention, the invoice page of generation can be html page, HTML page
Face is the text-only file comprising html tag, it can be stored in a certain computer in some corner of the world, be
Hypertext markup language format (application of standard generalized markup language, file extent entitled .html or .htm), HTML page
Face usually provides browsing and reading with image and text and corresponding format.Certainly, the invoice page generated in the present invention
Also it can choose extended formatting, this is not limited by the present invention.
In step s 304, using the first check code of commodity as the second check code of commodity, and according to goods number
Dimension, the second check code of commodity, order, the invoice page of the order and commodity is stored into invoice buffer service 203.
In the present invention, it can store information in Redis database, naturally it is also possible to it is stored in other kinds of database, this
Invention is not construed as limiting this.Wherein, Redis is being write using ANSI C language, supported network, is a memory-based of open source
Also can persistence log type, key assignments type database, and provide the application of multilingual, be a high performance key assignments type data
Library.
In step S305, when order outbound is sent with charge free, staff scans any of the order by smart machine
The invoice two dimensional code of commodity identifies the unique number and the first check code of the commodity by invoice two dimensional code service 202, and will
The unique number of the commodity and the first check code are sent to server-side.In the present invention, ZXing identification invoice two dimension can be used
Code can also identify invoice two dimensional code using other methods, and this is not limited by the present invention.Wherein, ZXing is an open-source
Code, library is handled with the 1D/2D bar code image of the Java multiple format realized, it contains the port for relating to other language,
Scanning and decoding that invoice two dimensional code is completed using the built-in camera of smart machine may be implemented.
In step S306, after the first check code for getting commodity by invoice two dimensional code, invoice caching is called
Service 203, the second check code of the generated invoice page and commodity is inquired by the unique number of commodity.
In step S307, invoice buffer service 203 is called, judges the second verification of the first check code and commodity of commodity
Whether code is consistent, if unanimously, then it represents that the invoice of the corresponding order of the commodity can be generated, if inconsistent, prove the commodity
Corresponding order had opened invoice, did not allowed to generate invoice again, avoids and repeatedly generates invoice, the safety of profiteering invoice is asked
Topic.
In step S308, when the first check code of commodity and consistent the second check code of commodity, printing is called
Invoice service 204, according to the invoice page print invoice inquired.Staff is before generating invoice, by be used to scan
The printer of smart machine and printed invoice is bound, and the printer by 204 driving binding of printed invoice service is automatic
Printing invoice is come out.In the present invention, the invoice page printed can will be needed to obtain from caching, pass through Java's itself
The printer of javax.print Packet driven binding is directly printed, and can also be controlled and be called by other methods, the present invention couple
This is not construed as limiting.Wherein, Java is an Object-Oriented Programming Language, has powerful and easy to use two features.
Javax.print packet is one of the software package that the jdk1.4 newly issued is improved in Java printing function, it is to existing printing function
It can be positive supplement, using javax.print packet, most of practical application request, including printing character, figure may be implemented
Shape, file and Print Preview etc..
In step S309, after printed invoice, invoice buffer service 202 is called, the second check code of commodity, example are changed
Such as, prevent subsequent repetition from making out an invoice from increasing the second check code of commodity all in order.After the completion of invoice generates, it will follow
Commodity carry out outbound together and send with charge free.
The technical solution according to an embodiment of the present invention for generating business voucher can be seen that the identification code intelligence by product
Metaplasia improves the efficiency for generating business voucher at the business voucher of the affiliated business of product so as to reduce cost of labor;This hair
The identification code for generating product in bright embodiment by the product information of product, is identified to be advantageously implemented by scanning recognition code
Product achievees the effect that Intelligent generation business voucher, reduces the time for generating business voucher;Pass through guarantor in the embodiment of the present invention
The corresponding relationship of business Yu its related products is deposited, and generates business voucher data, so as to by any one in business
A product inquires the business voucher data of affiliated business;By being related to the first check code and of product in the embodiment of the present invention
The comparison of two check codes improves the safety of the business voucher of generation so as to increase to the calibration link for generating business voucher
Property;In the embodiment of the present invention according to product dimension save the product product information and the second check code, affiliated business and
The corresponding relationship of the business voucher data of affiliated business, so as to directly inquire the second verification of product by product information
Code and/or business voucher data improve the efficiency for generating business voucher;In the embodiment of the present invention after business voucher generation
The second check code is changed, so as to avoid the generation for repeating to issue, resell at a profit phenomena such as business voucher.
Fig. 4 is the schematic diagram of the main modular of the device according to an embodiment of the present invention for generating business voucher.Such as Fig. 4 institute
Show, the device 400 of generation business voucher of the invention mainly includes following module: obtaining module 401, enquiry module 402, generates
Module 403.
Wherein, obtaining module 401 can be used for obtaining the product information of product according to the identification code of product.Obtaining module
After 401 get the product information of product, enquiry module 402 can be used for the product information according to product, inquire belonging to product
The business voucher data of business.Generation module 403 can be used for generating business voucher according to business voucher data.
In the embodiment of the present invention, the device for producing business voucher can also include: that identification code generation module (does not show in figure
Out).Identification code generation module can be used for: the identification code of product is generated according to the product information of product.
In the embodiment of the present invention, the device for producing business voucher can also include: preserving module (not shown).It saves
Module can be used for: after service creation, save the corresponding relationship of business and its related products, and generate the business of business with
Demonstrate,prove data.
In the embodiment of the present invention, product information may include the first check code of product.Preserving module can also be used in: will produce
First check code of product is saved as the second check code of product.
In the embodiment of the present invention, preserving module can also be used in: the product information and second of product is saved according to product dimension
The corresponding relationship of the business voucher data of check code, affiliated business and affiliated business.
In the embodiment of the present invention, generation module 403 can also be used in: according to business voucher data generate business voucher it
Before, judge whether the first check code of product and the second check code are consistent, if unanimously, generating business according to business voucher data
Voucher;And after generating business voucher according to business voucher data for the first time, the of all products involved in change business
Two check codes.
In the embodiment of the present invention, a business can be related to one or more products.
From the above, it can be seen that the business voucher of the affiliated business of identification code Intelligent generation product by product,
So as to reduce cost of labor, the efficiency for generating business voucher is improved;Pass through the product information of product in the embodiment of the present invention
The identification code of product is generated, product is identified by scanning recognition code to be advantageously implemented, reaches Intelligent generation business voucher
Effect, reduce generate business voucher time;It is corresponding with its related products by preservation business in the embodiment of the present invention
Relationship, and generate business voucher data, so as to business belonging to being inquired by any one product in business business with
Demonstrate,prove data;By being related to the comparison of the first check code and the second check code of product in the embodiment of the present invention, so as to increase
Add to the calibration link for generating business voucher, improves the safety of the business voucher of generation;According to product in the embodiment of the present invention
Dimension saves the product information of the product and the business voucher data of the second check code, affiliated business and affiliated business
Corresponding relationship improves so as to directly inquire the second check code and/or business voucher data of product by product information
Generate the efficiency of business voucher;The second check code is changed after business voucher generation in the embodiment of the present invention, so as to
Avoid the generation for repeating to issue, resell at a profit phenomena such as business voucher.
Fig. 5 is shown can be using the method for the generation business voucher of the embodiment of the present invention or the device of generation business voucher
Exemplary system architecture 500.
As shown in figure 5, system architecture 500 may include terminal device 501,502,503, network 504 and server 505.
Network 504 between terminal device 501,502,503 and server 505 to provide the medium of communication link.Network 504 can be with
Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be used terminal device 501,502,503 and be interacted by network 504 with server 505, to receive or send out
Send message etc..Various telecommunication customer end applications, such as the application of shopping class, net can be installed on terminal device 501,502,503
(merely illustrative) such as the application of page browsing device, searching class application, instant messaging tools, mailbox client, social platform softwares.
Terminal device 501,502,503 can be the various electronic equipments with display screen and supported web page browsing, packet
Include but be not limited to smart phone, tablet computer, pocket computer on knee and desktop computer etc..
Server 505 can be to provide the server of various services, such as utilize terminal device 501,502,503 to user
The shopping class website browsed provides the back-stage management server (merely illustrative) supported.Back-stage management server can be to reception
To the data such as information query request analyze etc. processing, and by processing result (such as target push information, product letter
Breath -- merely illustrative) feed back to terminal device.
It should be noted that the method for generating business voucher provided by the embodiment of the present invention is generally held by server 505
Row, correspondingly, the device for generating business voucher is generally positioned in server 505.
It should be understood that the number of terminal device, network and server in Fig. 5 is only schematical.According to realization need
It wants, can have any number of terminal device, network and server.
Below with reference to Fig. 6, it illustrates the computer systems 600 for the terminal device for being suitable for being used to realize the embodiment of the present invention
Structural schematic diagram.Terminal device shown in Fig. 6 is only an example, function to the embodiment of the present invention and should not use model
Shroud carrys out any restrictions.
As shown in fig. 6, computer system 600 includes central processing unit (CPU) 601, it can be read-only according to being stored in
Program in memory (ROM) 602 or be loaded into the program in random access storage device (RAM) 603 from storage section 608 and
Execute various movements appropriate and processing.In RAM 603, also it is stored with system 600 and operates required various programs and data.
CPU 601, ROM 602 and RAM 603 are connected with each other by bus 604.Input/output (I/O) interface 605 is also connected to always
Line 604.
I/O interface 605 is connected to lower component: the importation 606 including keyboard, mouse etc.;It is penetrated including such as cathode
The output par, c 607 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 608 including hard disk etc.;
And the communications portion 609 of the network interface card including LAN card, modem etc..Communications portion 609 via such as because
The network of spy's net executes communication process.Driver 610 is also connected to I/O interface 605 as needed.Detachable media 611, such as
Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 610, in order to read from thereon
Computer program be mounted into storage section 608 as needed.
Particularly, disclosed embodiment, the process described above with reference to flow chart may be implemented as counting according to the present invention
Calculation machine software program.For example, embodiment disclosed by the invention includes a kind of computer program product comprising be carried on computer
Computer program on readable medium, the computer program include the program code for method shown in execution flow chart.?
In such embodiment, which can be downloaded and installed from network by communications portion 609, and/or from can
Medium 611 is dismantled to be mounted.When the computer program is executed by central processing unit (CPU) 601, system of the invention is executed
The above-mentioned function of middle restriction.
It should be noted that computer-readable medium shown in the present invention can be computer-readable signal media or meter
Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not
Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter
The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires
Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage
Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device,
Or above-mentioned any appropriate combination.In the present invention, computer readable storage medium can be it is any include or storage journey
The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this
In invention, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,
Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited
In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can
Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for
By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium
Program code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc. are above-mentioned
Any appropriate combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of various embodiments of the invention, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, program segment or code of table, a part of above-mentioned module, program segment or code include one or more
Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box
The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical
On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants
It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule
The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction
It closes to realize.
Being described in module involved in the embodiment of the present invention can be realized by way of software, can also be by hard
The mode of part is realized.Described module also can be set in the processor, for example, can be described as: a kind of processor packet
It includes and obtains module, enquiry module, generation module.Wherein, the title of these modules is not constituted under certain conditions to the module
The restriction of itself is also described as " obtaining the mould of the product information of product according to the identification code of product for example, obtaining module
Block ".
As on the other hand, the present invention also provides a kind of computer-readable medium, which be can be
Included in equipment described in above-described embodiment;It is also possible to individualism, and without in the supplying equipment.Above-mentioned calculating
Machine readable medium carries one or more program, when said one or multiple programs are executed by the equipment, makes
Obtaining the equipment includes: the identification code according to product, obtains the product information of product;According to the product information of product, product is inquired
The business voucher data of affiliated business;Business voucher is generated according to business voucher data.
Technical solution according to an embodiment of the present invention passes through the industry of the affiliated business of identification code Intelligent generation product of product
Business voucher improves the efficiency for generating business voucher so as to reduce cost of labor;Pass through the production of product in the embodiment of the present invention
Product information generates the identification code of product, identifies product by scanning recognition code to be advantageously implemented, reaches Intelligent generation industry
The effect of business voucher, reduces the time for generating business voucher;Pass through preservation business and its related products in the embodiment of the present invention
Corresponding relationship, and business voucher data are generated, so as to business belonging to inquiring by any one product in business
Business voucher data;By being related to the comparison of the first check code and the second check code of product in the embodiment of the present invention, thus
It can increase to the calibration link for generating business voucher, improve the safety of the business voucher of generation;It is pressed in the embodiment of the present invention
The product information of the product and the business voucher of the second check code, affiliated business and affiliated business are saved according to product dimension
The corresponding relationship of data, so as to directly inquire the second check code and/or business voucher number of product by product information
According to, improve generate business voucher efficiency;The second check code is changed after business voucher generation in the embodiment of the present invention, from
And the generation of phenomena such as business voucher can be issued, resell at a profit to avoid repetition.
Above-mentioned specific embodiment, does not constitute a limitation on the scope of protection of the present invention.Those skilled in the art should be bright
It is white, design requirement and other factors are depended on, various modifications, combination, sub-portfolio and substitution can occur.It is any
Made modifications, equivalent substitutions and improvements etc. within the spirit and principles in the present invention, should be included in the scope of the present invention
Within.
Claims (14)
1. a kind of method for generating business voucher characterized by comprising
According to the identification code of product, the product information of the product is obtained;
According to the product information of the product, the business voucher data of the affiliated business of the product are inquired;
Business voucher is generated according to the business voucher data.
2. the method according to claim 1, wherein obtaining the production of the product in the identification code according to product
Before product information, the method also includes: the identification code of the product is generated according to the product information of the product.
3. the method according to claim 1, wherein inquiring the production in the product information according to the product
Before the business voucher data of the affiliated business of product, the method also includes:
After service creation, the corresponding relationship of the business Yu its related products is saved, and generates the business of the business
Credential data.
4. the method according to claim 1, wherein the product information further includes the first check code of product;
And
In the product information according to the product, inquire before the business voucher data of the affiliated business of the product, by product
First check code is saved as the second check code of product.
5. according to the method described in claim 4, it is characterized in that, inquiring the production in the product information according to the product
Before the business voucher data of the affiliated business of product, the method also includes:
The product information of the product and the industry of the second check code, affiliated business and affiliated business are saved according to product dimension
The corresponding relationship of business Credential data.
6. according to the method described in claim 4, it is characterized in that, the method also includes:
Before generating business voucher according to the business voucher data, the first check code and described second of the product is judged
Whether check code is consistent, if unanimously, generating business voucher according to the business voucher data;And
After generating business voucher according to the business voucher data for the first time, all products involved in the business are changed
Second check code.
7. a kind of device for generating business voucher characterized by comprising
It obtains module and obtains the product information of the product for the identification code according to product;
Enquiry module inquires the business voucher data of the affiliated business of the product for the product information according to the product;
Generation module, for generating business voucher according to the business voucher data.
8. device according to claim 7, which is characterized in that described device further include: identification code generation module is used for root
The identification code of the product is generated according to the product information of the product.
9. device according to claim 7, which is characterized in that described device further include: preserving module, for being created in business
After building, the corresponding relationship of the business Yu its related products is saved, and generates the business voucher data of the business.
10. device according to claim 7, which is characterized in that the product information includes the first check code of product;With
And
The preserving module is also used to: being saved the first check code of product as the second check code of product.
11. device according to claim 10, which is characterized in that the preserving module is also used to: being protected according to product dimension
Deposit the corresponding pass of the product information of the product and the business voucher data of the second check code, affiliated business and affiliated business
System.
12. device according to claim 10, which is characterized in that the generation module is also used to:
Before generating business voucher according to the business voucher data, the first check code and described second of the product is judged
Whether check code is consistent, if unanimously, generating business voucher according to the business voucher data;And
After generating business voucher according to the business voucher data for the first time, all products involved in the business are changed
Second check code.
13. a kind of electronic 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
Now such as method as claimed in any one of claims 1 to 6.
14. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is held by processor
Such as method as claimed in any one of claims 1 to 6 is realized when row.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711164571.9A CN109829723A (en) | 2017-11-21 | 2017-11-21 | The method and apparatus for generating business voucher |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711164571.9A CN109829723A (en) | 2017-11-21 | 2017-11-21 | The method and apparatus for generating business voucher |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109829723A true CN109829723A (en) | 2019-05-31 |
Family
ID=66858063
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711164571.9A Pending CN109829723A (en) | 2017-11-21 | 2017-11-21 | The method and apparatus for generating business voucher |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109829723A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110659415A (en) * | 2019-09-04 | 2020-01-07 | 北京三快在线科技有限公司 | Method, device and system for generating business execution certificate |
CN112906364A (en) * | 2021-03-26 | 2021-06-04 | 建信金融科技有限责任公司 | Voucher generation method and device, electronic equipment and storage medium |
CN113762958A (en) * | 2021-01-04 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Method and device for generating electronic certificate |
CN114022264A (en) * | 2021-11-05 | 2022-02-08 | 平安科技(深圳)有限公司 | Method, device, equipment and storage medium for generating certificate |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104361509A (en) * | 2014-11-25 | 2015-02-18 | 许泽人 | Data processing method and device |
CN104867040A (en) * | 2015-05-11 | 2015-08-26 | 胡金钱 | Generation method and systems for taxi electronic invoices |
CN105096172A (en) * | 2015-06-12 | 2015-11-25 | 北京京东尚科信息技术有限公司 | Electronic invoice generating and processing method and system based on e-commerce platform |
US20170148058A1 (en) * | 2015-11-19 | 2017-05-25 | Mastercard International Incorporated | User registration system and methods |
CN107256502A (en) * | 2017-06-06 | 2017-10-17 | 山东浪潮商用系统有限公司 | A kind of generation method of electronic invoice, point-of-sale terminal, intelligent terminal and system |
-
2017
- 2017-11-21 CN CN201711164571.9A patent/CN109829723A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104361509A (en) * | 2014-11-25 | 2015-02-18 | 许泽人 | Data processing method and device |
CN104867040A (en) * | 2015-05-11 | 2015-08-26 | 胡金钱 | Generation method and systems for taxi electronic invoices |
CN105096172A (en) * | 2015-06-12 | 2015-11-25 | 北京京东尚科信息技术有限公司 | Electronic invoice generating and processing method and system based on e-commerce platform |
US20170148058A1 (en) * | 2015-11-19 | 2017-05-25 | Mastercard International Incorporated | User registration system and methods |
CN107256502A (en) * | 2017-06-06 | 2017-10-17 | 山东浪潮商用系统有限公司 | A kind of generation method of electronic invoice, point-of-sale terminal, intelligent terminal and system |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110659415A (en) * | 2019-09-04 | 2020-01-07 | 北京三快在线科技有限公司 | Method, device and system for generating business execution certificate |
CN110659415B (en) * | 2019-09-04 | 2022-05-10 | 北京三快在线科技有限公司 | Method, device and system for generating business execution certificate |
CN113762958A (en) * | 2021-01-04 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Method and device for generating electronic certificate |
CN112906364A (en) * | 2021-03-26 | 2021-06-04 | 建信金融科技有限责任公司 | Voucher generation method and device, electronic equipment and storage medium |
CN114022264A (en) * | 2021-11-05 | 2022-02-08 | 平安科技(深圳)有限公司 | Method, device, equipment and storage medium for generating certificate |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110472207A (en) | List generation method and device | |
CN109829723A (en) | The method and apparatus for generating business voucher | |
US20140105508A1 (en) | Systems and Methods for Intelligent Purchase Crawling and Retail Exploration | |
CN106611359A (en) | Method and system for invoicing electronic invoices | |
CN110209677A (en) | The method and apparatus of more new data | |
CN109766082A (en) | The method and apparatus that the application program page jumps | |
CN103065211A (en) | Techniques to provide enterprise resource planning functions from an e-mail client application | |
CN109981322A (en) | The method and apparatus of cloud resource management based on label | |
CN110109979A (en) | A kind of allocation list radio button method and apparatus | |
CN107634947A (en) | Limitation malice logs in or the method and apparatus of registration | |
CN108985784A (en) | Method and apparatus for storing information | |
CN110309142A (en) | The method and apparatus of regulation management | |
CN110134427A (en) | A kind of method and apparatus generating code file | |
CN110473036A (en) | A kind of method and apparatus generating order number | |
CN101388096A (en) | Multi-platform data standardization processing method and system | |
US20210027268A1 (en) | Commodity sales data processing apparatus and commodity sales data processing method | |
CN110515741A (en) | A kind of degradation processing method and device based on local task queue | |
CN109003093A (en) | The method, apparatus and system traced to the source for commodity | |
CN113392093A (en) | Service processing method and device, electronic equipment and computer readable medium | |
CN110070394A (en) | Data processing method, system, medium and calculating equipment | |
CN108399538A (en) | Operate the method and system of multiple accounts | |
CN109960212A (en) | Task sending method and device | |
CN109002282A (en) | A kind of method and apparatus for realizing animation effect in web page exploitation | |
CN110020349A (en) | The method and device of page rendering | |
CN113535101B (en) | Print file generation method and device, storage medium and electronic 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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190531 |