CN110473036A - A kind of method and apparatus generating order number - Google Patents

A kind of method and apparatus generating order number Download PDF

Info

Publication number
CN110473036A
CN110473036A CN201810437990.3A CN201810437990A CN110473036A CN 110473036 A CN110473036 A CN 110473036A CN 201810437990 A CN201810437990 A CN 201810437990A CN 110473036 A CN110473036 A CN 110473036A
Authority
CN
China
Prior art keywords
order
order number
article
inventory
taking responsibility
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.)
Granted
Application number
CN201810437990.3A
Other languages
Chinese (zh)
Other versions
CN110473036B (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 CN201810437990.3A priority Critical patent/CN110473036B/en
Publication of CN110473036A publication Critical patent/CN110473036A/en
Application granted granted Critical
Publication of CN110473036B publication Critical patent/CN110473036B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a kind of method and apparatus for generating order number, are related to field of computer technology.One specific embodiment of this method includes: the lower single operation for responding user to article, generates order taking responsibility;Whether the inventory's attribute for judging every kind of article in the order taking responsibility is unlimited inventory;If so, generating virtual order number corresponding with the order taking responsibility;If it is not, then generating practical order number corresponding with the order taking responsibility;Wherein, the digit of the practical order number is less than the digit of virtual order number.The embodiment is able to solve the problem of waste order number resource.

Description

A kind of method and apparatus generating order number
Technical field
The present invention relates to field of computer technology more particularly to a kind of method and apparatus for generating order number.
Background technique
In shopping website, there are many not in stock articles, for example lottery ticket, insures, supplements with money, the service such as e-book.It is this kind of Article has a common ground: not buying the upper limit, and will not run out of goods.By taking lottery ticket as an example, user can buy 10 lottery tickets, 100 lottery tickets can also be bought, without any restrictions.For these not in stock articles, no matter user buys at any point in time As long as payment, so that it may it produces, needs to check whether for commodity in stock, then before placing an order available in stock, otherwise can not place an order, or It can not produce and (deliver) after placing an order.
Realize process of the present invention in, inventor discovery at least there are the following problems in the prior art: not in stock article and The process of article generation order number is consistent in stock, is that order number is generated after being placed an order with click, waits user-pay, if User does not pay the bill, and order can be cancelled automatically after a period of time, causes the order number wasting of resources.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of method and apparatus for generating order number, to solve waste order number The technical issues of resource.
To achieve the above object, according to an aspect of an embodiment of the present invention, a kind of generation order number method is provided, is wrapped It includes:
Lower single operation of the user to article is responded, order taking responsibility is generated;
Whether the inventory's attribute for judging every kind of article in the order taking responsibility is unlimited inventory;If so, generation and institute State the corresponding virtual order number of order taking responsibility;If it is not, then generating practical order number corresponding with the order taking responsibility;
Wherein, the digit of the practical order number is less than the digit of virtual order number.
Optionally, after generating virtual order number corresponding with the order taking responsibility, the method also includes:
Delivery operation of the user to the corresponding order taking responsibility of the virtual order number is responded, is generated and the order taking responsibility pair The practical order number answered.
Optionally, the virtual order number includes Universally Unique Identifier, and the practical order number includes representing order to appoint Business generates the number and several random numbers of time.
Optionally, lower single operation of the response user to article generates order taking responsibility, comprising:
Lower single operation of the user to article is responded, if inventory's attribute of the article is unlimited inventory, and/or, it is described Inventory's attribute of article is limited inventory, and the stockpile number of the article is more than or equal to lower single quantity, then generates order and appoint Business.
In addition, other side according to an embodiment of the present invention, provides a kind of device for generating order number, comprising:
Task generation module generates order taking responsibility for responding lower single operation of the user to article;
Order number generation module, for judging whether inventory's attribute of every kind of article in the order taking responsibility is unlimited library It deposits;If so, generating virtual order number corresponding with the order taking responsibility;If it is not, then generating corresponding with the order taking responsibility Practical order number;
Wherein, the digit of the practical order number is less than the digit of virtual order number.
Optionally, described device further include:
Payment module, for after generating virtual order number corresponding with the order taking responsibility, responding user to described The delivery operation of the corresponding order taking responsibility of virtual order number generates practical order number corresponding with the order taking responsibility.
Optionally, the virtual order number includes Universally Unique Identifier, and the practical order number includes representing order to appoint Business generates the number and several random numbers of time.
Optionally, the task generation module, is used for:
Lower single operation of the user to article is responded, if inventory's attribute of the article is unlimited inventory, and/or, it is described Inventory's attribute of article is limited inventory, and the stockpile number of the article is more than or equal to lower single quantity, then generates order and appoint Business.
Other side according to an embodiment of the present invention, additionally provides a kind of electronic equipment, 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 processing Device realizes method described in any of the above-described embodiment.
Other side according to an embodiment of the present invention additionally provides a kind of computer-readable medium, is stored thereon with meter Calculation machine program, realizes method described in any of the above-described embodiment when described program is executed by processor.
If one embodiment in foregoing invention has the following advantages that or the utility model has the advantages that because uses every in order taking responsibility Inventory's attribute of kind article is unlimited inventory, then generates the technological means of virtual order number corresponding with the order taking responsibility, So the technical issues of overcoming waste order number resource, the present invention is based on inventory's attribute of article, judges whether it is unlimited Inventory generates virtual order number to the order taking responsibility of unlimited stock article and does not need user that is, for unlimited stock article Practical order number is generated when lower single, avoids the waste of useless lower single pair order number resource, to solve waste order number resource The problem of.Moreover, Universally Unique Identifier have the advantages that it is globally unique and resourceful so that there is enough virtual orders number Resource, to avoid wasting practical order number resource.
For unlimited stock article, method provided in an embodiment of the present invention is not generated and is actually ordered after user places an order Odd numbers, but generate virtual order number, until user completes the payment of order taking responsibility within a preset time, the just practical order of generation Number, therefore will not there is a situation where waste practical order number resource.Therefore, the characteristics of the present invention is based on unlimited stock articles, no Practical order number is generated when needing single under user, avoids the waste of useless lower single pair order number resource, but in user-pay Practical order number is just generated when success, is then produced, and is caused so that user be avoided not pay the bill when buying the article of unlimited inventory Order number waste.
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 main flow of the method according to an embodiment of the present invention for generating order number;
Fig. 2 be according to the present invention one can refer to embodiment generation order number method main flow schematic diagram;
Fig. 3 is the schematic diagram of the main modular of the device according to an embodiment of the present invention for generating order number;
Fig. 4 is that the embodiment of the present invention can be applied to exemplary system architecture figure therein;
Fig. 5 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.
In order to avoid the waste of order number resource, the invention proposes a kind of methods for generating order number, comprising: response is used Lower single operation of the family to article generates order taking responsibility;Judge every kind of article in the order taking responsibility inventory's attribute whether be Unlimited inventory;If so, generating virtual order number corresponding with the order taking responsibility;If it is not, then generating and the order taking responsibility Corresponding practical order number;Wherein, the digit of the practical order number is less than the digit of virtual order number.Therefore, this method base In inventory's attribute of article, judge whether it is unlimited inventory, virtual order number generated to the order taking responsibility of unlimited stock article, That is, generating practical order number when not needing be single under user for unlimited stock article, avoiding useless lower single pair The waste of order number resource, to solve the problems, such as waste order number resource.
Fig. 1 is the schematic diagram of the main flow of the method according to an embodiment of the present invention for generating order number.As the present invention One embodiment, as shown in Figure 1, it is described generate order number method may include:
Step 101, lower single operation of the response user to article generates order taking responsibility.
In this step, when user select purchase article and place an order operate when, response user place an order to article Operation generates order taking responsibility.
As another embodiment of the invention, step 101 includes: the lower single operation for responding user to article, if institute The inventory's attribute for stating article is unlimited inventory, and/or, inventory's attribute of the article is limited inventory, and the article Stockpile number is more than or equal to lower single quantity, then generates order taking responsibility.
When user select the article of purchase and place an order operate when, judge inventory's attribute of these articles: if all Inventory's attribute of article is unlimited inventory, then directly generates order taking responsibility;If attribute is the article of limited inventory in stock, Then continue to judge whether inventory's attribute is more than or equal to lower single quantity for the stockpile number of the article of limited inventory, if it is, raw At order taking responsibility, if it is not, then not generating order taking responsibility.
Since the article that inventory's attribute is unlimited inventory does not buy the upper limit, order taking responsibility is directly generated, without Carry out the judgement of stockpile number.And for inventory's attribute be the article of limited inventory, then need first to judge whether stockpile number is sufficient It is enough, order taking responsibility otherwise can not be generated, can not be produced after being generated to avoid order taking responsibility.
Step 102, whether the inventory's attribute for judging every kind of article in the order taking responsibility is unlimited inventory;If so, Generate virtual order number corresponding with the order taking responsibility;If it is not, then generating practical order number corresponding with the order taking responsibility. Wherein, the digit of the practical order number is less than the digit of virtual order number.
In this step, whether the inventory's attribute for judging every kind of article in order taking responsibility is unlimited inventory, if order Inventory's attribute of every kind of article is unlimited inventory in task, then generates virtual order number corresponding with the order taking responsibility.Such as There are the article that at least one inventory's attribute is limited inventory in fruit order, then reality corresponding with the order taking responsibility is generated Order number.That is, can only be generated if user selects the article of limited inventory to place an order together with the article of limited inventory Practical order number will not waste order number resource in this way.
Optionally, the virtual order number includes Universally Unique Identifier.The embodiment of the present invention uses general unique identification Code (Universally Unique Identifier, abbreviation UUID) be used as virtual order number, a kind of standard of software construction, Also a part in distributed computing environment field is woven in for Open Software Foundation's group, with globally unique and resourceful Advantage, so that having enough virtual order resources, to avoid wasting practical order number resource.
In another embodiment of the present invention, the practical order number includes the number for representing order taking responsibility and generating the time With several random numbers.Optionally, the practical order number can generate the digital of time and several by representing order taking responsibility Random number composition, to reduce the sweep time to order taking responsibility, improves business processing effect to reduce the digit of practical order number Rate.
According to various embodiments recited above, it can be seen that if the present invention is by using every kind of article in order taking responsibility Inventory's attribute be unlimited inventory, then the technological means of corresponding with order taking responsibility virtual order number is generated, to solve The problem of waste order number resource of having determined.That is, the prior art is not in stock article and article generates order number in stock Process it is consistent, be that order number is generated after being placed an order with click, wait user-pay, if user does not pay the bill, order pass through A period of time can be cancelled automatically, cause the order number wasting of resources.And the present invention is based on inventory's attribute of article, judge its whether be Unlimited inventory generates virtual order number to the order taking responsibility of unlimited stock article and does not need that is, for unlimited stock article Practical order number is generated when single under user, avoids the waste of useless lower single pair order number resource, to solve waste order number The problem of resource.Moreover, Universally Unique Identifier has the advantages that globally unique and resourceful, enough virtually ordered so that having Odd numbers resource, to avoid wasting practical order number resource.
As shown in Figure 1, after step 102, the method can also be further as yet another embodiment of the present invention Include:
Step 103, delivery operation of the response user to the corresponding order taking responsibility of the virtual order number, generation are ordered with described The corresponding practical order number of single task.
After generating order taking responsibility, there are two types of operations by user, and one is the branch for completing order taking responsibility within a preset time It pays, another kind is the payment of backlog task within a preset time, i.e., time-out is not paid.If user is within a preset time The payment of backlog task then will be deleted the order taking responsibility, so as to cause the waste of order number resource.
And method provided in an embodiment of the present invention is based on different payment results, to determine whether further to step 102 In the corresponding order taking responsibility of virtual order number generate practical order number.
If user selects payment on the page, cashier is jumped to, judges whether user completes within a preset time Payment to the order taking responsibility continues to determine whether to be virtual order number after user pays successfully, if it is, generate with The corresponding practical order number of the order taking responsibility, and the task status of order taking responsibility is revised as having paid.
As it can be seen that method provided in an embodiment of the present invention does not generate reality after user places an order for unlimited stock article Border order number, but virtual order number is generated, until user completes the payment of order taking responsibility within a preset time, just generation is practical Order number, will not waste order number resource if not paying the bill, therefore will not there is a situation where waste practical order number resource.Cause This, the characteristics of the present invention is based on unlimited stock articles, generates practical order number, avoids useless place an order when not needing be single under user Waste to order number resource, but practical order number is just generated in user-pay success, it then produces, to avoid user Order number caused by not paying the bill when buying the article of unlimited inventory wastes.
Fig. 2 is another signal that can refer to the main flow of the method for the generation order number of embodiment according to the present invention Figure, the method for generating order number may include:
Step 201, lower single operation of the response user to article generates order taking responsibility.
Step 202, whether the inventory's attribute for judging every kind of article in the order taking responsibility is unlimited inventory;If so, Step 203 is executed, if it is not, thening follow the steps 204.
Step 203, virtual order number corresponding with the order taking responsibility is generated, wherein the virtual order number is general Unique identifier, and the digit of the practical order number is less than the digit of virtual order number.
Step 204, practical order number corresponding with the order taking responsibility is generated;Wherein, the practical order number is by representing Order taking responsibility generates the number and several random numbers composition of time.
Step 205, delivery operation of the response user to the corresponding order taking responsibility of the virtual order number, generation are ordered with described The corresponding practical order number of single task, and the task status for updating the order taking responsibility is to have paid.
Step 206, delivery operation of the response user to the corresponding order taking responsibility of the practical order number, updates the order The task status of task is to have paid.
According to various embodiments recited above, it can be seen that if the present invention is by using every kind of article in order taking responsibility Inventory's attribute be unlimited inventory, then the technological means of corresponding with order taking responsibility virtual order number is generated, to solve The problem of waste order number resource of having determined.That is, the prior art is not in stock article and article generates order number in stock Process it is consistent, be that order number is generated after being placed an order with click, wait user-pay, if user does not pay the bill, order pass through A period of time can be cancelled automatically, cause the order number wasting of resources.And the present invention is based on inventory's attribute of article, judge its whether be Unlimited inventory generates virtual order number to the order taking responsibility of unlimited stock article and does not need that is, for unlimited stock article Practical order number is generated when single under user, avoids the waste of useless lower single pair order number resource, to solve waste order number The problem of resource.Moreover, Universally Unique Identifier has the advantages that globally unique and resourceful, enough virtually ordered so that having Odd numbers resource, to avoid wasting practical order number resource.For unlimited stock article, side provided in an embodiment of the present invention Method does not generate practical order number after user places an order, but generates virtual order number, until user completes to order within a preset time The payment of single task, just generates practical order number, therefore will not there is a situation where waste practical order number resource.Therefore, this hair Bright the characteristics of being based on unlimited stock article, practical order number is generated when not needing be single under user, avoids useless lower single pair order The waste of number resource, but the just practical order number of generation in user-pay success, then produce, so that user be avoided to buy Order number caused by not paying the bill when the article of unlimited inventory wastes.
In addition, can refer to the specific implementation content for generating the method for order number in embodiment at the present invention one, above It has been described in detail in the method for generating order number, therefore has no longer illustrated in this duplicate contents.
Fig. 3 is the schematic diagram of the main modular of the device according to an embodiment of the present invention for generating order number, as shown in figure 3, The device for generating order number includes task generation module 301 and order number generation module 302.Wherein, the task generates Module 301 responds lower single operation of the user to article, generates order taking responsibility, and the order number generation module 302 judges described order Whether inventory's attribute of every kind of article is unlimited inventory in single task;If so, generating void corresponding with the order taking responsibility Work out odd numbers;If it is not, then generating practical order number corresponding with the order taking responsibility;Wherein, the digit of the practical order number Less than the digit of virtual order number.
Optionally, the task generation module 301 responds lower single operation of the user to article, if the inventory of the article Attribute is unlimited inventory, and/or, inventory's attribute of the article is limited inventory, and the stockpile number of the article is greater than Equal to lower single quantity, then order taking responsibility is generated.
When user select purchase article and place an order operate when, the task generation module 301 judges these articles Inventory's attribute: if inventory's attribute of all items is unlimited inventory, directly generate order taking responsibility;If belonged in stock Property be limited inventory article, then continue under judging whether inventory's attribute is more than or equal to for the stockpile number of the article of limited inventory Odd number amount, if it is, order taking responsibility is generated, if it is not, then not generating order taking responsibility.
Since the article that inventory's attribute is unlimited inventory does not buy the upper limit, order taking responsibility is directly generated, without Carry out the judgement of stockpile number.And for inventory's attribute be the article of limited inventory, then need first to judge whether stockpile number is sufficient It is enough, order taking responsibility otherwise can not be generated, can not be produced after being generated to avoid order taking responsibility.
The order number generation module 302 judges whether inventory's attribute of every kind of article in order taking responsibility is unlimited library It deposits, if inventory's attribute of every kind of article is unlimited inventory in order taking responsibility, generates void corresponding with the order taking responsibility Work out odd numbers.If generating and appointing with the order there are the article that at least one inventory's attribute is limited inventory in order It is engaged in corresponding practical order number.That is, if user selects the article of limited inventory and the article one of limited inventory to remove It is single, then practical order number only can be generated, order number resource will not be wasted in this way.
Optionally, the virtual order number includes Universally Unique Identifier.The embodiment of the present invention uses general unique identification Code is used as virtual order number, have the advantages that it is globally unique and resourceful so that there is enough virtual order resources, from And it avoids wasting practical order number resource.
In another embodiment of the present invention, the practical order number includes the number for representing order taking responsibility and generating the time With several random numbers.Optionally, the practical order number can generate the digital of time and several by representing order taking responsibility Random number composition, to reduce the sweep time to order taking responsibility, improves business processing effect to reduce the digit of practical order number Rate.
Optionally, described device further includes payment module 303, and the payment module 303 responds user and virtually orders to described The delivery operation of the corresponding order taking responsibility of odd numbers generates practical order number corresponding with the order taking responsibility.
According to various embodiments recited above, it can be seen that if the present invention is by using every kind of article in order taking responsibility Inventory's attribute be unlimited inventory, then the technological means of corresponding with order taking responsibility virtual order number is generated, to solve The problem of waste order number resource of having determined.That is, the prior art is not in stock article and article generates order number in stock Process it is consistent, be that order number is generated after being placed an order with click, wait user-pay, if user does not pay the bill, order pass through A period of time can be cancelled automatically, cause the order number wasting of resources.And the present invention is based on inventory's attribute of article, judge its whether be Unlimited inventory generates virtual order number to the order taking responsibility of unlimited stock article and does not need that is, for unlimited stock article Practical order number is generated when single under user, avoids the waste of useless lower single pair order number resource, to solve waste order number The problem of resource.Moreover, Universally Unique Identifier has the advantages that globally unique and resourceful, enough virtually ordered so that having Odd numbers resource, to avoid wasting practical order number resource.For unlimited stock article, side provided in an embodiment of the present invention Method does not generate practical order number after user places an order, but generates virtual order number, until user completes to order within a preset time The payment of single task, just generates practical order number, therefore will not there is a situation where waste practical order number resource.Therefore, this hair Bright the characteristics of being based on unlimited stock article, practical order number is generated when not needing be single under user, avoids useless lower single pair order The waste of number resource, but the just practical order number of generation in user-pay success, then produce, so that user be avoided to buy Order number caused by not paying the bill when the article of unlimited inventory wastes.
It should be noted that in the specific implementation content of the device of the present invention for generating order number, life described above At being described in detail in the method for order number, therefore no longer illustrate in this duplicate contents.
Fig. 4 is shown can showing using the device of the method or generation order number of the generation order number of the embodiment of the present invention Example property system architecture 400.
As shown in figure 4, system architecture 400 may include terminal device 401,402,403, network 404 and server 405. Network 404 between terminal device 401,402,403 and server 405 to provide the medium of communication link.Network 404 can be with Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be used terminal device 401,402,403 and be interacted by network 404 with server 405, 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 401,402,403 (merely illustrative) such as the application of page browsing device, searching class application, instant messaging tools, mailbox client, social platform softwares.
Terminal device 401,402,403 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 405 can be to provide the server of various services, such as utilize terminal device 401,402,403 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 generating the terminal of the method for order number generally in public places provided by the embodiment of the present invention It executes, can also be executed by server 405 in equipment 401,402,403, correspondingly, the device for generating order number is generally set It sets on terminal device 401,402,403 in public places, also can be set in server 405.
It should be understood that the number of terminal device, network and server in Fig. 4 is only schematical.According to realization need It wants, can have any number of terminal device, network and server.
Below with reference to Fig. 5, it illustrates the computer systems 500 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. 5 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 figure 5, computer system 500 includes central processing unit (CPU) 501, it can be read-only according to being stored in Program in memory (ROM) 502 or be loaded into the program in random access storage device (RAM) 503 from storage section 508 and Execute various movements appropriate and processing.In RAM 503, also it is stored with system 500 and operates required various programs and data. CPU 501, ROM 502 and RAM503 are connected with each other by bus 504.Input/output (I/O) interface 505 is also connected to always Line 504.
I/O interface 505 is connected to lower component: the importation 506 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 507 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 508 including hard disk etc.; And the communications portion 509 of the network interface card including LAN card, modem etc..Communications portion 509 via such as because The network of spy's net executes communication process.Driver 510 is also connected to I/O interface 505 as needed.Detachable media 511, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 510, in order to read from thereon Computer program be mounted into storage section 508 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 In such embodiment, which can be downloaded and installed from network by communications portion 509, and/or from can Medium 511 is dismantled to be mounted.When the computer program is executed by central processing unit (CPU) 501, 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 Include task generation module, order number generation module and payment module, wherein the title of these modules not structure under certain conditions The restriction of the pairs of module itself.
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 lower single operation for responding user to article, generates order taking responsibility;Judge every kind of article in the order taking responsibility Inventory's attribute whether be unlimited inventory;If so, generating virtual order number corresponding with the order taking responsibility, wherein institute Stating virtual order number includes Universally Unique Identifier;If it is not, then generating practical order number corresponding with the order taking responsibility.
Technical solution according to an embodiment of the present invention, if because equal using inventory's attribute of every kind of article in order taking responsibility For unlimited inventory, then the technological means of virtual order number corresponding with the order taking responsibility is generated, so overcoming waste order The technical issues of number resource, the present invention is based on inventory's attribute of article, judge whether it is unlimited inventory, to unlimited stock article Order taking responsibility generate virtual order number, i.e., for unlimited stock article, practical order is generated when not needing under user be single Number, the waste of useless lower single pair order number resource is avoided, to solve the problems, such as waste order number resource.Moreover, it is general only One identification code have the advantages that it is globally unique and resourceful so that having enough virtual order resources, to avoid wasting Practical order number resource.For unlimited stock article, method provided in an embodiment of the present invention does not generate after user places an order Practical order number, but virtual order number is generated, until user completes the payment of order taking responsibility within a preset time, just generation is real Border order number, therefore will not there is a situation where waste practical order number resource.Therefore, the present invention is based on the spies of unlimited stock article Point generates practical order number, avoids the waste of useless lower single pair order number resource when not needing be single under user, but in user Practical order number is just generated when successful payment, is then produced, so that user be avoided not pay the bill when buying the article of unlimited inventory Caused by order number waste.
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 (10)

1. a kind of method for generating order number characterized by comprising
Lower single operation of the user to article is responded, order taking responsibility is generated;
Whether the inventory's attribute for judging every kind of article in the order taking responsibility is unlimited inventory;It is ordered if so, generating with described The corresponding virtual order number of single task;If it is not, then generating practical order number corresponding with the order taking responsibility;
Wherein, the digit of the practical order number is less than the digit of virtual order number.
2. the method according to claim 1, wherein generating virtual order number corresponding with the order taking responsibility Later, further includes:
Delivery operation of the user to the corresponding order taking responsibility of the virtual order number is responded, is generated corresponding with the order taking responsibility Practical order number.
3. method according to claim 1 or 2, which is characterized in that the virtual order number includes Universally Unique Identifier, The practical order number includes the number and several random numbers for representing order taking responsibility and generating the time.
4. the method according to claim 1, wherein lower single operation of the response user to article, generates order and appoints Business, comprising:
Lower single operation of the user to article is responded, if inventory's attribute of the article is unlimited inventory, and/or, the article Inventory's attribute be limited inventory, and the stockpile number of the article is more than or equal to lower single quantity, then generates order taking responsibility.
5. a kind of device for generating order number characterized by comprising
Task generation module generates order taking responsibility for responding lower single operation of the user to article;
Order number generation module, for judging whether inventory's attribute of every kind of article in the order taking responsibility is unlimited inventory; If so, generating virtual order number corresponding with the order taking responsibility;If it is not, then generating reality corresponding with the order taking responsibility Order number;
Wherein, the digit of the practical order number is less than the digit of virtual order number.
6. device according to claim 5, which is characterized in that further include:
Payment module, for after generating virtual order number corresponding with the order taking responsibility, response user to be to described virtual The delivery operation of the corresponding order taking responsibility of order number generates practical order number corresponding with the order taking responsibility.
7. device according to claim 5 or 6, which is characterized in that the virtual order number includes Universally Unique Identifier, The practical order number includes the number and several random numbers for representing order taking responsibility and generating the time.
8. device according to claim 5, which is characterized in that the task generation module is used for:
Lower single operation of the user to article is responded, if inventory's attribute of the article is unlimited inventory, and/or, the article Inventory's attribute be limited inventory, and the stockpile number of the article is more than or equal to lower single quantity, then generates order taking responsibility.
9. 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 The now method as described in any in claim 1-4.
10. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is held by processor The method as described in any in claim 1-4 is realized when row.
CN201810437990.3A 2018-05-09 2018-05-09 Method and device for generating order number Active CN110473036B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810437990.3A CN110473036B (en) 2018-05-09 2018-05-09 Method and device for generating order number

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810437990.3A CN110473036B (en) 2018-05-09 2018-05-09 Method and device for generating order number

Publications (2)

Publication Number Publication Date
CN110473036A true CN110473036A (en) 2019-11-19
CN110473036B CN110473036B (en) 2024-05-24

Family

ID=68503640

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810437990.3A Active CN110473036B (en) 2018-05-09 2018-05-09 Method and device for generating order number

Country Status (1)

Country Link
CN (1) CN110473036B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111210299A (en) * 2019-12-25 2020-05-29 深圳猛犸电动科技有限公司 Single number generation and management method and device
CN111242548A (en) * 2020-01-13 2020-06-05 北京京东振世信息技术有限公司 Logistics order distribution method and device
CN111461834A (en) * 2020-03-31 2020-07-28 时时同云科技(成都)有限责任公司 Order processing method and device and order display method and device
CN112700308A (en) * 2021-01-14 2021-04-23 广东电网有限责任公司广州供电局 Order generation method, device, terminal and storage medium
CN112907345A (en) * 2021-03-30 2021-06-04 携程商旅信息服务(上海)有限公司 Method, system, device and medium for ticket settlement based on identification code
CN114969059A (en) * 2022-07-28 2022-08-30 建信金融科技有限责任公司 Method and device for generating order information, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110003042A (en) * 2009-07-03 2011-01-11 삼성증권주식회사 Method and system for managing order using giving-number process of personalized virtual order number
US20130297435A1 (en) * 2012-05-04 2013-11-07 Nintendo Of America Inc. Systems and/or methods for selling non-inventory items at point-of-sale (pos) locations
CN104980903A (en) * 2015-06-30 2015-10-14 华为技术有限公司 Method and apparatus for protecting user' privacy
CN105373906A (en) * 2015-10-22 2016-03-02 北京京东尚科信息技术有限公司 Method, system, server, and terminal device for achieving transaction service
CN105447736A (en) * 2014-08-19 2016-03-30 阿里巴巴集团控股有限公司 Transaction processing and logistics solution method and apparatus in commodity transaction
CN105528725A (en) * 2015-07-24 2016-04-27 广州交易猫信息技术有限公司 Account product transaction processing method and system and transaction server

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110003042A (en) * 2009-07-03 2011-01-11 삼성증권주식회사 Method and system for managing order using giving-number process of personalized virtual order number
US20130297435A1 (en) * 2012-05-04 2013-11-07 Nintendo Of America Inc. Systems and/or methods for selling non-inventory items at point-of-sale (pos) locations
CN105447736A (en) * 2014-08-19 2016-03-30 阿里巴巴集团控股有限公司 Transaction processing and logistics solution method and apparatus in commodity transaction
CN104980903A (en) * 2015-06-30 2015-10-14 华为技术有限公司 Method and apparatus for protecting user' privacy
CN105528725A (en) * 2015-07-24 2016-04-27 广州交易猫信息技术有限公司 Account product transaction processing method and system and transaction server
CN105373906A (en) * 2015-10-22 2016-03-02 北京京东尚科信息技术有限公司 Method, system, server, and terminal device for achieving transaction service

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111210299A (en) * 2019-12-25 2020-05-29 深圳猛犸电动科技有限公司 Single number generation and management method and device
CN111210299B (en) * 2019-12-25 2024-04-19 深圳猛犸电动科技有限公司 Single number generation and management method and device
CN111242548A (en) * 2020-01-13 2020-06-05 北京京东振世信息技术有限公司 Logistics order distribution method and device
CN111242548B (en) * 2020-01-13 2023-09-29 北京京东振世信息技术有限公司 Logistics order distribution method and device
CN111461834A (en) * 2020-03-31 2020-07-28 时时同云科技(成都)有限责任公司 Order processing method and device and order display method and device
CN111461834B (en) * 2020-03-31 2023-06-20 时时同云科技(成都)有限责任公司 Order processing method and device and order display method and device
CN112700308A (en) * 2021-01-14 2021-04-23 广东电网有限责任公司广州供电局 Order generation method, device, terminal and storage medium
CN112907345A (en) * 2021-03-30 2021-06-04 携程商旅信息服务(上海)有限公司 Method, system, device and medium for ticket settlement based on identification code
CN114969059A (en) * 2022-07-28 2022-08-30 建信金融科技有限责任公司 Method and device for generating order information, electronic equipment and storage medium
CN114969059B (en) * 2022-07-28 2022-10-25 建信金融科技有限责任公司 Method and device for generating order information, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110473036B (en) 2024-05-24

Similar Documents

Publication Publication Date Title
CN110473036A (en) A kind of method and apparatus generating order number
CN108985809A (en) Motivate method, apparatus, electronic equipment and the storage medium of push
CN110245011A (en) A kind of method for scheduling task and device
CN109840734A (en) Information output method and device
CN110371560A (en) Automatically the method and apparatus made an inventory
CN107844324A (en) Customer terminal webpage redirects treating method and apparatus
CN109961306A (en) A kind of inventory allocation method and apparatus of article
CN110427304A (en) O&M method, apparatus, electronic equipment and medium for banking system
CN109150929A (en) Data request processing method and apparatus under high concurrent scene
CN108764963A (en) It is a kind of based on the electric business transaction platform for answering valence agreement
CN109902986A (en) Method and apparatus for output information
CN110515741A (en) A kind of degradation processing method and device based on local task queue
CN109960212A (en) Task sending method and device
CN111275450B (en) Processing method and system of associated preferential information after commodity return
CN105488716A (en) Method and system for processing enterprise resource data
CN113762863A (en) Inventory management method and device
CN109840724A (en) Method and apparatus for output information
CN112347344A (en) Management method and device for multi-period additional resource certificate and electronic equipment
US20240054451A1 (en) Inventory information processing method and device
CN110956478A (en) Method and device for determining goods input quantity
CN115526587A (en) Method and device for generating customs message
CN110895777A (en) Method and device for processing overtime service list
CN110363558A (en) A kind of method and apparatus generating commodity association message
CN114445128A (en) Card ticket management method and device, electronic equipment and computer readable medium
CN113222680A (en) Method and device for generating order

Legal Events

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