Disclosure of Invention
Aiming at the problems in the prior art, the invention aims to provide a goods source shelf-leaving method, a system, equipment and a storage medium based on a goods source queue, which can ensure that the goods source is automatically removed from the shelf after being overdue by near-real-time automatic overdue operation of the goods source under the condition of using a more reasonable data structure and less machine resources, improve the throughput and high availability, further optimize the time delay and fault tolerance of a timing task, and ensure the real-time performance and the accuracy.
The embodiment of the invention provides a goods source shelf-off method based on a goods source queue, which comprises the following steps:
s101, setting a source queue and a deception queue;
s102, judging whether the goods source information is added into a goods source queue, if so, executing a step S103, and if not, executing a step S104;
s103, adding source information into the source queue, wherein the source information comprises an identification code representing a source and expiration time corresponding to the identification code;
s104, detecting the source queue, judging whether at least one source information in the source queue reaches the corresponding expiration time, if so, executing the step S105, and if not, returning to the step S102;
s105, reissuing the source information of the expiration time obtained from the source queue to the deception queue;
s106, the goods source corresponding to the shelf is released according to the identification code in the goods source information of the deception queue.
Preferably, in step S103, after the owner shelves the source on the e-commerce website, the source information is added to the source queue, and the expiration time is the off-shelf time of the source.
Preferably, in step S105, the source queue is sequentially issued to the deadlock queue according to the sequence of the expiration times.
Preferably, the expiration time is 24 hours.
The embodiment of the present invention further provides a source shelving system based on a source queue, which is used for implementing the source shelving method based on the source queue, and the source shelving system based on the source queue includes:
the queue establishing module is used for setting a source queue and a credit queue;
the first judgment module is used for judging whether the goods source information is added into the goods source queue, if so, the information adding module is executed, and if not, the second judgment module is executed;
the information adding module is used for adding the goods source information into the goods source queue, wherein the goods source information comprises an identification code representing the goods source and expiration time corresponding to the identification code;
the second judgment module is used for detecting the goods source queue and judging whether at least one piece of goods source information in the goods source queue reaches the corresponding expiration time, if so, the information issuing module is executed, and if not, the first judgment module is returned;
the information issuing module is used for re-issuing the goods source information with the expiration time obtained from the goods source queue to the decending credit queue;
and the goods source off-shelf module is used for off-shelf the corresponding goods source according to the identification code in the goods source information of the deadlock and trust queue.
Preferably, in the information adding module, after a shipper shelves a goods source on an e-commerce website, the goods source information is added to a goods source queue, and the expiration time is the off-shelf time of the goods source.
Preferably, in the information issuing module, the source queues are sequentially issued to the distrust queue according to the sequence of the expiration times.
Preferably, the expiration time is 24 hours.
The embodiment of the invention also provides a goods source shelving device based on the goods source queue, which comprises:
a processor;
a memory having stored therein executable instructions of the processor;
wherein the processor is configured to perform the steps of the sourcing queue-based method of depalletizing via execution of the executable instructions.
Embodiments of the present invention also provide a computer-readable storage medium for storing a program, where the program implements the steps of the above-mentioned sourcing queue-based method for shelving when executed.
The goods source shelf unloading method, the goods source shelf unloading system, the goods source shelf unloading equipment and the storage medium based on the goods source queue can ensure that the goods source is automatically unloaded after being overdue by near real-time automatic overdue operation under the conditions of using a more reasonable data structure and using fewer machine resources, improve the throughput and high availability, further optimize the time delay and fault tolerance of the timing task, and ensure the instantaneity and accuracy.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The same reference numerals in the drawings denote the same or similar structures, and thus their repetitive description will be omitted.
FIG. 1 is a flow chart of a source listing method based on a source queue according to the present invention. As shown in fig. 1, the method for getting off the shelf of the source of goods based on the source queue of the invention comprises the following steps:
s101, setting a source queue and a credit queue.
S102, judging whether the goods source information is added into the goods source queue, if so, executing a step S103, and if not, executing a step S104.
S103, adding source information into the source queue, wherein the source information comprises an identification code representing a source and expiration time corresponding to the identification code. In a preferred scheme, after a goods owner shelves a goods source on an e-commerce website, the goods source information is added into a goods source queue, and the expiration time is the off-shelf time of the goods source. In this embodiment, the expiration time is 24 hours, but not limited thereto.
S104, detecting the source queue, judging whether at least one source information in the source queue reaches the corresponding expiration time, if so, executing the step S105, and if not, returning to the step S102.
S105, the source information of the expiration time obtained from the source queue is redistributed to the deception queue. In a preferred scheme, the source queue is sequentially issued to the deceased credit queue according to the sequence of the expiration time.
S106, the goods source corresponding to the shelf is released according to the identification code in the goods source information of the deception queue.
The deadlock queue in the invention is called DLX for short, and Dead-Letter-Exchange. The present invention utilizes dead-line queues when a message becomes dead-line (dead message) in one queue, it can be reissued to another queue, which is the DLX. The condition for the message To become dead-end in this embodiment is that the TTL of the message is expired (Time-To-Live expiration Time). The blind message queue is also a normal queue, and is not different from general queues, it can be assigned on any queue, in fact, it is to set the attribute of a certain queue, when there is blind message in this queue, it will automatically reissue this message to the set queue, and then route to another queue, it can monitor the message in this queue to do corresponding processing.
Fig. 2 to 4 are schematic diagrams of an embodiment of the source shelving method based on the source queue according to the invention. As shown in fig. 2 to 4, the racking operation of the present invention for controlling a plurality of sources is used in one e-commerce web site: a source queue 10 and a credit queue 20 are provided. Adding a plurality of source information into the source queue 10, wherein the source information comprises an identification code representing a source and an expiration time corresponding to the identification code. After the goods owner shelves the goods sources on the e-commerce website, the goods source information is added into the goods source queue 10, and the expiration time is the off-shelf time of the goods sources. For example, in this embodiment, the source information added to the source queue 10 includes an identification code a representing a first type of source and an expiration time 48 hours corresponding to the identification code a, and an identification code B representing a second type of source and an expiration time 24 hours corresponding to the identification code B.
And detecting the source queue 10, after 24 hours, the expiration time (24 hours) corresponding to the identification code B expires, and reissuing the identification code B of the source information of the expiration time obtained from the source queue 10 to the deception queue 20. So as to get off the shelf corresponding to the second kind of source according to the identification code B in the source information of the credit line 20.
And detecting the source queue 10, after 24 hours, the expiration time (48 hours) corresponding to the identification code A expires, and reissuing the identification code A of the source information of the expiration time obtained from the source queue 10 to the deception queue 20. Therefore, the first kind of goods source corresponding to the shelf is taken down according to the identification code A in the goods source information of the confidence-loss queue 20.
The goods source shelf-leaving method based on the goods source queue can ensure that the goods source is automatically removed when the goods source is overdue by near real-time automatic overdue operation under the conditions of using a more reasonable data structure and using fewer machine resources, improves the throughput and the high availability, further optimizes the time delay and the fault tolerance of the timing task, and ensures the instantaneity and the accuracy.
Fig. 5 is a schematic diagram of a first embodiment of the source shelving method based on the source queue according to the invention. As shown in fig. 5, an embodiment of the present invention further provides a source shelving system based on a source queue, which is used to implement the above source shelving method based on a source queue, where the source shelving system 5 based on a source queue includes:
the queue establishing module 51 sets a source queue and a credit queue.
The first determining module 52 determines whether there is source information added to the source queue, if yes, the information adding module is executed, and if not, the second determining module is executed.
And the information adding module 53 is used for adding the source information into the source queue, wherein the source information comprises an identification code representing the source and the corresponding expiration time of the identification code.
The second determining module 54 detects the source queue, determines whether at least one source information in the source queue reaches the corresponding expiration time, if so, executes the information issuing module, and if not, returns to the first determining module.
And the information issuing module 55 is used for reissuing the source information of the expiration time obtained from the source queue to the deception queue.
And the goods source off-shelf module 56 is used for off-shelf the corresponding goods source according to the identification code in the goods source information of the deadlock and trust queue.
In a preferred scheme, in the information adding module, after a shipper shelves a goods source on an e-commerce website, the goods source information is added into a goods source queue, and the expiration time is the off-shelf time of the goods source.
In a preferred scheme, in the information issuing module, the source queues are sequentially issued to the deadlock queue according to the sequence of the expiration time.
In a preferred embodiment, the expiration time is 24 hours.
The goods source shelf system based on the goods source queue can ensure that the goods source is automatically shelved after being overdue by near real-time automatic overdue operation of the goods source under the conditions of using a more reasonable data structure and using less machine resources, improves the throughput and the high availability, further optimizes the time delay and the fault tolerance of the timing task, and ensures the instantaneity and the accuracy.
The embodiment of the invention also provides a goods source off-shelf device based on the goods source queue, which comprises a processor. A memory having stored therein executable instructions of the processor. Wherein the processor is configured to perform the steps of the sourcing queue-based sourcing off-shelf method via execution of the executable instructions.
As shown above, the embodiment can ensure that the automatic expiration operation of the source in near real time guarantees automatic off-shelf due to expiration of the source under the condition of using a more reasonable data structure and less machine resources, thereby improving throughput and high availability, further optimizing the time delay and fault tolerance of the timing task, and ensuring real-time performance and accuracy.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" platform.
Fig. 6 is a schematic structural diagram of the source shelving device based on the source queue. An electronic device 600 according to this embodiment of the invention is described below with reference to fig. 6. The electronic device 600 shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 6, the electronic device 600 is embodied in the form of a general purpose computing device. The components of the electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one memory unit 620, a bus 630 connecting the different platform components (including the memory unit 620 and the processing unit 610), a display unit 640, etc.
Wherein the storage unit stores program code executable by the processing unit 610 to cause the processing unit 610 to perform steps according to various exemplary embodiments of the present invention described in the above-mentioned electronic prescription flow processing method section of the present specification. For example, processing unit 610 may perform the steps as shown in fig. 1.
The storage unit 620 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM)6201 and/or a cache memory unit 6202, and may further include a read-only memory unit (ROM) 6203.
The memory unit 620 may also include a program/utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 630 may be one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 600, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 600 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 650. Also, the electronic device 600 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via the network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 via the bus 630. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage platforms, to name a few.
The embodiment of the invention also provides a computer readable storage medium for storing a program, and the steps of the goods source shelf-leaving method based on the goods source queue are realized when the program is executed. In some possible embodiments, the aspects of the present invention may also be implemented in the form of a program product comprising program code for causing a terminal device to perform the steps according to various exemplary embodiments of the present invention described in the above-mentioned electronic prescription flow processing method section of this specification, when the program product is run on the terminal device.
As shown above, the embodiment can ensure that the automatic expiration operation of the source in near real time guarantees automatic off-shelf due to expiration of the source under the condition of using a more reasonable data structure and less machine resources, thereby improving throughput and high availability, further optimizing the time delay and fault tolerance of the timing task, and ensuring real-time performance and accuracy.
Fig. 7 is a schematic structural diagram of a computer-readable storage medium of the present invention. Referring to fig. 7, a program product 800 for implementing the above method according to an embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in the present document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable storage medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable storage medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
In summary, the present invention provides a method, a system, a device, and a storage medium for automatically unloading a cargo source based on a cargo source queue, which can ensure that the cargo source is automatically unloaded after being expired in a near real-time manner, using a more reasonable data structure and using fewer machine resources, thereby improving throughput and high availability, further optimizing the delay and fault tolerance of a timing task, and ensuring real-time performance and accuracy.
The foregoing is a more detailed description of the invention in connection with specific preferred embodiments and it is not intended that the invention be limited to these specific details. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.