CN113159689A - Order combining method, device, equipment and storage medium - Google Patents

Order combining method, device, equipment and storage medium Download PDF

Info

Publication number
CN113159689A
CN113159689A CN202110499996.5A CN202110499996A CN113159689A CN 113159689 A CN113159689 A CN 113159689A CN 202110499996 A CN202110499996 A CN 202110499996A CN 113159689 A CN113159689 A CN 113159689A
Authority
CN
China
Prior art keywords
order
combining
information
target
combination
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110499996.5A
Other languages
Chinese (zh)
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 Zhenshi Information Technology Co Ltd
Original Assignee
Beijing Jingdong Zhenshi 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 Zhenshi Information Technology Co Ltd filed Critical Beijing Jingdong Zhenshi Information Technology Co Ltd
Priority to CN202110499996.5A priority Critical patent/CN113159689A/en
Publication of CN113159689A publication Critical patent/CN113159689A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/087Inventory or stock management, e.g. order filling, procurement or balancing against orders
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services

Abstract

The embodiment of the invention discloses an order combining method, an order combining device, order combining equipment and a storage medium, wherein the method comprises the following steps: responding to the detected order combination task, and acquiring order combination parameters corresponding to the order combination task; determining a target association key and a target fragment identifier of the order combining task according to the order combining parameters; and creating an asynchronous thread based on the target fragment identifier, generating a order combining instruction by the target association key and the target fragment identifier, and sending the order combining instruction to an order combining party so that the order combining party performs order combination according to the target association key and the target fragment identifier. According to the method provided by the embodiment of the invention, the asynchronous thread processing order combination flow is created based on the target fragment corresponding to the order combination task when the order combination task is detected, so that the order combination can be processed concurrently, and the order combination efficiency is improved.

Description

Order combining method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of warehouse logistics, in particular to an order combining method, device, equipment and storage medium.
Background
Order aggregation is used to resolve unified plans, transportation of orders of the same origin and destination. The combination can be specifically carried out according to the configuration of a user, so that the transportation cost and the production cost of the warehouse are saved. When a common order is placed, the basic verification, the stock pre-occupation and other pre-processes are firstly passed, and then the order is placed for production, ex-warehouse and sent to a destination. After the orders needing to be combined pass a series of pre-verification such as basic verification and the like, temporarily not sending the orders to the warehouse for production, waiting for the uniform distribution time, uniformly sending the orders to the warehouse for production, and sending the orders to the destination.
In the process of implementing the invention, the inventor finds that at least the following technical problems exist in the prior art: when the number of the sub-orders is large and the details of the sub-orders are excessive, the order combination logic processing time is long, so that the parent order cannot be issued in time, and when the sub-orders are not reasonably scanned, the order combination logic can also be scanned out to carry out judgment logic, so that the parent order which should be issued by the time node is blocked.
Disclosure of Invention
The embodiment of the invention provides an order combination method, an order combination device, order combination equipment and a storage medium, and aims to improve order combination efficiency.
In a first aspect, an embodiment of the present invention provides an order merging method, including:
in response to the detected order combination task, obtaining order combination parameters corresponding to the order combination task;
determining a target association key and a target fragment identifier of an order combination task according to the order combination parameters;
and creating an asynchronous thread based on the target fragment identifier, generating a order combining instruction by the target association key and the target fragment identifier, and sending the order combining instruction to the order combining party so that the order combining party performs order combination according to the target association key and the target fragment identifier.
Optionally, on the basis of the above scheme, the order merging parameter includes item affiliation party information and logistics information, and the determining, according to the order merging parameter, a target association key and a target segment identifier of the order merging task includes:
merging and encrypting the information of the article attribution party and the information of the logistics to obtain a target association key;
and determining a target fragment identifier based on the target association key and the preset fragment interval.
Optionally, on the basis of the above scheme, the order merging task is triggered based on a timing task.
Optionally, on the basis of the above scheme, the method further includes:
determining an order correlation key corresponding to the order information according to the received order information;
and adding the order information to the order pool according to the order combination parameters corresponding to the order correlation key and the order information.
Optionally, on the basis of the above scheme, the order information includes item attribution information and logistics information, and the determining, according to the received order information, an order correlation key corresponding to the order information includes:
and merging and encrypting the information of the article attribution party and the information of the logistics to obtain an order correlation key.
Optionally, on the basis of the above scheme, merging and encrypting the item attribution party information and the stream information to obtain an order association key, including:
based on a Hash hash algorithm, encryption processing is carried out on the information of the article attribution party and the logistics information, and the encryption processing result is used as an order correlation key.
Optionally, on the basis of the above scheme, the adding the order information to the order pool according to the order combination parameter corresponding to the order association key and the order information includes a preset order combination time, and the adding includes:
determining an order slicing identifier corresponding to order information according to the order correlation key;
determining order combining time corresponding to the order information according to preset order combining time;
and adding the order identification, the order association key, the order fragment identification, the order combination time and the order combination state to the order combination pool.
In a second aspect, an embodiment of the present invention further provides an order merging device, including:
the merging parameter acquiring module is used for responding to the detected order merging task and acquiring order merging parameters corresponding to the order merging task;
the target identification determining module is used for determining a target associated key and a target fragment identification of the order combination task according to the order combination parameters;
and the order combining module is used for creating an asynchronous thread based on the target fragment identifier, generating a combining instruction by the target association key and the target fragment identifier and sending the combining instruction to the order combining party so that the order combining party performs order combining according to the target association key and the target fragment identifier.
In a third aspect, an embodiment of the present invention further provides a computer device, where the computer device includes:
one or more processors;
storage means for storing one or more programs;
when executed by one or more processors, cause the one or more processors to implement an order consolidation method as provided by any of the embodiments of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the order merging method provided in any embodiment of the present invention.
The method and the device for the order combination of the mobile terminal obtain order combination parameters corresponding to the order combination task by responding to the detected order combination task; determining a target association key and a target fragment identifier of an order combination task according to the order combination parameters; and creating an asynchronous thread based on the target fragment identifier, generating a order combining instruction by the target association key and the target fragment identifier, and sending the order combining instruction to the order combining party so that the order combining party performs order combination according to the target association key and the target fragment identifier, and creating an asynchronous thread processing order combining flow based on the target fragment corresponding to the order combining task when the order combining task is detected so that order combination can be processed concurrently, thereby improving the order combining efficiency.
Drawings
Fig. 1 is a flowchart of an order merging method according to an embodiment of the present invention;
fig. 2 is an overall architecture diagram of an order merging method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of an order combining device according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of an order merging method according to an embodiment of the present invention. The embodiment can be applied to the situation when the order of the merchant is merged and transported in the e-commerce platform. The method may be performed by an order consolidation apparatus, which may be implemented in software and/or hardware, for example, which may be configured in a computer device. As shown in fig. 1, the method includes:
s110, responding to the detected order combination task, and obtaining order combination parameters corresponding to the order combination task.
In this embodiment, the order consolidation task may be user-triggered, indicating an order consolidation instruction. Optionally, the user may trigger the order combining task according to actual requirements. Optionally, the order merging task may also be triggered based on a timed task. Such as setting a default frequency (e.g., 1 minute/time) to trigger the order merging task periodically. And after the order combination task is detected, obtaining order combination parameters corresponding to the order combination task, and executing the order combination task based on the order combination parameters.
Optionally, the order combination parameter may be a parameter preset by the user and used for determining whether the order can be combined. For example, the order combination condition may include a combination scope (e.g., documents business having access to a combination function), a combination rule (e.g., documents can be combined if the same matching field exists), a combination wave (e.g., a uniform time point for combining orders), and the like. Accordingly, the order consolidation parameters may include the above parameters. Generally, the necessary order combining condition includes the information of the article attribution party and the logistics information, the information of the article attribution party is the same, and the sub-orders with the same logistics information are combined, that is, the order combining parameter is the information of the article attribution party and the logistics information.
Typically, the same user (e.g., merchant) will set unified order consolidation parameters. On this basis, the order combining parameters corresponding to the order combining task may be obtained as follows: and determining a user identifier corresponding to the order combining task, and taking the order combining parameters corresponding to the user identifier as the order combining parameters corresponding to the order combining task.
And S120, determining a target associated key and a target fragment identifier of the order combination task according to the order combination parameters.
In this embodiment, the asynchronous concurrent processing of order combination is realized by storing the order information into different segments. In order to realize order combination of the same user in the same fragment, the target fragment identifier may be determined based on the order combination parameters set by the user, and asynchronous concurrent processing of order combination tasks of different users is realized based on the fragments corresponding to the target fragment identifier.
In one embodiment, determining a target association key and a target fragment identifier of an order combination task according to an order combination parameter includes: merging and encrypting the information of the article attribution party and the information of the logistics to obtain a target association key; and determining a target fragment identifier based on the target association key and the preset fragment interval. Generally, the necessary order conditions include that the information of the article attribution party is the same and the logistics information is the same. Therefore, the order merging parameters can be set to include the information of the article attribution party and the logistics information, and the information of the article attribution party and the logistics information are correspondingly merged and encrypted to obtain the target association key; and after the target association key is determined, comparing the target association key with a preset fragmentation interval, and taking a fragmentation identifier corresponding to the fragmentation interval containing the target association key as a target fragmentation identifier. For example, assuming that the target association key is 984 and the corresponding interval of segment 1 is [0,1000], segment 1 is identified as the target segment. The merging encryption algorithm of the article attribution information and the logistics information may refer to a merging encryption algorithm in the prior art, which is not limited herein.
Order information can be obtained from the correct fragment when order merging tasks are executed. The order management key and the order fragment identifier need to be determined in the same way for information storage when the order information is stored. That is to say, the target fragment identifier determined by the order combining task is the same as the order fragment identifier used when the order information corresponding to the order combining task is stored.
Optionally, when the order information is stored, after the order is received, determining an order correlation key corresponding to the order information according to the received order information; and adding the order information to the order pool according to the order combination parameters corresponding to the order correlation key and the order information. The order information is stored in the order correlation key in advance correspondingly, and the subsequent order combination operation flow is simplified through preprocessing the order information. The order related key corresponding to the order information may be specifically determined according to an order combination parameter for setting in advance. For example, assuming that the order merging parameter includes the item attribution information and the item purchaser information, the order correlation key corresponding to the order information is determined based on the item attribution and the item purchaser. Wherein the item attribution information comprises an item attribution identification and/or a service department identification, and the logistics information comprises at least one of an originating warehouse identification, a carrier identification and a destination identification. The article attribution identifier can be understood as a merchant identifier, the business department identifier can be understood as a cause identifier, and the carrier identifier can be understood as a carrier identifier.
In one embodiment, the order information includes item attribution information and logistics information, and determining an order correlation key corresponding to the order information according to the received order information includes: and merging and encrypting the information of the article attribution party and the information of the logistics to obtain an order correlation key.
Generally, the necessary order combining condition includes the information of the article attribution party and the logistics information, that is, the information of the article attribution party is the same, and the orders with the same logistics information are combined. Therefore, the information of the article attribution party and the information of the logistics can be combined and encrypted to obtain the order correlation key. The merging encryption algorithm of the article attribution information and the logistics information may refer to a merging encryption algorithm in the prior art, which is not limited herein.
Preferably, the merging and encrypting the information of the article attribution party and the information of the logistics to obtain the order correlation key includes: based on a Hash hash algorithm, encryption processing is carried out on the information of the article attribution party and the logistics information, and the encryption processing result is used as an order correlation key.
In this embodiment, the order-related key may be obtained by encrypting the item attribution information and the logistics information through a hash algorithm. The Hash hash algorithm can ensure the uniqueness of information by using shorter information, the mark is related to each byte of the information, a reverse rule is difficult to find, the uniqueness of the order association key is ensured to a certain extent, and the accuracy of order combination based on the order association key is further ensured.
On the basis of the scheme, the combination condition configured by the sub-order pair application user (merchant) can be obtained, and the association key corresponding to the order information is generated based on the information in the combination condition.
In an embodiment of the present invention, the adding the order information to the order pool according to the order combination parameter corresponding to the order correlation key and the order information includes: determining an order slicing identifier corresponding to order information according to the order correlation key; determining order combining time corresponding to the order information according to preset order combining time; and adding the order identification, the order association key, the order fragment identification, the order combination time and the order combination state to the order combination pool.
After an order association key corresponding to the order information is determined, an order fragment identifier is determined based on the order association key, order combining time preset by a user corresponding to the order information is obtained, order combining time is selected from the preset order combining time to serve as the order combining time corresponding to the order information, and the order identifier, the order association key, the order fragment identifier, the order combining time and the order combining state are added to an order combining pool. The order combining time selected from the preset order combining time as the order combining time corresponding to the order information may be: and taking the order combining time closest to the order time as the order combining time. Determining the order fragment identifier based on the order association key may be: the order association key is compared with a preset fragmentation interval to determine an order fragmentation identifier, and specific implementation can refer to the above embodiments, which is not described herein again. Order information is processed in advance, and an order mark, an order association key, an order fragment mark, order combination time and a combination state are added to the order combination pool, so that the processing process in the subsequent order combination is simplified, and the order combination can be controlled based on the time dimension.
S130, an asynchronous thread is created based on the target fragment identification, and a order combining instruction generated by the target association key and the target fragment identification is sent to the order combining party, so that the order combining party can combine orders according to the target association key and the target fragment identification.
In this embodiment, an asynchronous thread is created by the fragment corresponding to the target fragment identifier, and a singleton operation is performed based on the target association key. It should be noted that, the specific order combining operation is executed by the service consumer (i.e. the downstream application invoking the service, the order combiner), and the order combiner. And after determining the target association key, the order combining device sends the target association key and the target fragment identifier to a message queue and sends the message queue to a service consumer to process a specific order combining service.
Optionally, the order merging party merges the sub-orders in the fragments according to the target association key and the target fragment identifier, which may be: and the order merging party merges the orders with the associated key as the target associated key and the order merging state as the to-be-combined state to obtain the merged orders.
The method and the device for the order combination of the mobile terminal obtain order combination parameters corresponding to the order combination task by responding to the detected order combination task; determining a target association key and a target fragment identifier of an order combination task according to the order combination parameters; and creating an asynchronous thread based on the target fragment identifier, generating a order combining instruction by the target association key and the target fragment identifier, and sending the order combining instruction to the order combining party so that the order combining party performs order combination according to the target association key and the target fragment identifier, and creating an asynchronous thread processing order combining flow based on the target fragment corresponding to the order combining task when the order combining task is detected so that order combination can be processed concurrently, thereby improving the order combining efficiency.
Example two
The embodiment provides a preferred embodiment by embodying the article as a commercial product on the basis of the above scheme. In general, the embodiment of the invention scans and tilts the timing task aiming at different time points, and the task which is not processed before the time is not needed to be scanned during the scanning of the timing task, so that the time isolation is realized, and the order which is not processed before the time does not influence the order which is to be executed. In addition, for the parallel processing of the sub-lists at the same time point, the timed task frame is utilized to process the tasks reaching the time in parallel, so that the processing and single aging of the single time point are improved.
Fig. 2 is an overall architecture diagram of an order merging method according to a second embodiment of the present invention. As shown in fig. 2, a specific implementation of the order merging method provided in the embodiment of the present invention includes:
1. single building process for son and single
The sub-document contains fields, merchant, department of business, originating warehouse, destination store, carrier, soMark (other order-related details special configuration), expected delivery date, time of order, recipient, order details (one sub-document contains n order details), etc. The necessary order conditions are merchant, cause department, starting warehouse, destination store and carrier, other order conditions can be read from the configuration center, and after the condition is obtained, the character string is generated through the conditions and the unique key (namely the associated key) is generated through encryption of a special algorithm (as if the conditions are the same for a plurality of sub-orders, the sub-orders can be combined into a parent order). The recording information in the pool of the list combination is as follows: the method comprises the steps of acquiring a sub-order number, a unique key (the sub-orders of the same key can be combined into a parent order), an order combining time (a plurality of time points are configured by a merchant, the latest trigger time point which is in line with the configuration can be calculated according to the configuration), a slicing position (the slicing position is calculated through the unique key), an order combining state (to be combined/combined and the like), and ending the sub-order establishing process.
2. One-in-one triggering process
And triggering a list-closing action by utilizing a timing task, wherein the default frequency is 1 minute/time (configurable), triggering the timing task, creating an asynchronous thread by the defined fragments, and inquiring a unique key meeting the conditions according to the list-closing state and the list-closing time. And sending the unique key and the fragment condition to a message queue to be delivered to a service consumer to process a specific order combining service.
3. Order-combining business process
And consuming the message queue, using the unique key as a duplicate prevention, inquiring all the sub-tickets with the same unique key and in the state of the to-be-combined-ticket state, and triggering specific combination service.
The order combining method provided by the embodiment of the invention can change the batch execution order combining method from uncontrollable to control according to time dimension and concurrency. The decoupling performance of the single task combination is realized, and the single task combination is not influenced.
EXAMPLE III
Fig. 3 is a schematic structural diagram of an order combining device according to a third embodiment of the present invention. The order combining device may be implemented in software and/or hardware, for example, the order combining device may be configured in a computer device. As shown in fig. 3, the apparatus includes a merge parameter acquisition module 310, an object identifier determination module 320, and an order merge module 330, wherein:
a merging parameter obtaining module 310, configured to obtain, in response to the detected order merging task, an order merging parameter corresponding to the order merging task;
a target identifier determining module 320, configured to determine a target association key and a target fragment identifier of the order combining task according to the order combining parameter;
and the order combining module 330 is configured to create an asynchronous thread based on the target fragment identifier, generate a combining instruction by using the target association key and the target fragment identifier, and send the combining instruction to the order combining party, so that the order combining party performs order combining according to the target association key and the target fragment identifier.
In the embodiment of the invention, the merging parameter acquisition module responds to the detected order merging task and acquires the order merging parameters corresponding to the order merging task; the target identification determining module determines a target associated key and a target fragment identification of the order combining task according to the order combining parameters; the order combining module creates an asynchronous thread based on the target fragment identifier, generates a combining instruction by the target association key and the target fragment identifier and sends the combining instruction to the order combining party so that the order combining party can combine orders according to the target association key and the target fragment identifier, and creates an asynchronous thread based on the target fragment corresponding to the order combining task when the order combining task is detected so as to process the order combining process, so that the order combining can be performed concurrently, and the order combining efficiency is improved.
Optionally, on the basis of the above scheme, the apparatus further includes an order information processing module, including:
the association key determining unit is used for determining order association keys corresponding to the order information according to the received order information;
and the order information storage unit is used for adding the order information to the order combination pool according to the order combination parameters corresponding to the order correlation key and the order information.
Optionally, on the basis of the above scheme, the order information includes item attribution information and logistics information, and the association key determining unit is specifically configured to:
and merging and encrypting the information of the article attribution party and the information of the logistics to obtain an order correlation key.
Optionally, on the basis of the above scheme, the association key determining unit is specifically configured to:
based on a Hash hash algorithm, encryption processing is carried out on the information of the article attribution party and the logistics information, and the encryption processing result is used as an order correlation key.
Optionally, on the basis of the above scheme, the order combination parameter includes a preset order combination time, and the order information storage unit is specifically configured to:
determining an order slicing identifier corresponding to order information according to the order correlation key;
determining order combining time corresponding to the order information according to preset order combining time;
and adding the order identification, the order association key, the order fragment identification, the order combination time and the order combination state to the order combination pool.
Optionally, on the basis of the above scheme, the order merging parameter includes item attribution information and logistics information, and the target identifier determining module 320 is specifically configured to:
merging and encrypting the information of the article attribution party and the information of the logistics to obtain a target association key;
and determining a target fragment identifier based on the target association key and the preset fragment interval.
Optionally, on the basis of the above scheme, the order merging task is triggered based on a timing task.
The order combining device provided by the embodiment of the invention can execute the order combining method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 4 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention. Fig. 4 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention. FIG. 4 illustrates a block diagram of an exemplary computer device 412 suitable for use in implementing embodiments of the present invention. The computer device 412 shown in FIG. 4 is only one example and should not impose any limitations on the functionality or scope of use of embodiments of the present invention.
As shown in FIG. 4, computer device 412 is in the form of a general purpose computing device. Components of computer device 412 may include, but are not limited to: one or more processors 414, a system memory 428, and a bus 418 that couples the various system components (including the system memory 428 and the processors 414).
Bus 418 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and processor 414 or a local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 412 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by computer device 412 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 428 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)430 and/or cache memory 432. The computer device 412 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage 434 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, and commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 418 by one or more data media interfaces. Memory 428 can include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 440 having a set (at least one) of program modules 442 may be stored, for instance, in memory 428, such program modules 442 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. The program modules 442 generally perform the functions and/or methodologies of the described embodiments of the invention.
The computer device 412 may also communicate with one or more external devices 414 (e.g., keyboard, pointing device, display 424, etc.), with one or more devices that enable a user to interact with the computer device 412, and/or with any devices (e.g., network card, modem, etc.) that enable the computer device 412 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 422. Also, computer device 412 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet) through network adapter 420. As shown, network adapter 420 communicates with the other modules of computer device 412 over bus 418. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the computer device 412, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processor 414 executes various functional applications and data processing by executing programs stored in the system memory 428, for example, implementing the order merging method provided by the embodiment of the present invention, the method includes:
responding to the detected order combination task, and acquiring order combination parameters corresponding to the order combination task;
determining a target association key and a target fragment identifier of the order combining task according to the order combining parameters;
and creating an asynchronous thread based on the target fragment identifier, generating a order combining instruction by the target association key and the target fragment identifier, and sending the order combining instruction to an order combining party so that the order combining party performs order combination according to the target association key and the target fragment identifier.
Of course, those skilled in the art will understand that the processor may also implement the technical solution of the order merging method provided by any embodiment of the present invention.
EXAMPLE five
The fifth embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the order merging method provided in the fifth embodiment of the present invention, where the method includes:
responding to the detected order combination task, and acquiring order combination parameters corresponding to the order combination task;
determining a target association key and a target fragment identifier of the order combining task according to the order combining parameters;
and creating an asynchronous thread based on the target fragment identifier, generating a order combining instruction by the target association key and the target fragment identifier, and sending the order combining instruction to an order combining party so that the order combining party performs order combination according to the target association key and the target fragment identifier.
Of course, the computer program stored on the computer-readable storage medium provided in the embodiments of the present invention is not limited to the above method operations, and may also perform related operations of the order merging method provided in any embodiment of the present invention.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. 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 (a non-exhaustive list) of the computer readable storage medium would include the following: 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 context of this document, 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.
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, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, or the like, as well as conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments illustrated herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. An order consolidation method, comprising:
responding to the detected order combination task, and acquiring order combination parameters corresponding to the order combination task;
determining a target association key and a target fragment identifier of the order combining task according to the order combining parameters;
and creating an asynchronous thread based on the target fragment identifier, generating a order combining instruction by the target association key and the target fragment identifier, and sending the order combining instruction to an order combining party so that the order combining party performs order combination according to the target association key and the target fragment identifier.
2. The method according to claim 1, wherein the order merging parameters include item owner information and logistics information, and the determining the target associated key and the target segment identifier of the order merging task according to the order merging parameters includes:
merging and encrypting the information of the article attribution party and the logistics information to obtain the target association key;
and determining the target fragment identification based on the target association key and a preset fragment interval.
3. The method of claim 1, wherein the order consolidation task is based on a timed task trigger.
4. The method of claim 1, further comprising:
determining an order correlation key corresponding to the order information according to the received order information;
and adding the order information to an order combination pool according to the order combination parameters corresponding to the order correlation key and the order information.
5. The method according to claim 4, wherein the order information includes item owner information and logistics information, and the determining the order correlation key corresponding to the order information according to the received order information includes:
and merging and encrypting the information of the object attribution party and the logistics information to obtain the order correlation key.
6. The method according to claim 4, wherein the merging and encrypting the item attribution information and the logistics information to obtain the order correlation key comprises:
and based on a Hash hash algorithm, encrypting the information of the article attribution party and the logistics information, and taking an encryption processing result as the order correlation key.
7. The method according to claim 4, wherein the order combination parameter includes a preset order combination time, and the adding the order information to an order combination pool according to the order combination parameter corresponding to the order association key and the order information comprises:
determining an order slicing identifier corresponding to the order information according to the order correlation key;
determining order combining time corresponding to the order information according to preset order combining time;
and adding the order identification, the order association key, the order fragment identification, the order combination time and the order combination state to a combination pool.
8. An order consolidation apparatus, comprising:
a merging parameter obtaining module, configured to obtain, in response to the detected order merging task, an order merging parameter corresponding to the order merging task;
the target identification determining module is used for determining a target associated key and a target fragment identification of the order combining task according to the order combining parameters;
and the order combining module is used for creating an asynchronous thread based on the target fragment identifier, generating a combining instruction by the target association key and the target fragment identifier and sending the combining instruction to an order combining party so that the order combining party performs order combining according to the target association key and the target fragment identifier.
9. A computer device, the device comprising:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the order consolidation method as recited in any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the order merging method according to any one of claims 1 to 7.
CN202110499996.5A 2021-05-08 2021-05-08 Order combining method, device, equipment and storage medium Pending CN113159689A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110499996.5A CN113159689A (en) 2021-05-08 2021-05-08 Order combining method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110499996.5A CN113159689A (en) 2021-05-08 2021-05-08 Order combining method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113159689A true CN113159689A (en) 2021-07-23

