CN114358578A - Order processing method and device based on message queue - Google Patents

Order processing method and device based on message queue Download PDF

Info

Publication number
CN114358578A
CN114358578A CN202111664446.0A CN202111664446A CN114358578A CN 114358578 A CN114358578 A CN 114358578A CN 202111664446 A CN202111664446 A CN 202111664446A CN 114358578 A CN114358578 A CN 114358578A
Authority
CN
China
Prior art keywords
order
message queue
production line
execution task
information
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202111664446.0A
Other languages
Chinese (zh)
Inventor
余俊生
李秀皇
邓康乐
曾兆德
余俊杰
赵天恒
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Jiafan Computer Co ltd
Original Assignee
Guangzhou Jiafan Computer Co ltd
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 Guangzhou Jiafan Computer Co ltd filed Critical Guangzhou Jiafan Computer Co ltd
Priority to CN202111664446.0A priority Critical patent/CN114358578A/en
Publication of CN114358578A publication Critical patent/CN114358578A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the application discloses an order processing method, an order processing device, order processing equipment and a storage medium based on a message queue. The order processing method comprises the following steps: respectively establishing a corresponding message queue for each production line, wherein the message queues are used for storing order information; when new order information is monitored to be generated, determining order sub-products in the order information, wherein each order sub-product corresponds to a production line; respectively generating order execution task data for each order sub-product, and respectively storing a plurality of different order execution task data into corresponding message queues according to the enqueuing rule of each message queue; and controlling the production line corresponding to each message queue to carry out job production according to the order execution task data recorded in the message queue. According to the technical scheme provided by the embodiment of the application, the production line carries out ordered processing on the orders according to the order execution task data recorded in the message queue, the reliability of information transmission is guaranteed, the order information is prevented from being repeated and lost, a targeted ordered processing mechanism is provided for different types of operations on the production line, and the production efficiency is improved.

Description

