Commodity batch attribute and inventory changing method and device
By automatically counting and changing the inventory of the product when the product batch attribute changes and making inventory changes, the problem that the product batch attribute changes and inventory changes cannot be implemented simultaneously is solved, and automated inventory adjustments are realized, which improves the change efficiency and reduces labor costs.
Patent Information
- Application Number
- CN202410182255.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-18
- Publication Date
- 2025-08-19
AI Technical Summary
After the product batch attributes are changed, the inventory cannot be automatically adjusted, resulting in poor operability and increasing the workload and cost of logistics and warehousing personnel.
By automatically counting and changing the inventory of the product when the product batch attributes are changed and inventory changes are made, the inventory changes of the product are automatically completed when the product batch attributes are changed, and a complete and continuous solution for product batch attributes and inventory changes are provided.
The process of manual statistical communication and coordination has been reduced, the efficiency of product batch attributes and inventory changes has been improved, and the manual operation costs of operation personnel have been reduced.
Smart Images

Figure CN120509820A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of warehouse management, and in particular to a method and device for changing commodity batch attributes and inventory. Background Art
[0002] In current logistics and warehousing, because changes to product batch attributes don't automatically adjust product inventory, merchants cannot proactively change product batch attributes while inventory is already in stock. If a merchant needs to change a product batch attribute, they typically notify the logistics and warehousing staff, who then perform the change in the backend. After the change is complete, the existing product batch inventory files in the logistics and warehousing are updated and synchronized, and the inventory of each batch is then changed item by item.
[0003] Changes to product batch attributes and inventory changes cannot be carried out simultaneously. They belong to different independent processes, so the operability is poor and cannot meet the needs of merchants well. After the product batch attributes are changed, the logistics warehousing system cannot automatically count and adjust the product inventory. Merchants or logistics warehousing personnel need to count the information of the products to be adjusted, and then scan the products one by one in the entire warehouse according to the current storage location of the products to be adjusted to make inventory changes, which increases the workload of logistics warehousing personnel and has high operating costs. Summary of the Invention
[0004] In view of this, an embodiment of the present invention provides a method and apparatus for changing commodity batch attributes and inventory, so as to solve the problem that commodity batch attribute changes and inventory changes cannot be performed synchronously and manual operation costs are high.
[0005] To achieve the above objectives, according to one aspect of an embodiment of the present invention, a method for changing commodity batch attributes and inventory is provided, which can solve the problem that commodity batch attribute changes and inventory changes cannot be executed synchronously, reduce labor costs, and improve change efficiency.
[0006] A method for changing batch attributes and inventory of a commodity according to an embodiment of the present invention includes: confirming the inventory quantity of the commodity with the attributes to be adjusted based on a batch attribute change request;
[0007] In response to the inventory quantity of the commodity with the attribute to be adjusted being greater than zero, obtaining a batch attribute adjustment target value of the commodity with the attribute to be adjusted;
[0008] Adjust the target value based on the above batch attributes to change the batch attributes;
[0009] Perform inventory location on the changed products, and adjust the inventory of the changed products based on the inventory location results.
[0010] Optionally, the inventory quantity confirmation of the products with the attributes to be adjusted based on the batch attribute change request includes:
[0011] Receive a batch attribute change request initiated by a merchant; the batch attribute change request includes the attribute product code to be adjusted;
[0012] Confirm the inventory quantity of the product with the attributes to be adjusted based on the above-mentioned product codes with the attributes to be adjusted.
[0013] Optionally, the batch attribute change request further includes: a merchant code; and in response to the inventory quantity of the product with the attribute to be adjusted being greater than zero, obtaining the batch attribute adjustment target value of the product with the attribute to be adjusted includes:
[0014] In response to the inventory quantity of the commodity with the attributes to be adjusted being greater than zero, obtaining the current batch attributes of the commodity with the attributes to be adjusted;
[0015] Generate an inventory result set of the product with the attribute to be adjusted based on the product code with the attribute to be adjusted, the current batch attribute and the inventory quantity;
[0016] Based on the inventory result set of the commodity with the attribute to be adjusted and the merchant code, the batch attribute adjustment target value and adjustment quantity of the commodity with the attribute to be adjusted are obtained.
[0017] Optionally, the batch attribute change based on the batch attribute adjustment target value includes:
[0018] The current batch attributes of the commodities with the attributes to be adjusted are changed based on the batch attribute adjustment target value, the adjustment quantity and the inventory result set of the commodities with the attributes to be adjusted.
[0019] Optionally, the inventory locating of the changed product and adjusting the inventory of the changed product based on the inventory locating result include:
[0020] In response to the batch attribute change being completed, performing inventory location on the changed product to obtain an inventory location result;
[0021] Based on the above inventory positioning results, the inventory information of the entire storage location is changed.
[0022] Optionally, the inventory locating of the changed product and adjusting the inventory of the changed product based on the inventory locating result further includes:
[0023] In response to the fact that there are no whole-storage-location commodities or that there are non-whole-storage-location commodities after the inventory information of the whole-storage-location commodities is changed, obtaining the inventory quantity of the non-whole-storage-location commodities; the non-whole-storage-location commodities include commodities that do not need to be changed and commodities whose batch attributes have been changed;
[0024] Compare the inventory of the aforementioned products that do not require change and the inventory of the aforementioned products after the batch attribute change;
[0025] Based on the comparison results, the inventory information of the above-mentioned products that do not need to be changed and the above-mentioned products after the batch attributes are changed are changed.
[0026] Optionally, the above-mentioned step of changing the inventory information of the commodities that do not need to be changed and the commodities after the batch attribute change according to the comparison result includes:
[0027] When the inventory of the aforementioned products that do not require change is greater than the inventory of the aforementioned products after the batch attribute change, the inventory information of the aforementioned products that do not require change is changed, and the aforementioned products after the batch attribute change are transferred to another warehouse and the inventory information is changed;
[0028] When the inventory quantity of the above-mentioned goods that do not need to be changed is less than the inventory quantity of the goods after the batch attributes are changed, the inventory information of the goods after the batch attributes are changed is changed, and the above-mentioned goods that do not need to be changed are transferred to another warehouse and the inventory information is changed.
[0029] To achieve the above-mentioned object, according to another aspect of an embodiment of the present invention, a device for changing commodity batch attributes and inventory is provided.
[0030] A device for changing commodity batch attributes and inventory according to an embodiment of the present invention includes:
[0031] Confirmation module, used to confirm the inventory quantity of the products with attributes to be adjusted based on the batch attribute change request;
[0032] an acquisition module, configured to acquire a batch attribute adjustment target value of the commodity with the attribute to be adjusted in response to the inventory quantity of the commodity with the attribute to be adjusted being greater than zero;
[0033] A change module, used for changing batch attributes based on the batch attribute adjustment target value;
[0034] The adjustment module is used to locate the inventory of the changed products and adjust the inventory of the changed products based on the inventory location results.
[0035] To achieve the above objective, according to another aspect of an embodiment of the present invention, an electronic device for changing commodity batch attributes and inventory is provided.
[0036] An electronic device for changing commodity batch attributes and inventory according to an embodiment of the present invention includes: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement a method for changing commodity batch attributes and inventory according to an embodiment of the present invention.
[0037] To achieve the above objective, according to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided.
[0038] A computer-readable storage medium according to an embodiment of the present invention stores a computer program, which, when executed by a processor, implements a method for changing commodity batch attributes and inventory according to an embodiment of the present invention.
[0039] One embodiment of the above invention has the following advantages or beneficial effects: by automatically counting the inventory of the changed goods and making inventory changes when the batch attributes of the goods are changed, the inventory changes of the changed goods are automatically completed when the batch attributes of the goods are changed, providing a complete and continuous solution to the changes in the batch attributes of the goods and the inventory, solving the problem that the changes in the batch attributes of the goods and the inventory changes cannot be executed synchronously, and reducing the links of manual statistics, communication and coordination; at the same time, inventory positioning and inventory information changes are automatically performed after the batch attributes of the goods are changed, reducing the manual operation costs of operators and improving the efficiency of the changes in the batch attributes of the goods and the inventory.
[0040] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The accompanying drawings are provided for a better understanding of the present invention and are not intended to limit the present invention.
[0042] Figure 1 is a flow chart of a method for changing commodity batch attributes and inventory according to an embodiment of the present invention;
[0043] Figure 2 is a specific flow chart of a method for changing commodity batch attributes and inventory according to another embodiment of the present invention;
[0044] Figure 3 is a schematic diagram of main modules of a device for changing commodity batch attributes and inventory according to an embodiment of the present invention;
[0045] Figure 4 is an exemplary system architecture diagram in which embodiments of the present invention may be applied;
[0046] Figure 5 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0047] The following description of exemplary embodiments of the present invention is made in conjunction with the accompanying drawings, in which various details of the embodiments of the present invention are included to facilitate understanding. These details should be considered as merely exemplary. Therefore, it should be appreciated by those skilled in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0048] It should be pointed out that, in the absence of conflict, the embodiments of the present invention and the technical features therein may be combined with each other.
[0049] It should be noted that the collection, collection, updating, analysis, processing, use, transmission, and storage of user personal information involved in the technical solutions disclosed herein all comply with relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. Necessary measures are taken with respect to user personal information to prevent unauthorized access to user personal information data and to safeguard the security of user personal information, network security, and national security.
[0050] Figure 1 4 is a schematic diagram of the main steps of a method for changing commodity batch attributes and inventory according to an embodiment of the present invention.
[0051] like Figure 1 As shown, the method for changing the commodity batch attributes and inventory in the embodiment of the present invention mainly includes the following steps:
[0052] Step S101: confirming the inventory quantity of the commodity with the attributes to be adjusted based on the batch attribute change request;
[0053] Step S102: in response to the inventory quantity of the commodity with the attribute to be adjusted being greater than zero, obtaining a batch attribute adjustment target value of the commodity with the attribute to be adjusted;
[0054] Step S103, changing the batch attributes based on the batch attribute adjustment target value;
[0055] Step S104: Locate the inventory of the changed product, and adjust the inventory of the changed product based on the inventory location result.
[0056] Specifically, the batch attributes of goods represent the attributes of the actual goods managed by the system, including but not limited to the production date of the goods, the batch number of the goods, etc. Merchants can initiate a batch attribute change request through the client to request batch attribute adjustment of the goods with attributes to be adjusted. According to the batch attribute change request, the inventory quantity of the goods with attributes to be adjusted is confirmed. When the number of goods with attributes to be adjusted is equal to zero, the batch attribute change cannot be implemented, and a batch attribute change failure result is generated and fed back to the client; when the number of goods with attributes to be adjusted is greater than zero, the goods batch attribute and inventory change process is initiated. By obtaining the inventory quantity of goods with attributes to be adjusted, it is automatically determined whether the goods batch attribute and inventory change process can be initiated, which avoids the problem of manual statistics by logistics and warehousing personnel and greatly reduces the workload of staff.
[0057] In an optional embodiment, the above-mentioned confirmation of inventory quantity of the commodities to be adjusted in terms of attributes based on the batch attribute change request includes:
[0058] Receive a batch attribute change request initiated by a merchant; the batch attribute change request includes the attribute product code to be adjusted;
[0059] Confirm the inventory quantity of the product with the attributes to be adjusted based on the above-mentioned product codes with the attributes to be adjusted.
[0060] Furthermore, the batch attribute change request also includes a merchant code. The merchant code represents the merchant's identification code in the logistics and warehousing system, and the code of the product whose attributes are to be adjusted represents the identification code of the same product in the logistics and warehousing system. Based on the merchant code and the code of the product whose attributes are to be adjusted, the inventory quantity of the product whose attributes are to be adjusted in the logistics and warehousing system can be obtained, thus achieving automatic inventory statistics for the product whose attributes are to be adjusted.
[0061] In an optional embodiment, the batch attribute change request further includes: a merchant code; and in response to the inventory quantity of the product with the attribute to be adjusted being greater than zero, obtaining the batch attribute adjustment target value of the product with the attribute to be adjusted includes:
[0062] In response to the inventory quantity of the commodity with the attributes to be adjusted being greater than zero, obtaining the current batch attributes of the commodity with the attributes to be adjusted;
[0063] Generate an inventory result set of the product with the attribute to be adjusted based on the product code with the attribute to be adjusted, the current batch attribute and the inventory quantity;
[0064] Based on the inventory result set of the commodity with the attribute to be adjusted and the merchant code, the batch attribute adjustment target value and adjustment quantity of the commodity with the attribute to be adjusted are obtained.
[0065] Specifically, when the inventory quantity of a product with attributes to be adjusted is greater than zero, a product batch attribute and inventory change process is initiated to obtain product information for the product with attributes to be adjusted, including the product grade and current batch attributes, and to form an inventory result set for the product with attributes to be adjusted. Based on this inventory result set, a change order for the batch attributes to be set is automatically created. The change order includes the merchant code, the code of the product with attributes to be adjusted, the product grade, the current batch attributes, the adjusted batch attributes, and the inventory quantity. Since the target value for the batch attribute adjustment has not yet been obtained, the adjusted batch attributes are left blank.
[0066] After the inventory batch attribute change form to be set is successfully created, the above inventory batch attribute change form to be set is sent to the merchant's client to obtain the batch attribute adjustment target value and adjustment quantity of the product with the attribute to be adjusted.
[0067] By creating a change order for the inventory batch attributes to be set, the batch attribute changes and inventory changes of the products with the attributes to be adjusted are linked together, achieving simultaneous batch attribute changes and inventory changes for the products, reducing operating costs.
[0068] In an optional embodiment, the batch attribute change based on the batch attribute adjustment target value includes:
[0069] The current batch attributes of the commodities with the attributes to be adjusted are changed based on the batch attribute adjustment target value, the adjustment quantity and the inventory result set of the commodities with the attributes to be adjusted.
[0070] Specifically, the batch attribute adjustment target value is entered into the column for the adjusted batch attribute of the corresponding product with the attributes to be adjusted in the inventory batch attribute change form. Since products with different batch attributes cannot be mixed, the inventory quantity is split according to the adjustment quantity and the adjusted batch attribute, resulting in a set inventory batch attribute change form, completing the batch attribute change for the products with the attributes to be adjusted. By filling in the inventory batch attribute change form to obtain the set inventory batch attribute change form, the batch attribute change is automatically counted for the inventory to be changed, eliminating the manual counting process and reducing the workload of logistics and warehousing personnel.
[0071] In an optional embodiment, the above-mentioned inventory locating of the changed product and adjusting the inventory of the changed product based on the inventory locating result include:
[0072] In response to the batch attribute change being completed, performing inventory location on the changed product to obtain an inventory location result;
[0073] Based on the above inventory positioning results, the inventory information of the entire storage location is changed.
[0074] Specifically, after the batch attribute change is completed, the changed product is prioritized for inventory location according to the whole storage location positioning rules based on the changed product's product code, product grade, pre-adjustment batch attributes (i.e., the above-mentioned current attributes before the batch attribute change), and the inventory quantity after splitting, to identify whether there are whole storage location products. This is to ensure that the changed product's inventory information can be automatically changed in the original storage location, reducing unnecessary warehouse transfer operations, further reducing the intervention of logistics and warehousing personnel, and eliminating the work of logistics and warehousing personnel to scan the entire warehouse one by one according to the product storage location, thereby improving operational efficiency.
[0075] When the inventory information of the entire storage location is changed, the inventory quantity of the goods with the attributes before the adjustment will be automatically deducted from the shelves, and the inventory quantity of the goods with the attributes after the adjustment will be automatically increased.
[0076] In an optional embodiment, the above-mentioned inventory locating of the changed product and adjusting the inventory of the changed product based on the inventory locating result further includes:
[0077] In response to the fact that there are no whole-storage-location commodities or that there are non-whole-storage-location commodities after the inventory information of the whole-storage-location commodities is changed, obtaining the inventory quantity of the non-whole-storage-location commodities; the non-whole-storage-location commodities include commodities that do not need to be changed and commodities whose batch attributes have been changed;
[0078] Compare the inventory of the aforementioned products that do not require change and the inventory of the aforementioned products after the batch attribute change;
[0079] Based on the comparison results, the inventory information of the above-mentioned products that do not need to be changed and the above-mentioned products after the batch attributes are changed are changed.
[0080] In an optional embodiment, the above-mentioned step of changing the inventory information of the commodities that do not need to be changed and the commodities whose batch attributes have been changed according to the comparison result includes:
[0081] When the inventory of the aforementioned products that do not require change is greater than the inventory of the aforementioned products after the batch attribute change, the inventory information of the aforementioned products that do not require change is changed, and the aforementioned products after the batch attribute change are transferred to another warehouse and the inventory information is changed;
[0082] When the inventory quantity of the above-mentioned goods that do not need to be changed is less than the inventory quantity of the goods after the batch attributes are changed, the inventory information of the goods after the batch attributes are changed is changed, and the above-mentioned goods that do not need to be changed are transferred to another warehouse and the inventory information is changed.
[0083] Specifically, the commodities that do not need to be changed and the commodities with smaller inventory among the commodities after the above-mentioned batch attribute changes are transferred to reduce the workload of the transfer.
[0084] Furthermore, after the transfer of non-whole storage location goods and the change of inventory information are completed, the storage location is automatically identified to determine whether the current storage location meets the whole storage location positioning rules. If not, the transfer operation of the non-whole storage location goods will continue; if it meets the requirements, the inventory information change will be completed.
[0085] In an optional embodiment, the above method further includes: after the inventory adjustment is completed, generating product batch attributes and inventory change completion results, feeding back to the merchant's client, and synchronizing the changed product batch attributes and changed inventory information.
[0086] The following is a detailed description of the commodity batch attribute and inventory change process using a specific embodiment:
[0087] like Figure 2 As shown, the merchant initiates a batch attribute change request on the client and sends it to the order management subsystem in the logistics warehousing system. The order management subsystem calls the batch inventory interface to obtain the inventory quantity of the product with the attributes to be adjusted. When the quantity of the product with the attributes to be adjusted is greater than zero, the product batch attribute and inventory change process is initiated to obtain the product information of the product with the attributes to be adjusted, and form an inventory result set of the product with the attributes to be adjusted, as shown in Table 1 below.
[0088] Table 1 Inventory result set of products with attributes to be adjusted
[0089] Product Code Product grade Production date Inventory quantity EMG0001 Good product July 30, 2023 100 EMG0001 Good product June 30, 2023 200
[0090] Based on the inventory result set of the products with the attributes to be adjusted, a change order for the batch attributes to be set is automatically created, as shown in Table 2 below. The batch number is the batch attribute that needs to be adjusted. Since the adjustment target value for the batch number has not yet been obtained, the batch number column is blank.
[0091] Table 2 Inventory batch attribute changes to be set
[0092] Product Code Product grade Production date batch number Inventory quantity EMG0001 Good product July 30, 2023 100 EMG0001 Good product June 30, 2023 200
[0093] The aforementioned inventory batch attribute change order to be set is sent to the merchant's client to obtain the batch attribute adjustment target value and adjustment quantity for the product to be adjusted. The merchant sets the batch attribute adjustment target value and adjustment quantity for the product to be adjusted based on its actual needs. For product EMG0001 with a production date of June 30, 2023, two batch numbers with target adjustment values and an adjustment quantity of 50 are set. This means that the inventory quantity of 200 of EMG0001 is divided into two batch numbers with different batch numbers, namely, 150 and 50. This results in the set inventory batch attribute change order, as shown in Table 3 below.
[0094] Table 3 Inventory batch attribute change order has been set
[0095] Product Code Product grade Production date batch number Inventory quantity EMG0001 Good product July 30, 2023 GZ0001 100 EMG0001 Good product June 30, 2023 GZ0002 150 EMG0001 Good product June 30, 2023 GZ0003 50
[0096] The set inventory batch attribute change order is sent to the warehouse management subsystem for inventory location, and the inventory location results are obtained, as shown in Table 4 below.
[0097] Table 4 Inventory positioning results
[0098] Product Code Product grade Production date Inventory quantity reserve position Whether to store batch number EMG0001 Good product July 30, 2023 100 Storage A yes GZ0001 EMG0001 Good product June 30, 2023 150 Storage B no GZ0002 EMG0001 Good product June 30, 2023 50 Storage B no GZ0003
[0099] If the inventory location results show that there are full-storage-location products, inventory information for these products will be changed first based on the inventory location results. Then, products with smaller inventory in the non-full-storage-location categories will be moved and their inventory information will be changed. If there are no full-storage-location products, the non-full-storage-location categories will be moved and their inventory information changed directly until all current locations meet the full-storage-location location rules. The inventory information change table is shown in Table 5 below.
[0100] Table 5 Inventory information change form
[0101]
[0102] After the inventory information is changed, the product batch attributes and inventory change completion results are generated and fed back to the merchant's client. The product batch attributes and inventory change completion results are shown in Table 6 below.
[0103] Table 6 Product batch attributes and inventory change completion results
[0104] Product Code Product grade Production date batch number Inventory quantity reserve position EMG0001 Good product July 30, 2023 GZ0001 100 Storage A EMG0001 Good product June 30, 2023 GZ0002 150 Storage B EMG0001 Good product June 30, 2023 GZ0003 50 Storage C
[0105] The commodity batch attribute and inventory change method of the present invention automatically counts the inventory of the changed commodity and performs inventory change when the commodity batch attribute is changed, thereby automatically completing the inventory change of the changed commodity when the commodity batch attribute is changed, providing a complete and continuous solution to commodity batch attribute and inventory change, solving the problem that commodity batch attribute change and inventory change cannot be performed synchronously, and reducing the links of manual statistics, communication and coordination; at the same time, inventory positioning and inventory information change are automatically performed after the commodity batch attribute is changed, reducing the manual operation cost of operators and improving the efficiency of commodity batch attribute and inventory change.
[0106] Figure 3 4 is a schematic diagram of main modules of a device for changing commodity batch attributes and inventory according to an embodiment of the present invention.
[0107] like Figure 3 As shown, the commodity batch attribute and inventory change device 300 of the embodiment of the present invention includes:
[0108] Confirmation module 301 is used to confirm the inventory quantity of the commodity with the attributes to be adjusted based on the batch attribute change request;
[0109] An acquisition module 302 is configured to acquire a batch attribute adjustment target value of the commodity with the attribute to be adjusted in response to the inventory quantity of the commodity with the attribute to be adjusted being greater than zero;
[0110] A changing module 303 is configured to change the batch attributes based on the batch attribute adjustment target value;
[0111] The adjustment module 304 is configured to locate the inventory of the changed product and adjust the inventory of the changed product based on the inventory location result.
[0112] In an optional embodiment of the present invention, the confirmation module 301 is further used to: receive a batch attribute change request initiated by a merchant; the batch attribute change request includes a code of a commodity with attributes to be adjusted; and confirm the inventory quantity of the commodity with attributes to be adjusted based on the code of the commodity with attributes to be adjusted.
[0113] In an optional embodiment of the present invention, the batch attribute change request further includes: a merchant code; the acquisition module 302 further includes: in response to the inventory quantity of the above-mentioned attribute-to-be-adjusted commodity being greater than zero, acquiring the current batch attribute of the above-mentioned attribute-to-be-adjusted commodity; generating an inventory result set of the attribute-to-be-adjusted commodity based on the attribute-to-be-adjusted commodity code, the current batch attribute and the inventory quantity; and acquiring the batch attribute adjustment target value and adjustment quantity of the attribute-to-be-adjusted commodity based on the attribute-to-be-adjusted commodity inventory result set and the merchant code.
[0114] In an optional embodiment of the present invention, the changing module 303 is further configured to change the current batch attributes of the commodities with attributes to be adjusted based on the batch attribute adjustment target value, the adjustment quantity and the inventory result set of commodities with attributes to be adjusted.
[0115] In an optional embodiment of the present invention, the adjustment module 304 is further used to: in response to the completion of the batch attribute change, perform inventory location on the changed goods to obtain an inventory location result; and change the inventory information of the entire storage location goods based on the inventory location result.
[0116] In an optional embodiment of the present invention, the adjustment module 304 is further used to: in response to the absence of whole storage location goods or the presence of non-whole storage location goods after the inventory information of the whole storage location goods is changed, obtain the inventory quantity of the non-whole storage location goods; the non-whole storage location goods include goods that do not need to be changed and goods after batch attribute changes; compare the inventory quantities of the goods that do not need to be changed and the goods after batch attribute changes; and change the inventory information of the goods that do not need to be changed and the goods after batch attribute changes based on the comparison results.
[0117] In an optional embodiment of the present invention, the above-mentioned inventory information of the above-mentioned goods that do not need to be changed and the above-mentioned goods after the batch attribute change is changed is changed according to the comparison result, including: when the inventory quantity of the above-mentioned goods that do not need to be changed is greater than the inventory quantity of the above-mentioned goods after the batch attribute change, the inventory information of the above-mentioned goods that do not need to be changed is changed, and the goods after the batch attribute change are transferred and the inventory information is changed; when the inventory quantity of the above-mentioned goods that do not need to be changed is less than the inventory quantity of the above-mentioned goods after the batch attribute change, the inventory information of the goods after the batch attribute change is changed, and the goods after the batch attribute change are transferred and the inventory information is changed.
[0118] The commodity batch attribute and inventory change device of the present invention automatically counts the inventory of the changed commodities and performs inventory changes when the commodity batch attributes are changed, thereby automatically completing the inventory changes of the changed commodities when the commodity batch attributes are changed, providing a complete and continuous solution to the commodity batch attribute and inventory changes, solving the problem that the commodity batch attribute changes and inventory changes cannot be performed synchronously, and reducing the links of manual statistics, communication and coordination; at the same time, after the commodity batch attributes are changed, inventory positioning and inventory information changes are automatically performed, reducing the manual operation costs of operators and improving the efficiency of commodity batch attribute and inventory changes.
[0119] Figure 4 An exemplary system architecture 400 is shown to which the method or apparatus for changing commodity batch attributes and inventory according to an embodiment of the present invention may be applied.
[0120] like Figure 4 As shown, system architecture 400 may include terminal devices 401, 402, 403, a network 404, and a server 405. Network 404 is used to provide a medium for communication links between terminal devices 401, 402, 403 and server 405. Network 404 may include various connection types, such as wired or wireless communication links or fiber optic cables.
[0121] Users can use terminal devices 401, 402, and 403 to interact with server 405 via network 404 to receive or send data, etc. Terminal devices 401, 402, and 403 can be installed with various communication client applications, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc.
[0122] The terminal devices 401 , 402 , and 403 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.
[0123] Server 405 may be a server that provides various services, such as a backend management server that supports batch attribute change requests sent by users using terminal devices 401, 402, and 403. The backend management server may analyze and process acquired data such as inventory quantities and batch attribute adjustment target values, and feed back processing results (e.g., batch attribute change results, inventory adjustment results) to the terminal devices.
[0124] It should be noted that the commodity batch attribute and inventory change method provided in the embodiment of the present invention is generally executed by the server 405 , and accordingly, the commodity batch attribute and inventory change device is generally set in the server 405 .
[0125] It should be understood that Figure 4The number of terminal devices, networks and servers in the embodiment is merely illustrative. Any number of terminal devices, networks and servers may be provided as required.
[0126] Reference below Figure 5 , which shows a schematic structural diagram of a computer system 500 of a terminal device suitable for implementing an embodiment of the present invention. Figure 5 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0127] like Figure 5 As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage unit 508 into a random access memory (RAM) 503. Various programs and data required for the operation of the system 500 are also stored in the RAM 503. The CPU 501, ROM 502, and RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0128] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, and the like; an output section 507 including devices such as a cathode ray tube (CRT), a liquid crystal display (LCD), and a speaker; a storage section 508 including a hard disk; and a communication section 509 including a network interface card such as a LAN card or a modem. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory, is installed in the drive 510 as needed, so that computer programs read therefrom can be installed into the storage section 508 as needed.
[0129] In particular, according to the embodiments disclosed in the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program comprising program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 1309, and / or installed from a removable medium 1311. When the computer program is executed by the central processing unit (CPU) 1301, the above-mentioned functions defined in the system of the present invention are performed.
[0130] It should be noted that the computer-readable medium described in the present invention can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media can include, but are not limited to, an electrical connection having one or more conductors, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present invention, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. This propagated data signal can take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wireline, optical fiber cable, RF, or any suitable combination thereof.
[0131] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the above-mentioned module, program segment, or a part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0132] The modules described in the embodiments of the present invention may be implemented in software or hardware. The modules described may also be provided within a processor. For example, they may be described as comprising a batch attribute change request, an acquisition module, a change module, and an adjustment module. The names of these modules do not, in some cases, limit the modules themselves. For example, a confirmation module may be described as a "module for confirming inventory quantities of commodities with attributes to be adjusted based on a batch attribute change request."
[0133] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment, or may exist independently and not be incorporated into the device. The computer-readable medium carries one or more programs, which, when executed by the device, cause the device to: confirm the inventory quantity of a product with attributes to be adjusted based on a batch attribute change request; in response to the inventory quantity of the product with attributes to be adjusted being greater than zero, obtain a batch attribute adjustment target value for the product with attributes to be adjusted; perform a batch attribute change based on the batch attribute adjustment target value; locate the inventory of the changed product, and adjust the inventory of the changed product based on the inventory location result.
[0134] According to the technical solution of the embodiment of the present invention, by automatically counting the inventory of the changed goods and making inventory changes when the batch attributes of goods are changed, the inventory changes of the changed goods are automatically completed when the batch attributes of goods are changed, providing a complete and continuous solution to the changes in the batch attributes of goods and the inventory, solving the problem that the changes in the batch attributes of goods and the inventory changes cannot be executed synchronously, and reducing the links of manual statistics, communication and coordination; at the same time, inventory positioning and inventory information changes are automatically performed after the batch attributes of goods are changed, reducing the manual operation costs of operators and improving the efficiency of the changes in the batch attributes of goods and inventory.
[0135] The above specific embodiments do not limit the scope of protection of the present invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention are intended to be included within the scope of protection of the present invention.
Claims
1. A method for changing commodity batch attributes and inventory, characterized in that: include: Confirm inventory quantity of products with attributes to be adjusted based on batch attribute change requests; In response to the inventory quantity of the commodity with the attribute to be adjusted being greater than zero, obtaining a batch attribute adjustment target value of the commodity with the attribute to be adjusted; performing batch attribute changes based on the batch attribute adjustment target value; The inventory of the changed product is located, and the inventory of the changed product is adjusted based on the inventory location result.
2. The method for changing commodity batch attributes and inventory according to claim 1, characterized in that: The inventory quantity confirmation of the commodities with the attributes to be adjusted based on the batch attribute change request includes: Receive a batch attribute change request initiated by a merchant; the batch attribute change request includes a commodity code of the attribute to be adjusted; The inventory quantity of the commodity with the attribute to be adjusted is confirmed based on the commodity code with the attribute to be adjusted.
3. The method for changing commodity batch attributes and inventory according to claim 2, characterized in that: The batch attribute change request further includes: a merchant code; in response to the inventory quantity of the commodity with the attribute to be adjusted being greater than zero, obtaining the batch attribute adjustment target value of the commodity with the attribute to be adjusted includes: In response to the inventory quantity of the commodity with the attributes to be adjusted being greater than zero, obtaining the current batch attributes of the commodity with the attributes to be adjusted; Generate an inventory result set of the commodity with the attribute to be adjusted based on the commodity code with the attribute to be adjusted, the attribute of the current batch and the inventory quantity; The batch attribute adjustment target value and adjustment quantity of the attribute-to-be-adjusted commodity are obtained based on the inventory result set of the attribute-to-be-adjusted commodity and the merchant code.
4. The method for changing commodity batch attributes and inventory according to claim 3, characterized in that: The step of changing the batch attribute based on the batch attribute adjustment target value includes: The current batch attributes of the commodity with the attribute to be adjusted are changed based on the batch attribute adjustment target value, the adjustment quantity and the inventory result set of the commodity with the attribute to be adjusted.
5. The method for changing commodity batch attributes and inventory according to claim 1, characterized in that: The performing inventory locating of the changed product and adjusting the inventory of the changed product based on the inventory locating result includes: In response to the batch attribute change being completed, performing inventory locating on the changed product to obtain an inventory locating result; The inventory information of the entire storage location commodities is modified based on the inventory positioning result.
6. The method for changing commodity batch attributes and inventory according to claim 5, characterized in that: The performing inventory locating of the changed product and adjusting the inventory of the changed product based on the inventory locating result further includes: In response to the absence of the whole storage location commodity or the presence of non-whole storage location commodities after the inventory information of the whole storage location commodity is changed, obtaining the inventory quantity of the non-whole storage location commodities; the non-whole storage location commodities include commodities that do not need to be changed and commodities whose batch attributes have been changed; Comparing the inventory of the commodities that do not require change and the inventory of the commodities after the batch attributes are changed; The inventory information of the commodities that do not need to be changed and the commodities whose batch attributes have been changed are changed according to the comparison result.
7. The method for changing commodity batch attributes and inventory according to claim 6, characterized in that: The step of changing the inventory information of the commodities that do not need to be changed and the commodities whose batch attributes have been changed according to the comparison result includes: When the inventory of the goods that do not need to be changed is greater than the inventory of the goods after the batch attribute change, the inventory information of the goods that do not need to be changed is changed, and the goods after the batch attribute change are transferred to another warehouse and the inventory information is changed; When the inventory quantity of the commodities that do not need to be changed is less than the inventory quantity of the commodities after the batch attribute change, the inventory information of the commodities after the batch attribute change is changed, and the commodities that do not need to be changed are transferred to another warehouse and the inventory information is changed.
8. A device for changing the attributes and inventory of a commodity batch, characterized in that: include: Confirmation module, used to confirm the inventory quantity of the products with attributes to be adjusted based on the batch attribute change request; an acquisition module, configured to acquire a batch attribute adjustment target value of the commodity with the attribute to be adjusted in response to the inventory quantity of the commodity with the attribute to be adjusted being greater than zero; a changing module, configured to change the batch attribute based on the batch attribute adjustment target value; The adjustment module is used to locate the inventory of the changed product and adjust the inventory of the changed product based on the inventory location result.
9. An electronic device for commodity batch attributes and inventory changes, characterized in that include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.
10. A computer-readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.