Family

ID=76873807

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110499996.5A Pending CN113159689A (en) 2021-05-08 2021-05-08 Order combining method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113159689A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116468362A (en) * 2022-12-26 2023-07-21 上海通天晓信息技术有限公司 Warehouse order processing method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109032796A (en) * 2018-07-18 2018-12-18 北京京东金融科技控股有限公司 A kind of data processing method and device
CN110097304A (en) * 2018-01-30 2019-08-06 北京京东尚科信息技术有限公司 Information generating method and device
CN110766520A (en) * 2019-10-12 2020-02-07 苏宁云计算有限公司 Multi-system multi-shop order fusion method and device, computer equipment and storage medium
CN111612388A (en) * 2019-02-26 2020-09-01 北京京东尚科信息技术有限公司 Method and device for merging target orders
US20200311644A1 (en) * 2018-07-19 2020-10-01 America's Collectibles Network, Inc. System and method for performing bulk pick of items of a customer order
CN111915238A (en) * 2019-05-10 2020-11-10 北京京东振世信息技术有限公司 Method and device for processing orders

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110097304A (en) * 2018-01-30 2019-08-06 北京京东尚科信息技术有限公司 Information generating method and device
CN109032796A (en) * 2018-07-18 2018-12-18 北京京东金融科技控股有限公司 A kind of data processing method and device
US20200311644A1 (en) * 2018-07-19 2020-10-01 America's Collectibles Network, Inc. System and method for performing bulk pick of items of a customer order
CN111612388A (en) * 2019-02-26 2020-09-01 北京京东尚科信息技术有限公司 Method and device for merging target orders
CN111915238A (en) * 2019-05-10 2020-11-10 北京京东振世信息技术有限公司 Method and device for processing orders
CN110766520A (en) * 2019-10-12 2020-02-07 苏宁云计算有限公司 Multi-system multi-shop order fusion method and device, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杨立熙;李世其;黄夏宝;: "订单履行流程集成及其实现框架模型研究", 计算机集成制造系统, no. 08, pages 101 - 107 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116468362A (en) * 2022-12-26 2023-07-21 上海通天晓信息技术有限公司 Warehouse order processing method and system

Similar Documents

Publication Publication Date Title
CN111597567B (en) Data processing method, data processing device, node equipment and storage medium
CN111949710A (en) Data storage method, device, server and storage medium
CN110795315A (en) Method and device for monitoring service
CN107844488B (en) Data query method and device
CN111339057A (en) Method, apparatus and computer readable storage medium for reducing back-to-source requests
CN112511316A (en) Single sign-on access method and device, computer equipment and readable storage medium
CN115329381A (en) Sensitive data-based analysis and early warning method and device, computer equipment and medium
CN114637611A (en) Information processing method and device based on message queue and computer equipment
CN113159689A (en) Order combining method, device, equipment and storage medium
CN109088914B (en) Block generation method, block chain ecosystem and computer readable storage medium
CN114490715A (en) Data extraction method and device, electronic equipment and storage medium
US20210165907A1 (en) Systems and methods for intelligent and quick masking
CN113297163B (en) Inquiry transfer system, method, device, equipment and medium based on block chain
CN114461912A (en) Information processing method and device, electronic equipment and storage medium
CN114978646A (en) Access authority determination method, device, equipment and storage medium
CN111460020B (en) Method, device, electronic equipment and medium for resolving message
CN113704222A (en) Method and device for processing service request
CN113393288A (en) Order processing information generation method, device, equipment and computer readable medium
CN110175305B (en) Data processing method, data processing device, computer equipment and storage medium
CN110826078A (en) Data storage method, device and system
CN113553347B (en) Block chain-based data processing method, device, equipment and storage medium
CN112702270B (en) Node calling method, system and storage medium based on event distribution mechanism
WO2021169553A1 (en) Method and apparatus for processing order
CN115643002A (en) Service processing method, device and storage medium
CN110300119B (en) Vulnerability verification method and electronic equipment

Legal Events

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