Order processing method and device based on message queue
Technical Field
The embodiment of the application relates to the field of production line control, in particular to an order processing method and device based on a message queue.
Background
In the order production system, an order is generated through a business system, the order is obtained through the production system, and the order is processed through corresponding production lines. When a plurality of orders enter a production system, the lack of a good order sequence processing mechanism often causes the situations of low production efficiency and disordered order product generation.
Disclosure of Invention
The embodiment of the invention provides an order processing method based on a message queue, which solves the problems of disordered order product generation and low production efficiency due to lack of a good order sequence processing mechanism when a plurality of orders enter a production system in the prior art, realizes ordered processing of different types of operations on a production line, and improves the production efficiency.
In a first aspect, the present embodiment provides an order processing method based on a message queue, where the method includes:
respectively establishing a corresponding message queue for each production line, wherein the message queues are used for storing order information;
when new order information is monitored to be generated, determining order sub-products in the order information, wherein each order sub-product corresponds to a production line;
respectively generating order execution task data for each order sub-product, and respectively storing a plurality of different order execution task data into corresponding message queues according to the enqueuing rule of each message queue;
and controlling the production line corresponding to each message queue to carry out job production according to the order execution task data recorded in the message queue.
Further, the creating a corresponding message queue for each production line respectively further includes:
generating an enqueue rule of a message queue according to the operation type of each production line;
and respectively creating a message queue corresponding to the enqueue rule for each production line.
Further, the generating an enqueue rule of the message queue according to the operation type of each production line further includes:
when the operation type of the production line is determined to be a single product task, creating a message queue based on a time sequence rule;
and when the operation type of the production line is determined to be the combined product task, creating a message queue based on the cooperative processing rule.
Further, after it is monitored that new order information is generated, determining an order child product in the order information further includes:
when new order information is monitored, disassembling product components contained in the order information to obtain order sub-products corresponding to the order information.
Further, the storing the different order execution task data into the corresponding message queue according to the enqueue rule of each message queue further includes:
when the enqueuing rule of the enqueued message queue is determined to be based on the time sequence rule, adding the order execution tasks to the message queue according to the time sequence;
and when the enqueuing rule of the enqueued message queue is determined to be based on the cooperative processing rule, determining an enqueuing position of the order execution task in the message queue, and adding the order execution task at the enqueuing position.
Further, the determining an enqueue position of the order execution task in the message queue further includes:
determining the order execution task and priority information of the order execution task stored in the message queue;
and determining the enqueue position of the order execution task in the message queue according to the priority information.
Further, the controlling the production line corresponding to each message queue to perform job production according to the order execution task data recorded in the message queue further includes:
controlling each production line to sequentially acquire order execution task data from the message queue;
and determining the executed job task content according to the order execution task data, and performing job processing of corresponding order sub-products based on the job task content.
In a second aspect, an embodiment of the present application provides an order processing apparatus based on a message queue, including:
a creation module: the system comprises a message queue, a message queue and a message queue, wherein the message queue is used for respectively establishing a corresponding message queue for each production line, and the message queues are used for storing order information;
disassembling the module: the order information processing system is used for determining order sub-products in the order information after monitoring generation of new order information, wherein each order sub-product corresponds to a production line;
a generation module: the order execution task data are respectively generated for each order sub-product, and a plurality of different order execution task data are respectively stored into the corresponding message queues according to the enqueuing rule of each message queue;
a control module: and the production line is used for controlling the production line corresponding to each message queue to carry out job production according to the order execution task data recorded in the message queue.
In a third aspect, an embodiment of the present application provides an order processing device based on a message queue, where the device includes:
one or more processors; a storage device to store one or more programs that, when executed by the one or more processors, cause the one or more processors to implement a message queue-based order processing method.
In a fourth aspect, embodiments of the present application provide a storage medium storing computer-executable instructions, which when executed by a computer processor, are configured to perform the message queue-based order processing method.
In this embodiment, a corresponding message queue is created for each production line, and the message queue is used for storing order information; when new order information is monitored to be generated, determining order sub-products in the order information, wherein each order sub-product corresponds to a production line; respectively generating order execution task data for each order sub-product, and respectively storing a plurality of different order execution task data into corresponding message queues according to the enqueuing rule of each message queue; and controlling the production line corresponding to each message queue to carry out job production according to the order execution task data recorded in the message queue. The production line carries out ordered processing on the orders according to the order execution task data recorded in the message queue, the reliability of information transmission is guaranteed, repetition and loss of order information are avoided, a targeted ordered processing mechanism is provided for different types of operation on the production line, and the production efficiency is improved.
Drawings
Fig. 1 is a specific flowchart of an order processing method based on a message queue according to an embodiment of the present disclosure;
fig. 2 is a specific flowchart of another order processing method based on a message queue according to the embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an order processing apparatus based on a message queue according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an order processing device based on a message queue according to an embodiment of the present disclosure.
Detailed Description
The embodiments of the present invention will be described in further detail with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of and not restrictive on the broad invention. It should be further noted that, for convenience of description, only some structures, not all structures, relating to the embodiments of the present invention are shown in the drawings.
Fig. 1 is a specific flowchart of a message queue-based order processing method according to an embodiment of the present disclosure, where the message queue-based order processing method according to the embodiment of the present disclosure may be implemented by a message queue-based order processing apparatus, and the message queue-based order processing apparatus may be implemented by hardware and/or software and integrated in a computer device. Referring to fig. 1, the method may specifically include:
s101, respectively establishing a corresponding message queue for each production line, wherein the message queues are used for storing order information.
The production line can be a product production line consisting of a plurality of accessories, can also be a single part production line, and refers to a route which is formed by a series of production activities such as processing, conveying, assembling, checking and the like from the time when raw materials enter a production site. The message queue is a communication mode among processes or different threads of the same process, and is a priority queue with execution time as an order. The order information refers to information of buying and selling commodities, and mainly comprises an order number, order placing user information, order basic information, such as specific commodities and commodity quantity, payment information and receiving information, and the order information in the scheme refers to electronic order information. Specifically, different products correspond to different production lines, and a corresponding message queue is created for each production line, where a message queue may be understood as a container for storing order information, and the order information is stored continuously until it is processed by an application program.
In one embodiment, the order system terminal receives order information and sends the order information to a specified message queue, the queue pushes the order information, and when the control terminal monitors the message queue, the order information from the intelligent terminal is received. Transport Layer Security (TLS) of the message queue may protect the on-line order information, while built-in access controls may protect the order information on the target queue. If there is a network or application interrupt that causes the message queue to not immediately pass the order information, the order information is secured in its wait queue until all the order information is run. Other mechanisms use at least one or at most one message passing, which means that messages will be repeated or lost, and message queues will only move data once, i.e. there is a message queue, and order information will never be repeated or lost.
S102, when the generation of new order information is monitored, order sub-products in the order information are determined, wherein each order sub-product corresponds to a production line.
The order sub-product refers to each part forming the commodity obtained by disassembling the commodity in the order information, for example, if the order commodity is a mobile phone, the lens, the battery, the screen and the like are all sub-products of the mobile phone order. Specifically, when the order system terminal monitors new order information, the commodities in the order information are disassembled and analyzed, each component of the product, namely order sub-products, is determined, and a corresponding production line is matched for each order sub-product.
In one embodiment, the input order information can be disassembled through a preset neural network model, and the preset neural network model and the order tasks in the order information have a corresponding relation, so as to determine the order sub-products contained in the order information. The method mainly comprises the steps of decomposing the whole commodity to obtain all components of the commodity, sequentially producing all the components respectively, adjusting the production of all the components to be matched with the demand, and improving the production efficiency.
S103, generating order execution task data for each order sub-product respectively, and storing a plurality of different order execution task data into corresponding message queues respectively according to the enqueue rule of each message queue.
The order execution task data refers to specific processing information of the sub-order operation to be processed, and comprises information of processing steps, processing time length, total required quantity and the like of the order, different message queues are matched for the sub-order processing information provided by the order execution task data according to the sub-order processing information, and the order execution task data is sent to the corresponding message queues. It can be understood that each message queue may correspond to a different message enqueue rule, and the executed task data of the multiple sub-orders are respectively stored in the corresponding message queue according to the enqueue rule of each message queue according to the difference of the sub-order processing requirements in the order executed task data of the multiple sub-orders. And providing the message queues corresponding to the adaptive enqueuing rules for different sub-orders, ensuring the ordered processing of the orders and improving the production efficiency.
And S104, controlling the production line corresponding to each message queue to carry out job production according to the order execution task data recorded in the message queue.
When the control terminal monitors order executive task data in the message queue, the control terminal can control commodity parts on a production line corresponding to the message queue to produce in sequence according to the executive task data by controlling the mechanical transmission device.
The control mechanical transmission device is an automatic control device which transmits power and information by mechanical connection and can realize accurate transmission and signal processing. In one embodiment, for example, the commodity a has three processing procedures, the sequence of the processing procedures is fixed, the control terminal performs the first processing procedure on the component a according to the executive task data read into the message queue, the processing time is 30 seconds, then performs the second processing procedure, the processing time is 60 seconds, and then performs combined packaging on the component a and the component B, and the packaging time is 15 seconds. And controlling the mechanical transmission device to convey the part A to the first-procedure processing area, conveying the part A to the second-procedure processing area after 30 seconds, conveying the part A to the packaging area after 60 seconds, conveying the packaged finished product to the finished product area after 15 seconds, and continuously controlling the next part A to be processed, so that the automatic control of commodity operation processing is realized.
Furthermore, the control mechanical transmission device comprises an alarm module, when the control mechanical transmission device does not respond to the task execution data within a preset time, the alarm module transmits error information to the control terminal so as to inform technicians of timely troubleshooting the control mechanical transmission device, and the phenomenon that the production progress of the commodity is delayed due to the fact that the device breaks down but the technicians are not informed is avoided. The preset duration in the scheme is set by a technician according to actual needs, and the scheme does not specifically limit a device for controlling the automatic production of the commodities.
The order system terminal receives the order information, the order information is disassembled into sub-order information, each sub-order corresponds to a specific production line, order execution task data is generated for the sub-orders correspondingly, and a control mechanical transmission device on the production line controls commodities to be produced automatically and sequentially according to the order execution task data in the message queue. The reliability of transmitted information is guaranteed, the repetition and the loss of order information are avoided, a targeted ordered processing mechanism is provided for different types of operation on a production line, and the production efficiency is improved.
On the basis of the above embodiment, fig. 2 is a specific flowchart of another order processing method based on a message queue according to the embodiment of the present invention. The order processing method based on the message queue is a concrete embodiment of the order processing method based on the message queue. Referring to fig. 2, the order processing method based on the message queue includes:
s201, when the operation type of the production line is determined to be a single product task, creating a message queue based on a time sequence rule; and when the operation type of the production line is determined to be the combined product task, creating a message queue based on the cooperative processing rule.
The operation type is judged according to the processing procedure of the commodity, and when the processing procedure of the commodity is a single procedure, the operation type of the commodity is determined to be a single product task. At the moment, the commodity only needs to be processed once, a message queue based on a time sequence rule is established for a production line corresponding to the commodity, namely, the order execution task data is written into the sequence of the message queue as the production sequence of the commodity according to a first-in first-out rule; when the commodity needs a plurality of processing procedures, the operation type of the commodity is determined as a combined product task, and a message queue based on a cooperative processing rule is created for a production line corresponding to the commodity, namely, each procedure is performed according to the balanced distribution of the commodity to be processed, the quantity of the commodity to be processed, the duration of each procedure and the like during commodity production, so that each procedure of the commodity is subjected to synchronization processing, the retention of semi-finished products is reduced, and the production period can be shortened.
S202, when the enqueuing rule of the enqueued message queue is determined to be based on the time sequence rule, adding order execution tasks to the message queue according to the time sequence; and when the enqueuing rule of the enqueued message queue is determined to be based on the cooperative processing rule, determining an enqueuing position of the order execution task in the message queue, and adding the order execution task at the enqueuing position.
In one embodiment, the article a has only one processing procedure, so the enqueue rule of the article a message queue is based on a time series rule, for example, the order system terminal receives the order information 1 at 11.58, receives the order information 2 at 13.45, and receives the order information 3 at 15.30, then the message queue writes the execution task data of the article a in the order information 1, 2, and 3 into the message queue according to the time sequence of receiving the order information, and meanwhile, the control terminal processes the article a in sequence according to the execution task data in the order information 1, 2, and 3. The commodity A only has one process, so that the synchronous production of the multiple processes does not need to be considered, and the commodity A is produced according to the order receiving time sequence.
In another embodiment, article B is produced in three manufacturing operations, it being understood that article B requires no sequence of processing operations and is processed for the same length of time. Illustratively, at present, the processing area of the first procedure has 15 pieces of commodities to be processed, the processing area of the second procedure has 30 pieces of commodities to be processed, the processing area of the third procedure has 40 pieces of commodities to be processed, the message queue reads processing messages according to the sequence from front to back, the commodities B to be processed in the first procedure are written into the forefront end of the message queue, the commodities B to be processed in the subsequent procedure are controlled to go to the processing area of the first procedure first for queue-waiting processing, the commodities to be processed in the queue areas of all procedures are adjusted to be basically consistent, all procedures of the commodities B are processed synchronously, the retention of semi-finished products is reduced, and the production period can be shortened accordingly.
S203, determining the order execution task and the priority information of the order execution task stored in the message queue, and determining the enqueue position of the order execution task in the message queue according to the priority information.
The priority is a parameter for determining the priority level of each operation program to receive system resources when the computer time-sharing operation system processes a plurality of operation programs, namely the priority is a convention, the prior processing with high priority and the post-processing with low priority. In the scheme, the priority of the process when the commodity is processed is determined, and the process with the high priority is written into the forefront of the message queue, namely, the processing of the process is preferentially carried out.
In one embodiment, the product C has three processing steps, and due to the particularity of the product, the product C has to complete the first step before the second step, and complete the first and second steps before the third step. At this time, the first process of the product C is assigned the highest priority, and the third process is assigned the lowest priority. Writing the commodity C waiting for the first process into the foremost end of the message queue, and writing the commodity C waiting for the third process into the rearmost end of the message queue, namely, firstly performing the first process on the commodity C, then performing the second process, and finally performing the third information processing. When the order information of the new commodity C is monitored, the highest priority is given to the first procedure of the commodity C to be processed in the new order information, and the commodity C is processed preferentially. When the processing steps of the commodity have precedence requirements, the highest priority is given to the procedures needing preferential processing of the commodity, so that the procedures needing final processing have the lowest priority, and the high-low sequence of the priorities corresponds to the precedence sequence in the message queue. According to the setting of the priority, the commodity processing procedures are guaranteed to be processed according to requirements, and the correctness of the commodity processing procedures is guaranteed.
S204, when new order information is monitored, disassembling product components contained in the order information to obtain order sub-products corresponding to the order information.
The order sub-product refers to each part forming the commodity obtained by disassembling the commodity in the order information, for example, if the order commodity is a mobile phone, the lens, the battery, the screen and the like are all sub-products of the mobile phone order. Specifically, when the order system terminal monitors new order information, the commodities in the order information are disassembled and analyzed, each component of the product, namely order sub-products, is determined, and a corresponding production line is matched for each order sub-product.
In an embodiment, the input order information may be decomposed through a preset neural network model, and the preset neural network model and an order task in the order information have a corresponding relationship, so as to determine an order sub-product included in the order information. The method mainly comprises the steps of decomposing the whole commodity to obtain all components of the commodity, sequentially producing all the components respectively, adjusting the production of all the components to be matched with the demand, and improving the production efficiency.
S205, generating order execution task data for each order sub-product respectively, and storing a plurality of different order execution task data into corresponding message queues respectively according to the enqueue rule of each message queue.
The order execution task data refers to specific processing information of the sub-order operation to be processed, and comprises information of processing steps, processing time length, total required quantity and the like of the order, different message queues are matched for the sub-order processing information provided by the order execution task data according to the sub-order processing information, and the order execution task data is sent to the corresponding message queues. It can be understood that each message queue may correspond to a different message enqueue rule, and the executed task data of the multiple sub-orders are respectively stored in the corresponding message queue according to the enqueue rule of each message queue according to the difference of the sub-order processing requirements in the order executed task data of the multiple sub-orders. And providing the message queues corresponding to the adaptive enqueuing rules for different sub-orders, ensuring the ordered processing of the orders and improving the production efficiency.
S206, controlling each production line to sequentially acquire order execution task data from the message queue, determining the content of the executed job task according to the order execution task data, and performing job processing on corresponding order sub-products based on the content of the job task.
The control terminal obtains order execution task data according to the sequence of the queue in the message queue, and commodity parts on a production line corresponding to the message queue can be sequentially controlled to be produced in sequence by controlling the mechanical transmission device according to the commodity demand quantity, the processing procedures and the duration of each procedure in the order execution task data.
The control mechanical transmission device is an automatic control device which transmits power and information by mechanical connection and can realize accurate transmission and signal processing. In one embodiment, for example, the commodity a has three processing procedures, the sequence of the processing procedures is fixed, the control terminal performs the first processing procedure on the component a according to the executive task data read into the message queue, the processing time is 30 seconds, then performs the second processing procedure, the processing time is 60 seconds, and then performs combined packaging on the component a and the component B, and the packaging time is 15 seconds. And controlling the mechanical transmission device to convey the part A to the first-procedure processing area, conveying the part A to the second-procedure processing area after 30 seconds, conveying the part A to the packaging area after 60 seconds, conveying the packaged finished product to the finished product area after 15 seconds, and continuously controlling the next part A to be processed, so that the automatic control of commodity operation processing is realized.
Furthermore, the control mechanical transmission device comprises an alarm module, when the control mechanical transmission device does not respond to the task execution data within a preset time, the alarm module transmits error information to the control terminal so as to inform technicians of timely troubleshooting the control mechanical transmission device, and the phenomenon that the production progress of the commodity is delayed due to the fact that the device breaks down but the technicians are not informed is avoided. The preset duration in the scheme is set by a technician according to actual needs, and the scheme does not specifically limit a device for controlling the automatic production of the commodities.
In the above, according to the operation type of the production line, a message queue based on the time-series rule and a message queue based on the cooperative processing rule are respectively created for the single product task and the combined product task. When multiple processes of the commodities have no required sequence, adjusting the queue positions of the subsequent commodities in the message queue according to the number of the commodities to be processed queued in each process and the process duration. The commodities to be processed in the queuing areas of all the procedures are adjusted to be basically consistent, so that all the procedures of the commodities are subjected to synchronization treatment, the retention of semi-finished products is reduced, and the production period can be shortened; when the commodity has a fixed sequence requirement on the processing procedures, according to the sequence requirement, giving the highest priority to the procedures needing priority processing, the lowest priority to the last processing procedure, and the high-low level of the priority corresponds to the front-rear positions of the message queue. According to the setting of the priority, the commodity processing procedures are guaranteed to be processed according to requirements, and the correctness of the commodity processing procedures is guaranteed.
Fig. 3 is a schematic structural diagram of an order processing apparatus based on a message queue according to an embodiment of the present disclosure, and referring to fig. 3, the order processing apparatus based on a message queue according to the present embodiment specifically includes: a creation module 301, a disassembly module 302, a generation module 303, and a control module 304. The various modules may be connected by a bus or other means, such as by a bus connection in fig. 3.
The creating module 301 is configured to create a corresponding message queue for each production line, where the message queue is used to store order information.
In one embodiment, the creation module 301 creates a time series rule based message queue and a co-processing rule based message queue for a single product job and a combined product job, respectively, based on job types of the production line.
The disassembling module 302 is configured to determine order sub-products in the order information after monitoring that new order information is generated, where each order sub-product corresponds to one production line.
In an embodiment, after the order system terminal receives the new order information, the disassembling module 302 performs disassembling analysis on the goods in the order information to determine each component of the product, that is, the order sub-product, and matches a corresponding production line for each order sub-product.
The generating module 303 is configured to generate order execution task data for each order sub-product, and store a plurality of different order execution task data in corresponding message queues according to the enqueue rule of each message queue.
In one embodiment, the order execution task data refers to specific processing information of the sub-order job to be processed, including information of the order processing step, the processing duration, the total required quantity, and the like, and the generating module 303 generates corresponding order execution task data for the sub-order. Matching different message queues according to the sub-order processing information provided by the order execution task data, and sending the order execution task data to the corresponding message queue.
The control module 304 is configured to control the production line corresponding to each message queue to perform job production according to the order execution task data recorded in the message queue.
In one embodiment, the control module controls the mechanical transmission device to sequentially control the commodity parts on the production line corresponding to the message queue to be sequentially produced according to the task execution data, so that the automatic control of commodity operation processing is realized.
The order processing device based on the message queue provided by the embodiment of the application can be used for executing the order processing method based on the message queue provided by the embodiment, and has corresponding functions and beneficial effects.
Fig. 4 is a schematic structural diagram of an order processing apparatus based on a message queue according to an embodiment of the present invention, as shown in fig. 4, the apparatus includes a processor 401, a memory 402, an input device 403, and an output device 404; the number of the processors 401 in the device may be one or more, and one processor 401 is taken as an example in fig. 4; the processor 401, the memory 402, the input device 403 and the output device 404 in the apparatus may be connected by a bus or other means, which is exemplified in fig. 4. The memory 402, which is a computer-readable storage medium, may be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the message queue-based order processing method in the embodiments of the present invention. The processor 401 executes various functional applications and data processing of the device by running software programs, instructions and modules stored in the memory 402, that is, implements the message queue-based order processing method described above. The input device 403 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the apparatus. The output device 404 may include a display device such as a display screen.
Of course, the storage medium provided in the embodiments of the present application includes computer-executable instructions, and the computer-executable instructions are not limited to the above-mentioned order processing method based on a message queue, and may also perform related operations in the order processing method based on a message queue provided in any embodiment of the present application.
It should be noted that the foregoing is only a preferred embodiment of the present invention and the technical principles applied. Those skilled in the art will appreciate that the embodiments of the present invention are not limited to the specific embodiments described herein, and that various obvious changes, adaptations, and substitutions are possible, without departing from the scope of the embodiments of the present invention. Therefore, although the embodiments of the present invention have been described in more detail through the above embodiments, the embodiments of the present invention are not limited to the above embodiments, and many other equivalent embodiments may be included without departing from the concept of the embodiments of the present invention, and the scope of the embodiments of the present invention is determined by the scope of the appended claims.

