Data processing method and device

By performing inventory pre-emption and asynchronous outbound processing after receiving order instructions on the e-commerce platform, the inventory oversold problem caused by the cooling-off period for online shopping in e-commerce transactions is solved, ensuring inventory accuracy and user experience, and reducing complaints and Compensation costs.

CN118780718APending Publication Date: 2024-10-15BEIJING JINGDONG QIANSHITECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310362130.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-06
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

E-commerce merchants have oversold inventory problems due to differences in inventory verification time after the cooling-off period for online shopping, resulting in discrepancies between actual goods and the failure of some orders to be completed normally, increasing user complaints and compensation costs, and damaging the service reputation of e-commerce platforms.

Method used

By receiving the order instructions, extract the store code, item code and order quantity, select the data warehouse, query the available inventory, make deductions, and deduct the actual inventory again after the cooling-off period, perform outbound processing, and realize inventory pre-emption and Asynchronous splitting of outbound processing ensures inventory accuracy and user experience.

Benefits of technology

It effectively avoids oversold inventory, ensures the normal completion of orders, reduces user complaints and compensation costs, and improves the service quality and user experience of the e-commerce platform.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118780718A_ABST
    Figure CN118780718A_ABST
Patent Text Reader

Abstract

The invention discloses a data processing method and device, and relates to the technical field of computers. A specific embodiment of the method comprises the following steps: receiving an order placing instruction, and extracting a corresponding shop code, an article code and an order placing quantity; selecting and calling a data warehouse corresponding to the store code, querying a corresponding available stock quantity according to the article code, deducting the available stock quantity by using the ordering quantity, and in response to determining that the deducted available stock quantity is effective, associating the ordering instruction with the data warehouse; and in response to the situation that the order placing instruction is not changed after a preset cooling period, calling an associated data warehouse, deducting the actual inventory quantity corresponding to the article code according to the order placing quantity, and executing warehouse-out processing according to the order placing instruction. Therefore, the technical problem that inventory oversell cannot be avoided for e-commerce transaction in the prior art can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a data processing method and device. Background Art

[0002] At present, e-commerce transactions are becoming increasingly common, providing e-commerce merchants with a convenient and fast business model.

[0003] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:

[0004] While e-commerce merchants are enjoying convenient and efficient online transaction functions, the phenomenon of oversold inventory is common, especially after the establishment of the online shopping cooling-off period system. There is a long time difference between the two processing operations of receiving product orders and checking product inventory, which leads to the number of product orders after the online shopping cooling-off period being far greater than the corresponding product inventory, resulting in discrepancies between the goods and the actual situation and the inability to complete some orders normally. This increases the risk of e-commerce merchants being complained by users and increases the cost of e-commerce merchants compensating users, while also damaging the service reputation of e-commerce platforms. Summary of the invention

[0005] In view of this, an embodiment of the present invention provides a data processing method and device, which can solve the existing technical problem that it is impossible to avoid overselling inventory for e-commerce transactions.

[0006] To achieve the above-mentioned purpose, according to one aspect of an embodiment of the present invention, there is provided a data processing method, including receiving an order instruction, extracting the corresponding store code, item code and order quantity; selecting and retrieving the data warehouse corresponding to the store code, so as to query the corresponding available inventory quantity according to the item code, deducting the available inventory quantity using the order quantity, and in response to determining that the available inventory quantity after the deduction is valid, associating the order instruction and the data warehouse; in response to the order instruction being unchanged after a preset cooling-off period, retrieving the associated data warehouse, so as to deduct the actual inventory quantity corresponding to the item code according to the order quantity, and executing the outbound processing according to the order instruction.

[0007] Optionally, select and retrieve the data warehouse corresponding to the store code, including:

[0008] Extract the corresponding delivery address based on the order instruction, query multiple data warehouses corresponding to the store code according to the preset first lookup table, and determine the physical warehouse address corresponding to each data warehouse;

[0009] Multiple data warehouses whose distances between corresponding physical warehouse addresses and delivery addresses are less than a preset threshold are screened to merge and generate a data warehouse set, and a data warehouse is selected from the data warehouse set for retrieval.

[0010] Optionally, the available stock quantity is reduced by the ordered quantity, including:

[0011] Determine whether the available inventory quantity after deduction is less than zero. If so, determine that the available inventory quantity after deduction is invalid. Otherwise, determine that the available inventory quantity after deduction is valid.

[0012] Optionally, after associating the order instruction with the data warehouse, the following steps are included:

[0013] The order quantity is used as the reserved quantity corresponding to the data warehouse, and the out-of-stock quantity corresponding to the order instruction is determined to be zero.

[0014] Optionally, in response to determining that the reduced available inventory quantity is invalid, comprising:

[0015] Determine whether the absolute value of the available inventory quantity after deduction is less than the absolute value of the order quantity;

[0016] If not, the order quantity is used as the out-of-stock quantity corresponding to the order instruction;

[0017] If so, the absolute value of the available inventory quantity after deduction is used as the out-of-stock quantity corresponding to the order instruction, the order instruction and the data warehouse are associated, and the available inventory quantity before deduction is used as the reserved quantity corresponding to the data warehouse.

[0018] Optionally include:

[0019] Mark the data warehouse and read the out-of-stock quantity corresponding to the order instruction; loop through the following steps until the out-of-stock quantity is updated to zero or there is no unmarked data warehouse in the data warehouse set:

[0020] Select an unmarked data warehouse from the data warehouse set and retrieve it, mark the retrieved data warehouse, and determine whether the available inventory quantity corresponding to the item code is greater than zero through the retrieved data warehouse.

[0021] If not, keep the out-of-stock quantity.

[0022] If so, associate the retrieved data warehouse with the order instruction, and use the out-of-stock quantity to deduct the available inventory quantity, and determine whether the available inventory quantity after deduction is a negative number. If so, update the out-of-stock quantity to the absolute value of the available inventory quantity after deduction, and use the available inventory quantity before deduction as the reserved quantity corresponding to the retrieved data warehouse. If not, update the out-of-stock quantity to zero, and use the out-of-stock quantity before update as the reserved quantity corresponding to the retrieved data warehouse.

[0023] Determine whether the out-of-stock quantity is zero, and determine whether there are unlabeled data warehouses in the data warehouse set;

[0024] To update the out-of-stock quantity corresponding to the order instruction.

[0025] Optionally, after the out-of-stock quantity corresponding to the order instruction is updated, the following steps are performed:

[0026] In response to determining that the updated out-of-stock quantity is greater than zero and less than the order quantity, calling a preset second lookup table to query the delivery processing type corresponding to the store code;

[0027] In response to determining that the store code corresponds to the first type of delivery processing, the order instruction is split according to the out-of-stock quantity to obtain a first order instruction and a second order instruction, respectively.

[0028] For the first order instruction: the out-of-stock quantity corresponding to the order instruction is used as the corresponding order quantity and out-of-stock quantity.

[0029] For the second order instruction: transfer the data warehouse associated with the order instruction to the second order instruction, and use the corresponding reserved quantity as the order quantity corresponding to the second order instruction, and call the associated data warehouse to query the corresponding actual inventory quantity through the item code, and use the order quantity to deduct the actual inventory quantity, and execute the outbound processing according to the second order instruction.

[0030] The order instruction, the first order instruction and the second order instruction are returned.

[0031] Optionally, after the out-of-stock quantity corresponding to the order instruction is updated, the following steps are performed:

[0032] In response to determining that the updated out-of-stock quantity is non-zero, calling a preset third lookup table to query the out-of-stock processing type corresponding to the store code;

[0033] In response to determining that the store code corresponds to the first type of out-of-stock processing, rejecting the order instruction, generating and returning corresponding out-of-stock prompt information;

[0034] In response to determining that the store code corresponds to the second type of out-of-stock processing, the order instruction is added to the exception processing pool to monitor the replenishment quantity corresponding to the data warehouse set through the item code. In response to the monitored replenishment quantity being greater than or equal to the updated out-of-stock quantity, the updated out-of-stock quantity is used to perform a corresponding deduction on the replenishment quantity, and the updated out-of-stock quantity is updated to zero.

[0035] Optionally, before calling the associated data warehouse, include:

[0036] In response to determining that the out-of-stock quantity corresponding to the order instruction or the second order instruction is zero, each data warehouse associated with the order instruction or the second order instruction and the reserved quantity corresponding to each data warehouse are determined, so as to be combined and sent to the processor,

[0037] By means of the processor, the corresponding item codes and reserved quantities are reviewed in the physical warehouses corresponding to each data warehouse;

[0038] In response to determining that the processor reviews passed.

[0039] Optionally, deduct the actual inventory quantity corresponding to the item code according to the order quantity, including:

[0040] The actual inventory quantity corresponding to the item code is queried in each associated data warehouse respectively, and the reserved quantity corresponding to each associated data warehouse is read, so as to use each reserved quantity to deduct the corresponding actual inventory quantity.

[0041] In addition, the present invention also provides a data processing device, including an acquisition module for receiving an order instruction, extracting the corresponding store code, item code and order quantity; including a pre-occupied inventory module, for selecting and retrieving a data warehouse corresponding to the store code, so as to query the corresponding available inventory quantity according to the item code, deduct the available inventory quantity using the order quantity, and in response to determining that the available inventory quantity after the deduction is valid, associate the order instruction and the data warehouse; also including a settlement module, for responding to the order instruction being unchanged after a preset cooling-off period, retrieving the associated data warehouse, so as to deduct the actual inventory quantity corresponding to the item code according to the order quantity, and execute the outbound processing according to the order instruction.

[0042] One embodiment of the above invention has the following advantages or beneficial effects: the present invention achieves the purpose of obtaining key processing parameters and completes the automatic parsing of the received order instruction by extracting the corresponding store code, item code and order quantity from the received order instruction; and the present invention achieves the range determination of the corresponding multiple data warehouses by selecting and retrieving the data warehouse corresponding to the store code, thereby providing data support for querying the corresponding inventory quantity and pre-occupying the corresponding inventory quantity in subsequent processing; at the same time, the present invention queries the corresponding available inventory quantity according to the item code, deducts the available inventory quantity using the order quantity, and in response to determining that the available inventory quantity after the deduction is valid, associates the order instruction and the data warehouse, thereby achieving the effect of pre-occupying the corresponding available inventory quantity as soon as possible after receiving the order instruction, so that the updated available inventory quantity can be used as early as possible, and the inventory status can be promptly fed back to the subsequently received order instruction, thereby avoiding the time difference caused by the online shopping cooling-off period. The situation of oversold inventory occurs; in addition, in response to the order instruction being unchanged after the preset cooling-off period, the present invention calls up the associated data warehouse to deduct the actual inventory quantity corresponding to the item code according to the order quantity. In this step, the effect of improving the e-commerce user experience is achieved by establishing a cooling-off period, and the order instructions that can be normally settled are also screened out. In this step, the actual inventory quantity is updated to realize the process of synchronizing inventory statistics according to the reserved available inventory quantity. By defining the same inventory quantity as the available inventory quantity and the actual inventory quantity respectively, and updating them asynchronously, the effect of asynchronously splitting the inventory reservation and outbound processing of the same order instruction can be achieved, thereby achieving the effect of preventing inventory oversold for e-commerce transactions; in addition, the present invention realizes the process of executing subsequent document generation and logistics delivery processing for order instructions that pass double verification (i.e., successful inventory reservation and successful deduction of actual inventory) by executing outbound processing according to the order instruction, thereby promoting the response process to the received order instruction.

[0043] 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

[0044] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0045] Figure 1 is a schematic diagram of the main flow of the data processing method according to the first embodiment of the present invention;

[0046] Figure 2 is a schematic diagram of the main flow of a data processing method according to a second embodiment of the present invention;

[0047] Figure 3is a schematic diagram of the main flow of a data processing method according to a third embodiment of the present invention;

[0048] Figure 4 is a schematic diagram of main modules of a data processing device according to a first embodiment of the present invention;

[0049] Figure 5 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;

[0050] 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

[0051] 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.

[0052] Figure 1 is a schematic diagram of the main flow of the data processing method according to the first embodiment of the present invention. Figure 1 As shown, the data processing method includes:

[0053] Step S101, receiving an order instruction, and extracting the corresponding store code, item code and order quantity.

[0054] In an embodiment, the corresponding store code, item code and order quantity are obtained based on the received order instruction, thereby realizing the process of automatic parsing of the order instruction and automatic acquisition of processing parameters, thereby laying the foundation for corresponding inventory quantity query and inventory quantity pre-occupation according to the processing parameters in subsequent operations.

[0055] Step S102, select and retrieve the data warehouse corresponding to the store code to query the corresponding available inventory quantity according to the item code, deduct the available inventory quantity using the order quantity, and in response to determining that the available inventory quantity after deduction is valid, associate the order instruction with the data warehouse.

[0056] In the embodiment, through the processing of this step, the update of the available inventory quantity in the corresponding data warehouse is completed, thereby achieving the purpose of pre-occupying the corresponding inventory quantity within the first time of receiving the order instruction, and then feedback is given to the order instruction as quickly as possible in the inventory quantity statistical dimension, completely avoiding the risk of inventory quantity statistical time difference caused by the online shopping cooling-off period, thereby ensuring the timeliness of the available inventory quantity, so that the e-commerce platform using the present invention can update the item display information in time according to the above-mentioned available inventory quantity, so as to avoid continuing to sell when the available inventory quantity is insufficient, thereby reducing the risks of inconsistent goods and actual goods, inability to complete the order normally, etc.; on the other hand, for the order instruction whose available inventory quantity is successfully deducted (that is, the available inventory quantity after deduction is valid), it is directly associated with the retrieved data warehouse to lock the warehouse corresponding to the order instruction (through the association relationship between the data warehouse and the physical warehouse), thereby compressing the corresponding outbound processing flow to the greatest extent, thereby further improving the processing efficiency of the present technical solution.

[0057] In a further embodiment, in order to control the logistics and transportation costs corresponding to the order instruction, when selecting and retrieving the data warehouse corresponding to the store code, the corresponding delivery address can be extracted based on the order instruction, and multiple data warehouses corresponding to the store code can be queried according to the preset first lookup table, and the physical warehouse address corresponding to each data warehouse can be determined; multiple data warehouses whose distance between the corresponding physical warehouse address and the delivery address is less than a preset threshold are screened to merge and generate a data warehouse set, and one data warehouse is selected from the data warehouse set for retrieval. Through the processing of this step, the multiple warehouses corresponding to the store code are intelligently screened, and a data warehouse set corresponding to multiple warehouses that are closer to the delivery address is obtained, thereby determining the range of the optional data warehouses corresponding to the order instruction, and then while achieving the purpose of controlling the logistics and transportation costs, it lays the foundation for traversing all the optional data warehouses in the subsequent processing to query the inventory quantity, thereby achieving the effect of improving the response efficiency to the order instruction.

[0058] In a further embodiment, in order to clearly determine the validity of the available inventory quantity, after deducting the available inventory quantity from the order quantity, it is possible to determine whether the available inventory quantity after deduction is less than zero. If so, it is determined that the available inventory quantity after deduction is invalid, and otherwise, it is determined that the available inventory quantity after deduction is valid. In other embodiments, the validity determination standard of the available inventory quantity can also be set to be slightly greater than zero according to the specific business strategy of the e-commerce platform or e-commerce merchant, so as to ensure a determined inventory quantity surplus.

[0059] In a further embodiment, in order to record the pre-occupied inventory quantity corresponding to each data warehouse, so as to facilitate the review of items in the corresponding physical warehouse according to the pre-occupied inventory quantity, after associating the order instruction and the data warehouse, the order quantity can be used as the pre-occupied quantity corresponding to the data warehouse, and the out-of-stock quantity corresponding to the order instruction is determined to be zero. After this step, the pre-occupied data of the order instruction that successfully pre-occupies the inventory quantity is recorded, and this is used as the out-of-stock quantity allocated to the corresponding data warehouse, thereby efficiently clarifying the out-of-stock plan for the items corresponding to the order instruction, and making the out-of-stock review process of the corresponding items of each physical warehouse (corresponding to each data warehouse) more concise, thereby ensuring the accuracy of the corresponding out-of-stock processing while improving the efficiency of the out-of-stock processing.

[0060] In a further embodiment, in order to clarify the inventory quantity difference corresponding to the order instruction that failed to reserve inventory in the data warehouse (i.e., it is determined that the corresponding available inventory quantity after deduction is invalid), in response to determining that the available inventory quantity after deduction is invalid, it can be determined whether the absolute value of the available inventory quantity after deduction is less than the absolute value of the order quantity; if not, the order quantity is used as the out-of-stock quantity corresponding to the order instruction; if so, the absolute value of the available inventory quantity after deduction is used as the out-of-stock quantity corresponding to the order instruction, the order instruction and the data warehouse are associated, and the available inventory quantity before deduction is used as the reserved quantity corresponding to the data warehouse. In the processing of this step, determining that the available inventory quantity after deduction is invalid corresponds to the insufficient corresponding inventory quantity, indicating that in this case the data warehouse cannot provide all the inventory required for the order instruction. In most cases, the valid inventory quantity range can be defined as a positive integer. Therefore, if the absolute value of the available inventory quantity after deduction is greater than the absolute value of the order quantity, it means that the original available inventory quantity is a negative number, that is, there is no available inventory corresponding to the item code in the data warehouse, and the data warehouse cannot provide the corresponding delivery for the order instruction. Therefore, the data warehouse and the order instruction are not associated, and the corresponding out-of-stock quantity is equal to the order quantity. If the absolute value of the available inventory quantity after deduction is less than the absolute value of the order quantity, it means that the original available inventory quantity is a positive number and less than the order quantity. Therefore, the data warehouse can only solve a part of the ordered items for the corresponding order (that is, the reserved quantity corresponding to the data warehouse). Therefore, it is necessary to associate the data warehouse and the order instruction, and calculate the corresponding reserved quantity and out-of-stock quantity to clarify the order quantity distribution relationship between the order instruction and the associated data warehouse, so as to facilitate traversing other data warehouses in subsequent processing and allocating goods according to the updated out-of-stock quantity.

[0061] In a further embodiment, in order to traverse multiple data warehouses to fully equip the items corresponding to the order instruction, the data warehouse can be marked and the out-of-stock quantity corresponding to the order instruction can be read; the following steps are executed in a loop until the out-of-stock quantity is updated to zero or there is no unmarked data warehouse in the data warehouse set: an unmarked data warehouse is selected in the data warehouse set and retrieved, the retrieved data warehouse is marked, and through the retrieved data warehouse, it is determined whether the available inventory quantity corresponding to the item code is greater than zero, if not, the out-of-stock quantity is maintained, and if so, the associated retrieval is performed. The retrieved data warehouse and the order instruction are used, and the out-of-stock quantity is used to deduct the available inventory quantity, and it is determined whether the available inventory quantity after deduction is a negative number. If so, the out-of-stock quantity is updated to the absolute value of the available inventory quantity after deduction, and the available inventory quantity before deduction is used as the pre-occupied quantity corresponding to the retrieved data warehouse. Otherwise, the out-of-stock quantity is updated to zero, and the out-of-stock quantity before the update is used as the pre-occupied quantity corresponding to the retrieved data warehouse. It is determined whether the out-of-stock quantity is zero, and it is determined whether there is an unmarked data warehouse in the data warehouse set; the out-of-stock quantity corresponding to the order instruction is updated. Through the processing of this step, the traversal scan of all data warehouses that meet the expected distance from the logistics transportation is completed to update and compensate the corresponding out-of-stock quantity, thereby realizing the scheduling of the items included in the order instruction to the greatest extent, so as to equip as many ordered goods as possible required by the e-commerce user, thereby improving the shopping experience of the corresponding e-commerce user, and also promoting the good operation of the e-commerce store using the present invention.

[0062] In a further embodiment, in order to reject the order or wait for replenishment according to the requirements of the corresponding e-commerce merchant for the order instruction with out-of-stock quantity, the out-of-stock quantity corresponding to the order instruction can be updated, and in response to determining that the updated out-of-stock quantity is non-zero, the preset third lookup table is called to query the out-of-stock processing type corresponding to the store code; in response to determining that the store code corresponds to the first type of out-of-stock processing, the order instruction is rejected, and the corresponding out-of-stock prompt information is generated and returned; in response to determining that the store code corresponds to the second type of out-of-stock processing, the order instruction is added to the exception processing pool to monitor the replenishment quantity corresponding to the data warehouse set through the item code, and in response to the monitored replenishment quantity being greater than or equal to the updated out-of-stock quantity, the updated out-of-stock quantity is used to deduct the replenishment quantity accordingly, and the updated out-of-stock quantity is updated to zero. After this step of processing, the orders (or order instructions) with out-of-stock problems are timely screened and fed back, and the diversified needs of the corresponding e-commerce merchants can be met, that is, the out-of-stock orders are quickly intercepted or divided into the exception processing pool, so as to inform the e-commerce users of the order cancellation processing or the waiting for replenishment status. In addition, by setting up an exception handling pool, e-commerce merchants or e-commerce users can monitor items waiting for replenishment, so that when they hear the corresponding replenishment message, they can pre-occupy inventory and ship goods out of the warehouse as soon as possible, so as to actively promote the completion of e-commerce order transactions.

[0063] Step S103, in response to the order instruction being unchanged after the preset cooling-off period, the associated data warehouse is retrieved to deduct the actual inventory quantity corresponding to the item code according to the order quantity, and the outbound processing is performed according to the order instruction.

[0064] In an embodiment, after processing in this step, when it is determined that the item has been successfully pre-stocked and the corresponding order status has not changed after the shopping cooling-off period, the item outbound processing can be immediately executed. The outbound processing may include: firstly, the item status and quantity are reviewed in the physical warehouse, and if the review is passed, the actual inventory quantity is deducted accordingly, and after the deduction is successful, the item is transferred out of the inventory and the corresponding documents are generated, and the documents include but are not limited to: generating a corresponding purchase document according to the order instruction and the associated data warehouse information, and then generating other outbound processing documents according to the generated purchase document, so as to complete the processing of the corresponding order instruction by the data warehouse and the corresponding physical warehouse. In the processing flow of the present technical solution, the inventory quantity is updated twice according to the order quantity, namely the available inventory quantity and the actual inventory quantity; wherein, the available inventory quantity is used to record the update of the inventory quantity in the inventory pre-occupancy stage, and the actual inventory quantity is used to record the update of the inventory quantity in the goods verification and delivery stage; by making two records of the inventory quantity corresponding to the same item, the inventory pre-occupancy processing and the goods delivery processing can be effectively asynchronous, thereby accurately recording the status of the goods in multiple dimensions, which is helpful to the operation and development of e-commerce merchants and e-commerce platforms.

[0065] In a further embodiment, in order to meet the diverse needs of e-commerce merchants, orders with out-of-stock quantities are split and processed in a timely manner. After the out-of-stock quantity corresponding to the order instruction is updated, in response to determining that the updated out-of-stock quantity is greater than zero and less than the order quantity, the preset second lookup table is called to query the shipment processing type corresponding to the store code; in response to determining that the store code corresponds to the first type of shipment processing, the order instruction is split according to the out-of-stock quantity to obtain a first order instruction and a second order instruction respectively, for the first order instruction: the out-of-stock quantity corresponding to the order instruction is used as the corresponding order quantity and out-of-stock quantity, for the second order instruction: the data warehouse associated with the order instruction is transferred and associated with the second order instruction, and the corresponding reserved quantity is used as the order quantity corresponding to the second order instruction, and the associated data warehouse is called to query the corresponding actual inventory quantity through the item code, and the order quantity is used to deduct the actual inventory quantity, and the outbound processing is performed according to the second order instruction, and the order instruction, the first order instruction and the second order instruction are returned. Through the processing of this step, the order can be split and shipped in batches when part of the order is in stock, which meets the preset shipping rules of the corresponding e-commerce merchants and fully protects the rights and interests of e-commerce merchants.

[0066] In a further embodiment, in order to review the physical dimensions of the corresponding items before updating the actual inventory quantity according to the reserved inventory quantity, before calling the associated data warehouse, in response to determining that the out-of-stock quantity corresponding to the order instruction or the second order instruction is zero, each data warehouse associated with the order instruction or the second order instruction and the reserved quantity corresponding to each data warehouse are determined, and the combined data are sent to the processor, so that the processor can review the corresponding item code and reserved quantity in the physical warehouse corresponding to each data warehouse; in response to determining that the processor has passed the review. Through the processing of this step, it is possible to check whether the status and quantity of the goods are consistent with the records in the data warehouse before the order generates the corresponding shipping document, thereby completing multiple checks on multiple dimensions of the goods (data dimension and physical dimension), so as to screen out orders with various transaction risks as soon as possible and ensure the efficiency of responding to order instructions.

[0067] In a further embodiment, in order to accurately deduct the corresponding actual inventory quantity according to the reserved inventory quantity, the actual inventory quantity corresponding to the item code can be queried in each associated data warehouse respectively, and the reserved quantity corresponding to each associated data warehouse can be read respectively, so as to use each reserved quantity to deduct the corresponding actual inventory quantity.

[0068] Figure 2 is a schematic diagram of the main flow of a data processing method according to a second embodiment of the present invention, the data processing method comprising:

[0069] Step S201, receiving an order instruction, and extracting the corresponding store code, item code and order quantity.

[0070] Step S202, query multiple data warehouses corresponding to the store code, and determine the physical warehouse address corresponding to each data warehouse.

[0071] Step S203, extracting the corresponding delivery address based on the order instruction.

[0072] Preferably, the logistics distance between each physical warehouse address and the delivery address is calculated.

[0073] Step S204, screening out data warehouses whose logistics distances are not greater than a preset threshold to generate a data warehouse set.

[0074] Step S205, selecting one from the data warehouse set for retrieval, and marking the retrieved data warehouse.

[0075] Step S206, query the corresponding available inventory quantity according to the item code, and deduct the available inventory quantity using the order quantity.

[0076] Step S207, determining whether the available inventory quantity after deduction is valid, if so, executing step S208, if not, executing step S209.

[0077] Preferably, it is determined whether the available inventory quantity after deduction is less than zero, and if so, it is determined that the available inventory quantity after deduction is invalid, and if not, it is determined that the available inventory quantity after deduction is valid.

[0078] Step S208, the order instruction and the data warehouse use the order quantity as the reserved quantity corresponding to the data warehouse, and set the out-of-stock quantity corresponding to the order instruction to zero.

[0079] Step S209, determine whether the absolute value of the available inventory quantity after deduction is less than the absolute value of the order quantity, if so, execute step S210, if not, execute step S211.

[0080] Step S210, associating the order instruction with the data warehouse, and calculating the corresponding out-of-stock quantity and reserved quantity.

[0081] Preferably, the absolute value of the available inventory quantity after deduction is used as the out-of-stock quantity corresponding to the order instruction, and the available inventory quantity before deduction is used as the reserved quantity corresponding to the data warehouse.

[0082] Step S211, taking the order quantity as the out-of-stock quantity corresponding to the order instruction.

[0083] Step S212, looping through the following steps until the out-of-stock quantity is updated to zero or there is no unmarked data warehouse in the data warehouse set.

[0084] Step S213, select an unmarked data warehouse from the data warehouse set and retrieve it, and mark the retrieved data warehouse.

[0085] Step S214, through the retrieved data warehouse, determine whether the available inventory quantity corresponding to the item code is greater than zero, if so, execute step S215, if not, execute step S216.

[0086] Step S215, associating the retrieved data warehouse with the order instruction, and updating the corresponding reserved quantity and out-of-stock quantity accordingly.

[0087] Preferably, the out-of-stock quantity is used to deduct the available inventory quantity, and it is determined whether the available inventory quantity after the deduction is a negative number. If so, the out-of-stock quantity is updated to the absolute value of the available inventory quantity after the deduction, and the available inventory quantity before the deduction is used as the reserved quantity corresponding to the retrieved data warehouse; otherwise, the out-of-stock quantity is updated to zero, and the out-of-stock quantity before the update is used as the reserved quantity corresponding to the retrieved data warehouse.

[0088] Step S216, maintaining the out-of-stock quantity.

[0089] Step S217, determine whether the out-of-stock quantity is updated to zero, if so, execute step S219, if not, execute step S218.

[0090] Step S218, determine whether there is an unmarked data warehouse in the data warehouse set, if yes, execute step S212, if no, execute step S219.

[0091] Step S219, determine whether the updated out-of-stock quantity is zero, if so, execute step S220, if not, execute step S222.

[0092] Step S220, in response to the order instruction being unchanged after the preset cooling-off period, the associated data warehouse is retrieved to deduct the actual inventory quantity corresponding to the item code according to the order quantity.

[0093] Preferably, the actual inventory quantity corresponding to the item code is queried in each associated data warehouse, and the reserved quantity corresponding to each associated data warehouse is read, so as to use each reserved quantity to deduct the corresponding actual inventory quantity.

[0094] Step S221, execute the outbound processing according to the order instruction.

[0095] Step S222, calling the preset third lookup table to determine whether the store code corresponds to the first type of out-of-stock processing, if so, executing step S223, if not, executing step S224.

[0096] Step S223, reject the order instruction, generate corresponding out-of-stock prompt information and return.

[0097] Step S224, determining that the store code corresponds to the second type of out-of-stock processing, and adding the order instruction to the exception processing pool.

[0098] Preferably, the replenishment quantity corresponding to the data warehouse set is monitored by item coding, and in response to the monitored replenishment quantity being greater than or equal to the updated out-of-stock quantity, the updated out-of-stock quantity is used to perform a corresponding deduction on the replenishment quantity, and the updated out-of-stock quantity is updated to zero.

[0099] Figure 3 is a schematic diagram of the main flow of a data processing method according to a third embodiment of the present invention, the data processing method comprising:

[0100] Step S301, receiving an order instruction, and extracting the corresponding store code, item code and order quantity.

[0101] Step S302, query multiple data warehouses corresponding to the store code, and determine the physical warehouse address corresponding to each data warehouse.

[0102] Step S303, extracting the corresponding delivery address based on the order instruction.

[0103] Preferably, the logistics distance between each physical warehouse address and the delivery address is calculated.

[0104] Step S304, screening out data warehouses whose logistics distances are not greater than a preset threshold to generate a data warehouse set.

[0105] Step S305, selecting one from the data warehouse set for retrieval, and marking the retrieved data warehouse.

[0106] Step S306, query the corresponding available inventory quantity according to the item code, and deduct the available inventory quantity using the order quantity.

[0107] Step S307, determine whether the available inventory quantity after deduction is valid, if so, execute step S308, if not, execute step S309.

[0108] Preferably, it is determined whether the available inventory quantity after deduction is less than zero, and if so, it is determined that the available inventory quantity after deduction is invalid, and if not, it is determined that the available inventory quantity after deduction is valid.

[0109] Step S308, the order instruction and the data warehouse use the order quantity as the reserved quantity corresponding to the data warehouse, and set the out-of-stock quantity corresponding to the order instruction to zero.

[0110] Step S309, determine whether the absolute value of the available inventory quantity after deduction is less than the absolute value of the order quantity, if so, execute step S310, if not, execute step S311.

[0111] Step S310, associating the order instruction with the data warehouse, and calculating the corresponding out-of-stock quantity and reserved quantity.

[0112] Preferably, the absolute value of the available inventory quantity after deduction is used as the out-of-stock quantity corresponding to the order instruction, and the available inventory quantity before deduction is used as the reserved quantity corresponding to the data warehouse.

[0113] Step S311, taking the order quantity as the out-of-stock quantity corresponding to the order instruction.

[0114] Step S312, looping through the following steps until the out-of-stock quantity is updated to zero or there is no unmarked data warehouse in the data warehouse set.

[0115] Step S313, select an unmarked data warehouse in the data warehouse set and retrieve it, and mark the retrieved data warehouse.

[0116] Step S314, through the retrieved data warehouse, determine whether the available inventory quantity corresponding to the item code is greater than zero, if so, execute step S315, if not, execute step S316.

[0117] Step S315, associating the retrieved data warehouse with the order instruction, and updating the corresponding reserved quantity and out-of-stock quantity accordingly.

[0118] Preferably, the out-of-stock quantity is used to deduct the available inventory quantity, and it is determined whether the available inventory quantity after the deduction is a negative number. If so, the out-of-stock quantity is updated to the absolute value of the available inventory quantity after the deduction, and the available inventory quantity before the deduction is used as the reserved quantity corresponding to the retrieved data warehouse; otherwise, the out-of-stock quantity is updated to zero, and the out-of-stock quantity before the update is used as the reserved quantity corresponding to the retrieved data warehouse.

[0119] Step S316, maintaining the out-of-stock quantity.

[0120] Step S317, determine whether the out-of-stock quantity is updated to zero, if so, execute step S319, if not, execute step S318.

[0121] Step S318, determine whether there is an unmarked data warehouse in the data warehouse set, if yes, execute step S312, if no, execute step S319.

[0122] Step S319, determine whether the updated out-of-stock quantity is zero, if so, execute step S320, if not, execute step S322.

[0123] Step S320, in response to the order instruction being unchanged after the preset cooling-off period, the associated data warehouse is retrieved to deduct the actual inventory quantity corresponding to the item code according to the order quantity.

[0124] Preferably, the actual inventory quantity corresponding to the item code is queried in each associated data warehouse, and the reserved quantity corresponding to each associated data warehouse is read, so as to use each reserved quantity to deduct the corresponding actual inventory quantity.

[0125] Step S321, execute the outbound processing according to the order instruction.

[0126] Step S322, in response to determining that the updated out-of-stock quantity is less than the order quantity, calling a preset second lookup table to query the delivery processing type corresponding to the store code.

[0127] Step S323, in response to determining that the store code corresponds to the first type of delivery processing, the order instruction is split according to the out-of-stock quantity to obtain a first order instruction and a second order instruction respectively, and return.

[0128] Preferably, for the first order instruction: the out-of-stock quantity corresponding to the order instruction is used as the corresponding order quantity and out-of-stock quantity; for the second order instruction: the data warehouse associated with the order instruction is transferred and associated with the second order instruction, and the corresponding reserved quantity is used as the order quantity corresponding to the second order instruction, and the associated data warehouse is called to query the corresponding actual inventory quantity through the item code, and the order quantity is used to deduct the actual inventory quantity, and the outbound processing is performed according to the second order instruction.

[0129] Figure 4 is a schematic diagram of main modules of a data processing device according to an embodiment of the present invention, such as Figure 4 As shown, the data processing device 400 includes an acquisition module 401, a reserved inventory module 402 and a settlement module 403. The acquisition module 401 receives an order instruction, extracts the corresponding store code, item code and order quantity; the reserved inventory module 402 selects and calls the data warehouse corresponding to the store code, queries the corresponding available inventory quantity according to the item code, deducts the available inventory quantity with the order quantity, and associates the order instruction with the data warehouse in response to determining that the available inventory quantity after the deduction is valid; the settlement module 403 calls the associated data warehouse in response to the order instruction being unchanged after the preset cooling-off period, deducts the actual inventory quantity corresponding to the item code according to the order quantity, and performs the outbound processing according to the order instruction.

[0130] In some embodiments, the pre-occupied inventory module 402 is also used to: when selecting and retrieving a data warehouse corresponding to a store code, extract the corresponding delivery address based on the order instruction, query multiple data warehouses corresponding to the store code according to a preset first lookup table, and determine the physical warehouse address corresponding to each data warehouse; screen and obtain multiple data warehouses whose distance between the corresponding physical warehouse address and the delivery address is less than a preset threshold, so as to merge and generate a data warehouse set, and select a data warehouse from the data warehouse set for retrieval.

[0131] In some embodiments, the reserved inventory module 402 is also used to: after deducting the available inventory quantity using the order quantity, determine whether the available inventory quantity after deduction is less than zero, if so, determine that the available inventory quantity after deduction is invalid, otherwise, determine that the available inventory quantity after deduction is valid.

[0132] In some embodiments, the reserved inventory module 402 is further used to: after associating the order instruction with the data warehouse, use the order quantity as the reserved quantity corresponding to the data warehouse, and determine that the out-of-stock quantity corresponding to the order instruction is zero.

[0133] In some embodiments, the reserved inventory module 402 is also used to: in response to determining that the available inventory quantity after deduction is invalid, determine whether the absolute value of the available inventory quantity after deduction is less than the absolute value of the order quantity; if not, use the order quantity as the out-of-stock quantity corresponding to the order instruction; if so, use the absolute value of the available inventory quantity after deduction as the out-of-stock quantity corresponding to the order instruction, associate the order instruction and the data warehouse, and use the available inventory quantity before deduction as the reserved quantity corresponding to the data warehouse.

[0134] In some embodiments, the pre-occupied inventory module 402 is further used to: mark the data warehouse and read the out-of-stock quantity corresponding to the order instruction; loop the following steps until the out-of-stock quantity is updated to zero or there is no unmarked data warehouse in the data warehouse set: select an unmarked data warehouse in the data warehouse set and call it, mark the called data warehouse, and determine whether the available inventory quantity corresponding to the item code is greater than zero through the called data warehouse, if not, keep the out-of-stock quantity, if so, associate the called data warehouse and the order instruction, and use the out-of-stock quantity to deduct the available inventory quantity, determine whether the available inventory quantity after deduction is a negative number, if so, update the out-of-stock quantity to the absolute value of the available inventory quantity after deduction, and use the available inventory quantity before deduction as the pre-occupied quantity corresponding to the called data warehouse, if not, update the out-of-stock quantity to zero, and use the out-of-stock quantity before update as the pre-occupied quantity corresponding to the called data warehouse, determine whether the out-of-stock quantity is zero, and determine whether there is an unmarked data warehouse in the data warehouse set; to update the out-of-stock quantity corresponding to the order instruction.

[0135] In some embodiments, the order settlement module 403 is also used for: after updating the out-of-stock quantity corresponding to the order instruction, in response to determining that the updated out-of-stock quantity is greater than zero and less than the order quantity, calling a preset second lookup table to query the shipment processing type corresponding to the store code; in response to determining that the store code corresponds to the first type of shipment processing, splitting the order instruction according to the out-of-stock quantity to obtain a first order instruction and a second order instruction respectively, for the first order instruction: using the out-of-stock quantity corresponding to the order instruction as the corresponding order quantity and out-of-stock quantity, for the second order instruction: transferring and associating the data warehouse associated with the order instruction to the second order instruction, and using the corresponding reserved quantity as the order quantity corresponding to the second order instruction, and calling the associated data warehouse to query the corresponding actual inventory quantity through the item code, and using the order quantity to deduct the actual inventory quantity, and performing outbound processing according to the second order instruction, and returning the order instruction, the first order instruction, and the second order instruction.

[0136] In some embodiments, the reserved inventory module 402 is also used to: after updating the out-of-stock quantity corresponding to the order instruction, in response to determining that the updated out-of-stock quantity is non-zero, call the preset third lookup table to query the out-of-stock processing type corresponding to the store code; in response to determining that the store code corresponds to the first type of out-of-stock processing, reject the order instruction, generate corresponding out-of-stock prompt information and return it; in response to determining that the store code corresponds to the second type of out-of-stock processing, add the order instruction to the exception processing pool to monitor the replenishment quantity corresponding to the data warehouse set through the item code, in response to the monitored replenishment quantity being greater than or equal to the updated out-of-stock quantity, use the updated out-of-stock quantity to deduct the replenishment quantity accordingly, and update the updated out-of-stock quantity to zero.

[0137] In some embodiments, the order settlement module 403 is also used for: before calling the associated data warehouse, in response to determining that the out-of-stock quantity corresponding to the order instruction or the second order instruction is zero, determining each data warehouse associated with the order instruction or the second order instruction, and the reserved quantity corresponding to each data warehouse, so as to merge and send them to the processor, so that the processor can review the corresponding item code and reserved quantity in the physical warehouse corresponding to each data warehouse; in response to determining that the processor has passed the review.

[0138] In some embodiments, the settlement module 403 is also used to: when deducting the actual inventory quantity corresponding to the item code according to the order quantity, query the actual inventory quantity corresponding to the item code in each associated data warehouse respectively, and read the reserved quantity corresponding to each associated data warehouse respectively, so as to use each reserved quantity to deduct the corresponding actual inventory quantity.

[0139] It should be noted that the data processing method and the data processing device described in the present invention have a corresponding relationship in terms of specific implementation contents, so the repeated contents will not be described again.

[0140] Figure 5 An exemplary system architecture 500 is shown to which the data processing method or data processing device according to the embodiment of the present invention can be applied.

[0141] like Figure 5 As 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.

[0142] The user can use the terminal devices 501, 502, 503 to interact with the server 505 through the network 504 to receive or send messages, etc. Various communication client applications can be installed on the terminal devices 501, 502, 503.

[0143] The terminal devices 501 , 502 , and 503 may be various electronic devices having a page display processing screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.

[0144] The server 505 may be a server that provides various services, such as a background management server (only an example) that provides support for users to use the terminal devices 501, 502, and 503. The background management server may analyze and process the received data such as the product information query request, and feed back the processing results (such as target push information, product information - only an example) to the terminal device.

[0145] It should be noted that the data processing method provided in the embodiment of the present invention is generally executed by the server 505 , and accordingly, the computing device is generally disposed in the server 505 .

[0146] 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.

[0147] 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.

[0148] like Figure 6 As 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 computer 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.

[0149] 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 page display processor (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.

[0150] 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.

[0151] 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.

[0152] 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.

[0153] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor, for example, it may be described as: a processor includes an acquisition module, a pre-occupied inventory module, and an order settlement module. The names of these modules do not, in some cases, constitute limitations on the modules themselves.

[0154] 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 receiving an order instruction, extracting the corresponding store code, item code and order quantity; selecting and calling the data warehouse corresponding to the store code to query the corresponding available inventory quantity according to the item code, deducting the available inventory quantity using the order quantity, and in response to determining that the available inventory quantity after the deduction is valid, associating the order instruction and the data warehouse; in response to the order instruction being unchanged after the preset cooling-off period, calling the associated data warehouse to deduct the actual inventory quantity corresponding to the item code according to the order quantity, and performing outbound processing according to the order instruction.

[0155] The technical solution according to the embodiment of the present invention can solve the existing technical problem of being unable to avoid overselling of inventory for e-commerce transactions.

[0156] 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.

[0157] It should be noted that the acquisition, storage and application of user personal information involved in the technical solution disclosed in this disclosure are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

Claims

1. A data processing method, It is characterized in that include: Receive order instructions and extract the corresponding store code, item code and order quantity; Selecting and retrieving a data warehouse corresponding to the store code to query the available inventory quantity corresponding to the item code, deducting the available inventory quantity using the order quantity, and in response to determining that the available inventory quantity after the deduction is valid, associating the order instruction with the data warehouse; In response to the order instruction being unchanged after the preset cooling-off period, the associated data warehouse is called to deduct the actual inventory quantity corresponding to the item code according to the order quantity, and the outbound processing is executed according to the order instruction.

2. The method according to claim 1, It is characterized in that Select the data warehouse corresponding to the store code and retrieve it, including: Extract the corresponding delivery address based on the order instruction, query multiple data warehouses corresponding to the store code according to the preset first lookup table, and determine the physical warehouse address corresponding to each data warehouse; Multiple data warehouses whose distances between corresponding physical warehouse addresses and delivery addresses are less than a preset threshold are screened to merge and generate a data warehouse set, and a data warehouse is selected from the data warehouse set for retrieval.

3. The method according to claim 1, It is characterized in that After deducting the available inventory quantity using the order quantity, it includes: Determine whether the available inventory quantity after deduction is less than zero. If so, determine that the available inventory quantity after deduction is invalid. Otherwise, determine that the available inventory quantity after deduction is valid.

4. The method according to claim 1, It is characterized in that After associating the order instruction with the data warehouse, it includes: The order quantity is used as the reserved quantity corresponding to the data warehouse, and the out-of-stock quantity corresponding to the order instruction is determined to be zero.

5. The method according to claim 3, It is characterized in that In response to determining that the reduced available inventory quantity is invalid, including: Determine whether the absolute value of the available inventory quantity after deduction is less than the absolute value of the order quantity; If not, the order quantity is used as the out-of-stock quantity corresponding to the order instruction; If so, the absolute value of the available inventory quantity after deduction is used as the out-of-stock quantity corresponding to the order instruction, the order instruction and the data warehouse are associated, and the available inventory quantity before deduction is used as the reserved quantity corresponding to the data warehouse.

6. The method according to claim 2 or 5, It is characterized in that include: Marking the data warehouse and reading the out-of-stock quantity corresponding to the order instruction; The following steps are executed in a loop until the out-of-stock quantity is updated to zero or there are no unmarked data warehouses in the data warehouse set: Select an unmarked data warehouse from the data warehouse set and retrieve it, mark the retrieved data warehouse, and determine whether the available inventory quantity corresponding to the item code is greater than zero through the retrieved data warehouse. If not, keep the out-of-stock quantity. If so, associate the retrieved data warehouse with the order instruction, and use the out-of-stock quantity to deduct the available inventory quantity, and determine whether the available inventory quantity after deduction is a negative number. If so, update the out-of-stock quantity to the absolute value of the available inventory quantity after deduction, and use the available inventory quantity before deduction as the reserved quantity corresponding to the retrieved data warehouse. If not, update the out-of-stock quantity to zero, and use the out-of-stock quantity before update as the reserved quantity corresponding to the retrieved data warehouse. Determine whether the out-of-stock quantity is zero, and determine whether there are unlabeled data warehouses in the data warehouse set; To update the out-of-stock quantity corresponding to the order instruction.

7. The method according to claim 6, It is characterized in that After the out-of-stock quantity corresponding to the order instruction is updated, it includes: In response to determining that the updated out-of-stock quantity is greater than zero and less than the order quantity, calling a preset second lookup table to query the delivery processing type corresponding to the store code; In response to determining that the store code corresponds to the first type of delivery processing, the order instruction is split according to the out-of-stock quantity to obtain a first order instruction and a second order instruction, respectively. For the first order instruction: the out-of-stock quantity corresponding to the order instruction is used as the corresponding order quantity and out-of-stock quantity. For the second order instruction: transfer the data warehouse associated with the order instruction to the second order instruction, and use the corresponding reserved quantity as the order quantity corresponding to the second order instruction, and call the associated data warehouse to query the corresponding actual inventory quantity through the item code, and use the order quantity to deduct the actual inventory quantity, and execute the outbound processing according to the second order instruction. The order instruction, the first order instruction and the second order instruction are returned.

8. The method according to claim 6, It is characterized in that After the out-of-stock quantity corresponding to the order instruction is updated, it includes: In response to determining that the updated out-of-stock quantity is non-zero, calling a preset third lookup table to query the out-of-stock processing type corresponding to the store code; In response to determining that the store code corresponds to the first type of out-of-stock processing, rejecting the order instruction, generating and returning corresponding out-of-stock prompt information; In response to determining that the store code corresponds to the second type of out-of-stock processing, the order instruction is added to the exception processing pool to monitor the replenishment quantity corresponding to the data warehouse set through the item code. In response to the monitored replenishment quantity being greater than or equal to the updated out-of-stock quantity, the updated out-of-stock quantity is used to perform a corresponding deduction on the replenishment quantity, and the updated out-of-stock quantity is updated to zero.

9. The method according to any one of claims 1 to 8, It is characterized in that Before calling the associated data warehouse, include: In response to determining that the out-of-stock quantity corresponding to the order instruction or the second order instruction is zero, each data warehouse associated with the order instruction or the second order instruction and the reserved quantity corresponding to each data warehouse are determined, so as to be combined and sent to the processor, By means of the processor, the corresponding item codes and reserved quantities are reviewed in the physical warehouses corresponding to each data warehouse; In response to determining that the processor reviews passed.

10. The method according to claim 9, It is characterized in that The actual inventory quantity corresponding to the item code is deducted according to the order quantity, including: The actual inventory quantity corresponding to the item code is queried in each associated data warehouse respectively, and the reserved quantity corresponding to each associated data warehouse is read, so as to use each reserved quantity to deduct the corresponding actual inventory quantity.

11. A data processing device, It is characterized in that include: The acquisition module is used to receive the order instruction and extract the corresponding store code, item code and order quantity; A pre-occupied inventory module, for selecting and retrieving a data warehouse corresponding to a store code, querying the corresponding available inventory quantity according to the item code, deducting the available inventory quantity using the order quantity, and in response to determining that the available inventory quantity after the deduction is valid, associating the order instruction with the data warehouse; The order settlement module is used to call the associated data warehouse in response to the order instruction remaining unchanged after the preset cooling-off period, so as to deduct the actual inventory quantity corresponding to the item code according to the order quantity, and execute the outbound processing according to the order instruction.

12. An electronic device, It is 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 10.

13. A computer readable medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the method according to any one of claims 1 to 10 is implemented.