Cargo settlement method, device and storage medium for lockers
By generating and settlement tasks for the goods data of the locker and placing them in the queue for processing, the waiting problem caused by poor network environment is solved, the efficiency of the locker is improved, and users can obtain the settlement list in a timely manner.
Patent Information
- Application Number
- CN202010591420.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-24
- Publication Date
- 2024-12-13
- Estimated Expiration
- 2040-06-24
AI Technical Summary
When the network environment of the locker is poor, users need to wait for a settlement list to be generated, resulting in reduced efficiency of deliverymen and buyers.
Generate the settlement task by the goods data obtained before and after the cabinet door is opened and closed, and place it in the settlement task queue for processing in sequence to avoid waiting for the settlement list to be generated when the network environment is poor.
Improve the efficiency of lockers, reduce user waiting time, and ensure that deliverymen and buyers can complete tasks in a timely manner.
Smart Images

Figure CN111882378B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a cargo settlement method, device and storage medium of a locker. Background Art
[0002] When the locker door is opened, goods are put in or taken out, and when the door is closed, a list is generated. This list is a list of goods added or removed from the locker.
[0003] Since the list is generated on the backend server, the cargo data in the locker needs to be uploaded to the server. However, the network environment of the locker is not in a good state, which causes the data transmission to take a certain amount of time. At this time, the user needs to spend time waiting to obtain the list.
[0004] For example, a deliveryman needs to periodically add or replace goods in a locker. If after adding or replacing goods, the deliveryman needs to wait on the terminal device used to obtain the settlement list of this operation, it will inevitably delay the deliveryman from delivering goods to the next locker, and will also delay another deliveryman from delivering goods in the same locker.
[0005] For example, after a buyer takes out goods from a locker, he needs to wait on the mobile terminal to obtain the settlement list of this operation, which will inevitably delay the buyer from handling other matters and will also delay another buyer from purchasing goods from the same locker.
[0006] It can be seen that the above two situations will affect the user's use of the locker. Summary of the invention
[0007] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention proposes a method for settling goods in a locker, which can generate settlement tasks based on the cargo data obtained before and after the locker door is opened and closed, and place the settlement tasks in a settlement task queue for sequential processing, thereby saving the time for users to wait for the generation of a settlement list when the network environment is not good enough, and improving the use efficiency of the locker.
[0008] The invention also provides a cargo settlement device for the locker.
[0009] The cargo settlement method of the locker according to the first aspect of the present invention comprises:
[0010] Determine the first cargo data in the locker before the locker door is opened, and the second cargo data in the locker after the locker door is closed;
[0011] generating a new settlement task according to the first cargo data and the second cargo data, and placing the new settlement task in a settlement task queue;
[0012] The settlement tasks in the computing task queue are processed in sequence, a settlement list is generated, and the settlement list is sent to the client.
[0013] The cargo settlement method for a locker provided in an embodiment of the present invention also has the following additional technical features:
[0014] Furthermore, before determining the first cargo data and the second cargo data of the current time, the method further includes:
[0015] Receive a door opening request sent by a client, and determine a door opening instruction according to the door opening request;
[0016] The door opening instruction is sent to the locker, so that the locker determines that the first cargo data and the second cargo data have been uploaded last time, and opens the locker door according to the door opening instruction.
[0017] Furthermore, it also includes:
[0018] Sending the door opening command to the locker, so that the locker determines that the first cargo data and the second cargo data have not been uploaded, and feeds back an error code;
[0019] Generate fault information according to the error code, and send the fault information to the client.
[0020] Furthermore, before determining the first cargo data and the second cargo data of the current time, the method further includes:
[0021] A door opening request sent by a client is received, it is determined that the first cargo data and the second cargo data have been uploaded last time, a door opening instruction is determined according to the door opening request, and the door opening instruction is sent to the locker.
[0022] Furthermore, it also includes:
[0023] It is determined that the last first cargo data and the second cargo data have not been uploaded, and a door opening refusal signal is sent to the client.
[0024] Further, the door opening request includes the identity information of the door opener, the settlement task queue includes a delivery settlement task queue and a sales settlement task queue, and accordingly, generating a new settlement task according to the first cargo data and the second cargo data, and placing the new settlement task in the settlement task queue, comprises:
[0025] Determine the delivery type or sales type according to the door opener's identity information;
[0026] Determine a delivery settlement task queue or a sales settlement task queue according to the delivery type or the sales type;
[0027] A new settlement task is generated according to the first cargo data and the second cargo data, and the new settlement task is placed in a distribution settlement task queue or a sales settlement task queue.
[0028] Furthermore, it also includes: clearing the settlement task after the settlement processing in the settlement task queue.
[0029] Furthermore, before placing the new settlement task in the settlement task queue, the method further includes:
[0030] The new settlement task is determined to be the first settlement task, and a settlement task queue is created.
[0031] The cargo settlement device of the locker according to the second aspect of the present invention comprises:
[0032] An acquisition module, used to determine the first cargo data in the locker before the locker door is opened, and the second cargo data in the locker after the locker door is closed;
[0033] a configuration module, configured to generate a new settlement task according to the first cargo data and the second cargo data, and place the new settlement task in a settlement task queue;
[0034] The settlement module is used to perform settlement processing on the settlement tasks in the computing task queue in turn, generate a settlement list, and send the settlement list to the client.
[0035] Furthermore, a control module is included, which is used to:
[0036] Receive a door opening request sent by a client, and determine a door opening instruction according to the door opening request;
[0037] The door opening instruction is sent to the locker, so that the locker determines that the first cargo data and the second cargo data have been uploaded last time, and opens the locker door according to the door opening instruction.
[0038] Furthermore, it is also used for:
[0039] Sending the door opening command to the locker, so that the locker determines that the first cargo data and the second cargo data have not been uploaded, and feeds back an error code;
[0040] Generate fault information according to the error code, and send the fault information to the client.
[0041] Furthermore, a control module is included, which is used to:
[0042] A door opening request sent by a client is received, it is determined that the first cargo data and the second cargo data have been uploaded last time, a door opening instruction is determined according to the door opening request, and the door opening instruction is sent to the locker.
[0043] Furthermore, the control module is also used for:
[0044] It is determined that the last first cargo data and the second cargo data have not been uploaded, and a door opening refusal signal is sent to the client.
[0045] Furthermore, the door opening request includes the identity information of the door opener, and the settlement task queue includes a delivery settlement task queue and a sales settlement task queue. Accordingly, the configuration module is used to:
[0046] Determine the delivery type or sales type according to the door opener's identity information;
[0047] Determine a delivery settlement task queue or a sales settlement task queue according to the delivery type or the sales type;
[0048] A new settlement task is generated according to the first cargo data and the second cargo data, and the new settlement task is placed in a distribution settlement task queue or a sales settlement task queue.
[0049] Furthermore, it also includes a clearing module, which is used to clear the settlement tasks after settlement processing in the settlement task queue.
[0050] Furthermore, it also includes a creation module, which is used to determine that the new settlement task is the first settlement task and create a settlement task queue before placing the new settlement task in the settlement task queue.
[0051] An electronic device according to an embodiment of the third aspect of the present invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the cargo settlement method for the locker as described above when executing the program.
[0052] A non-transitory computer-readable storage medium according to an embodiment of the fourth aspect of the present invention stores a computer program thereon, and when the computer program is executed by a processor, the steps of the cargo settlement method for the locker as described above are implemented.
[0053] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0055] Figure 1 It is a flow chart of a method for settling goods in a locker provided in an embodiment of the present invention;
[0056] Figure 2 is a usage flow chart of a locker provided in an embodiment of the present invention;
[0057] Figure 3 is another use flow chart of the locker provided in an embodiment of the present invention;
[0058] Figure 4 is a structural schematic diagram of a cargo settlement device of a locker provided in an embodiment of the present invention;
[0059] Figure 5 A schematic structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0060] The following embodiments of the present invention are described in further detail in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.
[0061] Figure 1 A schematic diagram showing a flow chart of a method for settling goods in a locker provided by an embodiment of the present invention is shown. Figure 1 , the method comprising:
[0062] S11, determining the first cargo data in the locker before the locker door is opened, and the second cargo data in the locker after the locker door is closed;
[0063] S12, generating a new settlement task according to the first cargo data and the second cargo data, and placing the new settlement task in a settlement task queue;
[0064] S13. Perform settlement processing on the settlement tasks in the computing task queue in turn, generate a settlement list, and send the settlement list to the client.
[0065] Regarding step S11-step S12, it should be noted that in the embodiment of the present invention, the intelligent locker can store goods, monitor the entry and exit of goods, and generate a list. Intelligent lockers are becoming more and more common, such as lockers, exhibition cabinets, etc.
[0066] When the locker door is opened, goods are put in or taken out, and when the door is closed, a list is generated. This list is a list of goods added or removed from the locker.
[0067] Since the list is generated on the backend server, the cargo data in the locker needs to be uploaded to the server. However, the network environment of the locker is not in a good state, which causes the data transmission to take a certain amount of time, and the user needs to wait to obtain the list.
[0068] For example, a deliveryman needs to periodically add or replace goods in a locker. If after adding or replacing goods, the deliveryman needs to wait on the terminal device used to obtain the settlement list of this operation, it will inevitably delay the deliveryman from delivering goods to the next locker, and will also delay another deliveryman from delivering goods in the same locker.
[0069] For example, after a buyer takes out goods from a locker, he needs to wait on the mobile terminal to obtain the settlement list of this operation, which will inevitably delay the buyer from handling other matters and will also delay another buyer from purchasing goods from the same locker.
[0070] It can be seen that the above two situations will affect the user's use of the locker.
[0071] To this end, in an embodiment of the present invention, after determining the first cargo data in the locker before the door of the current locker is opened, and the second cargo data in the locker after the door is closed, the server forms a new settlement task with the first cargo data and the second cargo data, and places the new settlement task in the settlement task queue. The settlement task queue provides a buffer for the progress of processing tasks. As long as the server obtains the uploaded cargo data, it will perform settlement processing in the order of the settlement task queue. Once the settlement list is generated, it will be transmitted to the client (the terminal device used by the delivery person or the purchaser).
[0072] At this time, users do not need to spend time waiting at the locker to get the settlement list, so as not to delay other things. After the settlement list is generated, it will be sent to the corresponding client.
[0073] The cargo settlement method for a locker provided in an embodiment of the present invention can generate settlement tasks based on cargo data obtained before the locker door is opened and after it is closed, and place the settlement tasks in a settlement task queue for sequential processing, thereby saving the time for users to wait for the generation of a settlement list when the network environment is not good enough, thereby improving the use efficiency of the locker.
[0074] In a further embodiment of the method of the embodiment of the present invention, before determining the first cargo data and the second cargo data of the current time, the method further includes:
[0075] Receive a door opening request sent by the client (such as triggered by scanning a code or a face scan, etc.), determine a door opening instruction according to the door opening request, and send the door opening instruction to the locker, so that the locker determines that the last first cargo data and second cargo data have been uploaded, and opens the door according to the door opening instruction.
[0076] In this regard, it should be noted that if the first cargo data and the second cargo data of the previous time cannot be uploaded to the server due to transmission problems or failure problems, then if the first cargo data and the second cargo data of the new time are continuously obtained, it may cause confusion in the settlement work of the server and loss of a settlement task. Therefore, after receiving the door opening request sent by the client, the server will verify the door opening request, generate a door opening instruction after the verification is passed, and send the door opening instruction to the locker.
[0077] After receiving the door opening command, the locker needs to confirm whether the previous first cargo data and second cargo data have been uploaded. If they have been uploaded, the locker will open the door according to the door opening command to obtain the next cargo data.
[0078] If it is not uploaded, the locker will send an error code to the server. After receiving the error code, the server will analyze the fault information based on the error code and then send the fault information to the client.
[0079] In a further embodiment of the method of the embodiment of the present invention, before determining the first cargo data and the second cargo data of the current time, the method further includes:
[0080] The server receives the door opening request sent by the client, and if it is determined that the last first cargo data and the second cargo data have been uploaded, determines the door opening instruction according to the door opening request, and sends the door opening instruction to the locker.
[0081] If it is determined that the last first cargo data and the second cargo data have not been uploaded, a door opening refusal signal is sent to the client.
[0082] In a further embodiment of the method of the embodiment of the present invention, the locker faces the deliveryman and the purchaser, the deliveryman delivers the goods to the locker, and the purchaser purchases the goods from the locker. The deliveryman or the purchaser can scan the QR code on the locker to apply to open the locker door. However, the deliveryman or the purchaser has different user identities, so the door opening request sent to the server by scanning the QR code includes the identity information of the door opener. The server can determine whether opening the door for goods processing belongs to the delivery type or the sales type based on the identity information of the door opener.
[0083] According to different types, in the embodiment of the present invention, the settlement task queue can be divided into a delivery settlement task queue and a sales settlement task queue.
[0084] Determine the delivery settlement task queue based on the delivery type.
[0085] Determine the sales settlement task queue based on the sales type.
[0086] If it is determined to be a delivery settlement task queue, a new settlement task is generated according to the first cargo data and the second cargo data, and the new settlement task is placed in the delivery settlement task queue.
[0087] If it is determined to be a sales settlement task queue, a new settlement task is generated according to the first goods data and the second goods data, and the new settlement task is placed in the sales settlement task queue.
[0088] In a further embodiment of the method of the embodiment of the present invention, the settlement task after settlement processing is cleared from the settlement task queue. Clearing the settlement task after settlement processing can prevent the situation where individual settlement tasks in the settlement task queue are repeatedly settled.
[0089] In a further embodiment of the method of the embodiment of the present invention, when there is no settlement task, the settlement task queue does not exist. To this end, the settlement task queue needs to be established as appropriate. When it is determined that the new settlement task is the first settlement task, a settlement task queue is created. When there is a new settlement task again and the previous settlement task is not processed, the new settlement queue is added to the created settlement task queue.
[0090] According to the scheme described in the above embodiment, Figure 2 and Figure 3 The locker usage flow chart shown in the figure explains the overall process, as follows:
[0091] See also Figure 2 , the deliveryman (using the terminal used) scans the code, the server obtains the door opening request and sends the door opening command to the locker. The locker determines whether the last cargo data has been uploaded to the server. If the upload is successful, the lock is unlocked and the deliveryman can open the door to load and unload goods. Otherwise, the door is refused to be opened and an error code is returned to the server. The server generates a fault message based on the error code to inform the deliveryman why the door cannot be opened.
[0092] After unlocking, the commodity detection equipment is triggered to start detection, and the data of the goods when the deliveryman loads and unloads the goods is recorded through the detection of light curtains, weighing sensors, cameras, etc. After the deliveryman has finished loading and unloading the goods, he closes the cabinet door, triggering the commodity detection equipment to stop detection.
[0093] The locker uploads the cargo data to the server to generate a settlement task and creates a settlement task queue. The server settles the tasks in the settlement task queue in turn and refreshes the queue.
[0094] The delivery person receives the settlement list and completes the delivery process.
[0095] See also Figure 3, the deliveryman (using the terminal used) scans the code, and after the server obtains the door opening request, it determines whether the last cargo data has been received. If it is received successfully, the door is unlocked, and the deliveryman can open the door to load and unload goods. Otherwise, the door is refused to be opened, and a signal of refusing to open the door is returned.
[0096] After unlocking, the commodity detection equipment is triggered to start detection, and the data of the goods when the deliveryman loads and unloads the goods is recorded through the detection of light curtains, weighing sensors, cameras, etc. After the deliveryman has finished loading and unloading the goods, he closes the cabinet door, triggering the commodity detection equipment to stop detection.
[0097] The locker uploads the cargo data to the server to generate a settlement task and creates a settlement task queue. The server settles the tasks in the settlement task queue in turn and refreshes the queue.
[0098] The delivery person receives the settlement list and completes the delivery process.
[0099] The cargo settlement method for the locker provided in the above embodiment can generate settlement tasks based on the cargo data obtained before the locker door is opened and after it is closed, and place the settlement tasks in a settlement task queue for sequential processing, thereby saving the user's waiting time for the generation of the settlement list when the network environment is not good enough, thereby improving the use efficiency of the locker.
[0100] Figure 4 FIG. 1 shows a schematic diagram of a cargo settlement device for a locker according to an embodiment of the present invention. Figure 4 The device includes an acquisition module 21, a configuration module 22 and a settlement module 23, wherein:
[0101] An acquisition module 21 is used to determine the first cargo data in the locker before the locker door is opened, and the second cargo data in the locker after the locker door is closed;
[0102] A configuration module 22, configured to generate a new settlement task according to the first cargo data and the second cargo data, and place the new settlement task in a settlement task queue;
[0103] The settlement module 23 is used to perform settlement processing on the settlement tasks in the computing task queue in sequence, generate a settlement list, and send the settlement list to the client.
[0104] In a further embodiment of the device of the embodiment of the present invention, the device further includes a control module, which is used to:
[0105] Receive a door opening request sent by a client, and determine a door opening instruction according to the door opening request;
[0106] The door opening instruction is sent to the locker, so that the locker determines that the first cargo data and the second cargo data have been uploaded last time, and opens the locker door according to the door opening instruction.
[0107] In a further embodiment of the device of the embodiment of the present invention, it is also used for:
[0108] Sending the door opening command to the locker, so that the locker determines that the first cargo data and the second cargo data have not been uploaded, and feeds back an error code;
[0109] Generate fault information according to the error code, and send the fault information to the client.
[0110] In a further embodiment of the device of the embodiment of the present invention, a control module is further included, which is used to:
[0111] A door opening request sent by a client is received, it is determined that the first cargo data and the second cargo data have been uploaded last time, a door opening instruction is determined according to the door opening request, and the door opening instruction is sent to the locker.
[0112] In a further embodiment of the device of the embodiment of the present invention, the control module is further used to:
[0113] It is determined that the last first cargo data and the second cargo data have not been uploaded, and a door opening refusal signal is sent to the client.
[0114] In a further embodiment of the device of the embodiment of the present invention, the door opening request includes the identity information of the door opener, the settlement task queue includes a delivery settlement task queue and a sales settlement task queue, and accordingly, the configuration module is used to:
[0115] Determine the delivery type or sales type according to the door opener's identity information;
[0116] Determine a delivery settlement task queue or a sales settlement task queue according to the delivery type or the sales type;
[0117] A new settlement task is generated according to the first cargo data and the second cargo data, and the new settlement task is placed in a distribution settlement task queue or a sales settlement task queue.
[0118] In a further embodiment of the device of the embodiment of the present invention, it also includes a clearing module, which is used to clear the settlement task after the settlement processing in the settlement task queue.
[0119] In a further embodiment of the apparatus of the embodiment of the present invention, it further includes a creation module, which is used to determine that the new settlement task is the first settlement task and create a settlement task queue before placing the new settlement task in the settlement task queue.
[0120] Since the principle of the device described in the embodiment of the present invention is the same as that of the method described in the above embodiment, a more detailed explanation will not be repeated here.
[0121] It should be noted that, in the embodiment of the present invention, the relevant functional modules can be implemented by a hardware processor.
[0122] The cargo settlement method for a locker provided in an embodiment of the present invention can generate settlement tasks based on cargo data obtained before the locker door is opened and after it is closed, and place the settlement tasks in a settlement task queue for sequential processing, thereby saving the time for users to wait for the generation of a settlement list when the network environment is not good enough, thereby improving the use efficiency of the locker.
[0123] Figure 5 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 5 As shown, the electronic device may include: a processor 31, a communication interface 32, a memory 33 and a communication bus 34, wherein the processor 31, the communication interface 32 and the memory 33 communicate with each other through the communication bus 34. The processor 31 may call the logic instructions in the memory 33 to execute the following method: determine the first cargo data in the locker before the door of the current locker is opened, and the second cargo data in the locker after the door is closed; generate a new settlement task according to the first cargo data and the second cargo data, and place the new settlement task in the settlement task queue; perform settlement processing on the settlement tasks in the calculation task queue in turn, generate a settlement list, and send the settlement list to the client.
[0124] In addition, the logic instructions in the above-mentioned memory 33 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0125] Furthermore, an embodiment of the present invention discloses a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the methods provided by the above-mentioned method embodiments, for example, including: determining the first cargo data in the cabinet before the cabinet door of the current locker is opened, and the second cargo data in the cabinet after the cabinet door is closed; generating a new settlement task based on the first cargo data and the second cargo data, and placing the new settlement task in a settlement task queue; performing settlement processing on the settlement tasks in the computing task queue in turn, generating a settlement list, and sending the settlement list to the client.
[0126] On the other hand, an embodiment of the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the methods provided in the above embodiments, for example, including: determining the first cargo data in the cabinet before the door of the current locker is opened, and the second cargo data in the cabinet after the door is closed; generating a new settlement task based on the first cargo data and the second cargo data, and placing the new settlement task in a settlement task queue; performing settlement processing on the settlement tasks in the computing task queue in turn, generating a settlement list, and sending the settlement list to the client.
[0127] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0128] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0129] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
[0130] The above embodiments are only used to illustrate the present invention, but not to limit the present invention. Although the present invention is described in detail with reference to the embodiments, it should be understood by those skilled in the art that various combinations, modifications or equivalent substitutions of the technical solutions of the present invention do not depart from the spirit and scope of the technical solutions of the present invention, and should be included in the scope of the claims of the present invention.
Claims
1. A method for settling goods in a locker, characterized in that: include: Determine the first cargo data in the locker before the locker door is opened, and the second cargo data in the locker after the locker door is closed; generating a new settlement task according to the first cargo data and the second cargo data, and placing the new settlement task in a settlement task queue; the settlement task list represents the processing progress of the task; Perform settlement processing on the settlement tasks in the settlement task queue in sequence, generate a settlement list, and send the settlement list to the client; Before determining the first cargo data and the second cargo data of the current time, the method further includes: Receive a door opening request sent by a client, and determine a door opening instruction according to the door opening request; Sending the door opening instruction to the locker, so that the locker determines that the first cargo data and the second cargo data have been uploaded, and opens the locker door according to the door opening instruction; Also includes: Sending the door opening command to the locker, so that the locker determines that the first cargo data and the second cargo data have not been uploaded, and feeds back an error code; Generate fault information according to the error code, and send the fault information to the client; Or, before determining the first cargo data and the second cargo data of the current time, the method further includes: receiving a door opening request sent by a client, determining that the last first cargo data and the second cargo data have been uploaded, determining a door opening instruction according to the door opening request, and sending the door opening instruction to the locker; Also includes: It is determined that the last first cargo data and the second cargo data have not been uploaded, and a door opening refusal signal is sent to the client.
2. The method for cargo settlement in a locker according to claim 1, characterized in that: The door opening request includes the identity information of the door opener, the settlement task queue includes a delivery settlement task queue and a sales settlement task queue, and accordingly, a new settlement task is generated according to the first cargo data and the second cargo data, and the new settlement task is placed in the settlement task queue, including: Determine the delivery type or sales type according to the door opener's identity information; Determine a delivery settlement task queue or a sales settlement task queue according to the delivery type or the sales type; A new settlement task is generated according to the first cargo data and the second cargo data, and the new settlement task is placed in a distribution settlement task queue or a sales settlement task queue.
3. The method for cargo settlement in a locker according to claim 1, characterized in that: Also includes: Clear the settlement tasks after settlement processing from the settlement task queue.
4. The method for settling goods in a locker according to claim 1, characterized in that: Before placing the new settlement task in the settlement task queue, the method further includes: The new settlement task is determined to be the first settlement task, and a settlement task queue is created.
5. A cargo settlement device for a locker, characterized in that: include: An acquisition module, used to determine the first cargo data in the locker before the locker door is opened, and the second cargo data in the locker after the locker door is closed; a configuration module, configured to generate a new settlement task according to the first cargo data and the second cargo data, and place the new settlement task in a settlement task queue; The settlement task list represents the processing progress of the task; A settlement module, used to sequentially process the settlement tasks in the computing task queue, generate a settlement list, and send the settlement list to the client; The device also includes a control module for: Receive a door opening request sent by a client, and determine a door opening instruction according to the door opening request; Sending the door opening instruction to the locker, so that the locker determines that the first cargo data and the second cargo data have been uploaded, and opens the locker door according to the door opening instruction; Also used for: Sending the door opening command to the locker, so that the locker determines that the first cargo data and the second cargo data have not been uploaded, and feeds back an error code; Generate fault information according to the error code, and send the fault information to the client; or a control module for: receiving a door opening request sent by a client, determining that the last first cargo data and the second cargo data have been uploaded, determining a door opening instruction according to the door opening request, and sending the door opening instruction to the locker; The control module is also used for: It is determined that the last first cargo data and the second cargo data have not been uploaded, and a door opening refusal signal is sent to the client.
6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the cargo settlement method for the locker according to any one of claims 1 to 4 are implemented.
7. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the cargo settlement method for a locker as claimed in any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Door body unlocking control method, door body unlocking control system and sales counter
CN108564690A
Intelligent vending management method and device
CN109816857A