Claims (10)

1. The order processing method based on the message queue is characterized by comprising the following steps:
respectively establishing a corresponding message queue for each production line, wherein the message queues are used for storing order information;
when new order information is monitored to be generated, determining order sub-products in the order information, wherein each order sub-product corresponds to a production line;
respectively generating order execution task data for each order sub-product, and respectively storing a plurality of different order execution task data into corresponding message queues according to the enqueuing rule of each message queue;
and controlling the production line corresponding to each message queue to carry out job production according to the order execution task data recorded in the message queue.
2. The message queue-based order processing method according to claim 1, wherein the creating a corresponding message queue for each production line respectively comprises:
generating an enqueue rule of a message queue according to the operation type of each production line;
and respectively creating a message queue corresponding to the enqueue rule for each production line.
3. The message queue-based order processing method according to claim 2, wherein the generating of the enqueue rule of the message queue according to the job type of each production line comprises:
when the operation type of the production line is determined to be a single product task, creating a message queue based on a time sequence rule;
and when the operation type of the production line is determined to be the combined product task, creating a message queue based on the cooperative processing rule.
4. The message queue-based order processing method according to claim 1, wherein determining order sub-products in the order information after monitoring generation of new order information comprises:
when new order information is monitored, disassembling product components contained in the order information to obtain order sub-products corresponding to the order information.
5. The message queue-based order processing method according to claim 3, wherein the step of storing a plurality of different order execution task data in the corresponding message queues according to the enqueuing rule of each message queue comprises:
when the enqueuing rule of the enqueued message queue is determined to be based on the time sequence rule, adding the order execution tasks to the message queue according to the time sequence;
and when the enqueuing rule of the enqueued message queue is determined to be based on the cooperative processing rule, determining an enqueuing position of the order execution task in the message queue, and adding the order execution task at the enqueuing position.
6. The message queue-based order processing method of claim 5, wherein the determining the enqueue position of the order execution task in the message queue comprises:
determining the order execution task and priority information of the order execution task stored in the message queue;
and determining the enqueue position of the order execution task in the message queue according to the priority information.
7. The message queue-based order processing method according to any one of claims 1 to 6, wherein the controlling of the production line corresponding to each message queue to perform job production according to the order execution task data recorded in the message queue includes:
controlling each production line to sequentially acquire order execution task data from the message queue;
and determining the executed job task content according to the order execution task data, and performing job processing of corresponding order sub-products based on the job task content.
8. An order processing apparatus based on a message queue, comprising:
a creation module: the system comprises a message queue, a message queue and a message queue, wherein the message queue is used for respectively establishing a corresponding message queue for each production line, and the message queues are used for storing order information;
disassembling the module: the order information processing system is used for determining order sub-products in the order information after monitoring generation of new order information, wherein each order sub-product corresponds to a production line;
a generation module: the order execution task data are respectively generated for each order sub-product, and a plurality of different order execution task data are respectively stored into the corresponding message queues according to the enqueuing rule of each message queue;
a control module: and the production line is used for controlling the production line corresponding to each message queue to carry out job production according to the order execution task data recorded in the message queue.
9. A message queue based order processing apparatus, the apparatus comprising: one or more processors; storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the message queue based order processing method of any of claims 1-7.
10. A storage medium storing computer-executable instructions for performing the message queue-based order processing method of any one of claims 1-7 when executed by a computer processor.
CN202111664446.0A 2021-12-31 2021-12-31 Order processing method and device based on message queue Pending CN114358578A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111664446.0A CN114358578A (en) 2021-12-31 2021-12-31 Order processing method and device based on message queue

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111664446.0A CN114358578A (en) 2021-12-31 2021-12-31 Order processing method and device based on message queue

