Method and device for merging target orders
By generating target orders and merge keys in the logistics system, querying the merge strategy, extracting merge information for order merging, the problem that existing systems cannot automatically merge orders is solved, and the merge efficiency and ability to meet user needs are improved.
Patent Information
- Application Number
- CN201910142350.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-02-26
- Publication Date
- 2025-02-28
- Estimated Expiration
- 2039-02-26
AI Technical Summary
The existing logistics system cannot merge the orders pushed by users multiple times according to the different needs of users, resulting in users having to process the order merging logic by themselves, increasing the cost and order merging time for users.
By generating the target order and its merge key and querying the matching target merge strategy, the merge information is extracted, the key value information of the merge key is determined, and the order merge process is directly carried out.
It improves order merging efficiency, reduces user costs and order merging time, and meets user's merger needs in different scenarios.
Smart Images

Figure HDA0001978946740000011 
Figure HDA0001978946740000021 
Figure HDA0001978946740000031
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method and device for merging target orders. Background Art
[0002] With the large-scale application of intelligent technology, the logistics industry is moving towards a comprehensive intelligent logistics system with unmanned operation, intelligent operation and intelligent decision-making. The logistics industry aims to provide users with online and offline, full supply chain and full life cycle services. At the same time, with the rapid development of the logistics industry, the order acceptance logic of large-scale logistics systems is becoming more and more complicated. When users push orders to the logistics system, the order merging logic needs to be handled by the users themselves, that is, users need to push the orders to be merged to the logistics system at one time. However, the logistics system cannot merge the orders pushed by users multiple times according to the different needs of users. Summary of the invention
[0003] In view of this, an embodiment of the present invention provides a method for merging target orders, which can meet the merging needs of users in different scenarios, reduce user costs, shorten order merging time, and improve order merging efficiency.
[0004] To achieve the above objective, according to a first aspect of an embodiment of the present invention, a method for merging target orders is provided.
[0005] A method for merging target orders according to an embodiment of the present invention includes: generating a target order corresponding to the order information based on received order information, and generating a merge key for the target order; querying a target merge strategy that matches the target order based on the order information, and extracting merge information that satisfies the target merge strategy from the order information; determining key value information of the merge key based on the merge information and a unique identifier of the target order, and merging the target order based on the key value information.
[0006] Optionally, before querying the target merge strategy that matches the target order, the method also includes: pre-configuring a merge strategy set; and querying the target merge strategy that matches the target order based on the order information, including: determining the pusher of the order information, and determining the pusher merge strategy set corresponding to the pusher based on the merge strategy set; selecting a target merge strategy set from the pusher merge strategy set based on the order information; and selecting the merge strategy with the highest priority from the target merge strategy set as the target merge strategy.
[0007] Optionally, determining the key value information of the merge key based on the merge information and the unique identifier of the target order includes: encrypting the merge information and the unique identifier of the target order based on a hash algorithm, and determining the result of the encryption processing as the key value information of the merge key.
[0008] Optionally, after generating the merge key of the target order, the method also includes: adding an index of the merge key; and merging the target orders according to the key value information, including: adding the target order with the key value information to an order list; using the index, scanning the key value information of the orders in the order list according to a preset period, and merging the orders with the same key value information.
[0009] To achieve the above objective, according to a second aspect of an embodiment of the present invention, a device for merging target orders is provided.
[0010] A device for merging target orders according to an embodiment of the present invention includes: a generation module, which is used to generate a target order corresponding to the order information based on received order information, and generate a merge key for the target order; an extraction module, which is used to query a target merge strategy that matches the target order based on the order information, and extract merge information that satisfies the target merge strategy from the order information; and a merging module, which is used to determine key value information of the merge key based on the merge information and a unique identifier of the target order, and merge the target order based on the key value information.
[0011] Optionally, the device also includes a configuration module, which is used to: pre-configure a merge strategy set; and the extraction module is also used to: determine the pusher of the order information, and determine the pusher merge strategy set corresponding to the pusher based on the merge strategy set; select a target merge strategy set from the pusher merge strategy set based on the order information; and select the merge strategy with the highest priority from the target merge strategy set as the target merge strategy.
[0012] Optionally, the merging module is further used to: based on a hash algorithm, encrypt the merge information and the unique identifier of the target order, and determine the result of the encryption process as the key value information of the merge key.
[0013] Optionally, the generation module is also used to: increase the index of the merge key; and the merge module is also used to: add the target order with the key value information to the order list; use the index to scan the key value information of the orders in the order list according to a preset period, and merge the orders with the same key value information.
[0014] To achieve the above objective, according to a third aspect of an embodiment of the present invention, an electronic device is provided.
[0015] An electronic device according to an embodiment of the present invention includes: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method for merging target orders according to an embodiment of the present invention.
[0016] To achieve the above objective, according to a fourth aspect of an embodiment of the present invention, a computer-readable medium is provided.
[0017] A computer-readable medium according to an embodiment of the present invention stores a computer program, and when the program is executed by a processor, the method for merging target orders according to an embodiment of the present invention is implemented.
[0018] One embodiment of the above invention has the following advantages or beneficial effects: because the logistics system can query the matching target merge strategy based on the order information, it overcomes the problem of not being able to meet the merge requirements of different scenarios of users. In addition, the logistics system in the present invention can generate a target order and a merge key of the target order based on the order information, and then use the merge strategy to obtain the key value information of the merge key, so that the order can be directly merged through the key value information, thereby improving the efficiency of order merging. In addition, the present invention pre-configures a merge strategy set, and uses the pusher of the order information (i.e., the user) and the specific order information to extract the target strategy set from the merge strategy set, taking into account the actual needs of the user. In addition, when determining the key value information, the present invention uses a hash algorithm technology to encrypt the merge information and the unique identifier of the target order, thereby ensuring the uniqueness of the string of the key value information and the uniformity of the length of the string. Finally, the present invention also adds an index of the merge key, so that the key value information of the merge key can be quickly scanned using the index, reducing the order merging time and improving the order merging efficiency.
[0019] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0021] Figure 1 is a schematic diagram of main steps of a method for merging target orders according to an embodiment of the present invention;
[0022] Figure 2 is a schematic diagram of the architecture of a system for merging target orders according to a reference embodiment of the present invention;
[0023] Figure 3is a main flow chart of a method for merging target orders according to yet another reference embodiment of the present invention;
[0024] Figure 4 is a schematic diagram of main modules of an apparatus for merging target orders according to an embodiment of the present invention;
[0025] Figure 5 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0026] Figure 6 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0027] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0028] Figure 1 Schematic diagram of the main steps of the method for merging target orders according to an embodiment of the present invention. As a reference embodiment of the present invention, Figure 1 As shown, the main steps of the method for merging target orders in the embodiment of the present invention may include:
[0029] Step S101: Generate a target order corresponding to the order information according to the received order information, and generate a merge key for the target order. In the present invention, the merchant pushes the order information to the logistics system. After the logistics system receives the order information, it generates a target order corresponding to the order information. At the same time, the logistics system needs to generate a merge key for the target order, so that the merge key can be used to merge orders in subsequent operations. Among them, the merchant refers to the user who pushes the order information to the logistics system. Considering that the users who have the need to merge orders are mostly merchants who need to ship in large quantities, the user in the present invention may refer to a merchant on an e-commerce platform or a merchant in an offline physical store. For the convenience of description, in the specific description of the present invention, the merchant is used to replace the user. Of course, the user of the present invention is not limited to the merchant. The order information pushed by the merchant may include: contact person, contact number, harvesting address, harvesting factory, harvester, and item information, etc.
[0030] Step S102: According to the order information, query the target merge strategy that matches the target order, and extract the merge information that satisfies the target merge strategy from the order information. The present invention can query the target merge strategy that matches the target order in the merge strategy set of the logistics system according to the received order information. Therefore, in an embodiment of the present invention, before querying the target merge strategy that matches the target order, a merge strategy set needs to be pre-configured in the logistics system. In addition, the merge strategy can be provided by the merchant himself, for example, merchant A provides the logistics system with a merge strategy for order information pushed by merchant A, and merchant B provides the logistics system with a merge strategy for order information pushed by merchant B. In other words, the merge strategy set is a merge strategy generated by the logistics system according to the merge conditions provided by different merchants, and the present invention does not limit this.
[0031] The method for merging target orders of the present invention is to solve the different scenario requirements of merchants, so how to select a target merging strategy that matches the target order is the main technical point of this solution. As another reference embodiment of the present invention, querying a target merging strategy that matches the target order may include:
[0032] Step S1021: determining the pusher of the order information, and determining the pusher merging strategy set corresponding to the pusher according to the merging strategy set;
[0033] Step S1022: selecting a target merging strategy set from the pusher merging strategy set according to the order information;
[0034] Step S1023: Select the merge strategy with the highest priority from the target merge strategy set as the target merge strategy.
[0035] In step S1021, the pusher of the order information is first determined, that is, the merchant who pushes the order information to the logistics system, and then the merge strategy related to the pusher is screened out from the pre-set merge strategy set, that is, the pusher merge strategy set. This is done because the merge strategy set of the logistics system includes merge strategies of different merchants, and different merge strategies are used for different merchants, so it is necessary to first determine the merge strategy set related to the pusher of the order information.
[0036] After obtaining the pusher merge strategy set, the present invention executes step S1022, and selects a target merge strategy set from the pusher strategy set according to the specific order information pushed by the merchant. For a merchant, it may pre-set more than one strategy set in the logistics system, and for different target orders, there may be multiple merge strategies matching the target order, so it is necessary to select the target strategy set from the pusher merge strategy set according to the order information. For example, for the merchant A merge strategy set of merchant A, according to the specific target order, it is determined that the merge strategies matching the specific target order include merge strategy H1, merge strategy H2 and merge strategy H3, so these merge strategies H1, H2 and H3 constitute the target merge strategy set for the specific target order. Among them, merge strategy H1 can be to merge orders with the same contact; H2 can be to merge orders with the same contact and delivery address; H3 can be to merge orders from the same e-commerce platform (considering that merchants can sell their own items on different e-commerce platforms, so orders may come from different e-commerce platforms) and with the same contact.
[0037] After obtaining the target merge strategy set, you need to sort the merge strategies in the target merge strategy set according to priority, and then select the merge strategy with the highest priority as the target merge strategy. Next, the above example of determining the target merge strategy set is used to illustrate that the merge strategies H1, H2, and H3 corresponding to the specific target order are sorted from high to low in priority as H2, H3, and H1, so merge strategy H2 is determined as the target merge strategy for the specific target order.
[0038] After the present invention obtains the target merge strategy in step S102, it is necessary to select merge information that satisfies the target merge strategy from the order information according to the target merge strategy. For example, the target merge strategy is to merge orders with the same contact person, then the contact person of the order is selected from the order information as the merge information. Next, execute step S103: determine the key value information of the merge key based on the merge information and the unique identifier of the target order, and merge the target order based on the key value information. In the present invention, a merge key of the target order is generated in step S101, and then the key value information of the merge key is calculated using the merge information and the unique identifier of the target order in step S103, so that the target order can be merged using the calculated key value information.
[0039] Among them, as another reference embodiment of the present invention, determining the key value information of the merge key may include: based on the hash algorithm, encrypting the merge information and the unique identifier of the target order, and determining the result of the encryption process as the key value information of the merge key. Among them, the hash algorithm can map a binary value of any length to a smaller binary value of a fixed length, and this small binary value is called a hash value. The hash value is a unique and extremely compact numerical representation of a piece of data. If a plain text is hashed and even if only one letter of the paragraph is changed, subsequent hashes will produce different values. It is computationally impossible to find two different inputs that hash to the same value, so the hash value of the data can verify the integrity of the data. Based on the characteristics of the hash algorithm, the present invention can ensure the uniqueness of the processing result obtained after processing the merge information and the unique identifier of the target order, and can convert merge information and unique identifiers of any length into key value information of fixed length. The advantage of this is that if the merge information is relatively long, such as a specific harvesting address, it is not convenient to find, and it is converted into key value information of fixed length, which is convenient to find, reduces the merging time, and improves the merging efficiency.
[0040] As mentioned above, the present invention uses the key value information of the merge key to merge orders. Here, a specific explanation is given on how to use the key value information to merge orders. After generating the merge key of the target order according to the order information, the present invention also adds an index of the merge key. Then, merging the target order according to the key value information can specifically include: adding the target order with the key value information to the order list; using the index, scanning the key value information of the orders in the order list according to a preset period, and merging the orders with the same key value information.
[0041] The present invention obtains the key value information of the merge key in step S102, then adds the target order with the key value information to the order list, and then uses the index of the merge key to scan the key value information of the orders in the order list according to a preset period, and merges the orders with the same key value information. The scanning function here can be implemented by a thread pool, that is, the timing function of the thread pool is used to regularly scan the orders in the order list, merge the orders with the same key value information of the merge key, and generate a new order.
[0042] Figure 2 FIG. 1 is a schematic diagram of the architecture of a system for merging target orders according to a reference embodiment of the present invention. Figure 2It can be seen that the system for merging target orders of the present invention may include five parts: an order executor, a strategy selector, a strategy factory, a thread pool, and a merge process. The order executor can generate an order key based on order information, and generate key value information of the order key using the order information and the unique identifier of the target order. The strategy selector can select the target order strategy from the strategy factory based on the order information. The strategy factory stores various pre-configured order strategies. The thread pool is used to establish a scheduled task and scan the order list at a scheduled time. The merge process refers to merging the orders that meet the order strategy based on the scan to generate a new order.
[0043] Figure 3 FIG. 2 is a schematic diagram of the main flow of a method for merging target orders according to another reference embodiment of the present invention. Figure 3 As shown, the method of merging target orders may mainly include:
[0044] Step S301: The logistics system receives the order information pushed by the merchant, generates a target order corresponding to the order information, generates a merge key for the target order, and adds an index to the merge key;
[0045] Step S302: the logistics system determines the merchant that pushes the order information, and then selects a merchant merging strategy set corresponding to the merchant from the merging strategy set in the logistics system;
[0046] Step S303: the logistics system selects a target merging strategy set from the merchant merging strategy set according to the order information pushed by the merchant;
[0047] Step S304: Select the merging strategy with the highest priority from the target merging strategy set as the target merging strategy that matches the target order.
[0048] Step S305: extracting merge information satisfying the target merge strategy from the pushed order information according to the selected target merge strategy;
[0049] Step S306: Based on the hash algorithm, encrypt the merge information and the unique identifier of the target order, and determine the result of the encryption process as the key value information of the merge key;
[0050] Step S307: adding the target order with key value information to the order list;
[0051] Step S308: Using the index, the key value information of the orders in the order list is scanned according to the preset cycle set in the thread pool technology, and the orders with the same key value information are merged.
[0052] It should be noted that before selecting the merchant merging strategy set corresponding to the merchant from the merging strategy set in the logistics system in step S302, the present invention also needs to pre-set the merging strategy set. In addition, the execution order of step S301 can be adjusted according to actual conditions, as long as it is executed before step S306.
[0053] According to the technical solution of merging target orders of the present invention, because the logistics system can query the matching target merging strategy according to the order information, it overcomes the problem of not being able to meet the merging needs of users in different scenarios. In addition, the logistics system of the present invention can generate a target order and a merge key of the target order according to the order information, and then use the merge strategy to obtain the key value information of the merge key, so that the order can be directly merged through the key value information, thereby improving the efficiency of order merging. In addition, the present invention pre-configures a merge strategy set, and uses the pusher of the order information (i.e., the user) and the specific order information to extract the target strategy set from the merge strategy set, taking into account the actual needs of the user. In addition, when determining the key value information, the present invention uses a hash algorithm technology to encrypt the merge information and the unique identifier of the target order, thereby ensuring the uniqueness of the string of the key value information and the uniformity of the length of the string. Finally, the present invention also adds an index of the merge key, so that the key value information of the merge key can be quickly scanned using the index, reducing the order merging time and improving the order merging efficiency.
[0054] Figure 4 is a schematic diagram of the main modules of the device for merging target orders according to an embodiment of the present invention. Figure 4 As shown, the device 400 for merging target orders according to the embodiment of the present invention mainly includes the following modules: a generating module 401, an extracting module 402 and a merging module 403.
[0055] The generating module 401 may be used to: generate a target order corresponding to the order information according to the received order information, and generate a merge key of the target order;
[0056] The extraction module 402 may be used to: query a target merging strategy matching a target order according to the order information, and extract merging information satisfying the target merging strategy from the order information;
[0057] The merging module 403 may be used to determine the key value information of the merging key according to the merging information and the unique identifier of the target order, and perform merging processing on the target order according to the key value information.
[0058] In the embodiment of the present invention, the device for merging target orders may further include: a configuration module ( Figure 4(not shown in the figure). The configuration module can be used to: pre-configure a merge strategy set. And the extraction module 402 can also be used to: determine the pusher of the order information, and determine the pusher merge strategy set corresponding to the pusher according to the merge strategy set; select a target merge strategy set from the pusher merge strategy set according to the order information; select the merge strategy with the highest priority from the target merge strategy set as the target merge strategy.
[0059] In the embodiment of the present invention, the merging module 403 may also be used to: encrypt the merging information and the unique identifier of the target order based on a hash algorithm, and determine the encryption result as the key value information of the merging key.
[0060] In an embodiment of the present invention, the generation module 402 can also be used to: add an index of the merge key; and the merge module 403 can also be used to: add a target order with key value information to the order list; use the index to scan the key value information of the orders in the order list according to a preset period, and merge orders with the same key value information.
[0061] From the above description, it can be seen that the logistics system adopts the device for merging target orders of the embodiment of the present invention, and can query the matching target merging strategy according to the order information, thereby overcoming the problem of not being able to meet the merging needs of users in different scenarios. In addition, the logistics system in the present invention can generate a target order and a merge key of the target order according to the order information, and then use the merge strategy to obtain the key value information of the merge key, so that the order can be directly merged through the key value information, thereby improving the efficiency of order merging. In addition, the present invention pre-configures a merge strategy set, and uses the pusher of the order information (i.e., the user) and the specific order information to extract the target strategy set from the merge strategy set, taking into account the actual needs of the user. In addition, when determining the key value information, the present invention uses a hash algorithm technology to encrypt the merge information and the unique identifier of the target order, thereby ensuring the uniqueness of the string of the key value information and the uniformity of the length of the string. Finally, the present invention also adds an index of the merge key, so that the key value information of the merge key can be quickly scanned using the index, reducing the order merging time and improving the order merging efficiency.
[0062] Figure 5 An exemplary system architecture 500 is shown to which the method for merging target orders or the apparatus for merging target orders according to the embodiments of the present invention may be applied.
[0063] like Figure 5As shown, system architecture 500 may include terminal devices 501, 502, 503, a network 504 and a server 505. Network 504 is used to provide a medium for communication links between terminal devices 501, 502, 503 and server 505. Network 504 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0064] Users can use terminal devices 501, 502, 503 to interact with server 505 through network 504 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 501, 502, 503, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).
[0065] The terminal devices 501 , 502 , and 503 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0066] The server 505 may be a server that provides various services, such as a backend management server (only an example) that provides support for shopping websites browsed by users using the terminal devices 501, 502, and 503. The backend management server may analyze and process the received data such as product information query requests, and feed back the processing results (such as target push information, product information - only an example) to the terminal device.
[0067] It should be noted that the method for merging target orders provided in the embodiment of the present invention is generally executed by the server 505 , and accordingly, the device for merging target orders is generally set in the server 505 .
[0068] It should be understood that Figure 5 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0069] Reference below Figure 6 , which shows a schematic diagram of the structure of a computer system 600 of a terminal device suitable for implementing an embodiment of the present invention. Figure 6 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0070] like Figure 6As shown, the computer system 600 includes a central processing unit (CPU) 601, which 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 part 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0071] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 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, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.
[0072] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above-mentioned functions defined in the system of the present invention are executed.
[0073] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0074] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0075] The modules involved in the embodiments of the present invention may be implemented in software or hardware. The modules described may also be set in a processor, for example, they may be described as: a processor includes a generation module, an extraction module and a merging module. The names of these modules do not constitute a limitation on the modules themselves in some cases. For example, the generation module may also be described as "a module that generates a target order corresponding to the order information based on the received order information, and generates a merge key for the target order".
[0076] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: generating a target order corresponding to the order information according to the received order information, and generating a merge key of the target order; querying a target merge strategy matching the target order according to the order information, and extracting merge information that satisfies the target merge strategy from the order information; determining the key value information of the merge key according to the unique identifier of the merge information and the target order, and merging the target order according to the key value information.
[0077] According to the technical solution of the embodiment of the present invention, because the logistics system can query the matching target merge strategy based on the order information, the problem of not being able to meet the merge requirements of different scenarios of users is overcome. In addition, the logistics system in the present invention can generate a target order and a merge key of the target order based on the order information, and then use the merge strategy to obtain the key value information of the merge key, so that the order can be directly merged through the key value information, thereby improving the efficiency of order merging. In addition, the present invention pre-configures a merge strategy set, and uses the pusher of the order information (i.e., the user) and the specific order information to extract the target strategy set from the merge strategy set, taking into account the actual needs of the user. In addition, when determining the key value information, the present invention uses a hash algorithm technology to encrypt the merge information and the unique identifier of the target order, thereby ensuring the uniqueness of the string of the key value information and the uniformity of the length of the string. Finally, the present invention also adds an index of the merge key, so that the key value information of the merge key can be quickly scanned using the index, reducing the order merging time and improving the order merging efficiency.
[0078] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for merging target orders, characterized in that: include: Generate a target order corresponding to the order information according to the received order information, and generate a merge key of the target order; According to the order information, query the target merging strategy matching the target order, and extract merging information satisfying the target merging strategy from the order information; Before querying the target merge strategy that matches the target order, pre-configure a merge strategy set; wherein, querying the target merge strategy that matches the target order according to the order information includes: determining the pusher of the order information, and determining the pusher merge strategy set corresponding to the pusher according to the merge strategy set; selecting a target merge strategy set from the pusher merge strategy set according to the order information; selecting the merge strategy with the highest priority from the target merge strategy set as the target merge strategy; the pusher is a merchant who pushes order information to the logistics system; the pusher merge strategy set is a merge strategy generated by the logistics system according to the merge conditions provided by different merchants; The key value information of the merge key is determined according to the merge information and the unique identifier of the target order, and the target order is merged according to the key value information.
2. The method according to claim 1, characterized in that Determining the key value information of the merge key based on the merge information and the unique identifier of the target order includes: encrypting the merge information and the unique identifier of the target order based on a hash algorithm, and determining the result of the encryption processing as the key value information of the merge key.
3. The method according to claim 1, characterized in that After generating the merge key of the target order, the method further includes: increasing the index of the merge key; and The merging process of the target orders according to the key value information includes: Adding the target order with the key value information to the order list; The index is used to scan the key value information of the orders in the order list according to a preset period, and the orders with the same key value information are merged.
4. A device for merging target orders, characterized in that: include: A generating module, configured to generate a target order corresponding to the order information according to the received order information, and to generate a merge key of the target order; an extraction module, configured to query a target merging strategy matching the target order according to the order information, and extract merging information satisfying the target merging strategy from the order information; and to pre-configure a merging strategy set before querying the target merging strategy matching the target order; Determine the pusher of the order information, and determine the pusher merge strategy set corresponding to the pusher according to the merge strategy set; select a target merge strategy set from the pusher merge strategy set according to the order information; Selecting a merge strategy with the highest priority from the target merge strategy set as the target merge strategy; The pusher is the merchant who pushes order information to the logistics system; The pusher merging strategy set is a merging strategy generated by the logistics system according to the merging conditions provided by different merchants; The merging module is used to determine the key value information of the merging key according to the merging information and the unique identifier of the target order, and to perform merging processing on the target order according to the key value information.
5. The device according to claim 4, characterized in that The merging module is further used to: encrypt the merging information and the unique identifier of the target order based on a hash algorithm, and determine the result of the encryption processing as the key value information of the merging key.
6. The device according to claim 4, characterized in that The generating module is further used to: increase the index of the merge key; and The merge module is also used to: Adding the target order with the key value information to the order list; The index is used to scan the key value information of the orders in the order list according to a preset period, and the orders with the same key value information are merged.
7. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 3.
8. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 3 is implemented.
Citation Information
Patent Citations
Electronic commerce transaction method and system
CN101183451A
Installment commodity order method and device
CN106651492A
Access control method and system based on block chain technology
CN108123936A