CN112184367A - Order processing method and device - Google Patents
Order processing method and device Download PDFInfo
- Publication number
- CN112184367A CN112184367A CN202010979477.4A CN202010979477A CN112184367A CN 112184367 A CN112184367 A CN 112184367A CN 202010979477 A CN202010979477 A CN 202010979477A CN 112184367 A CN112184367 A CN 112184367A
- Authority
- CN
- China
- Prior art keywords
- order
- order number
- character
- processed
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 16
- 238000012545 processing Methods 0.000 claims abstract description 43
- 238000000034 method Methods 0.000 claims abstract description 22
- 238000013507 mapping Methods 0.000 claims abstract description 18
- 238000006243 chemical reaction Methods 0.000 claims abstract description 13
- 238000004590 computer program Methods 0.000 claims description 8
- 238000004140 cleaning Methods 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 12
- 238000004891 communication Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 4
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000009466 transformation Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 239000000835 fiber Substances 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 230000001502 supplementing effect Effects 0.000 description 2
- 238000010276 construction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
- G06Q30/0633—Lists, e.g. purchase orders, compilation or processing
- G06Q30/0635—Processing 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)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses an order processing method and device, and relates to the technical field of computers. A specific implementation mode of the method comprises the steps of receiving an order number generation instruction, calling a preset coding rule, further obtaining order information, and generating a corresponding character string through a preset conversion model based on the order information; acquiring current system time, an IP address and a random number, and generating a to-be-processed order number according to the character string generated by the order information in a splicing manner; judging whether non-numeric characters exist in the order number to be processed or not, if so, identifying the character type and calling a corresponding mapping model to obtain a target order number; if not, the order number to be processed is taken as the target order number; and processing the corresponding task according to the target order number. Therefore, the method and the device for processing the order can solve the problems that errors are easy to occur in related tasks processed according to the order due to the fact that an accurate order number cannot be generated, unnecessary economic losses are caused, and user experience is poor.
Description
Technical Field
The invention relates to the technical field of computers, in particular to an order processing method and device.
Background
In electronic commerce, it is often necessary to generate order numbers, typically by concatenation of time-stamped and random number strings. If the random number string is the same in milliseconds at this time, the order number is repeated, and the tool can be generated by a character string of UUID (Universal Unique Identifier).
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art:
however, the generation of order numbers by UUIDs does not allow the generation of pure numeric strings and the direct use of random numeric strings is also highly repeatable on the millisecond level. In addition, a pure number is obtained by directly performing a HASH algorithm on the generated UUID, or a pure number character string is obtained by using a method such as UUID. Therefore, errors are easy to occur in related tasks processed according to orders due to the fact that accurate order numbers cannot be generated, unnecessary economic losses are caused, and user experience is poor.
Disclosure of Invention
In view of this, embodiments of the present invention provide an order processing method and an order processing device, which can solve the problems that an error is easily generated in a related task processed according to an order due to an inability to generate an accurate order number, so that unnecessary economic loss is caused, and user experience is poor.
In order to achieve the above object, according to an aspect of the embodiments of the present invention, an order processing method is provided, including receiving an instruction to generate an order number, calling a preset encoding rule, and further acquiring order information, so as to generate a corresponding character string through a preset conversion model based on the order information; acquiring current system time, an IP address and a random number, and generating a to-be-processed order number according to the character string generated by the order information in a splicing manner;
judging whether non-numeric characters exist in the order number to be processed or not, if so, identifying the character type and calling a corresponding mapping model to obtain a target order number; if not, the order number to be processed is used as a target order number; and processing the corresponding task according to the target order number.
Optionally, recognizing the character type calls a corresponding mapping model to obtain the target order number, including:
and calling a character mapping model when the character type is recognized as a letter, converting the letter into a char type character, and converting the char type character into an int type number so as to obtain a mapped digital character through the int type number.
Optionally, before converting the alphabet into the char type character, the method further includes:
and if the letter is upper case, converting into lower case.
Optionally, obtaining the current system time includes:
acquiring the current system time of millisecond level, and extracting the numeric character string of the current system time.
Optionally, obtaining the IP address includes:
and acquiring the IP address of the network bottom layer protocol.
Optionally, generating a corresponding character string through a preset conversion model based on the order information, including
And extracting the target object in the order information, and processing the target object through a Hash algorithm to obtain a corresponding Hash value.
Optionally, after generating the to-be-processed order number according to the character string generated by the order information by splicing, the method further includes:
and calling a preset rejection model, and cleaning the character strings in the order number to be processed.
In addition, the invention also provides an order processing device which comprises an acquisition module, a conversion module and a processing module, wherein the acquisition module is used for receiving an order number generation instruction, calling a preset coding rule and further acquiring order information so as to generate a corresponding character string through a preset conversion model based on the order information; acquiring current system time, an IP address and a random number, and generating a to-be-processed order number according to the character string generated by the order information in a splicing manner;
the processing module is used for judging whether non-numeric characters exist in the order number to be processed or not, if so, identifying the character type and calling a corresponding mapping model to obtain a target order number; if not, the order number to be processed is used as a target order number; and processing the corresponding task according to the target order number.
One embodiment of the above invention has the following advantages or benefits: the invention utilizes the generation rule of the UUID, meets the order processing of pure numbers and fixed length, and has the characteristic of extremely low UUID repetition probability, thereby reducing the probability of generating repetition.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
fig. 1 is a schematic view of a main flow of an order processing method according to a first embodiment of the present invention;
FIG. 2 is a schematic diagram of an order number according to an embodiment of the invention;
FIG. 3 is a schematic view of a main flow of an order processing method according to a second embodiment of the present invention;
FIG. 4 is a schematic diagram of the main modules of an order processing apparatus according to an embodiment of the present invention;
FIG. 5 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
fig. 6 is a schematic block diagram of a computer system suitable for use in implementing a terminal device or server of an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a schematic diagram of a main flow of an order processing method according to a first embodiment of the present invention, as shown in fig. 1, the order processing method includes:
step S101, receiving an order number generation instruction, calling a preset coding rule, further acquiring order information, and generating a corresponding character string through a preset conversion model based on the order information; and acquiring the current system time, the IP address and the random number, and splicing the character strings generated according to the order information to generate the order number to be processed.
In an embodiment, the preset encoding rule may be defined as a primary key of a character string, and the primary key is composed of 32-bit numbers, and the encoding is 16-ary, and defines system information that is completely unique in both time and space. For example: and adopting a UUID (Universal Unique Identifier) encoding rule. As shown in fig. 2, preferably, when acquiring the current system time, the current system time in milliseconds may be acquired, and the numeric string of the current system time is extracted. For example: the current system time is obtained as 201009091000, that is, the current system time in milliseconds is directly obtained. However, if the obtained current system time is 2010090910, that is, only the current system time in the order of hours, the current system time may be subjected to padding processing based on a preset padding model, for example, two bits "00" are added after "2010090910". That is, the embodiment of the present invention may be: acquiring current system time, judging whether the digit of the current system time meets a preset digit threshold value, and if so, not processing; if not, calling a preset supplementing model, and performing supplementing processing on the current system time.
In other preferred embodiments, the IP address may be obtained by obtaining an IP address of a network underlying protocol, i.e. an underlying network address implemented by the IP layer. For example: the IP address may be obtained using a ping.
As still some embodiments, a corresponding character string is generated through a preset conversion model based on the order information, specifically, a target object in the order information may be extracted, and the target object is processed through a hash algorithm to obtain a corresponding hash value. The HASH algorithm (HASH algorithm) can convert a data into a flag, and the flag has a close relationship with each byte of the source data.
It is worth explaining that different target objects in order information can be extracted according to different business backgrounds, so that the safety and the stability of the order number are enhanced, and the method can adapt to different business backgrounds. For example: the user account in the order information can be extracted to obtain a corresponding hash value through a hash algorithm.
In addition, the present invention may invoke a transformation engine to obtain a transformation model, for example, the transformation model may be a hash algorithm, an MD5 algorithm, or the like.
In the preferred embodiment, as shown in fig. 2, based on the preset encoding rule, the bits 1-8 in the target order number adopt the system time, and the uniqueness is guaranteed on the system time by being accurate to millisecond level. Bits 9-16 use the IP address of the network underlying protocol to ensure uniqueness within the server cluster. Bits 17-24 use the hash value of the target object to achieve uniqueness on an internal object. The 25-32 bits adopt a random number of a calling method to realize uniqueness in millisecond level in an object.
Step S102, judging whether non-numeric characters exist in the order number to be processed, if so, identifying the character type and calling a corresponding mapping model to obtain a target order number; if not, the order number to be processed is used as a target order number; and processing the corresponding task according to the target order number.
In some embodiments, when the recognition character type calls a corresponding mapping model to obtain the target order number, if the recognition character type is a letter, the character mapping model is called to convert the letter into a char type character, and then the char type character is converted into an int type number, so as to obtain a mapped digital character through the int type number. Preferably, the mapped numeric characters are obtained by subtracting 97 from the int type numbers. Of course, if other character types are recognized, the corresponding preset mapping model can be called.
Preferably, before converting the alphabet into the char type character, the method further comprises:
and if the letter is upper case, converting into lower case.
In a specific embodiment, the letters in the UUID are 16-ary representations, and only contain a-f after being converted into lower case, so the embodiment of the present invention converts the letters into char-type characters, and then converts the char-type characters into int-type numbers, where the number of the int-type is subtracted by 97, that is, the mapped number. I.e., a-f are mapped to numbers from 0-5.
In other embodiments, after the order number to be processed is generated by splicing the character strings generated according to the order information, a preset removing model can be called to clean the character strings in the order number to be processed. That is, the object to be cleaned may be set in advance and stored in the culling model so as to call the culling model and clean the character string in the order number to be processed. For example: the "-" in the string is removed.
Preferably, the culling model can be configured with some special characters, or configure specific characters according to the actual service application scenario.
It is also worth mentioning that corresponding tasks may be performed according to the obtained target order number, such as: and generating logistics information based on the target order number, further sorting the commodities according to the order information, and sending the target order number and the order information to a terminal for displaying, modifying and canceling the order and the like.
In summary, the present invention can creatively combine the UUID to generate a pure number, fixed length order number, thereby reducing the probability of generating duplication.
Fig. 3 is a schematic diagram of a main flow of an order processing method according to a second embodiment of the present invention, and the order processing method may include:
step S301, receiving an order number generation instruction and calling a preset encoding rule.
Step S302, obtaining order information, extracting a target object in the order information, and processing the target object through a Hash algorithm to obtain a corresponding Hash value.
Step S303, acquiring the current system time of millisecond level, and extracting the numeric character string of the current system time.
Step S304, the IP address and the random number of the network bottom layer protocol are obtained.
Step S305, the hash value, the digital character string of the current system time, the bottom layer IP address and the random number are spliced to generate the order number to be processed.
Step S306, determining whether there is a non-numeric character in the order number to be processed, if yes, performing step S307, otherwise, performing step S308.
Step S307, if the character type is recognized as a letter, calling a character mapping model, converting the letter into a char type character, converting the char type character into an int type number, and processing the corresponding task by using the mapped digital character obtained by the int type number as a target order number.
And step S308, taking the order number to be processed as a target order number, and processing the corresponding task.
It should be noted that step S302, step S303, and step S304 may be executed in sequence according to the above flow, or may also be executed simultaneously, or the three steps may be executed in any order.
Fig. 4 is a schematic diagram of main modules of an order processing apparatus according to an embodiment of the present invention, and as shown in fig. 4, the order processing apparatus 400 includes an acquisition module 401 and a processing module 402. The obtaining module 401 receives an instruction for generating an order number, calls a preset encoding rule, and further obtains order information, so as to generate a corresponding character string through a preset conversion model based on the order information; acquiring current system time, an IP address and a random number, and generating a to-be-processed order number according to the character string generated by the order information in a splicing manner;
the processing module 402 judges whether non-numeric characters exist in the order number to be processed, if so, identifies the character type and calls a corresponding mapping model to obtain a target order number; if not, the order number to be processed is used as a target order number; and processing the corresponding task according to the target order number.
In some embodiments, the processing module 402 identifies a character type and calls a corresponding mapping model to obtain a target order number, including:
and calling a character mapping model when the character type is recognized as a letter, converting the letter into a char type character, and converting the char type character into an int type number so as to obtain a mapped digital character through the int type number.
In some embodiments, before the processing module 402 converts the letter into a char type character, the processing module further comprises:
and if the letter is upper case, converting into lower case.
In some embodiments, the obtaining module 401 obtains the current system time, including:
acquiring the current system time of millisecond level, and extracting the numeric character string of the current system time.
In some embodiments, the obtaining module 401 obtains the IP address, including:
and acquiring the IP address of the network bottom layer protocol.
In some embodiments, the obtaining module 401 generates a corresponding character string through a preset conversion model based on the order information, including
And extracting the target object in the order information, and processing the target object through a Hash algorithm to obtain a corresponding Hash value.
In some embodiments, after the obtaining module 401 generates the to-be-processed order number according to the character string generated by the order information in a splicing manner, the processing module 402 is further configured to:
and calling a preset rejection model, and cleaning the character strings in the order number to be processed.
It should be noted that the order processing method and the order processing apparatus of the present invention have corresponding relation in the specific implementation content, and therefore, the repeated content is not described again.
Fig. 5 illustrates an exemplary system architecture 500 of an order processing method or an order processing apparatus to which embodiments of the present invention may be applied.
As shown in fig. 5, the system architecture 500 may include terminal devices 501, 502, 503, a network 504, and a server 505. The network 504 serves to provide a medium for communication links between the terminal devices 501, 502, 503 and the server 505. Network 504 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 501, 502, 503 to interact with a server 505 over a network 504 to receive or send messages or the like. The terminal devices 501, 502, 503 may have installed thereon various communication client applications, such as shopping-like applications, web browser applications, search-like applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 501, 502, 503 may be various electronic devices having order processing screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 505 may be a server providing various services, such as a background management server (for example only) providing support for shopping websites browsed by users using the terminal devices 501, 502, 503. The backend management server may analyze and perform other processing on the received data such as the product information query request, and feed back a processing result (for example, target push information, product information — just an example) to the terminal device.
It should be noted that the order processing method provided by the embodiment of the present invention is generally executed by the server 505, and accordingly, the computing device is generally disposed in the server 505.
It should be understood that the number of terminal devices, networks, and servers in fig. 5 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 6, a block diagram of a computer system 600 suitable for use with a terminal device implementing an embodiment of the invention is shown. The terminal device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU)601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM603, various programs and data necessary for the operation of the computer system 600 are also stored. The CPU601, ROM602, and RAM603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output section 607 including a display such as a Cathode Ray Tube (CRT), a liquid crystal order processor (LCD), and the like, and a speaker and the like; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The computer program performs the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 601.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor includes an acquisition module and a processing module. Wherein the names of the modules do not in some cases constitute a limitation of the module itself.
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs, and when the one or more programs are executed by the equipment, the equipment comprises an instruction for receiving an order number generation instruction, calling a preset coding rule, and further acquiring order information so as to generate a corresponding character string through a preset conversion model based on the order information; acquiring current system time, an IP address and a random number, and generating a to-be-processed order number according to the character string generated by the order information in a splicing manner; judging whether non-numeric characters exist in the order number to be processed or not, if so, identifying the character type and calling a corresponding mapping model to obtain a target order number; if not, the order number to be processed is used as a target order number; and processing the corresponding task according to the target order number.
According to the technical scheme of the embodiment of the invention, the problems that the related tasks processed according to the order are easy to generate errors, unnecessary economic loss is caused and the user experience is poor due to the fact that the accurate order number cannot be generated in the prior art can be solved.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (10)
1. An order processing method, comprising:
receiving an order number generation instruction, calling a preset coding rule, further acquiring order information, and generating a corresponding character string through a preset conversion model based on the order information;
acquiring current system time, an IP address and a random number, and generating a to-be-processed order number according to the character string generated by the order information in a splicing manner;
judging whether non-numeric characters exist in the order number to be processed or not, if so, identifying the character type and calling a corresponding mapping model to obtain a target order number; if not, the order number to be processed is used as a target order number;
and processing the corresponding task according to the target order number.
2. The method of claim 1, wherein identifying the character type calls a corresponding mapping model to obtain the target order number, comprising:
and calling a character mapping model when the character type is recognized as a letter, converting the letter into a char type character, and converting the char type character into an int type number so as to obtain a mapped digital character through the int type number.
3. The method of claim 2, wherein prior to converting the alphabet into the char type character, further comprising:
and if the letter is upper case, converting into lower case.
4. The method of claim 1, wherein obtaining the current system time comprises:
acquiring the current system time of millisecond level, and extracting the numeric character string of the current system time.
5. The method of claim 1, wherein obtaining an IP address comprises:
and acquiring the IP address of the network bottom layer protocol.
6. The method of claim 1, wherein generating corresponding character strings through a preset conversion model based on the order information comprises:
and extracting the target object in the order information, and processing the target object through a Hash algorithm to obtain a corresponding Hash value.
7. The method according to any one of claims 1 to 6, wherein after generating the order number to be processed by splicing the character strings generated according to the order information, the method further comprises:
and calling a preset rejection model, and cleaning the character strings in the order number to be processed.
8. An order processing apparatus, comprising:
the acquisition module is used for receiving an order number generation instruction, calling a preset coding rule and further acquiring order information so as to generate a corresponding character string through a preset conversion model based on the order information; acquiring current system time, an IP address and a random number, and generating a to-be-processed order number according to the character string generated by the order information in a splicing manner;
the processing module is used for judging whether non-numeric characters exist in the order number to be processed or not, if so, identifying the character type and calling a corresponding mapping model to obtain a target order number; if not, the order number to be processed is used as a target order number; and processing the corresponding task according to the target order number.
9. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-7.
10. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010979477.4A CN112184367B (en) | 2020-09-17 | 2020-09-17 | Order processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010979477.4A CN112184367B (en) | 2020-09-17 | 2020-09-17 | Order processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112184367A true CN112184367A (en) | 2021-01-05 |
CN112184367B CN112184367B (en) | 2024-05-24 |
Family
ID=73921562
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010979477.4A Active CN112184367B (en) | 2020-09-17 | 2020-09-17 | Order processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112184367B (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112862574A (en) * | 2021-04-08 | 2021-05-28 | 上海哔哩哔哩科技有限公司 | Distributed order number generation method and system |
CN112950310A (en) * | 2021-02-04 | 2021-06-11 | 北京淇瑀信息科技有限公司 | Order identification generation method and device and electronic equipment |
CN112988770A (en) * | 2021-02-08 | 2021-06-18 | 腾讯科技(深圳)有限公司 | Method and device for updating serial number, electronic equipment and storage medium |
CN113393288A (en) * | 2021-05-26 | 2021-09-14 | 北京京东振世信息技术有限公司 | Order processing information generation method, device, equipment and computer readable medium |
CN113435165A (en) * | 2021-06-23 | 2021-09-24 | 未鲲(上海)科技服务有限公司 | Data processing method, device, server and storage medium |
CN113779138A (en) * | 2021-02-04 | 2021-12-10 | 北京京东振世信息技术有限公司 | Order management method and device |
CN114969059A (en) * | 2022-07-28 | 2022-08-30 | 建信金融科技有限责任公司 | Method and device for generating order information, electronic equipment and storage medium |
CN115510815A (en) * | 2022-11-17 | 2022-12-23 | 山东未来网络研究院(紫金山实验室工业互联网创新应用基地) | Rule-based identification generation method and apparatus |
CN118037184A (en) * | 2024-02-29 | 2024-05-14 | 长江新丝路数据科技发展有限公司 | Logistics order management system and management method |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080140604A1 (en) * | 2006-12-06 | 2008-06-12 | Collier Cody M | Converting arbitrary strings into numeric representations to facilitate complex comparisons |
CN106156158A (en) * | 2015-04-15 | 2016-11-23 | 苏州精易会信息技术有限公司 | A kind of self-defined serial number generates method |
CN108363708A (en) * | 2017-06-08 | 2018-08-03 | 国云科技股份有限公司 | A kind of service order generation method |
CN110619114A (en) * | 2019-09-26 | 2019-12-27 | 北京明略软件系统有限公司 | Serial number generation method and system |
CN110795604A (en) * | 2019-10-29 | 2020-02-14 | 中国工商银行股份有限公司 | Method, apparatus, computing device and medium for generating transaction serial number |
CN111159211A (en) * | 2019-12-31 | 2020-05-15 | 广州酷狗计算机科技有限公司 | Order information generation method, device and system, computer equipment and storage medium |
-
2020
- 2020-09-17 CN CN202010979477.4A patent/CN112184367B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080140604A1 (en) * | 2006-12-06 | 2008-06-12 | Collier Cody M | Converting arbitrary strings into numeric representations to facilitate complex comparisons |
CN106156158A (en) * | 2015-04-15 | 2016-11-23 | 苏州精易会信息技术有限公司 | A kind of self-defined serial number generates method |
CN108363708A (en) * | 2017-06-08 | 2018-08-03 | 国云科技股份有限公司 | A kind of service order generation method |
CN110619114A (en) * | 2019-09-26 | 2019-12-27 | 北京明略软件系统有限公司 | Serial number generation method and system |
CN110795604A (en) * | 2019-10-29 | 2020-02-14 | 中国工商银行股份有限公司 | Method, apparatus, computing device and medium for generating transaction serial number |
CN111159211A (en) * | 2019-12-31 | 2020-05-15 | 广州酷狗计算机科技有限公司 | Order information generation method, device and system, computer equipment and storage medium |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112950310A (en) * | 2021-02-04 | 2021-06-11 | 北京淇瑀信息科技有限公司 | Order identification generation method and device and electronic equipment |
CN113779138A (en) * | 2021-02-04 | 2021-12-10 | 北京京东振世信息技术有限公司 | Order management method and device |
CN112988770A (en) * | 2021-02-08 | 2021-06-18 | 腾讯科技(深圳)有限公司 | Method and device for updating serial number, electronic equipment and storage medium |
CN112988770B (en) * | 2021-02-08 | 2024-03-26 | 腾讯科技(深圳)有限公司 | Method, device, electronic equipment and storage medium for updating serial number |
CN112862574A (en) * | 2021-04-08 | 2021-05-28 | 上海哔哩哔哩科技有限公司 | Distributed order number generation method and system |
CN113393288A (en) * | 2021-05-26 | 2021-09-14 | 北京京东振世信息技术有限公司 | Order processing information generation method, device, equipment and computer readable medium |
CN113393288B (en) * | 2021-05-26 | 2023-11-03 | 北京京东振世信息技术有限公司 | Order processing information generation method, device, equipment and computer readable medium |
CN113435165A (en) * | 2021-06-23 | 2021-09-24 | 未鲲(上海)科技服务有限公司 | Data processing method, device, server and storage medium |
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 |
CN115510815A (en) * | 2022-11-17 | 2022-12-23 | 山东未来网络研究院(紫金山实验室工业互联网创新应用基地) | Rule-based identification generation method and apparatus |
CN118037184A (en) * | 2024-02-29 | 2024-05-14 | 长江新丝路数据科技发展有限公司 | Logistics order management system and management method |
Also Published As
Publication number | Publication date |
---|---|
CN112184367B (en) | 2024-05-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112184367B (en) | Order processing method and device | |
CN110471848B (en) | Method and device for dynamically returning message | |
CN111447257B (en) | Message conversion method and device | |
CN109039876B (en) | Mail processing method and device | |
CN113076153B (en) | Interface calling method and device | |
CN111460129A (en) | Method and device for generating identification, electronic equipment and storage medium | |
CN110795315A (en) | Method and device for monitoring service | |
CN111368697A (en) | Information identification method and device | |
CN110705271A (en) | System and method for providing natural language processing service | |
CN114900379A (en) | Message notification method and device, electronic equipment and storage medium | |
CN113761565B (en) | Data desensitization method and device | |
CN113761566A (en) | Data processing method and device | |
CN113157911A (en) | Service verification method and device | |
CN114036364B (en) | Method, apparatus, device, medium, and system for identifying crawlers | |
CN111815381A (en) | Information generation method and device | |
CN112487765B (en) | Method and device for generating notification text | |
CN112948138A (en) | Method and device for processing message | |
CN113779018A (en) | Data processing method and device | |
CN112580762B (en) | Dynamic two-dimensional code and identification method and identification device thereof | |
CN111753675B (en) | Picture type junk mail identification method and device | |
CN113919310A (en) | Short message content determination method and device, electronic equipment and storage medium | |
CN114253984A (en) | Information updating method and device, electronic equipment and storage medium | |
CN112783924A (en) | Dirty data identification method, device and system | |
CN111984616A (en) | Method, device and system for updating shared file | |
CN113326060A (en) | Service request processing method, device and system and service configuration method and device |
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 |