A task generation method, device, equipment and storage medium

By matching item information and status critical configuration information, accurately identifying the item status and generating temporary processing tasks, the problem of inaccurate determination of temporary status in the prior art is solved, and the accuracy and efficiency of temporary processing tasks are improved.

CN113988614BActive Publication Date: 2025-05-23BEIJING WODONG TIANJUN INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111256044.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-27
Publication Date
2025-05-23
Estimated Expiration
2041-10-27

AI Technical Summary

Technical Problem

When determining whether an item is in expiration state, the prior art cannot accurately distinguish the shelf life of different types of items, resulting in premature or late promotion of items, reducing the accuracy of generation of expiration processing tasks.

Method used

By obtaining the information of the target item and matching the state critical configuration information corresponding to the pre-configured state of each item, the status of the target item is determined, and an expiration processing task is generated based on the shelf life information.

Benefits of technology

It realizes accurate identification of item status, improves the accuracy of generation of temporary processing tasks, and ensures the rationality and efficiency of item promotions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113988614B_ABST
    Figure CN113988614B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a task generation method, device, equipment and storage medium, the method comprising: obtaining target item information of a target item; matching the target item information with at least one state critical configuration information corresponding to each pre-configured item state, and determining the target state critical configuration information corresponding to each item state of the target item; determining the target item state corresponding to the target item according to the target state critical configuration information corresponding to each item state and the shelf life information in the target item information; if the target item state is an expiration state, generating a target expiration processing task corresponding to the target item. Through the technical solution of the embodiment of the present invention, accurate identification of item states can be achieved, thereby improving the accuracy of generating expiration processing tasks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to computer technology, and in particular to a task generation method, apparatus, device and storage medium. Background Art

[0002] In the warehousing field, it is usually necessary to monitor the shelf life of items in the warehouse so that when the items are about to expire, discounts can be used to promote the items and reduce the inventory of expiring items.

[0003] Currently, it is usually based on the shelf life information of the item, and the item is determined to be near-expiry if the current date is within 6 weeks of the item's near-expiry date, and promotions are carried out on near-expiry items to reduce the inventory of near-expiry items.

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

[0005] In the existing method, each item is determined to be near expiration based on the same period (e.g., within 6 weeks of the expiration date). However, different types of items often have different shelf lives, making it impossible to determine the items that are truly near expiration using this existing method, which results in items being promoted too early or too late, thereby reducing the accuracy of near expiration processing tasks. Summary of the invention

[0006] The embodiments of the present invention provide a task generation method, apparatus, device and storage medium to achieve accurate identification of item status, thereby improving the accuracy of expiring processing task generation.

[0007] In a first aspect, an embodiment of the present invention provides a task generation method, comprising:

[0008] Get target item information of the target item;

[0009] Matching the target item information with at least one state critical configuration information corresponding to each pre-configured item state, and determining the target state critical configuration information corresponding to each item state of the target item;

[0010] Determine the target item state corresponding to the target item according to the target item state critical configuration information corresponding to each item state and the shelf life information in the target item information;

[0011] If the state of the target item is near expiration, a target near expiration processing task corresponding to the target item is generated.

[0012] In a second aspect, an embodiment of the present invention further provides a task generation device, including:

[0013] A target item information acquisition module, used to acquire target item information of a target item;

[0014] a target state critical configuration information determination module, configured to match the target item information with at least one state critical configuration information corresponding to each item state configured in advance, and determine the target state critical configuration information corresponding to each item state of the target item;

[0015] A target item state determination module, used to determine the target item state corresponding to the target item according to the target state critical configuration information corresponding to each item state and the shelf life information in the target item information;

[0016] The target expiring item processing task generating module is used to generate a target expiring item processing task corresponding to the target item if the target item is in the expiring item state.

[0017] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:

[0018] one or more processors;

[0019] A memory for storing one or more programs;

[0020] When the one or more programs are executed by the one or more processors, the one or more processors implement the task generation method provided by any embodiment of the present invention.

[0021] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a task generation method as provided in any embodiment of the present invention.

[0022] The embodiments of the above invention have the following advantages or beneficial effects:

[0023] By pre-configuring one or more state critical configuration information for each item state of the item, and matching the target item information of the target item with one or more state critical configuration information corresponding to each item state, the target state critical configuration information corresponding to each item state of the target item is determined, and the target item state corresponding to the target item is determined based on the target state critical configuration information corresponding to each item state and the shelf life information in the target item information, and when the target item state is near the expiration date, a target near-expiration processing task corresponding to the target item is generated, thereby achieving flexible configuration of state critical information, and based on the target state critical configuration information matching the target item, the target item state can be determined more accurately, thereby achieving accurate identification of the item state, and thereby improving the accuracy of generating near-expiration processing tasks. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 is a flowchart of a task generation method provided in Embodiment 1 of the present invention;

[0025] Figure 2 This is an example of a task generation process involved in the first embodiment of the present invention;

[0026] Figure 3 is a flowchart of a task generation method provided by Embodiment 2 of the present invention;

[0027] Figure 4 is a flowchart of a task generation method provided by Embodiment 3 of the present invention;

[0028] Figure 5 is a structural diagram of a task generation device provided by Embodiment 4 of the present invention;

[0029] Figure 6 It is a structural schematic diagram of an electronic device provided in Embodiment 5 of the present invention. DETAILED DESCRIPTION

[0030] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0031] Embodiment 1

[0032] Figure 1 This is a flowchart of a task generation method provided in the first embodiment of the present invention. This embodiment can be applied to the case of generating an item expiration processing task. The method can be executed by a task generation device, which can be implemented by software and / or hardware and integrated into an electronic device. Figure 1 As shown, the method specifically comprises the following steps:

[0033] S110: Acquire target item information of the target item.

[0034] The target item may refer to any SKU (Stock Keeping Unit) item with a shelf life in the warehouse. The target item information may include, but is not limited to, item identification information, item category information, cold chain tag information, whether it is stored at a constant temperature, whether it is short-term, whether it is imported, shelf life information and other item attribute information.

[0035] Specifically, this embodiment can obtain the target item information of each target item in each warehouse; it can also obtain the target item information of each target item in each warehouse for all warehouses, so as to perform centralized identification of the item status later and improve the identification efficiency.

[0036] S120: Match the target item information with at least one state critical configuration information corresponding to each pre-configured item state, and determine the target state critical configuration information corresponding to each item state of the target item.

[0037] Among them, the item status may include: normal status, near-expiry status and expired status. Each item status corresponds to at least one state critical configuration information. Each state critical configuration information may be pre-configured based on the item information. Each state critical configuration information may be used to characterize the state critical days value corresponding to the corresponding item status under specific item information. The state critical days value corresponding to a certain item status may refer to the minimum day value from the expiration date of the item belonging to the item status. In each item status, different item information may correspond to different state critical configuration information, so as to improve the flexibility and accuracy of the state critical information configuration.

[0038] Specifically, the user can configure one or more critical state configuration information corresponding to each item state in the configuration platform in advance based on the item attributes and business requirements, thereby improving the flexibility of critical state information configuration. When it is necessary to determine the target item state corresponding to the target item, the critical state configuration information corresponding to each item state currently configured can be obtained from the configuration platform, and for each item state, the target item information is matched with the critical state configuration information corresponding to the item state to determine the target state critical configuration information corresponding to the target item. For example, the critical state configuration information corresponding to the pre-configured normal state is: the critical day value of the normal state corresponding to each item category, so that the target item category corresponding to the target item is matched with the critical day value of the normal state corresponding to each item category pre-configured, and the target critical day value of the target item in the normal state is obtained.

[0039] Exemplarily, this embodiment can configure the critical state configuration information corresponding to each item state to maximize the flexibility of configuration. It can also configure only the critical state configuration information corresponding to the normal state and the near-expiry state, so that when it is determined that the item is not in the normal state and the near-expiry state, it can be directly determined that the item is in the expired state to improve the state recognition efficiency.

[0040] S130: Determine the target item state corresponding to the target item according to the target item state critical configuration information corresponding to each item state and the shelf life information in the target item information.

[0041] Specifically, the expiration date corresponding to the target item can be determined based on the production date and shelf life of the target item, and the current remaining days to expiration can be obtained based on the current date and the expiration date. The current remaining days can be compared with the target critical days value in the target state critical configuration information corresponding to each item state, and the target item state to which the target item belongs can be determined based on the comparison result. This embodiment can more accurately determine the target item state based on the target state critical configuration information that matches the target item, thereby achieving accurate identification and true distinction of the item state.

[0042] S140: If the target item is in a near-expiry state, a target near-expiry processing task corresponding to the target item is generated.

[0043] Among them, the target expiring processing task may refer to a task for processing target items that are in an expiring state. For example, the target expiring processing task may include a target obtaining preferential task, so that based on the target obtaining preferential task, the target item is promoted by lowering the price, thereby reducing the warehouse's expiring inventory ratio. The target expiring processing task may also include a target allocation task, based on which the target items in an expiring state are stocked among various warehouses to further reduce the expiring inventory ratio.

[0044] Specifically, if the target item status corresponding to the target item is a near-expiry status, it indicates that the target item is a near-expiry item. At this time, a target near-expiry processing task can be generated so that the target item can be near-expiry processed by executing the target near-expiry processing task, thereby reducing the near-expiry inventory ratio of the target item in the warehouse, thereby ensuring the accuracy of the generation of the target near-expiry processing task through accurate identification of the near-expiry status.

[0045] Exemplarily, "generating a target near-expiry processing task corresponding to the target item" in S140 may include: obtaining the warehouse report acquisition price corresponding to the target item; obtaining a pre-configured target price discount ratio corresponding to the target item; determining the target acquisition price corresponding to the target item based on the warehouse report acquisition price and the target price discount ratio; and generating a target acquisition discount task corresponding to the target item based on the target acquisition price.

[0046] The warehouse quotation acquisition price may refer to the item quotation given by the item supplier. The target price discount ratio may refer to the ratio between the target item acquisition price and the warehouse quotation acquisition price. The target acquisition discount task may refer to the promotion task. The target acquisition price may refer to the promotion price when promoting the target item.

[0047] Specifically, if different suppliers of target items offer different warehouse report acquisition costs, the warehouse report acquisition costs corresponding to the target items can be averaged to obtain the average warehouse report acquisition cost after processing. In this embodiment, the cost discount ratio corresponding to each item category can be configured on the configuration platform in advance, so that the target cost discount ratio corresponding to the target item category to which the target item belongs can be obtained from the configuration platform. The obtained warehouse report acquisition cost and the target cost discount ratio are multiplied, and the result is determined as the target acquisition cost corresponding to the target item, and a target acquisition discount task containing the target acquisition cost is generated, so that the target item can be promoted in the form of the target acquisition cost based on the target acquisition discount task in the future.

[0048] Exemplarily, the expiration status in this embodiment may further include multiple expiration statuses of different degrees of expiration. For example, the expiration status may include: a conventional expiration status and an emergency expiration status, wherein the degree of expiration of the emergency expiration status is higher than that of the conventional expiration status. For each expiration status, at least one critical state configuration information corresponding to each expiration status may be pre-configured in the configuration platform according to the state determination method described above, and then based on the target state critical configuration information, it may be further determined that when the target item state is in the expiration status, the specific degree of expiration status is in which state, thereby improving the precision of state detection. For the above-mentioned state setting method, the cost discount ratio corresponding to each expiration status corresponding to each item category may be pre-configured on the configuration platform, for example, the higher the degree of expiration corresponding to the expiration status, the higher the configured cost discount ratio, so that the target acquisition cost may be reduced as the degree of expiration increases, so as to promote the target item at a gradually reduced promotional price to ensure maximum profit.

[0049] Exemplarily, when it is determined that the status of the target item is near expiration, the target item information can be stored in a near expiration data table, so that after the item status corresponding to all items is determined, a corresponding near expiration processing task can be generated for each near expiration item in the near expiration data table, or one near expiration processing task can be generated for all near expiration items, thereby realizing the unified generation of near expiration processing tasks using the near expiration data table.

[0050] The technical solution of the present embodiment configures one or more state critical configuration information for each item state of the item in advance, and matches the target item information of the target item with one or more state critical configuration information corresponding to each item state, determines the target state critical configuration information corresponding to each item state of the target item, and determines the target item state corresponding to the target item according to the target state critical configuration information corresponding to each item state and the shelf life information in the target item information, and generates a target near-expiry processing task corresponding to the target item when the target item state is near-expiry, thereby realizing flexible configuration of state critical information, and based on the target state critical configuration information matching the target item, the target item state can be determined more accurately, thereby realizing accurate identification of the item state, and thereby improving the accuracy of generating near-expiry processing tasks.

[0051] On the basis of the above technical solution, S110 may include: receiving a message queue pushed by a warehouse management terminal of each warehouse; and acquiring target item information of the target items in each warehouse based on the message queue.

[0052] The warehouse management terminal may refer to a WMS (Warehouse Management System) terminal in the warehouse.

[0053] Specifically, Figure 2 An example of a task generation process is given, such as Figure 2 As shown, each warehouse is a separate node. In order to centrally identify the item status of items in all warehouses, it is necessary to summarize the item information in each warehouse, so that the warehouse management end of each warehouse can push a message queue containing item information to the MQ platform in the device responsible for task generation. For example, the warehouse management end of each warehouse can obtain the item information in the warehouse at midnight every day, and convert the item information into JSON format and send the message queue MQ message. The MQ messages pushed by the warehouse management end of each warehouse are the same topic messages, so that the MQ platform can receive the MQ messages sent by each warehouse management end, obtain the item information in each warehouse, and merge the same items. At this time, each item in each warehouse can be used as a target item for subsequent status identification and task generation operations.

[0054] For example, this embodiment can perform distributed processing on all items in each warehouse or all items in all warehouses, so that the item status of multiple items can be determined at the same time, improving the efficiency of identifying item status and generating tasks. For example, a Flink server cluster can be used for distributed processing. Flink is a distributed processing engine for performing stateful computations on unbounded and bounded data streams. Figure 2As shown, the Flink server cluster can create a connection with the MQ platform, obtain the target item information corresponding to each target item summarized in the MQ platform by calling a pre-defined data acquisition function, and determine the target item status corresponding to each target item by calling a pre-defined state recognition function, and store the target item information corresponding to the target item in the near-expiry state in the near-expiry data table, so as to perform the unified generation of near-expiry processing tasks based on the near-expiry data table. Among them, the state recognition function can be implemented by executing the business logic of the above steps S110-S140.

[0055] On the basis of the above-mentioned technical solutions, the method may further include: if the status of the target item is expired, detecting whether the target item is a returnable item; if it is a returnable item, storing the target item information and the target item provider identifier in a return data table, and regularly merging the item information corresponding to the same item provider identifier stored in the return data table, and generating a target return task based on the merged item information; if it is a non-returnable item, storing the target item information in a destruction data table, and regularly merging the item information stored in the destruction data table, and generating a target destruction task based on the merged item information.

[0056] The target item provider identifier may refer to a unique identifier corresponding to a supplier that provides the target item, so as to distinguish different suppliers. Returnable items refer to items that can be returned to a supplier.

[0057] Specifically, when the target item is expired, it can no longer be sold. At this time, it can be determined whether the target item is a returnable item based on the agreement between the purchaser and the target item provider in advance. Figure 2As shown, if the target item is a returnable item, the target item information and the target item provider identifier corresponding to the target item can be stored in the return data table, and after determining the item status corresponding to all items, or regularly every day, the item information corresponding to the same item provider identifier stored in the return data table can be merged. If it is for all warehouses, the item information corresponding to the same item provider identifier and the same warehouse identifier in the return data table can be merged. If the purchasers of the same target item are different, the item information corresponding to the same item provider identifier, the same warehouse identifier and the same purchaser in the return data table can be merged. A corresponding target return task is generated for each group of target item information after the merger, and the target return task can be sent to the corresponding warehouse management end, so that the target item can be returned to the supplier by executing the target return task in the corresponding warehouse. This embodiment can ensure a high degree of aggregation of returned items by merging item information of the same dimension, so that suppliers can take away more items when picking up goods. Exemplarily, the present embodiment may also send the generated target supply return task to the corresponding purchaser and supplier by means of email or the like, so as to maintain real-time synchronization of the returned items.

[0058] like Figure 2 As shown, if the target item is a non-returnable item, the target item information corresponding to the target item can be stored in the destruction data table, and after determining the item status corresponding to all items, or after regularly merging the various item information stored in the destruction data table every day. If it is for all warehouses, the various item information corresponding to the same warehouse identifier in the destruction data table can be merged. If the purchasers of the same target item are different, the various item information corresponding to the same warehouse identifier and the same purchaser in the destruction data table can be merged. A corresponding target destruction task is generated for each group of target item information after merging, and the target destruction task can be sent to the corresponding warehouse management end, so that the target item can be destroyed and scrapped by executing the target destruction task in the corresponding warehouse. Exemplarily, the generated target destruction task can also be sent to the corresponding purchaser by email or the like in this embodiment to keep the real-time synchronization of the destroyed items. This embodiment can achieve the purpose of clearing the warehouse to the greatest extent by returning or destroying the target items in the expired state.

[0059] Embodiment 2

[0060] Figure 3This is a flowchart of a task generation method provided in the second embodiment of the present invention. Based on the above embodiments, this embodiment optimizes the step of "matching the target item information with at least one state critical configuration information corresponding to each item state configured in advance, and determining the target state critical configuration information corresponding to each item state of the target item", and also optimizes the step of "determining the target item state corresponding to the target item according to the target state critical configuration information corresponding to each item state and the shelf life information in the target item information". The explanations of the terms that are the same or corresponding to the above embodiments are not repeated here.

[0061] See also Figure 3 The task generation method provided in this embodiment specifically includes the following steps:

[0062] S310: Obtain target item information of the target item.

[0063] S320: Detect whether the target item information satisfies the state criticality condition in each state criticality configuration information corresponding to each pre-configured item state.

[0064] Among them, the critical state condition may refer to the condition that the item information matching the critical state configuration information needs to meet. The critical state condition may be configured based on the item attribute information. For example, Table 1 gives an example of setting the item attribute. Table 2 gives an example of critical state configuration information corresponding to an item state.

[0065] Table 1 Example of item attribute settings

[0066] Item attribute identification Item Properties Attribute priority value A Item Identification 100 B Item category 10 C Cold chain label 70 D Whether to store at constant temperature 70 E Is it a short warranty? 50 F Imported or not 20 G Shelf life days 30

[0067] Table 2 Example of critical configuration information corresponding to an item state

[0068] State critical conditions Status critical days value Condition priority value A>=10001&&A<20000&&C=1 90 days 100 G<180||E=1 1 / 3*G(day) 50 B=19050 180 days 10

[0069] Each row in Table 2 represents a state critical configuration information corresponding to the state of the item. Each state critical configuration information includes a state critical condition composed of item attributes, a state critical day value and a condition priority value. Among them, the condition priority value can be determined based on the attribute priority value corresponding to the item attribute involved in the state critical condition. For example, the maximum attribute priority value corresponding to the item attribute involved in the state critical condition can be used as the condition priority value, or the attribute priority values ​​involved can be averaged and the average attribute priority value obtained can be used as the condition priority value.

[0070] Specifically, for each item state, it is possible to detect whether the target item information satisfies the state critical condition in each state critical configuration information corresponding to the item state. For example, in Table 2, it is possible to detect whether the target item identification of the target item is greater than or equal to 10001 and less than or equal to 20000, and whether the cold chain mark information of the target item is 1. If the target item identification is greater than or equal to 10001 and less than or equal to 20000, and the cold chain mark information of the target item is 1, it indicates that the state critical condition in the state critical configuration information is satisfied, and at this time, the state critical configuration information can be determined as the candidate state critical configuration information.

[0071] S330: Determine target state critical configuration information corresponding to each item state of the target item based on candidate state critical configuration information that meets the state criticality condition.

[0072] Specifically, for each item state, there may be one or more candidate state critical configuration information corresponding to the target item, so that the target state critical configuration information corresponding to the target item can be determined based on the condition priority value.

[0073] Exemplarily, S330 may include: if there is only one candidate state critical configuration information that meets the state critical condition, then the candidate state critical configuration information is determined as the target state critical configuration information corresponding to the current item state of the target item; if there are at least two candidate state critical configuration information that meet the state critical condition, then according to the priority information in each candidate state critical configuration information, the target state critical configuration information corresponding to the current item state of the target item is determined.

[0074] Specifically, for the current object state, when there are at least two candidate state critical configuration information, the priority information in each candidate state critical configuration information can be compared, such as comparing the condition priority values ​​in Table 2, and the candidate state critical configuration information with the highest condition priority value can be determined as the target state critical configuration information corresponding to the target object.

[0075] S340. Obtain a target state critical day value corresponding to each item state of the target item according to the target state critical configuration information corresponding to each item state.

[0076] Specifically, the target critical day value corresponding to the target item in each item state can be obtained from the target state critical configuration information corresponding to each item state.

[0077] S350: Determine the current remaining days until the target item expires based on the shelf life information in the target item information.

[0078] Specifically, the expiration date corresponding to the target item can be determined based on the production date and shelf life of the target item, and the difference between the current date and the expiration date is determined as the current remaining days until the target item expires.

[0079] S360: Determine the target item state corresponding to the target item according to the target critical day value corresponding to each item state and the current remaining days.

[0080] Specifically, the current remaining days may be compared with the target critical days value corresponding to each item state, and the target item state to which the target item belongs may be determined based on the comparison result.

[0081] Exemplarily, S360 may include: if the current remaining days are greater than or equal to the target critical days value corresponding to the normal state, then the target item state corresponding to the target item is determined to be the normal state; if the current remaining days are less than the target critical days value corresponding to the normal state, and greater than or equal to the target critical days value corresponding to the near-expiry state, then the target item state corresponding to the target item is determined to be the near-expiry state; if the current remaining days are less than the target critical days value corresponding to the near-expiry state, and greater than or equal to the target critical days value corresponding to the overdue state, then the target item state corresponding to the target item is determined to be the overdue state.

[0082] It should be noted that if the critical status configuration information corresponding to the expiration status is not configured in this embodiment, the target item status corresponding to the target item can be determined to be an expired status when the current remaining number of days is less than the target critical day value corresponding to the expiring status, so as to simplify the status recognition operation and improve the status recognition efficiency.

[0083] S370: If the target item is in a near-expiry state, a target near-expiry processing task corresponding to the target item is generated.

[0084] The technical solution of this embodiment can further improve the flexibility of configuration by detecting whether the target item information meets the state critical conditions in each state critical configuration information corresponding to each pre-configured item state. By comparing the target critical day value corresponding to each item state with the current remaining days until the target item expires, the target item state corresponding to the target item can be determined more accurately, further ensuring the accuracy of task generation.

[0085] Embodiment 3

[0086] Figure 4 This is a flowchart of a task generation method provided in Embodiment 3 of the present invention. Based on the above embodiments, this embodiment describes in detail the specific generation process of the target transfer task when there are target items in a near-expiry state in multiple warehouses. The explanations of the terms that are the same or corresponding to the above embodiments are not repeated here.

[0087] See also Figure 4 The task generation method provided in this embodiment specifically includes the following steps:

[0088] S410: Obtain target item information of target items in each warehouse.

[0089] Specifically, the method for acquiring the target item information in each warehouse can refer to the description related to the above-mentioned embodiment 1, which will not be repeated here.

[0090] S420: Match the target item information with at least one state critical configuration information corresponding to each pre-configured item state, and determine the target state critical configuration information corresponding to each item state of the target item.

[0091] S430: Determine the target item state corresponding to the target item according to the target item state critical configuration information corresponding to each item state and the shelf life information in the target item information.

[0092] S440: If the target item is in a near-expiry state, determine the reserved inventory quantity of the target item in each warehouse based on the historical demand quantity corresponding to the target item in each warehouse.

[0093] The target item may refer to the same item that is stored in multiple warehouses and is about to expire. The historical demand may refer to the historical sales information of the target item in each warehouse. The reserved inventory may refer to the quantity of the target item that the warehouse itself can handle.

[0094] Specifically, for each warehouse storing the same target item in a near-expiry state, the reserved inventory quantity of the target item in the warehouse can be determined based on the historical demand quantity corresponding to the target item in the near-expiry state in the warehouse.

[0095] Exemplarily, S440 may include: determining a target demand corresponding to the target item in the current warehouse based on a historical demand corresponding to the target item in the current warehouse; determining a target remaining number of days for the target item status of the target item in the current warehouse to be an expired state; and determining a reserved inventory quantity of the target item in the current warehouse based on the target demand and the target remaining number of days.

[0096] Specifically, the daily demand for the target item in the current warehouse within a historical month can be obtained, and the daily demand can be averaged to obtain the average demand as the target demand corresponding to the target item. The difference between the current remaining days to expiration of the target item and the target critical days value corresponding to the near-expiration state can be determined as the target remaining days for the target item to be in an expired state. The target demand and the target remaining days are multiplied, and the product obtained is determined as the reserved inventory of the target item in the current warehouse.

[0097] It should be noted that if the production dates of the target items in the expiring state are different, the current remaining days for the target items to expire are different, thereby there will be multiple target remaining days for the target items to be expired. At this time, the multiple target remaining days can be averaged, and the product of the average remaining days and the target demand quantity can be used as the reserved inventory of the target items in the current warehouse.

[0098] S450: Based on the current inventory and reserved inventory of the target item in each warehouse, determine the warehouse transfer status and inventory transfer information corresponding to each warehouse.

[0099] The warehouse transfer status may include a transfer-out status and a transfer-in status. The transfer-out status refers to a status in which the target item in the warehouse needs to be dispatched out of the warehouse. The transfer-in status refers to a status in which the warehouse can receive the target item for dispatching into the warehouse. The inventory transfer information may include: the available inventory quantity corresponding to the transfer-out status and the available inventory quantity corresponding to the transfer-in status.

[0100] Exemplarily, S450 may include: if the current inventory of the target item in the current warehouse is greater than the reserved inventory, determining that the warehouse transfer status corresponding to the current warehouse is a transfer-out status, and determining the transfer-out inventory corresponding to the current warehouse based on the current inventory and the reserved inventory; if the current inventory of the target item in the current warehouse is less than the reserved inventory, determining that the warehouse transfer status corresponding to the current warehouse is a transfer-in status, and determining the transfer-in inventory corresponding to the current warehouse based on the current inventory and the reserved inventory.

[0101] Specifically, if the current inventory of the target item in the current warehouse is greater than the reserved inventory, it indicates that the current warehouse needs to dispatch the excess inventory out of the warehouse. At this time, the warehouse transfer state corresponding to the current warehouse can be determined as the outgoing state, and the difference between the current inventory and the reserved inventory is determined as the available outgoing inventory corresponding to the current warehouse. If the current inventory of the target item in the current warehouse is less than the reserved inventory, it indicates that the current warehouse can receive the excess inventory into the warehouse. At this time, the warehouse transfer state corresponding to the current warehouse can be determined as the incoming state, and the difference between the current inventory and the reserved inventory is determined as the available incoming inventory corresponding to the current warehouse.

[0102] S460: Generate a target transfer task corresponding to the target item according to the warehouse transfer status and inventory transfer information corresponding to each warehouse.

[0103] Specifically, based on the available inventory quantity corresponding to the warehouse in the transfer-out state and the available inventory quantity corresponding to the warehouse in the transfer-in state, the corresponding relationship between the transfer-in warehouse and the transfer-out warehouse and the transfer inventory allocation information can be determined, thereby generating a target transfer task corresponding to the target item based on the corresponding relationship between the transfer-in warehouse and the transfer-out warehouse and the transfer inventory allocation information, and pushing the target transfer task to the warehouse management end of the corresponding warehouse, so as to carry out inter-warehouse transfer based on the target transfer task, quickly clear out expiring items, and ensure maximum profit.

[0104] Exemplarily, S460 may include: determining the transfer-in priority corresponding to each first warehouse based on the demand information of the target item in each first warehouse whose warehouse transfer status is a transfer-in status; allocating the transfer-out inventory corresponding to each second warehouse whose warehouse transfer status is a transfer-out status based on the transfer-in priority and the transfer-in inventory corresponding to each first warehouse, and determining the transfer correspondence relationship and transfer inventory information between the first warehouse and the second warehouse; generating a target transfer task corresponding to the target item according to the transfer correspondence relationship and the transfer inventory information.

[0105] Among them, the demand information of the target item in the first warehouse may include the average demand and / or the degree of favorable comments of the target item in the first warehouse. Among them, the average demand can be obtained based on the historical demand of the target item in the first warehouse. The degree of favorable comments may refer to the ratio between the number of favorable comments after the item is acquired and the total demand for the item. The transfer-in priority may refer to the order in which each first warehouse receives the available inventory of the target item. The first warehouse has the highest corresponding transfer-in priority, which indicates that the first warehouse has a stronger ability to handle the expiration of the available inventory after receiving the target item.

[0106] Specifically, the transfer priority corresponding to each first warehouse can be determined based on the average demand and / or the degree of favorable comments. For example, the higher the average demand, the higher the transfer priority; or, the higher the degree of favorable comments, the higher the transfer priority; or, the average demand and the degree of favorable comments are weighted together, and the higher the sum obtained, the higher the transfer priority. The first warehouses can be arranged based on the transfer priority, and the first warehouse A with the highest transfer priority and the corresponding inventory a that can be transferred in can be obtained, and the inventory b corresponding to each second warehouse that can be transferred out can be added to obtain the total inventory c that can be transferred out. The distribution process of the inventory that can be transferred out corresponding to the second warehouse can be:

[0107] First, compare whether the available inventory a corresponding to the first warehouse A is greater than or equal to the total available inventory c. If so, it indicates that the first warehouse A can support the available inventory of all second warehouses. At this time, the corresponding transfer warehouses of the first warehouse A are determined to be all second warehouses, and the transfer inventory information is the total available inventory c. If the available inventory a corresponding to the first warehouse A is less than the total available inventory c, it indicates that the first warehouse A cannot support the available inventory of all second warehouses. At this time, based on the warehouse location of the first warehouse A and the warehouse location of each second warehouse, one or more second warehouses that are closest to the first warehouse A and can meet the available inventory a can be selected from all second warehouses, and the corresponding transfer relationship and transfer inventory information for this scheduling can be established. Then, the difference between the total amount of inventory that can be transferred out and the amount of inventory that can be transferred in a is taken as the remaining amount of inventory that can be transferred out d, and then the first warehouse B with the next highest transfer-in priority is obtained to detect whether the amount of inventory that can be transferred in e corresponding to the first warehouse B is greater than or equal to the remaining amount of inventory that can be transferred out d. If so, it indicates that the first warehouse B can support the remaining amount of inventory that can be transferred out d corresponding to the remaining second warehouses. At this time, the transfer-out warehouse corresponding to the first warehouse B is determined to be the remaining second warehouse, and the transfer inventory information is the remaining amount of inventory that can be transferred out d. If the amount of inventory that can be transferred in e corresponding to the first warehouse B is less than the remaining amount of inventory that can be transferred out d, then one or more second warehouses that are closest to the first warehouse B and can meet the amount of inventory that can be transferred in e can be selected from the remaining second warehouses according to the warehouse location, and the transfer correspondence and transfer inventory information for this scheduling are established, and the same logic is carried out in sequence until the total amount of inventory that can be transferred out c is allocated.

[0108] The technical solution of this embodiment can generate a target transfer task corresponding to the target item for each warehouse storing the same target item in a near-expiry state according to the warehouse transfer status and inventory transfer information corresponding to each warehouse, so as to perform inter-warehouse transfers based on the target transfer tasks, clear the near-expiry items more quickly, and ensure maximum profit.

[0109] The following is an embodiment of a task generation device provided in an embodiment of the present invention. The device and the task generation methods of the above embodiments belong to the same inventive concept. For details not described in detail in the embodiment of the task generation device, reference can be made to the embodiment of the above task generation method.

[0110] Embodiment 4

[0111] Figure 5 This is a schematic diagram of the structure of a task generation device provided in the fourth embodiment of the present invention. This embodiment can be applied to the situation of generating a task for processing an item at the expiration date, such as Figure 5As shown, the device specifically includes: a target item information acquisition module 510, a target state critical configuration information determination module 520, a target item state determination module 530 and a target due date processing task generation module 540.

[0112] Among them, the target item information acquisition module 510 is used to acquire the target item information of the target item; the target state critical configuration information determination module 520 is used to match the target item information with at least one state critical configuration information corresponding to each pre-configured item state, and determine the target state critical configuration information corresponding to each item state of the target item; the target item state determination module 530 is used to determine the target item state corresponding to the target item based on the target state critical configuration information corresponding to each item state and the shelf life information in the target item information; the target expiring processing task generation module 540 is used to generate a target expiring processing task corresponding to the target item if the target item state is an expiring state.

[0113] Optionally, the target state critical configuration information determination module 520 includes:

[0114] A target item information detection unit, used to detect whether the target item information satisfies a state critical condition in each state critical configuration information corresponding to each pre-configured item state;

[0115] The target state critical configuration information determining unit is used to determine the target state critical configuration information corresponding to each object state of the target object based on the candidate state critical configuration information that meets the state critical condition.

[0116] Optionally, the target state critical configuration information determination unit is specifically used to: if there is only one candidate state critical configuration information that meets the state critical condition, then determine the candidate state critical configuration information as the target state critical configuration information corresponding to the current item state of the target item; if there are at least two candidate state critical configuration information that meet the state critical condition, then determine the target state critical configuration information corresponding to the current item state of the target item according to the priority information in each candidate state critical configuration information.

[0117] Optionally, the target item state determination module 530 includes:

[0118] A target critical days value acquisition unit, used to acquire a target critical days value corresponding to each item state of the target item according to the target state critical configuration information corresponding to each item state;

[0119] A current remaining days determination unit, used to determine the current remaining days until the target item expires according to the shelf life information in the target item information;

[0120] The target item state determination unit is used to determine the target item state corresponding to the target item according to the target critical day value corresponding to each item state and the current remaining days.

[0121] Optionally, the target object state determination unit is specifically configured to:

[0122] If the current remaining days are greater than or equal to the target critical days value corresponding to the normal state, the target item state corresponding to the target item is determined to be the normal state; if the current remaining days are less than the target critical days value corresponding to the normal state, and greater than or equal to the target critical days value corresponding to the near-expiry state, the target item state corresponding to the target item is determined to be the near-expiry state; if the current remaining days are less than the target critical days value corresponding to the near-expiry state, and greater than or equal to the target critical days value corresponding to the overdue state, the target item state corresponding to the target item is determined to be the overdue state.

[0123] Optionally, the target deadline processing task generation module 540 is specifically used to:

[0124] Obtain the warehouse report acquisition price corresponding to the target item; obtain the pre-configured target price discount ratio corresponding to the target item; determine the target acquisition price corresponding to the target item based on the warehouse report acquisition price and the target price discount ratio; based on the target acquisition price, generate the target acquisition discount task corresponding to the target item.

[0125] Optionally, the target item information acquisition module 510 is specifically configured to:

[0126] Receive the message queue pushed by the warehouse management end of each warehouse; based on the message queue, obtain the target item information of the target item in each warehouse.

[0127] Optionally, the target upcoming processing task generation module 540 further includes:

[0128] A reserved inventory quantity determination unit, used to determine the reserved inventory quantity of the target item in each warehouse based on the historical demand quantity corresponding to the target item in each warehouse;