Publications (1)

Publication Number Publication Date
CN114358578A true CN114358578A (en) 2022-04-15

Family

ID=81104905

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111664446.0A Pending CN114358578A (en) 2021-12-31 2021-12-31 Order processing method and device based on message queue

Country Status (1)

Country Link
CN (1) CN114358578A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117541356A (en) * 2023-12-04 2024-02-09 广州方舟信息科技有限公司 Order execution method, system, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117541356A (en) * 2023-12-04 2024-02-09 广州方舟信息科技有限公司 Order execution method, system, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN101986278B (en) Automatic testing method and system for electronic equipment
CN109656782A (en) Visual scheduling monitoring method, device and server
JP2013117959A (en) Simulation and visualization for project planning and management
JP2000280145A (en) Production planning preparation method and device thereof
Kumar et al. Integrated lot sizing and safety stock placement in a network of production facilities
CN110740184A (en) Transaction strategy testing system based on micro-service architecture
EP3460596A1 (en) Support device and support program
CN114358578A (en) Order processing method and device based on message queue
CN103679479A (en) Method, system, server and client for data processing of business object
US20010044844A1 (en) Method and system for analyzing performance of large-scale network supervisory system
CN116197919B (en) Robot control system and control method
CN114358577A (en) Order information processing method and device
CN115344370A (en) Task scheduling method, device, equipment and storage medium
CN111144619A (en) Task optimization scheduling method and device for automatic vending robot
CN109492016A (en) A kind of exchange settlement method and device
EP3783547B1 (en) System and methods for reply date response and due date management in manufacturing
CN109542069B (en) Distributed control system and method based on time and event hybrid driving
JP4378930B2 (en) Production plan creation method and apparatus
CN112783633A (en) Data updating system and method based on resource mutual exclusion scheduling model
CN110503324A (en) A kind of automatic scheduled production method and apparatus and equipment of pull type SC task
JP5839662B2 (en) Delivery date achievement condition automatic verification system
US20020198617A1 (en) System and method for controlling priority of lots employed in MES
CN110490447A (en) A kind of the regulation method and apparatus and equipment of pull type SC task
CN112559288B (en) Distributed inertial platform test system based on Ethernet
CN105676785B (en) Semiconductor processing equipment simulation system and its method of work

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination