CN-121981797-A - Order accounting method and device, electronic equipment and storage medium
Abstract
The application provides an order form account-out method and device, electronic equipment and storage medium, wherein the method comprises the steps of obtaining first configuration template information of a target basic account-out task and second configuration template information of a target account-out scene plug-in unit, and generating account-out task data according to the first configuration template information and the second configuration template information; the method comprises the steps of matching target task execution clusters corresponding to the account-out task nodes in a plurality of task execution clusters based on resource demand attribute labels, obtaining current load state information of the task execution nodes, calculating available weight coefficients according to the current load state information, obtaining to-be-accounted order data of the account-out task nodes, and distributing the target to-be-accounted order data of each task execution node according to the available weight coefficients and the to-be-accounted order data, so that the task execution nodes can perform order accounting according to the target to-be-accounted order data, and order account-out data are obtained. The embodiment of the application can flexibly schedule task execution resources and improve order accounting efficiency.
Inventors
- LIU YIYANG
- WANG SHAN
- HU HUIMIN
- LI TAO
Assignees
- 顺丰速运有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20251229
Claims (10)
- 1. An order placing method, the method comprising: acquiring first configuration template information corresponding to a target basic billing task and second configuration template information corresponding to a target billing scene plug-in, and generating billing task data according to the first configuration template information and the second configuration template information, wherein the billing task data comprises a plurality of billing task nodes, and each billing task node comprises a corresponding resource demand attribute tag; matching a target task execution cluster corresponding to the account-out task node in a plurality of preset task execution clusters based on the resource demand attribute labels, wherein the target task execution cluster comprises a plurality of task execution nodes; acquiring current load state information of the task execution nodes, and calculating an available weight coefficient corresponding to each task execution node according to the current load state information; And acquiring to-be-posted order data corresponding to the posting task nodes, and distributing target to-be-posted order data corresponding to each task execution node according to the available weight coefficient and the to-be-posted order data so that the task execution nodes perform order posting according to the target to-be-posted order data to obtain order posting data.
- 2. The method according to claim 1, wherein calculating the available weight coefficient corresponding to each task execution node according to the current load status information includes: Extracting a computing resource use state parameter, a memory resource use state parameter and a task backlog state parameter from the current load state information; And carrying out weighted calculation on the resource use state parameter, the memory resource use state parameter and the task backlog state parameter according to preset weight coefficients to obtain an available weight coefficient corresponding to each task execution node.
- 3. The method according to claim 2, wherein the allocating the target to-be-posted order data corresponding to each task execution node according to the available weight coefficient and the to-be-posted order data includes: calculating the task quantity allocation proportion of each task execution node according to the available weight coefficient; dividing the order data to be posted according to the task quantity distribution proportion to obtain target order data to be posted corresponding to each task execution node.
- 4. The method according to claim 1, wherein the method further comprises: detecting an abnormal execution state type of the task execution node when executing order accounting task processing; And when the abnormal execution state type indicates that the task execution node fails, distributing unfinished order accounting task data to other available task execution nodes in the target task execution cluster.
- 5. The method of claim 1, wherein after the obtaining the current load status information of the task execution node, the method further comprises: When the current load state information characterizes that the load data of the task execution node exceeds a first preset load threshold, updating the node state of the corresponding task execution node to be temporarily unavailable; and stopping distributing the order data to be posted to the task execution node.
- 6. The method of claim 5, wherein the method further comprises: Acquiring historical load state information corresponding to each task execution node and historical to-be-posted order data; invoking a preset neural network model to generate predicted load data corresponding to the task execution node based on current load state information, target to-be-posted order data, historical load state information and historical to-be-posted order data, wherein the neural network model is obtained by taking sample load state information and sample to-be-posted order data as input and training with sample predicted load data as an output label; And comparing the predicted load data with a second preset load threshold, and performing capacity expansion operation on a target task execution cluster where the task execution node is located when the predicted load data exceeds the second preset load threshold.
- 7. The method of claim 1, wherein the obtaining the first configuration template information corresponding to the target basic checkout task and the second configuration template information corresponding to the target checkout scene plugin comprises: Acquiring an order posting task instruction, and calling a preset large language model to perform intention recognition on the order posting task instruction to obtain an intention recognition result, wherein the intention recognition result comprises an order posting operation type, an order posting operation object and an order posting scene; determining first configuration template information corresponding to a target basic posting task in a preset basic posting task template based on the order posting operation type and the order posting operation object; and determining second configuration template information corresponding to the target account-out scene plug-in a preset account-out scene plug-in module based on the order account-out scene.
- 8. An order placing apparatus, the apparatus comprising: The system comprises a generating unit, a target basic billing task and a target billing scene plug-in unit, wherein the generating unit is used for acquiring first configuration template information corresponding to the target basic billing task and second configuration template information corresponding to the target billing scene plug-in unit, generating billing task data according to the first configuration template information and the second configuration template information, wherein the billing task data comprises a plurality of billing task nodes, and each billing task node comprises a corresponding resource requirement attribute tag; The matching unit is used for matching a target task execution cluster corresponding to the account-out task node in a plurality of preset task execution clusters based on the resource demand attribute labels, and the target task execution cluster comprises a plurality of task execution nodes; The computing unit is used for acquiring the current load state information of the task execution nodes and computing the available weight coefficient corresponding to each task execution node according to the current load state information; the distribution unit is used for acquiring to-be-posted order data corresponding to the posting task nodes, and distributing target to-be-posted order data corresponding to each task execution node according to the available weight coefficient and the to-be-posted order data so that the task execution nodes can post order posting according to the target to-be-posted order data to obtain order posting data.
- 9. An electronic device comprising a memory storing a computer program and a processor implementing the order posting method of any one of claims 1 to 7 when the computer program is executed by the processor.
- 10. A computer readable storage medium storing a computer program, characterized in that the computer program, when executed by a processor, implements the order posting method of any one of claims 1 to 7.
Description
Order accounting method and device, electronic equipment and storage medium Technical Field The present application relates to the field of supply chain finance, and in particular, to a method and apparatus for order accounting, an electronic device, and a storage medium. Background The supply chain account calculating link is a core link for connecting order performance and fund clearing, and the supply chain account calculating link is numerous and comprises order data pulling, invoice verification, amount calculation, multiparty account checking, financial approval and the like, and the links provide extremely high requirements for account calculating flow arrangement and resource scheduling. However, in the related art, hard coding or a single workflow engine is often used to execute the settlement process, or settlement task execution nodes are allocated in a static configuration manner, and these methods lack flexible scheduling capability for task execution resources, so that the resource utilization rate is low, and thus the order settlement efficiency is low. Disclosure of Invention The embodiment of the application mainly aims to provide an order accounting method and device, electronic equipment and storage medium, aiming at flexibly scheduling task execution resources and improving order accounting efficiency. To achieve the above object, a first aspect of an embodiment of the present application provides an order placing method, including: acquiring first configuration template information corresponding to a target basic billing task and second configuration template information corresponding to a target billing scene plug-in, and generating billing task data according to the first configuration template information and the second configuration template information, wherein the billing task data comprises a plurality of billing task nodes, and each billing task node comprises a corresponding resource demand attribute tag; matching a target task execution cluster corresponding to the account-out task node in a plurality of preset task execution clusters based on the resource demand attribute labels, wherein the target task execution cluster comprises a plurality of task execution nodes; acquiring current load state information of the task execution nodes, and calculating an available weight coefficient corresponding to each task execution node according to the current load state information; And acquiring to-be-posted order data corresponding to the posting task nodes, and distributing target to-be-posted order data corresponding to each task execution node according to the available weight coefficient and the to-be-posted order data so that the task execution nodes perform order posting according to the target to-be-posted order data to obtain order posting data. To achieve the above object, a second aspect of an embodiment of the present application provides an order posting device, including: The system comprises a generating unit, a target basic billing task and a target billing scene plug-in unit, wherein the generating unit is used for acquiring first configuration template information corresponding to the target basic billing task and second configuration template information corresponding to the target billing scene plug-in unit, generating billing task data according to the first configuration template information and the second configuration template information, wherein the billing task data comprises a plurality of billing task nodes, and each billing task node comprises a corresponding resource requirement attribute tag; The matching unit is used for matching a target task execution cluster corresponding to the account-out task node in a plurality of preset task execution clusters based on the resource demand attribute labels, and the target task execution cluster comprises a plurality of task execution nodes; The computing unit is used for acquiring the current load state information of the task execution nodes and computing the available weight coefficient corresponding to each task execution node according to the current load state information; the distribution unit is used for acquiring to-be-posted order data corresponding to the posting task nodes, and distributing target to-be-posted order data corresponding to each task execution node according to the available weight coefficient and the to-be-posted order data so that the task execution nodes can post order posting according to the target to-be-posted order data to obtain order posting data. To achieve the above object, a third aspect of the embodiments of the present application proposes an electronic device, including a memory storing a computer program and a processor implementing the method according to the first aspect when the processor executes the computer program. To achieve the above object, a fourth aspect of the embodiments of the present application proposes a computer-readable storage medium storing a computer