WO2017201969A1 - 商品库存的校验方法及校验系统 - Google Patents

商品库存的校验方法及校验系统 Download PDF

Info

Publication number
WO2017201969A1
WO2017201969A1 PCT/CN2016/104279 CN2016104279W WO2017201969A1 WO 2017201969 A1 WO2017201969 A1 WO 2017201969A1 CN 2016104279 W CN2016104279 W CN 2016104279W WO 2017201969 A1 WO2017201969 A1 WO 2017201969A1
Authority
WO
WIPO (PCT)
Prior art keywords
inventory
commodity
verified
verification
server
Prior art date
Application number
PCT/CN2016/104279
Other languages
English (en)
French (fr)
Inventor
李书磊
聂宏
Original Assignee
乐视控股(北京)有限公司
乐视电子商务(北京)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 乐视控股(北京)有限公司, 乐视电子商务(北京)有限公司 filed Critical 乐视控股(北京)有限公司
Publication of WO2017201969A1 publication Critical patent/WO2017201969A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • H04L67/5651Reducing the amount or size of exchanged application data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management

Definitions

  • the present patent application relates to the field of information processing technology, and in particular, to a method and a verification system for verifying commodity inventory.
  • the information of each commodity in the electronic mall cannot be separated from the support of a powerful background processing system.
  • the back-end processing system needs to periodically check whether the inventory of each commodity is insufficient. When the inventory is insufficient, the merchant should be reminded to replenish the goods in time.
  • the background processing system includes a task server and a storage server.
  • the storage server stores the inventory of each commodity, and updates the inventory of each commodity in real time according to the operation such as order revocation; wherein, the inventory of each commodity is an independent inventory file.
  • the task server maintains network communication with the storage server, and the task server periodically acquires the inventory of each commodity from the storage server, and verifies the inventory of each commodity.
  • the task server acquires the inventory file of the first commodity from the storage server, and reads the inventory file for inventory verification; after the verification is completed, acquires the inventory file of the second commodity, and reads the inventory file.
  • To perform inventory verification after the verification is completed, obtain the inventory file of the third commodity, and read the inventory file for inventory verification; ... and so on; that is, only one inventory file of each commodity is acquired at a time. After the test, obtain the inventory file of another product.
  • the network transmission times of each check is large, the network transmission load is large, and it is easy to cause the verification failure or the verification error due to the network.
  • the purpose of some embodiments of the present invention is to provide a method and a verification system for verifying commodity inventory, which can reduce the problem of large network transmission burden in inventory verification, thereby effectively avoiding verification failure or verification due to network reasons. A mistake has occurred.
  • an embodiment of the present invention provides a method for verifying a commodity inventory, which is applied to a verification system of a commodity inventory including a task server and a storage server; and the verification method of the commodity inventory includes: The task server sends the current verification request to the storage server; the storage server acquires the inventory of each commodity to be verified according to the current verification request; the storage server is configured according to the inventory of the goods to be verified. Generating commodity inventory feedback information, and feeding back the commodity inventory feedback information to the task server; the task server verifying the inventory of each of the to-be-checked commodities according to the commodity inventory feedback information.
  • An embodiment of the present invention further provides a verification system for a commodity inventory, comprising: a task server and a storage server; the storage server is configured to store an inventory of each commodity to be verified; the task server is configured to use the school The storage request is sent to the storage server; the storage server is further configured to acquire an inventory of each commodity to be verified according to the current verification request, and generate commodity inventory feedback information according to the inventory of the commodity to be verified. Then, the commodity inventory feedback information is fed back to the task server; the task server is further configured to verify the inventory of each of the to-be-checked commodities according to the commodity inventory feedback information.
  • Embodiments of the present invention also provide a non-volatile computer storage medium for use in a verification system including a merchandise inventory of a task server and a storage server, the non-volatile computer storage medium storing computer-executable instructions,
  • the computer executable instructions are set to: the task server sends the current verification request to the storage server; the storage server is according to the current school Acquiring to obtain an inventory of each commodity to be verified; the storage server generates commodity inventory feedback information according to the inventory of each commodity to be verified, and feeds back the commodity inventory feedback information to the task server; the task server And verifying the inventory of the goods to be verified according to the commodity inventory feedback information.
  • Embodiments of the present invention also provide a non-volatile computer storage medium, a computer program, applied to a verification system of a commodity inventory including a task server and a storage server, the computer program capable of: the task server will be this time
  • the verification request is sent to the storage server; the storage server acquires an inventory of each commodity to be verified according to the current verification request; and the storage server generates commodity inventory feedback information according to the inventory of each commodity to be verified. And feeding back the commodity inventory feedback information to the task server; the task server is configured to verify the inventory of the goods to be verified according to the commodity inventory feedback information.
  • the storage server feeds back the inventory of each item to be verified to the task server at the same time in each inventory check; that is, the storage server and the task server are each time the inventory is verified. Only one inventory data transfer is required between each time; thus, the network transmission load in the inventory verification can be reduced, thereby effectively avoiding the occurrence of verification failure or verification error due to network reasons.
  • the current verification request includes the items to be verified. Therefore, inventory verification of specified products can be performed as needed.
  • the merchandise inventory feedback information is represented in the form of a look-up table. That is, the inventory of each commodity that the storage server feeds back to the task server is not the original inventory file in the prior art, but a comparison table of the goods and the inventory that has been sorted; compared with the inventory file that directly transfers each commodity, the transmission comparison
  • the table can reduce the amount of data transmitted by the network, further reducing the network transmission burden; at the same time, because the amount of data transmitted is reduced, the probability of error can be further reduced.
  • each of the items to be verified satisfies the condition that the inventory update time of each item to be verified is later than the last verification time. That is, each time the inventory is verified, it can be only the last time After the verification, the updated items of the inventory are verified, and it is not necessary to check all the items in order; thereby, the inventory verification speed of the goods can be accelerated, and the processing load of the task server can be reduced.
  • FIG. 1 is a flow chart showing a method of verifying a stock of goods according to a first embodiment of the present invention
  • FIG. 2 is a flow chart showing a method of verifying a stock of goods according to a second embodiment of the present invention
  • Figure 3 is a block diagram of a verification system for a merchandise inventory in accordance with a third embodiment of the present invention.
  • a first embodiment of the present invention relates to a method for verifying a merchandise inventory, which is applied to a merchandise inventory verification system, the merchandise inventory verification system including a task server and a storage server, and the task server and the storage server maintain network communication.
  • the storage server stores the inventory of each commodity, and the storage server can update the inventory of each commodity in time according to the order of the consumer, the return of the order, etc.; the task needs to periodically check the inventory of each commodity to determine whether there is an insufficient stock. And promptly remind the merchant to replenish the goods; inventory verification, for example, once a day.
  • FIG. 1 a flow chart of a method for verifying a commodity inventory according to a first embodiment of the present invention The body steps are described below.
  • Step 101 The task server sends the current verification request to the storage server.
  • the task server may periodically receive the verification request from the outside, or the task server may periodically generate the verification request; and send the verification request to the storage server; the timing period is, for example, one day.
  • the verification request is received from the outside or generated by itself, the verification request is sent to the storage server.
  • Step 102 The storage server acquires the inventory of each item to be verified according to the current verification request.
  • the inventory of each commodity to be verified is stored in the storage server, and the inventory of each commodity is substantially an independent inventory file; after the inventory file of each commodity needs to be opened, the inventory value of each commodity can be read.
  • the verification request may not include the current verification product.
  • the storage server considers that the current product to be verified is all the commodities stored in the storage server, that is, the inventory file of all the commodities is obtained.
  • the verification request may include each item to be verified; at this time, the storage server identifies each item to be verified from the verification request, and obtains each item to be verified from all the items. Inventory file; that is, the task server can perform inventory verification on specified items as needed.
  • Step 103 The storage server generates commodity inventory feedback information according to the inventory of each commodity to be verified, and feeds back the commodity inventory feedback information to the task server.
  • the storage server integrates the acquired inventory files of the respective commodities, for example, generates a compressed package and feeds back to the task server.
  • the commodity inventory feedback letter in this embodiment is represented in the form of a comparison table.
  • the storage server reads the inventory file of each commodity to obtain the inventory value of each commodity; and establishes a commodity-inventory value comparison table for each commodity and the inventory value of each commodity; and then, the commodity-inventory value comparison table Feedback to the task server.
  • the storage server transmits the commodity-inventory value comparison table to reduce the amount of data transmitted by the network compared with the inventory file for transmitting each commodity, thereby further reducing the network transmission burden; As the amount of data transferred is reduced, the probability of error can be further reduced.
  • Step 104 The task server checks the inventory of each commodity to be verified according to the commodity inventory feedback information.
  • the task server reads the stock file of each commodity to obtain the stock value of each commodity. If the commodity inventory feedback information is the commodity-inventory value comparison table, the task server directly obtains the inventory value of each commodity from the commodity-inventory value comparison table.
  • the specific verification method is as follows: the inventory threshold is preset in the task server; the task server compares the acquired inventory value of each commodity with a preset inventory threshold; if the inventory value of an commodity is less than the inventory threshold, it indicates the commodity Insufficient inventory; thus, the task server will generate a prompt message to inform the relevant personnel to replenish in time.
  • the storage server feeds back the inventory of each item to be verified to the task server at the same time in each inventory check; that is, the storage server and the task server are each time the inventory is verified. Only one inventory data transfer is required between each time; thus, the network transmission load in the inventory verification can be reduced, thereby effectively avoiding the occurrence of verification failure or verification error due to network reasons.
  • a second embodiment of the present invention relates to a method of verifying a stock of goods.
  • the second embodiment is substantially the same as the first embodiment.
  • the main difference is that, in the first embodiment, each item to be verified is all items stored in the storage server, or each item included in the verification request. Check the goods.
  • each item to be verified satisfies the following condition: the inventory update time of each item to be verified is later than the last verification time. That is, each time the inventory is verified, it is possible to check only the items that have been updated after the last verification, without having to verify all the items in order; thereby speeding up the inventory verification speed of the goods and reducing the task The processing load of the server.
  • FIG. 2 it is a flowchart of a method for verifying a product inventory according to a second embodiment of the present invention; wherein, step 201 and steps 203-204 respectively correspond to the steps in the first embodiment; Step 202 in the example is different from step 102 in the first embodiment.
  • Step 202 The storage server acquires the goods whose inventory update time is later than the last verification time as the inventory of each item to be verified according to the current verification request.
  • the storage server updates the inventory of each item in time according to the operation information such as the user order and the return order, and records the inventory update time.
  • the storage server receives the verification request, the inventory update time of each product is compared with the last verification time of the record, and the goods whose inventory update time is later than the last verification time are obtained as each to be verified. Inventory of goods.
  • the inventory update time of the product is later than the last verification time, which can be understood as: the order is placed and the refund is made by the consumer within one timing period after the last verification is completed until the start of the verification. Or the replenishment of the merchant, etc., causes the inventory of the merchandise to change. Conversely, if the item is updated earlier than the item at the last verification time, it indicates that the item has been verified at the time of the last inventory check, and the stock of the item is checked after the last verification. No changes have taken place.
  • the storage server may also preset a verification temporary storage area, and temporarily store the goods whose inventory update time is later than the last verification time in the verification temporary storage area, thereby facilitating the subsequent storage server to directly from the verification.
  • the temporary storage area obtains each item to be verified and its inventory. In this way, it is possible to avoid the need to compare the inventory update timings of the respective commodities one by one in order to obtain the respective products to be verified; thus, the inventory verification can be accelerated. Further, after the verification is completed, the products in the verification temporary storage area are also cleared. That is, the check buffer area stores only the items that need to be verified next; thus, the check buffer area can occupy a small storage space and be reused.
  • a third embodiment of the present invention relates to a commodity inventory verification system, as shown in FIG. 3, comprising: a task server and a storage server.
  • the storage server includes a first processor and a first memory, and the first memory is configured to store an inventory of each item to be verified.
  • the task server includes a second processor and a second memory, and the second processor is configured to send the current verification request to the first processor of the storage server.
  • the current verification request may include the items to be verified.
  • the first processor of the storage server is configured to acquire an inventory of each commodity to be verified according to the current verification request.
  • the first memory stores an inventory of each item to be verified, and the inventory of each item is substantially an independent inventory file.
  • the first processor considers that the current item to be verified is all the items stored in the first memory, that is, the inventory file of all the items is obtained.
  • the first processor identifies each item to be verified from the verification request, and obtains an inventory file of each item to be verified from all the items.
  • the first processor is further configured to generate commodity inventory feedback information according to the inventory of each of the commodities to be verified, and then feed back the commodity inventory feedback information to the task server. That is, the first processor is configured to integrate the acquired inventory files of the respective commodities, for example, generate a compressed package and feed back to the task server.
  • the commodity inventory feedback letter in this embodiment is represented in the form of a comparison table.
  • the first processor is configured to read an inventory file of each commodity to obtain an inventory value of each commodity, and establish a commodity-inventory value comparison table for each commodity and an inventory value of each commodity; then, the first processor will The item-inventory value comparison table is fed back to the task server.
  • the second processor of the task server is configured to: according to the commodity inventory feedback information The inventory of each commodity to be inspected is verified, that is, the second processor stores the acquired commodity inventory feedback information in the second memory, and then obtains the inventory of each commodity from the commodity inventory feedback information, and performs verification.
  • the storage server feeds back the inventory of each item to be verified to the task server at the same time in each inventory check; that is, the storage server and the task server are each time the inventory is verified. Only one inventory data transfer is required between each time; thus, the network transmission load in the inventory verification can be reduced, thereby effectively avoiding the occurrence of verification failure or verification error due to network reasons.
  • the embodiment is a system embodiment corresponding to the first embodiment, and the embodiment can be implemented in cooperation with the first embodiment.
  • the related technical details mentioned in the first embodiment are still effective in this embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related art details mentioned in the embodiment can also be applied to the first embodiment.
  • each module involved in this embodiment is a logic module.
  • a logical unit may be a physical unit, a part of a physical unit, or multiple physical entities. A combination of units is implemented.
  • the unit which is not closely related to solving the technical problem proposed by the present invention is not introduced in this embodiment, but this does not mean that there are no other units in this embodiment.
  • a fourth embodiment of the present invention relates to a verification system for a merchandise inventory, please refer to FIG.
  • the fourth embodiment is substantially the same as the third embodiment.
  • the first processor of the storage server is configured to acquire the inventory of each item to be verified according to the current verification request.
  • the first processor of the storage server compares the inventory update time of each product with the last verification time, and acquires the goods whose inventory update time is later than the last verification time as the respective items. Verify the inventory of the item.
  • the first processor updates the inventory of each commodity in time according to the operation information such as the user order and the refund, and records the inventory update time.
  • the first processor receives the verification request
  • the inventory update time of each item is compared with the last check time of the record, the item whose inventory update time is later than the last check time is acquired as the stock of each item to be verified.
  • the inventory update time of the product is later than the last verification time, which can be understood as: the order is placed and the refund is made by the consumer within a timing period after the last verification is completed until the start of the verification. Or the replenishment of the merchant, etc., causes the inventory of the merchandise to change. Conversely, if the inventory update time of the product is earlier than the last verification time, it indicates that the product has been verified at the time of the last inventory verification, and after the last verification, the inventory of the product is not Has changed.
  • the first memory of the storage server presets the verification temporary storage area and the main storage, and copies the goods whose inventory update time is later than the last verification time from the main storage area to the verification temporary storage area, thereby
  • the first processor that facilitates the storage server obtains each item to be verified and its inventory directly from the check buffer area. In this way, it is possible to avoid the need to compare the inventory update timings of the respective commodities one by one in order to obtain the respective products to be verified; thus, the inventory verification can be accelerated. Further, after the verification is completed, the products in the verification temporary storage area are also cleared. That is, the check buffer area stores only the items that need to be verified next; thus, the check buffer area can occupy a small storage space and be reused.
  • the present embodiment can be implemented in cooperation with the second embodiment.
  • the technical details mentioned in the second embodiment are still effective in this embodiment, and the technical effects that can be achieved in the second embodiment can also be implemented in the embodiment. To reduce the repetition, details are not described herein again. Accordingly, the related art details mentioned in the embodiment can also be applied to the second embodiment.
  • a fifth embodiment of the present invention relates to a non-volatile computer storage medium applied to a verification system including a commodity inventory of a task server and a storage server, the computer executable instructions being executable A method of verifying the inventory of goods in any of the method embodiments.
  • the storage server feeds back the inventory of each item to be verified to the task server at the same time in each inventory check; that is, the storage server and the task server are each time the inventory is verified. Only one inventory data transfer is required between each time; thus, the network transmission load in the inventory verification can be reduced, thereby effectively avoiding the occurrence of verification failure or verification error due to network reasons.
  • a sixth embodiment of the present invention relates to a computer program, which is applied to a verification system for a commodity inventory including a task server and a storage server, the computer program being capable of executing an instruction to implement a method for verifying a commodity inventory in any of the above method embodiments .
  • the storage server feeds back the inventory of each item to be verified to the task server at the same time in each inventory check; that is, the storage server and the task server are each time the inventory is verified. Only one inventory data transfer is required between each time; thus, the network transmission load in the inventory verification can be reduced, thereby effectively avoiding the occurrence of verification failure or verification error due to network reasons.
  • a program instructing related hardware may be completed by a program instructing related hardware, and the program is stored in a storage medium, and includes a plurality of instructions for making a device (which may be a single chip microcomputer). , a chip, etc. or a processor performs all or part of the steps of the methods described in various embodiments of the present application.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Quality & Reliability (AREA)
  • Signal Processing (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Human Resources & Organizations (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Operations Research (AREA)
  • Development Economics (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本发明实施例涉及信息处理技术领域,公开了一种商品库存的校验方法及校验系统。本发明中,商品库存的校验方法包括:任务服务器将本次校验请求发送至存储服务器;所述存储服务器根据所述本次校验请求获取各待校验商品的库存;所述存储服务器根据所述各待校验商品的库存生成商品库存反馈信息,并将所述商品库存反馈信息反馈至所述任务服务器;所述任务服务器根据所述商品库存反馈信息对所述各待校验商品的库存进行校验。本发明还提供一种商品库存的校验系统,包括任务服务器与存储服务器。本发明实施例的技术方案,能够减少库存校验中的网络传输负担较多的问题,从而有效避免由于网络原因导致校验失败或校验有误的情况发生。

Description

商品库存的校验方法及校验系统
交叉引用
本申请要求在2016年5月25日提交中国专利局、申请号为2016103565667、发明名称为“商品库存的校验方法及校验系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本专利申请涉及信息处理技术领域,特别涉及一种商品库存的校验方法及校验系统。
背景技术
电子商城中的各商品的信息,离不开强大的后台处理系统的支持。商品库存作为重要的商品信息,后台处理系统需要定时校验各商品的库存是否不足,当库存不足时则要及时提醒商家补货。
后台处理系统包括任务服务器与存储服务器。存储服务器储存有各商品的库存,且会根据退订货等操作实时更新各商品的库存;其中,各商品的库存为独立的一个库存文件。任务服务器与存储服务器保持网络通信,任务服务器定时从存储服务器获取各商品的库存,并对各商品的库存进行校验。
具体实现方式如下:任务服务器从存储服务器获取第一个商品的库存文件,并读取库存文件以进行库存校验;校验完毕后,再获取第二个商品的库存文件,并读取库存文件以进行库存校验;校验完毕后,再获取第三个商品的库存文件,并读取库存文件以进行库存校验;……依次类推;即,每次只获取一个商品的库存文件,校验完后再获取另一个商品的库存文件。上述方 式中,由于每次校验的网络传输次数较多,因此网络传输负担较多,且很容易由于网络原因导致校验失败或校验有误。
发明内容
本发明部分实施例的目的在于提供一种商品库存的校验方法及校验系统,能够减少库存校验中的网络传输负担较多的问题,从而有效避免由于网络原因导致校验失败或校验有误的情况发生。
为解决上述技术问题,本发明的实施例提供了一种商品库存的校验方法,应用于包括任务服务器与存储服务器的商品库存的校验系统;所述商品库存的校验方法包括:所述任务服务器将本次校验请求发送至所述存储服务器;所述存储服务器根据所述本次校验请求获取各待校验商品的库存;所述存储服务器根据所述各待校验商品的库存生成商品库存反馈信息,并将所述商品库存反馈信息反馈至所述任务服务器;所述任务服务器根据所述商品库存反馈信息对所述各待校验商品的库存进行校验。
本发明的实施例还提供了一种商品库存的校验系统,包括:任务服务器与存储服务器;所述存储服务器用于储存各待校验商品的库存;所述任务服务器用于将本次校验请求发送至所述存储服务器;所述存储服务器还用于根据所述本次校验请求获取各待校验商品的库存,并根据所述各待校验商品的库存生成商品库存反馈信息,然后将所述商品库存反馈信息反馈至所述任务服务器;所述任务服务器还用于根据所述商品库存反馈信息对所述各待校验商品的库存进行校验。
本发明的实施例还提供了一种非易失性计算机存储介质,应用于包括任务服务器与存储服务器的商品库存的校验系统,所述非易失性计算机存储介质存储有计算机可执行指令,所述计算机可执行指令设置为:所述任务服务器将本次校验请求发送至所述存储服务器;所述存储服务器根据所述本次校 验请求获取各待校验商品的库存;所述存储服务器根据所述各待校验商品的库存生成商品库存反馈信息,并将所述商品库存反馈信息反馈至所述任务服务器;所述任务服务器根据所述商品库存反馈信息对所述各待校验商品的库存进行校验。
本发明的实施例还提供了一种非易失性计算机存储介质,计算机程序,应用于包括任务服务器与存储服务器的商品库存的校验系统,所述计算机程序能够:所述任务服务器将本次校验请求发送至所述存储服务器;所述存储服务器根据所述本次校验请求获取各待校验商品的库存;所述存储服务器根据所述各待校验商品的库存生成商品库存反馈信息,并将所述商品库存反馈信息反馈至所述任务服务器;所述任务服务器根据所述商品库存反馈信息对所述各待校验商品的库存进行校验。
本发明实施例相对于现有技术而言,在每次库存校验时,存储服务器将各待校验商品的库存同时反馈至任务服务器;即,每次库存校验时存储服务器与任务服务器之间只需一次库存数据传输;从而,能够减少库存校验中的网络传输负担较多,从而有效避免由于网络原因导致校验失败或校验有误的情况发生。
在一个实施例中,所述本次校验请求包括所述各待校验商品。因此,可以根据需要对指定商品进行库存校验。
在一个实施例中,所述商品库存反馈信息以对照表形式表示。即,存储服务器反馈至任务服务器的各商品的库存并非现有技术中的原始的库存文件,而是已经整理过的商品与库存的对照表;与直接传输各商品的库存文件相比,传输对照表可以减少网络传输的数据量,进一步减少了网络传输负担;同时,由于传输的数据量减少了,还能进一步降低出错概率。
在一个实施例中,所述各待校验商品满足如下条件:所述各待校验商品的库存更新时刻晚于上次校验时刻。即,每次库存校验时,可以只对在上次 校验后库存更新过的商品进行校验,而不必对所有商品依次校验;从而可以加快商品的库存校验速度,且可以减轻任务服务器的处理负担。
附图说明
附图是用来提供对本发明的进一步理解,并且构成说明书的一部分,与下面的具体例子一起用于解释本发明,但并不构成对本发明的限制。在附图中:
图1是根据本发明第一实施例的商品库存的校验方法的流程图;
图2是根据本发明第二实施例的商品库存的校验方法的流程图;
图3是根据本发明第三实施例的商品库存的校验系统的方框图。
具体实施例
为使本发明部分实施例的目的、技术方案和优点更加清楚,下面将结合附图对本发明的各实施例进行详细的阐述。然而,本领域的普通技术人员可以理解,在本发明各实施例中,为了使读者更好地理解本申请而提出了许多技术细节。但是,即使没有这些技术细节和基于以下各实施例的种种变化和修改,也可以实现本申请所要求保护的技术方案。
本发明的第一实施例涉及一种商品库存的校验方法,应用于商品库存的校验系统,该商品库存的校验系统包括任务服务器与存储服务器,任务服务器与存储服务器保持网络通信。存储服务器内储存有各商品的库存,并且,存储服务器可以根据消费者的下单、退单等操作及时更新各商品的库存;任务需要定时校验各商品的库存,判断是否存在库存不足的商品,并及时提醒商家补货;库存校验例如每天校验一次。
如图1所示,为本发明第一实施例的商品库存的校验方法的流程图,具 体步骤说明如下。
步骤101:任务服务器将本次校验请求发送至存储服务器。
其中,任务服务器可以定时从外部接收校验请求,或者任务服务器自己定时产生校验请求;并将校验请求发送至存储服务器;定时周期例如为1天。当从外部接收到或者自己产生本次校验请求时,将本次校验请求发送至存储服务器。
步骤102:存储服务器根据本次校验请求获取各待校验商品的库存。
其中,存储服务器内储存有各待校验商品的库存,且各商品的库存实质上为独立的一个库存文件;各商品的库存文件需要被打开后,各商品的库存值才能被读取。
其中,本次校验请求中可以不包括本次校验商品,此时存储服务器会认为本次的待校验商品为存储服务器中储存的所有商品,即获取所有商品的库存文件。或者,本次校验请求中也可以包括各待校验商品;此时,存储服务器会从本次校验请求中识别出各待校验商品,并从所有商品中获取各待校验商品的库存文件;即,任务服务器可以根据需要对指定商品进行库存校验。
步骤103:存储服务器根据各待校验商品的库存生成商品库存反馈信息,并将商品库存反馈信息反馈至任务服务器。
即,存储服务器将获取的各商品的库存文件整合在一起,例如生成一个压缩包,反馈至任务服务器。
较佳的,本实施例中的商品库存反馈信以对照表形式表示。具体而言,存储服务器读取各商品的库存文件,以获取各商品的库存值;并将各商品与各商品的库存值建立商品-库存值对照表;然后,将该商品-库存值对照表反馈至任务服务器。存储服务器传输该商品-库存值对照表与传输各商品的库存文件相比,能够减少网络传输的数据量,进一步减少了网络传输负担;同时, 由于传输的数据量减少了,还能进一步降低出错概率。
步骤104:任务服务器根据商品库存反馈信息对各待校验商品的库存进行校验。
具体而言,当接收到的商品库存反馈信息是各商品的库存文件的集合时,任务服务器读取各商品的库存文件以获取各商品的库存值。若接收到商品库存反馈信息是商品-库存值对照表时,任务服务器直接从商品-库存值对照表中获取各商品的库存值。
具体校验方式如下:任务服务器内预设有库存阈值;任务服务器将获取的各商品的库存值与预设的库存阈值进行比较;若某个商品的库存值小于库存阈值,则表示该商品的库存不足;从而,任务服务器会产生提示信息,以通知相关人员及时补货。
本发明实施例相对于现有技术而言,在每次库存校验时,存储服务器将各待校验商品的库存同时反馈至任务服务器;即,每次库存校验时存储服务器与任务服务器之间只需一次库存数据传输;从而,能够减少库存校验中的网络传输负担较多,从而有效避免由于网络原因导致校验失败或校验有误的情况发生。
本发明的第二实施例涉及一种商品库存的校验方法。第二实施例与第一实施例大致相同,主要区别之处在于:在第一实施例中,各待校验商品为存储服务器内储存的所有商品,或者本次校验请求中包括的各待校验商品。而在本发明第二实施例中,各待校验商品满足如下条件:各待校验商品的库存更新时刻晚于上次校验时刻。即,每次库存校验时,可以只对在上次校验后库存更新过的商品进行校验,而不必对所有商品依次校验;从而可以加快商品的库存校验速度,且可以减轻任务服务器的处理负担。
如图2所示,为本发明第二实施例的商品库存的校验方法的流程图;其中,步骤201、步骤203~204与第一实施例中的步骤分别对应相同;本实施 例中的步骤202与第一实施例中的步骤102不同。
步骤202:存储服务器根据本次校验请求,获取库存更新时刻晚于上次校验时刻的商品作为各待校验商品的库存。
具体而言,存储服务器会根据用户订单、退单等操作信息对各商品的库存进行及时更新,并记录库存更新时刻。当存储服务器接收到本次校验请求时,会将各商品的库存更新时刻与记录的上次校验时刻进行比较,并获取库存更新时刻晚于上次校验时刻的商品作为各待校验商品的库存。
其中,商品的库存更新时刻晚于所述上次校验时刻,可以理解为,在上次校验完毕后到本次校验开始时的一个定时周期内,由于消费者的下单、退单或者商家的补货等操作导致该商品的库存发生改变。相反的,若商品的取库存更新时刻早于所述上次校验时刻的商品,表示该商品在上次库存校验时已经被校验过,且上次校验完毕后,该商品的库存没有发生过变化。
因此,在本次校验中,仅对库存更新时刻晚于所述上次校验时刻的商品进行校验,可以避免上次校验完毕后没有发生库存变化的商品被重复校验;从而,使得商品库存的校验更加快速,且减轻了处理负担;避免由于商品种类的不断增多而导致的处理速度减慢与处理负担增加的问题。
较佳的,存储服务器内还可以预设校验暂存区,将获取库存更新时刻晚于上次校验时刻的商品暂存在校验暂存区内,从而便于后续存储服务器直接从该校验暂存区获取各待校验商品及其库存。这样,能够避免需要对各商品的库存更新时刻逐个比对才能获取所述的各待校验商品;从而可以加快库存校验。进一步的,在本次校验完毕后,还会清除校验暂存区中的商品。即,该校验暂存区仅储存接下来需要校验的商品;从而可以使得校验暂存区占用较小的存储空间,并重复使用。
上面各种方法的步骤划分,只是为了描述清楚,实现时可以合并为一个步骤或者对某些步骤进行拆分,分解为多个步骤,只要包括相同的逻辑关系, 都在本专利的保护范围内;对算法中或者流程中添加无关紧要的修改或者引入无关紧要的设计,但不改变其算法和流程的核心设计都在该专利的保护范围内。
本发明第三实施例涉及一种商品库存的校验系统,如图3所示,包括:任务服务器与存储服务器。
所述存储服务器包括第一处理器与第一存储器,所述第一存储器用于储存各待校验商品的库存。
所述任务服务器包括第二处理器与第二存储器,所述第二处理器用于将本次校验请求发送至所述存储服务器的第一处理器。其中,所述本次校验请求可以包括所述各待校验商品。
所述存储服务器的第一处理器用于根据所述本次校验请求获取各待校验商品的库存。其中,第一存储器内储存有各待校验商品的库存,且各商品的库存实质上为独立的一个库存文件。当本次校验请求中不包括本次校验商品时,第一处理器认为本次的待校验商品为第一存储器中储存的所有商品,即获取所有商品的库存文件。当本次校验请求中包括各待校验商品时,第一处理器从本次校验请求中识别出各待校验商品,并从所有商品中获取各待校验商品的库存文件。
第一处理器还用于根据所述各待校验商品的库存生成商品库存反馈信息,然后将所述商品库存反馈信息反馈至所述任务服务器。即,第一处理器用于将获取的各商品的库存文件整合在一起,例如生成一个压缩包,反馈至任务服务器。较佳的,本实施例中的商品库存反馈信以对照表形式表示。具体而言,第一处理器用于读取各商品的库存文件,以获取各商品的库存值,并将各商品与各商品的库存值建立商品-库存值对照表;然后,第一处理器将该商品-库存值对照表反馈至任务服务器。
所述任务服务器的第二处理器用于根据所述商品库存反馈信息对所述 各待校验商品的库存进行校验,即,第二处理器将获取的商品库存反馈信息存储在第二存储器中,然后从商品库存反馈信息中的获取各商品的库存,并进行校验。
本发明实施例相对于现有技术而言,在每次库存校验时,存储服务器将各待校验商品的库存同时反馈至任务服务器;即,每次库存校验时存储服务器与任务服务器之间只需一次库存数据传输;从而,能够减少库存校验中的网络传输负担较多,从而有效避免由于网络原因导致校验失败或校验有误的情况发生。
不难发现,本实施例为与第一实施例相对应的系统实施例,本实施例可与第一实施例互相配合实施。第一实施例中提到的相关技术细节在本实施例中依然有效,为了减少重复,这里不再赘述。相应地,本实施例中提到的相关技术细节也可应用在第一实施例中。
值得一提的是,本实施例中所涉及到的各模块均为逻辑模块,在实际应用中,一个逻辑单元可以是一个物理单元,也可以是一个物理单元的一部分,还可以以多个物理单元的组合实现。此外,为了突出本发明的创新部分,本实施例中并没有将与解决本发明所提出的技术问题关系不太密切的单元引入,但这并不表明本实施例中不存在其它的单元。
本发明第四实施例涉及一种商品库存的校验系统,请参考图3。第四实施例与第三实施例大致相同,主要区别之处在于:在第三实施例中,存储服务器的第一处理器用于根据所述本次校验请求获取各待校验商品的库存。而在本发明第四实施例中,存储服务器的第一处理器将各商品的库存更新时刻与上次校验时刻进行比较,并获取库存更新时刻晚于上次校验时刻的商品作为各待校验商品的库存。
具体而言,第一处理器会根据用户订单、退单等操作信息对各商品的库存进行及时更新,并记录库存更新时刻。当第一处理器接收到本次校验请求 时,会将各商品的库存更新时刻与记录的上次校验时刻进行比较,并获取库存更新时刻晚于上次校验时刻的商品作为各待校验商品的库存。
其中,商品的库存更新时刻晚于所述上次校验时刻,可以理解为,在上次校验完毕后到本次校验开始时的一个定时周期内,由于消费者的下单、退单或者商家的补货等操作导致该商品的库存发生改变。相反的,若商品的库存更新时刻早于所述上次校验时刻的商品,表示该商品在上次库存校验时已经被校验过,且上次校验完毕后,该商品的库存没有发生过变化。
即,每次库存校验时,可以只对在上次校验后库存更新过的商品进行校验,可以避免上次校验完毕后没有发生库存变化的商品被重复校验;从而,使得商品库存的校验更加快速,且减轻了处理负担;避免由于商品种类的不断增多而导致的处理速度减慢与处理负担增加的问题。
较佳的,存储服务器的第一存储器内预设校验暂存区与主存储器,将获取库存更新时刻晚于上次校验时刻的商品从主存储区复制到校验暂存区内,从而便于存储服务器的第一处理器直接从该校验暂存区获取各待校验商品及其库存。这样,能够避免需要对各商品的库存更新时刻逐个比对才能获取所述的各待校验商品;从而可以加快库存校验。进一步的,在本次校验完毕后,还会清除校验暂存区中的商品。即,该校验暂存区仅储存接下来需要校验的商品;从而可以使得校验暂存区占用较小的存储空间,并重复使用。
由于第二实施例与本实施例相互对应,因此本实施例可与第二实施例互相配合实施。第二实施例中提到的相关技术细节在本实施例中依然有效,在第二实施例中所能达到的技术效果在本实施例中也同样可以实现,为了减少重复,这里不再赘述。相应地,本实施例中提到的相关技术细节也可应用在第二实施例中。
本发明第五实施例涉及一种非易失性计算机存储介质,应用于包括任务服务器与存储服务器的商品库存的校验系统,该计算机可执行指令可执行上 述任意方法实施例中的商品库存的校验方法。
本发明实施例相对于现有技术而言,在每次库存校验时,存储服务器将各待校验商品的库存同时反馈至任务服务器;即,每次库存校验时存储服务器与任务服务器之间只需一次库存数据传输;从而,能够减少库存校验中的网络传输负担较多,从而有效避免由于网络原因导致校验失败或校验有误的情况发生。
本发明第六实施例涉及一种计算机程序,应用于包括任务服务器与存储服务器的商品库存的校验系统,所述计算机程序能够执行指令可实现上述任意方法实施例中的商品库存的校验方法。
本发明实施例相对于现有技术而言,在每次库存校验时,存储服务器将各待校验商品的库存同时反馈至任务服务器;即,每次库存校验时存储服务器与任务服务器之间只需一次库存数据传输;从而,能够减少库存校验中的网络传输负担较多,从而有效避免由于网络原因导致校验失败或校验有误的情况发生。
本领域技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
本领域的普通技术人员可以理解,上述各实施例是实现本发明的具体实施例,而在实际应用中,可以在形式上和细节上对其作各种改变,而不偏离本发明的精神和范围。

Claims (10)

  1. 一种商品库存的校验方法,应用于包括任务服务器与存储服务器的商品库存的校验系统,所述商品库存的校验方法包括:
    所述任务服务器将本次校验请求发送至所述存储服务器;
    所述存储服务器根据所述本次校验请求获取各待校验商品的库存;
    所述存储服务器根据所述各待校验商品的库存生成商品库存反馈信息,并将所述商品库存反馈信息反馈至所述任务服务器;
    所述任务服务器根据所述商品库存反馈信息对所述各待校验商品的库存进行校验。
  2. 根据权利要求1所述的商品库存的校验方法,其中,所述本次校验请求包括所述各待校验商品。
  3. 根据权利要求1或2所述的商品库存的校验方法,其中,所述商品库存反馈信息以对照表形式表示。
  4. 根据权利要求1至3中任意一项所述的商品库存的校验方法,其中,所述各待校验商品满足如下条件:所述各待校验商品的库存更新时刻晚于上次校验时刻。
  5. 一种商品库存的校验系统,包括:任务服务器与存储服务器;
    所述存储服务器用于储存各待校验商品的库存;
    所述任务服务器用于将本次校验请求发送至所述存储服务器;
    所述存储服务器还用于根据所述本次校验请求获取各待校验商品的库存,并根据所述各待校验商品的库存生成商品库存反馈信息,然后将所述商品库存反馈信息反馈至所述任务服务器;
    所述任务服务器还用于根据所述商品库存反馈信息对所述各待校验商 品的库存进行校验。
  6. 根据权利要求5所述的商品库存的校验系统,其中,所述本次校验请求包括所述各待校验商品。
  7. 根据权利要求5或6所述的商品库存的校验系统,其中,所述商品库存反馈信息以对照表形式表示。
  8. 根据权利要求5至7中任意一项所述的商品库存的校验系统,其中,所述各待校验商品满足如下条件:所述各待校验商品的库存更新时刻晚于上次校验时刻。
  9. 一种非易失性计算机存储介质,应用于包括任务服务器与存储服务器的商品库存的校验系统,所述非易失性计算机存储介质存储有计算机可执行指令,所述计算机可执行指令设置为:
    所述任务服务器将本次校验请求发送至所述存储服务器;
    所述存储服务器根据所述本次校验请求获取各待校验商品的库存;
    所述存储服务器根据所述各待校验商品的库存生成商品库存反馈信息,并将所述商品库存反馈信息反馈至所述任务服务器;
    所述任务服务器根据所述商品库存反馈信息对所述各待校验商品的库存进行校验。
  10. 一种计算机程序,应用于包括任务服务器与存储服务器的商品库存的校验系统,所述计算机程序能够:
    所述任务服务器将本次校验请求发送至所述存储服务器;
    所述存储服务器根据所述本次校验请求获取各待校验商品的库存;
    所述存储服务器根据所述各待校验商品的库存生成商品库存反馈信息,并将所述商品库存反馈信息反馈至所述任务服务器;
    所述任务服务器根据所述商品库存反馈信息对所述各待校验商品的库存进行校验。
PCT/CN2016/104279 2016-05-25 2016-11-01 商品库存的校验方法及校验系统 WO2017201969A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610356566.7 2016-05-25
CN201610356566.7A CN106060130A (zh) 2016-05-25 2016-05-25 商品库存的校验方法及校验系统

Publications (1)

Publication Number Publication Date
WO2017201969A1 true WO2017201969A1 (zh) 2017-11-30

Family

ID=57175887

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/104279 WO2017201969A1 (zh) 2016-05-25 2016-11-01 商品库存的校验方法及校验系统

Country Status (2)

Country Link
CN (1) CN106060130A (zh)
WO (1) WO2017201969A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108897615A (zh) * 2018-05-31 2018-11-27 康键信息技术(深圳)有限公司 秒杀请求处理方法、应用服务器集群及存储介质

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106060130A (zh) * 2016-05-25 2016-10-26 乐视控股(北京)有限公司 商品库存的校验方法及校验系统
CN107248052A (zh) * 2017-05-16 2017-10-13 上海艾融软件股份有限公司 一种商品库存信息确定方法、装置及系统
CN110539300B (zh) * 2018-05-29 2021-07-13 北京京东乾石科技有限公司 货物验收控制方法、装置和系统
CN109285049B (zh) * 2018-08-28 2022-06-21 北京三快在线科技有限公司 订单的校验方法、系统、电子设备及存储介质
CN112001768A (zh) * 2020-07-10 2020-11-27 苏宁云计算有限公司 基于机器人流程自动化的电商平台开店方法和装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7225144B2 (en) * 2000-07-12 2007-05-29 Fujitsu Limited Server device and recording medium for same
CN103034935A (zh) * 2012-11-30 2013-04-10 北京京东世纪贸易有限公司 一种用于实时盘点的装置及方法
CN103632241A (zh) * 2012-08-28 2014-03-12 纽海信息技术(上海)有限公司 仓库盘点方法及仓库盘点系统
CN106060130A (zh) * 2016-05-25 2016-10-26 乐视控股(北京)有限公司 商品库存的校验方法及校验系统

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102117432A (zh) * 2009-12-31 2011-07-06 上海巨服信息科技有限公司 通过手机的库存信息盘点方法
CN103295118A (zh) * 2013-05-31 2013-09-11 龙岩烟草工业有限责任公司 一种物料出入库的管理方法和系统
CN104616126A (zh) * 2013-11-04 2015-05-13 西安艾力特电子实业有限公司 一种基于大数据分析的新型商品库存数据系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7225144B2 (en) * 2000-07-12 2007-05-29 Fujitsu Limited Server device and recording medium for same
CN103632241A (zh) * 2012-08-28 2014-03-12 纽海信息技术(上海)有限公司 仓库盘点方法及仓库盘点系统
CN103034935A (zh) * 2012-11-30 2013-04-10 北京京东世纪贸易有限公司 一种用于实时盘点的装置及方法
CN106060130A (zh) * 2016-05-25 2016-10-26 乐视控股(北京)有限公司 商品库存的校验方法及校验系统

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108897615A (zh) * 2018-05-31 2018-11-27 康键信息技术(深圳)有限公司 秒杀请求处理方法、应用服务器集群及存储介质

Also Published As

Publication number Publication date
CN106060130A (zh) 2016-10-26

Similar Documents

Publication Publication Date Title
WO2017201969A1 (zh) 商品库存的校验方法及校验系统
CN110741342B (zh) 区块链交易提交排序
EP2998863B1 (en) Converting a serial transaction schedule to a parallel transaction schedule
WO2005055081A1 (en) Updating and maintaining data in a multi-system network using asynchronous message transfer
CN107656937B (zh) 用于实现读写数据一致性的方法和装置
US20060155595A1 (en) Method and apparatus of managing supply chain exceptions
CN109543455A (zh) 一种区块链的数据归档方法及装置
US20090144357A1 (en) Use of template messages to optimize a software messaging system
AU2010305653B2 (en) Delivery with reconciliation on client side
US20200379980A1 (en) Blockchain-based computing system and method for managing transaction thereof
WO2019047516A1 (zh) 信息输出方法和装置
CN104486407A (zh) 编号的生成方法及装置
US20180315002A1 (en) Coordinated delivery of items
CN110796545A (zh) 一种区块链交易的批处理方法、设备和存储介质
WO2020033553A1 (en) System and method for anomaly detection and deduplication of electronic data feeds
CN107291769A (zh) 处理并发订单的方法和装置
US7979470B2 (en) Data manipulation process method and system
WO2019033741A1 (zh) 投资产品的资源处理方法、装置、存储介质和计算机设备
US9043283B2 (en) Opportunistic database duplex operations
WO2023273563A1 (zh) 数据的校验方法、系统和边缘端设备
CN103368817A (zh) 电子邮件发送、接收方法及装置
CN111651284A (zh) 一种处理业务数据的方法、装置、系统及存储介质
CN110071968A (zh) 一种基于区块链的消息存储方法及装置
WO2017201968A1 (zh) 商品库存的校验方法及校验系统
JP6475852B2 (ja) サービスデータを処理するための方法、装置、および、システム

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16902953

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16902953

Country of ref document: EP

Kind code of ref document: A1