Inventory management method and device, storage medium and electronic equipment
By obtaining the temporary code of the product and querying the preset gear mapping table, dynamically counting the inventory amount during the valid period, solving the problem of too rough management granularity under the traditional inventory management model, and realizing refined inventory management.
Patent Information
- Application Number
- CN202411509470.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-28
- Publication Date
- 2025-03-04
AI Technical Summary
Under the traditional inventory management model, one product category corresponds to one inventory, and the management granularity is too rough, which is not conducive to the refined management of inventory.
By obtaining the temporary code of the target product, including the original code of the product and the validity period, query the preset file mapping table to determine the validity period range, traverse the preset inventory list of the product category, and dynamically count the inventory amount during the validity period.
A more fine-grained inventory statistics are achieved, and the inventory can be aggregated or split according to the validity period of the product, thereby achieving refined inventory management.
Smart Images

Figure CN119558762A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of information technology, and in particular to an inventory management method, device, storage medium and electronic device. Background Art
[0002] Commodity inventory management is the timely control and management of commodity inventory by enterprises. Through scientific management processes, reasonable management methods and technological means, it can coordinate inventory management, reduce inventory costs, improve inventory turnover, ensure timely supply and meet customer needs, etc.
[0003] At present, under the traditional inventory management model, one product category corresponds to one inventory. However, this management granularity is too coarse and is not conducive to the refined management of inventory. Summary of the invention
[0004] In view of this, the present application provides an inventory management method, device, storage medium and electronic device, the main purpose of which is to achieve refined management of inventory.
[0005] According to a first aspect of the present application, there is provided an inventory management method, the method comprising:
[0006] Obtaining a temporary code of a target product, wherein the temporary code of the target product includes the original code of the product and the validity period;
[0007] According to the validity period level, query the preset level mapping table to determine the validity period range of the product corresponding to the validity period level;
[0008] Determine a preset inventory list of the commodity category corresponding to the original code of the commodity, wherein the preset inventory list records the inventory quantity of the commodity category under different validity periods;
[0009] Traversing the preset inventory list of the commodity category, and determining the inventory quantity of the commodity category whose validity period is within the validity period of the commodity;
[0010] According to the inventory of the commodity category whose validity period is within the validity period of the commodity, the total inventory corresponding to the temporary code of the target commodity is dynamically counted to determine the commodity information and display it.
[0011] According to a second aspect of the present application, there is provided an inventory management device, the device comprising:
[0012] An acquisition unit, used to acquire a temporary code of a target commodity, wherein the temporary code of the target commodity includes an original code of the commodity and a validity period;
[0013] A first determining unit is used to query a preset gear mapping table according to the validity gear to determine the validity period range of the product corresponding to the validity gear;
[0014] A second determining unit is used to determine a preset inventory list of the commodity category corresponding to the original code of the commodity, wherein the preset inventory list records the inventory quantity of the commodity category under different validity periods;
[0015] A third determining unit, configured to traverse a preset inventory list of the commodity category and determine the inventory quantity of the commodity category whose validity period is within the validity period of the commodity;
[0016] The statistical unit is used to dynamically count the total inventory corresponding to the temporary code of the target commodity according to the inventory of the commodity category whose validity period is within the validity period of the commodity, so as to determine the commodity information and display it.
[0017] According to a third aspect of the present application, a storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the above-mentioned inventory management method is implemented.
[0018] According to a fourth aspect of the present application, an electronic device is provided, comprising a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein the processor implements the above-mentioned inventory management method when executing the program.
[0019] By means of the above technical scheme, the present application provides an inventory management method, device, storage medium and electronic device. Compared with the prior art, by querying the preset gear mapping table, the commodity validity period range corresponding to the validity period gear is determined, and the preset inventory list of the commodity category is traversed to determine the inventory quantity of the commodity category with a validity period within the commodity validity period range, and the total inventory quantity of the commodity category under the corresponding validity period gear can be dynamically counted. That is, the present application pre-configures the preset gear mapping table, sets the mapping relationship between the validity period gear and the commodity validity period, and records the inventory quantity of the same commodity category under different validity periods in the same preset inventory list, and can aggregate or split the inventory quantity according to the commodity validity period, thereby realizing more fine-grained inventory statistics, and then realizing refined management of inventory.
[0020] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0022] Figure 1 A schematic diagram of a process of an inventory management method provided in an embodiment of the present application is shown;
[0023] Figure 2 A schematic diagram of a preset inventory list provided in an embodiment of the present application is shown;
[0024] Figure 3 A schematic diagram showing a flow chart of another inventory management method provided in an embodiment of the present application is shown;
[0025] Figure 4 A schematic diagram of the structure of an inventory management device provided in an embodiment of the present application is shown;
[0026] Figure 5 A schematic structural diagram of another inventory management device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0027] The present application will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other without conflict.
[0028] In the traditional inventory management model, one product category corresponds to one inventory. However, this management granularity is too coarse and is not conducive to the refined management of inventory.
[0029] In order to solve the above problems, an embodiment of the present invention provides an inventory management method, such as Figure 1 As shown, the method includes:
[0030] Step 101: Obtain a temporary code of a target product.
[0031] The target product temporary code includes the original product code and the validity period. The target product temporary code is any one of the multiple product temporary codes displayed to the user.
[0032] The embodiments of the present invention are mainly applicable to inventory management scenarios, and the execution subject of the embodiments of the present invention is a device or equipment capable of performing inventory management.
[0033] For the embodiment of the present invention, multiple pieces of product information can be displayed to the user, each piece of product information includes a temporary code of the product and the total inventory corresponding to the temporary code of the product, wherein the temporary code of the product includes the original code of the product and the identifier corresponding to the validity period level, the original code of the product can represent the product category, and the original codes of different product categories are different, for example, the original code of product category A is 01, and the original code of product category B is 02; the validity period level is used to represent the validity period range of the product, and the validity period range of the product corresponding to different validity period levels is different, for example, the validity period range of the product corresponding to the validity period level 01 is 1 month, and the validity period range of the product corresponding to the validity period level 02 is 2 months, for example, the validity period range of the product corresponding to the validity period level 01 is 1 month and 2 months. The original code of the product and the validity period level constitute the temporary code of the product, for example, the temporary code of the product 01-02, wherein 01 is the original code of the product, representing the product category; 02 is the validity period level, representing the validity period range of the product.
[0034] The embodiment of the present invention can perform real-time fine-grained inventory statistics. When performing specific statistics, it is necessary to obtain multiple displayed temporary codes of commodities and parse them respectively to obtain the corresponding original codes and validity periods of commodities, wherein the temporary code of the target commodity is any one of the temporary codes of the multiple commodities. Since the inventory statistics process of each temporary code of a commodity is the same, only the temporary code of the target commodity is taken as an example to illustrate the dynamic inventory statistics process of the embodiment of the present invention.
[0035] Step 102: According to the validity period level, query a preset level mapping table to determine the validity period range of the product corresponding to the validity period level.
[0036] The preset gear mapping table records the validity period ranges of commodities corresponding to different validity period gears.
[0037] In order to perform more fine-grained inventory statistics, the embodiment of the present invention pre-configures a preset gear mapping table. For this process, the method includes: obtaining different validity gears and different validity durations; establishing a mapping relationship between the different validity gears and the different validity durations; and constructing the preset gear mapping table based on the different validity gears, the different validity durations, and the mapping relationship. The validity duration is the time from the expiration date of the product to the present.
[0038] For example, in the preset gear mapping table, the validity period corresponding to the validity period gear 01 is 1 month, the validity period corresponding to the validity period gear 02 is 2 months, and the validity period corresponding to the validity period gear 03 is 3 months.
[0039] For the embodiment of the present invention, after parsing the validity period, the pre-configured preset period mapping table can be queried according to the validity period to determine the validity period range of the product. For this process, the method includes: according to the validity period, querying the preset period mapping table to determine the target validity period duration corresponding to the validity period; according to the target validity period duration, determining the validity period range of the product corresponding to the validity period.
[0040] For example, according to validity period level 01, the preset level mapping table is queried to determine that the validity period corresponding to validity period level 01 is 1 month. Combined with the current time, the validity period range of the product can be determined.
[0041] Step 103: Determine a preset inventory list of the commodity category corresponding to the original code of the commodity.
[0042] The preset inventory list records the inventory of the commodity category under different validity periods. The Hash structure of Redis can be used to store the validity period and inventory, and the preset inventory list is a hash table. Different commodity categories correspond to different preset inventory lists. The same category of commodities has the same preset inventory list, and each warehouse corresponds to multiple preset inventory lists of commodity categories.
[0043] In order to achieve refined management of inventory, it is necessary to pre-build a preset inventory list of commodity categories. For this process, the method includes: for any one of the multiple warehouses, obtaining the inventory quantity of the commodity category under different validity periods in the any one warehouse; using the warehouse identifier of the any one warehouse and the different validity periods as keys, and using the inventory quantity under the different validity periods as values; based on the key and the value, constructing a hash table of the commodity category in the any one warehouse, and determining the hash table as the preset inventory list corresponding to the commodity category.
[0044] like Figure 2 In the hash table shown, C000283 is the product category, 70180110 is the warehouse ID, and the code after the warehouse ID, such as 202508, 202411, 202503, etc., represents the validity period. The warehouse ID and the validity period are combined as the key, and the corresponding inventory quantity is used as the value to construct a hash table, that is, the preset inventory list. By querying the hash table, the inventory quantity of a certain product category in any warehouse under different validity periods can be determined.
[0045] According to the embodiment of the present invention, after the original code of the commodity is parsed, the corresponding commodity category can be determined according to the original code of the commodity, and then the preset inventory list corresponding to the commodity category is queried from multiple warehouses respectively.
[0046] The embodiment of the present invention records the inventory of the same commodity category with different validity periods into the same preset inventory list, and can aggregate or split the inventory according to the validity period of the commodity, thereby achieving more fine-grained inventory statistics.
[0047] Step 104: traverse the preset inventory list of the commodity category to determine the inventory quantity of the commodity category whose validity period is within the validity period of the commodity.
[0048] by Figure 2 Take the preset inventory list as an example, assuming that the product validity period range is October 2024-November 2024, traverse the preset inventory list and find that the inventory quantities within the above validity period range are 73 and 37 respectively.
[0049] Step 105: dynamically count the total inventory corresponding to the temporary code of the target product according to the inventory of the product category whose validity period is within the validity period of the product, so as to determine the product information and display it.
[0050] For the embodiment of the present invention, the inventory of the commodity categories with validity periods within the validity period of the commodity is added to obtain the total inventory corresponding to the temporary code of the target commodity. Following the above example, the inventory with validity periods between October 2024 and November 2024 is 73 and 37 respectively, and the total inventory is 110 after adding the two, and then the determined total inventory is dynamically displayed in the commodity information.
[0051] It should be noted that, in the embodiment of the present invention, the above inventory quantity statistical process is executed in real time for each temporary code of the commodity.
[0052] An inventory management method provided by an embodiment of the present invention determines the effective period range of a commodity corresponding to the effective period by querying a preset gear mapping table, and traverses the preset inventory list of the commodity category to determine the inventory quantity of the commodity category with an effective period within the effective period range of the commodity, and can dynamically count the total inventory quantity of the commodity category under the corresponding effective period gear, that is, the embodiment of the present invention pre-configures a preset gear mapping table, sets a mapping relationship between the effective period gear and the effective period of the commodity, and records the inventory quantity of the same commodity category under different effective periods in the same preset inventory list, and can aggregate or split the inventory quantity according to the effective period of the commodity, thereby realizing more fine-grained inventory statistics, and further realizing refined management of the inventory.
[0053] Furthermore, the embodiment of the present invention can not only perform real-time inventory statistics according to the validity period, but also automatically shift the validity period of the commodity category. Based on this, the embodiment of the present invention provides another inventory management method, such as Figure 3 As shown, the method includes:
[0054] Step 201: Obtain multiple temporary product codes.
[0055] For the embodiment of the present invention, at each fixed time point, all temporary codes of commodities can be obtained to perform a gear shift before expiration. For example, at the last day of the month, between 18:00 and 23:00, all temporary codes of commodities can be obtained to perform a gear shift before expiration.
[0056] Step 202: Remove the identifiers corresponding to the validity period levels in the multiple temporary commodity codes respectively, and obtain the original commodity codes corresponding to the multiple temporary commodity codes respectively.
[0057] For example, the multiple temporary codes of the products obtained are 01-01, 01-02, 02-01 and 02-02, and then the validity period level identifiers in the above temporary codes of the products are removed to obtain the original codes 01 and 02. The original codes 01 and 02 represent two product categories, such as the original code 01 represents product category A, and the original code 02 represents product category B.
[0058] Step 203: determine the corresponding expiring commodity categories according to the commodity original codes corresponding to the multiple commodity temporary codes, query the preset inventory list corresponding to the expiring commodity categories, and determine the various validity periods involved in the expiring commodity categories.
[0059] For example, the original codes of multiple commodity temporary codes are 01 and 02 respectively. It is determined that the original code 01 corresponds to the expiring commodity category A, and the original code 02 corresponds to the expiring commodity category B. Then, the preset inventory list corresponding to the expiring commodity category A is queried to determine the various validity periods involved in the expiring commodity category A. Similarly, the preset inventory list corresponding to the expiring commodity category B is queried to determine the various validity periods involved in the expiring commodity category B.
[0060] For the embodiment of the present invention, in order to prevent sales risks, the categories of products that are about to expire can be removed from the shelves.
[0061] Step 204: For any one of the validity periods, determine whether the current time is within the validity period.
[0062] by Figure 2 For example, the validity periods of the expiring product category C00283 are August 2025, November 2024, March 2025, September 2024, October 2024, December 2024, January 2025, May 2025, and July 2025. Assuming that the current time is October 2024, determine whether the current time is within each validity period.
[0063] Step 205a: If the current time is not within any of the validity periods, deleting any of the validity periods and the inventory quantity corresponding to any of the validity periods from the preset inventory list corresponding to the expiring commodity category.
[0064] Following the above example, since the current time is October 2024, it can be determined that the current time is not within the validity period of September 2024. At this time, the validity period of September 2024 and its corresponding inventory quantity are deleted from the preset inventory list.
[0065] Since the embodiment of the present invention can regularly delete the inventory of expiring merchandise categories that have exceeded their validity period from the preset inventory list, it can avoid affecting the dynamic query of the hash table.
[0066] Step 205b: If the current time is within any of the validity periods, determine a new validity period position corresponding to the any of the validity periods.
[0067] For the embodiment of the present invention, if the current time is within any validity period, then the corresponding new validity period is reversely parsed according to the validity period. Furthermore, if there is currently product information involving a new validity period, the total inventory in the product information involving the new validity period is dynamically updated; if there is currently no product information involving a new validity period, then new product information of the expiring product category is generated according to the original product code corresponding to the expiring product category and the new validity period.
[0068] For example, the two validity periods are December 2024 and November 2024, and the current time is October 2024. For the validity period of December 2024, there are still two months to expire, and the corresponding validity period slot for two months is 02, that is, the new validity period slot corresponding to the validity period of December 2024 is 02. Similarly, for the validity period of November 2024, there is still one month to expire, and the corresponding validity period slot for one month is 01, that is, the new validity period slot corresponding to the validity period of November 2024 is 01. Then, it is queried whether there is product information involving gear 01 and product information involving gear 02 in the existing product information. Assuming that there is product information involving gear 02, new product information will not be generated at this time, and the total inventory corresponding to gear 02 with validity period will be dynamically counted; assuming that there is no product information involving gear 01, new product information will be generated for gear 01 at this time. The new product information includes the temporary code of the product involving gear 01 and the corresponding total inventory. The total inventory corresponding to gear 01 can be dynamically counted by the method in Example 1.
[0069] Another inventory management method provided by an embodiment of the present invention pre-configures a preset gear mapping table, sets a mapping relationship between validity period gears and commodity validity periods, and records the inventory quantities of the same commodity category under different validity periods into the same preset inventory list. It can automatically switch gears, reduce the steps of inventory adjustment, improve operational efficiency, and optimize inventory management methods.
[0070] Further, as Figure 1 and Figure 3 The specific implementation of the method shown in this embodiment provides an inventory management device, such as Figure 4 As shown, the device includes: an acquisition unit 31, a first determination unit 32, a second determination unit 33, a third determination unit 34 and a statistical unit 35.
[0071] The acquisition unit 31 may be used to acquire a temporary code of a target commodity, wherein the temporary code of the target commodity includes an original code of the commodity and a validity period.
[0072] The first determining unit 32 may be configured to query a preset level mapping table according to the validity level to determine the commodity validity range corresponding to the validity level.
[0073] The second determining unit 33 may be configured to determine a preset inventory list of a commodity category corresponding to the original commodity code, wherein the preset inventory list records the inventory quantity of the commodity category under different validity periods.
[0074] The third determining unit 34 may be configured to traverse a preset inventory list of the commodity category and determine the inventory quantity of the commodity category whose validity period is within the validity period of the commodity.
[0075] The statistical unit 35 may be used to dynamically count the total inventory corresponding to the temporary code of the target commodity according to the inventory of the commodity category whose validity period is within the validity period of the commodity, so as to determine the commodity information and display it.
[0076] In some embodiments, the first determination unit 32 can be specifically used to query the preset gear mapping table according to the validity gear to determine the target validity period corresponding to the validity gear; and determine the product validity period range corresponding to the validity gear according to the target validity period.
[0077] In some embodiments, Figure 5 As shown, the device further includes: a construction unit 36.
[0078] The construction unit 36 can be used to obtain different validity period gears and different validity period durations; establish a mapping relationship between the different validity period gears and the different validity period durations; and construct the preset gear mapping table based on the different validity period gears, the different validity period durations and the mapping relationship.
[0079] In some embodiments, the second determining unit 33 may be specifically configured to determine the commodity category corresponding to the original code of the commodity; and query a preset inventory list corresponding to the commodity category from multiple warehouses respectively.
[0080] In some embodiments, the construction unit 36 can also be used to obtain the inventory quantity of the commodity category under different validity periods in any one of the multiple warehouses; use the warehouse identifier of the any one warehouse and the different validity periods as keys, and use the inventory quantity under the different validity periods as values; construct a hash table of the commodity category in the any one warehouse based on the key and the value, and determine the hash table as a preset inventory list corresponding to the commodity category.
[0081] In some embodiments, the apparatus further includes a determination unit 37 and a processing unit 38 .
[0082] The acquisition unit 31 may also be used to acquire multiple temporary commodity codes.
[0083] The first determining unit 32 may also be configured to remove the identifiers corresponding to the validity periods in the multiple temporary commodity codes respectively, to obtain the original commodity codes corresponding to the multiple temporary commodity codes respectively.
[0084] The second determining unit 33 may also be configured to determine corresponding expiring commodity categories according to the commodity original codes corresponding to the plurality of commodity temporary codes.
[0085] The third determining unit 34 may also be used to query a preset inventory list corresponding to the expiring commodity category to determine each validity period involved in the expiring commodity category.
[0086] The determination unit 37 may be configured to determine, for any one of the validity periods, whether the current time is within the validity period.
[0087] The processing unit 38 may be configured to delete any validity period and the inventory quantity corresponding to any validity period from the preset inventory list corresponding to the expiring commodity category if the current time is not within any validity period.
[0088] The third determining unit 34 may also be configured to determine a new validity period slot corresponding to any one of the validity periods if the current time is within any one of the validity periods.
[0089] In some embodiments, the processing unit 38 can also be used to dynamically update the total inventory in the product information involving the new validity period if there is currently product information involving the new validity period; if there is currently no product information involving the new validity period, new product information of the expiring product category is generated based on the original product code corresponding to the expiring product category and the new validity period.
[0090] In some embodiments, the processing unit 38 can also be used to remove the near-expiry product categories from the shelves.
[0091] It should be noted that for other corresponding descriptions of the functional units involved in the inventory management device provided in the embodiment of the present invention, reference can be made to Figure 1 The corresponding description in will not be repeated here.
[0092] Based on the above Figure 1 and Figure 3 The method shown in the embodiment also provides a storage medium on which a computer program is stored. When the program is executed by a processor, the above-mentioned Figure 1 and Figure 3 Inventory management method shown.
[0093] Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, USB flash drive, mobile hard disk, etc.), including a number of instructions for enabling an electronic device (which can be a personal computer, server, or network device, etc.) to execute the methods of various implementation scenarios of the present application.
[0094] Based on the above Figure 1 and Figure 3 The method shown, and Figure 4 and Figure 5 In order to achieve the above-mentioned purpose, the embodiment of the present application also provides an electronic device, which can be a personal computer, a tablet computer, a server, or other network equipment, etc. The device includes a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to achieve the above-mentioned Figure 1 and Figure 3 Inventory management method shown.
[0095] Optionally, the above-mentioned physical device may also include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a WI-FI module, etc. The user interface may include a display, an input unit such as a keyboard, etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface), etc.
[0096] Those skilled in the art will appreciate that the above-mentioned physical device structure provided in this embodiment does not constitute a limitation on the physical device, and may include more or fewer components, or a combination of certain components, or different arrangements of components.
[0097] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of the above-mentioned physical device, and supports the operation of the information processing program and other software and / or programs. The network communication module is used to realize the communication between the components inside the storage medium, and the communication with other hardware and software in the information processing physical device.
[0098] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform, or by hardware.
[0099] The embodiment of the present invention determines the valid period range of the commodity corresponding to the valid period gear by querying the preset gear mapping table, and traverses the preset inventory list of the commodity category to determine the inventory of the commodity category with a valid period within the valid period range of the commodity, and can dynamically count the total inventory of the commodity category under the corresponding valid period gear. That is, the embodiment of the present invention pre-configures the preset gear mapping table, sets the mapping relationship between the valid period gear and the valid period of the commodity, and records the inventory of the same commodity category under different valid periods in the same preset inventory list, and can aggregate or split the inventory according to the valid period of the commodity, thereby realizing more fine-grained inventory statistics, and further realizing refined management of the inventory.
[0100] Those skilled in the art will appreciate that the accompanying drawings are only schematic diagrams of a preferred implementation scenario, and the modules or processes in the accompanying drawings are not necessarily necessary for implementing the present application. Those skilled in the art will appreciate that the modules in the devices in the implementation scenario can be distributed in the devices of the implementation scenario according to the description of the implementation scenario, or can be changed accordingly and located in one or more devices different from the present implementation scenario. The modules of the above-mentioned implementation scenario can be combined into one module, or can be further split into multiple submodules.
[0101] The above serial numbers of this application are only for description and do not represent the advantages and disadvantages of the implementation scenarios. The above disclosure is only a few specific implementation scenarios of this application, but this application is not limited to them, and any changes that can be thought of by technicians in this field should fall within the scope of protection of this application.
Claims
1. An inventory management method, characterized in that: include: Obtaining a temporary code of a target product, wherein the temporary code of the target product includes the original code of the product and the validity period; According to the validity period level, query the preset level mapping table to determine the validity period range of the product corresponding to the validity period level; Determine a preset inventory list of the commodity category corresponding to the original code of the commodity, wherein the preset inventory list records the inventory quantity of the commodity category under different validity periods; Traversing the preset inventory list of the commodity category, and determining the inventory quantity of the commodity category whose validity period is within the validity period of the commodity; According to the inventory of the commodity category whose validity period is within the validity period of the commodity, the total inventory corresponding to the temporary code of the target commodity is dynamically counted to determine the commodity information and display it.
2. The method according to claim 1, characterized in that The querying of a preset level mapping table according to the validity level to determine the validity range of the product corresponding to the validity level includes: According to the validity period gear, query the preset gear mapping table to determine the target validity period duration corresponding to the validity period gear; According to the target validity period, the validity period range of the product corresponding to the validity period level is determined.
3. The method according to claim 1, characterized in that The method further comprises: Get different validity periods and different validity durations; Establishing a mapping relationship between the different validity period gears and the different validity period durations; Based on the different validity period gears, the different validity period durations and the mapping relationship, the preset gear mapping table is constructed.
4. The method according to claim 1, characterized in that: The step of determining a preset inventory list of commodity categories corresponding to the original commodity codes includes: Determine the commodity category corresponding to the original code of the commodity; The preset inventory lists corresponding to the commodity categories are queried from multiple warehouses respectively.
5. The method according to claim 4, characterized in that The method further comprises: For any one of the multiple warehouses, obtaining the inventory quantity of the commodity category in the any one warehouse under different validity periods; Using the warehouse identification of any one of the warehouses and the different validity periods as keys, and using the inventory quantities under the different validity periods as values; According to the key and the value, a hash table of the commodity category in any one of the warehouses is constructed, and the hash table is determined as a preset inventory list corresponding to the commodity category.
6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: Get multiple temporary product codes; Removing the identifiers corresponding to the validity periods in the multiple temporary commodity codes respectively, to obtain the original commodity codes corresponding to the multiple temporary commodity codes respectively; Determine the corresponding categories of the expiring commodities according to the commodity original codes corresponding to the multiple commodity temporary codes; Querying the preset inventory list corresponding to the expiring commodity category to determine the validity periods involved in the expiring commodity category; For any one of the validity periods, determining whether the current time is within the validity period; If the current time is not within any of the validity periods, deleting any of the validity periods and the inventory quantity corresponding to any of the validity periods from the preset inventory list corresponding to the expiring commodity category; If the current time is within any of the validity periods, a new validity period slot corresponding to the any of the validity periods is determined.
7. The method according to claim 6, characterized in that The method further comprises: If there is currently product information involving a new validity period, the total inventory in the product information involving the new validity period is dynamically updated; If there is no product information related to the new validity period, then generate new product information of the expiring product category according to the original product code corresponding to the expiring product category and the new validity period; and / or The method further comprises: The aforementioned expiring merchandise categories will be removed from the shelves.
8. An inventory management device, characterized in that: include: An acquisition unit, used to acquire a temporary code of a target commodity, wherein the temporary code of the target commodity includes an original code of the commodity and a validity period; A first determining unit is used to query a preset gear mapping table according to the validity gear to determine the validity period range of the product corresponding to the validity gear; A second determining unit is used to determine a preset inventory list of the commodity category corresponding to the original code of the commodity, wherein the preset inventory list records the inventory quantity of the commodity category under different validity periods; A third determining unit, configured to traverse a preset inventory list of the commodity category and determine the inventory quantity of the commodity category whose validity period is within the validity period of the commodity; The statistical unit is used to dynamically count the total inventory corresponding to the temporary code of the target commodity according to the inventory of the commodity category whose validity period is within the validity period of the commodity, so as to determine the commodity information and display it.
9. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
10. An electronic device comprising a storage medium, a processor, and a computer program stored in the storage medium and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.