[0129] A transfer information determination unit, configured to determine a warehouse transfer state and inventory transfer information corresponding to each warehouse based on the current inventory and reserved inventory of the target item in each warehouse;

[0130] The target transfer task generating unit is used to generate a target transfer task corresponding to the target item according to the warehouse transfer status and inventory transfer information corresponding to each warehouse.

[0131] Optionally, the reserved inventory determination unit is specifically used to: determine the target demand corresponding to the target item in the current warehouse based on the historical demand corresponding to the target item in the current warehouse; determine the target remaining days for the target item status of the target item in the current warehouse to be expired; determine the reserved inventory of the target item in the current warehouse based on the target demand and the target remaining days.

[0132] Optionally, the transfer information determination unit is specifically used to: if the current inventory of the target item in the current warehouse is greater than the reserved inventory, determine that the warehouse transfer status corresponding to the current warehouse is a transfer-out status, and determine the transfer-out inventory corresponding to the current warehouse based on the current inventory and the reserved inventory; if the current inventory of the target item in the current warehouse is less than the reserved inventory, determine that the warehouse transfer status corresponding to the current warehouse is a transfer-in status, and determine the transfer-in inventory corresponding to the current warehouse based on the current inventory and the reserved inventory.

[0133] Optionally, the target allocation task generating unit is specifically used to: determine the transfer-in priority corresponding to each first warehouse based on the demand information of the target item in each first warehouse whose warehouse allocation status is a transfer-in status; allocate the transfer-out inventory corresponding to each second warehouse whose warehouse allocation status is a transfer-out status based on the transfer-in priority and the transfer-in inventory corresponding to each first warehouse, and determine the allocation correspondence relationship and allocation inventory information between the first warehouse and the second warehouse; and generate a target allocation task corresponding to the target item according to the allocation correspondence and the allocation inventory information.

[0134] Optionally, the device further comprises:

[0135] A target item detection module, used to detect whether the target item is a returnable item if the target item is in an expired state;

[0136] A target return task generation module is used to store the target item information and the target item provider identifier in the return data table if the item is returnable, and regularly merge the item information corresponding to the same item provider identifier stored in the return data table, and generate a target return task based on the merged item information;

[0137] The target destruction task generation module is used to store the target item information in the destruction data table if the item is non-returnable, and regularly merge the information of each item stored in the destruction data table to generate a target destruction task based on the merged item information.

[0138] The task generation device provided in the embodiment of the present invention can execute the task generation method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the task generation method.

[0139] It is worth noting that in the embodiment of the above-mentioned task generation device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0140] Embodiment 5

[0141] Figure 6 This is a schematic diagram of the structure of an electronic device provided in Embodiment 5 of the present invention. Figure 6 A block diagram of an exemplary electronic device 12 suitable for use in implementing embodiments of the present invention is shown. Figure 6 The electronic device 12 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.

[0142] like Figure 6 As shown, the electronic device 12 is in the form of a general purpose computing device. The components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).

[0143] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.

[0144] The electronic device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 12, including volatile and non-volatile media, removable and non-removable media.

[0145] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The electronic device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 6 not shown, usually called a "hard drive"). Although Figure 6Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The system memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.

[0146] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. Program modules 42 generally perform the functions and / or methods of the embodiments described herein.

[0147] The electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), may communicate with one or more devices that enable a user to interact with the electronic device 12, and / or may communicate with any device that enables the electronic device 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the electronic device 12 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 via a bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0148] The processing unit 16 executes various functional applications and data processing by running the program stored in the system memory 28, for example, implementing a task generation method provided by the embodiment of the present invention, the method comprising:

[0149] Get target item information of the target item;

[0150] Matching the target item information with at least one state critical configuration information corresponding to each pre-configured item state, and determining the target state critical configuration information corresponding to each item state of the target item;

[0151] Determine the target item state corresponding to the target item according to the target item state critical configuration information corresponding to each item state and the shelf life information in the target item information;

[0152] If the target item is in a near-expiry state, a target near-expiry processing task corresponding to the target item is generated.

[0153] Of course, those skilled in the art can understand that the processor can also implement the technical solution of the task generation method provided by any embodiment of the present invention.

[0154] Embodiment 6

[0155] This embodiment provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the steps of the task generation method provided in any embodiment of the present invention are implemented. The method includes:

[0156] Get target item information of the target item;

[0157] Matching the target item information with at least one state critical configuration information corresponding to each pre-configured item state, and determining the target state critical configuration information corresponding to each item state of the target item;

[0158] Determine the target item state corresponding to the target item according to the target item state critical configuration information corresponding to each item state and the shelf life information in the target item information;

[0159] If the target item is in a near-expiry state, a target near-expiry processing task corresponding to the target item is generated.

[0160] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can 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 (non-exhaustive list) of computer-readable storage media include: 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 this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0161] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals 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 a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0162] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0163] Computer program code for performing the operations of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0164] It should be understood by those skilled in the art that the modules or steps of the present invention described above can be implemented by a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, optionally, they can be implemented by a program code executable by a computer device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0165] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A task generation method, It is characterized in that include: Obtain target item attribute information and shelf life information of the target item; Detecting whether the target item information satisfies a state critical condition in each state critical configuration information corresponding to each pre-configured item state, wherein the state critical condition is configured based on item attribute information, and each state critical configuration information includes a state critical condition, a state critical day value, and a condition priority value; Determining target state critical configuration information corresponding to each item state of the target item based on candidate state critical configuration information that meets the state critical condition; Determine the target item state corresponding to the target item according to the target item state critical configuration information corresponding to each item state and the shelf life information in the target item information; If the state of the target item is near expiration, a target near expiration processing task corresponding to the target item is generated.

2. The method according to claim 1, It is characterized in that The determining, based on the candidate state critical configuration information satisfying the state critical condition, target state critical configuration information corresponding to each item state of the target item comprises: If there is only one candidate state critical configuration information that satisfies the state critical condition, the candidate state critical configuration information is determined as the target state critical configuration information corresponding to the current item state of the target item; If there are at least two candidate state critical configuration information satisfying the state critical condition, the target state critical configuration information corresponding to the current item state of the target item is determined according to the priority information in each candidate state critical configuration information.

3. The method according to claim 1, It is characterized in that The determining the target item state corresponding to the target item according to the target state critical configuration information corresponding to each item state and the shelf life information in the target item information includes: According to the target state critical configuration information corresponding to each item state, the target critical day value corresponding to each item state of the target item is obtained; Determine the current remaining days until the target item expires based on the shelf life information in the target item information; The target item state corresponding to the target item is determined according to the target critical day value corresponding to each item state and the current remaining days.

4. The method according to claim 3, It is characterized in that The determining, according to the target critical day value corresponding to each item state and the current remaining days, the target item state corresponding to the target item includes: If the current remaining days are greater than or equal to the target critical days value corresponding to the normal state, then determining that the target item state corresponding to the target item is a normal state; If the current remaining days are less than the target critical days value corresponding to the normal state, and greater than or equal to the target critical days value corresponding to the near-expiry state, then the target item state corresponding to the target item is determined to be the near-expiry state; If the current remaining days are less than the target critical days value corresponding to the near-expiry state, and greater than or equal to the target critical days value corresponding to the expired state, it is determined that the target item state corresponding to the target item is an expired state.

5. The method according to claim 1, It is characterized in that The generating of the target expiration processing task corresponding to the target item includes: Obtain the warehouse report acquisition price corresponding to the target item; Obtaining a pre-configured target price discount ratio corresponding to the target item; Determine the target acquisition price corresponding to the target item according to the warehouse report acquisition price and the target price discount ratio; Based on the target acquisition cost, a target acquisition preferential task corresponding to the target item is generated.

6. The method according to claim 1, It is characterized in that Get the target item information of the target item, including: Receive the message queue pushed by the warehouse management end of each warehouse; Based on the message queue, target item information of the target items in each warehouse is obtained.

7. The method according to claim 6, It is characterized in that The generating of the target expiration processing task corresponding to the target item also includes: Determine the reserved inventory quantity of the target item in each warehouse based on the historical demand quantity corresponding to the target item in each warehouse; Determine the warehouse transfer status and inventory transfer information corresponding to each warehouse based on the current inventory of the target item in each warehouse and the reserved inventory; According to the warehouse transfer status and inventory transfer information corresponding to each warehouse, a target transfer task corresponding to the target item is generated.

8. The method according to claim 7, It is characterized in that The step of determining the reserved inventory quantity of the target item in each warehouse based on the historical demand quantity corresponding to the target item in each warehouse includes: Determine a target demand quantity corresponding to the target item in the current warehouse based on a historical demand quantity corresponding to the target item in the current warehouse; Determine the target remaining number of days for the target item status of the target item in the current warehouse to be in an expired state; The reserved inventory quantity of the target item in the current warehouse is determined according to the target demand quantity and the target remaining days.

9. The method according to claim 7, It is characterized in that The step of determining the warehouse transfer status and inventory transfer information corresponding to each warehouse based on the current inventory of the target item in each warehouse and the reserved inventory includes: If the current inventory of the target item in the current warehouse is greater than the reserved inventory, the warehouse transfer state corresponding to the current warehouse is determined to be a transfer-out state, and the transferable inventory corresponding to the current warehouse is determined based on the current inventory and the reserved inventory; If the current inventory of the target item in the current warehouse is less than the reserved inventory, the warehouse transfer status corresponding to the current warehouse is determined to be the transfer-in status, and the transfer-in inventory corresponding to the current warehouse is determined based on the current inventory and the reserved inventory.

10. The method according to claim 7, It is characterized in that The generating a target transfer task corresponding to the target item according to the warehouse transfer status and inventory transfer information corresponding to each warehouse includes: Determine the transfer priority corresponding to each first warehouse based on the demand information of the target item in each first warehouse whose warehouse transfer status is a transfer-in status; Based on the transfer-in priority and the transfer-in inventory corresponding to each of the first warehouses, the transfer-out inventory corresponding to each of the second warehouses whose warehouse transfer status is a transfer-out status is allocated to determine the transfer correspondence relationship and transfer inventory information between the first warehouse and the second warehouse; A target allocation task corresponding to the target item is generated according to the allocation correspondence relationship and the allocation inventory quantity information.

11. The method according to any one of claims 1 to 10, It is characterized in that The method further comprises: If the target item is in an expired state, detecting whether the target item is a returnable item; If the item is returnable, the target item information and the target item provider identifier are stored in a return data table, and the item information corresponding to the same item provider identifier stored in the return data table is periodically merged, and a target return task is generated based on the merged item information; If the item is non-returnable, the target item information is stored in a destruction data table, and the information of each item stored in the destruction data table is merged regularly, and a target destruction task is generated based on the merged item information.

12. A task generating device, It is characterized in that include: A target item information acquisition module is used to acquire target attribute item information and shelf life information of the target item; The target state critical configuration information determination module includes: a target item information detection unit, used to detect whether the target item information satisfies a state critical condition in each state critical configuration information corresponding to each pre-configured item state, wherein the state critical condition is configured based on item attribute information, and each state critical configuration information includes a state critical condition, a state critical day value, and a condition priority value; a target state critical configuration information determining unit, configured to determine the target state critical configuration information corresponding to each object state of the target object based on the candidate state critical configuration information satisfying the state critical condition; A target item state determination module, used to determine the target item state corresponding to the target item according to the target state critical configuration information corresponding to each item state and the shelf life information in the target item information; The target expiring item processing task generating module is used to generate a target expiring item processing task corresponding to the target item if the target item is in the expiring item state.

13. An electronic device, It is characterized in that The electronic device comprises: one or more processors; A memory 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 task generation method as described in any one of claims 1-11.

14. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the task generation method as described in any one of claims 1 to 11 is implemented.

Citation Information

Patent Citations

  • Inventory management method, inventory management apparatus, device, and storage medium

    CN108921462A

  • Article information pushing method and device and storage medium

    CN113763115A