Order detail query method and device

Through a unified order queue and a unified interface for order details query, merchants can connect to a standard unified order queue, solving the problems of repeated development and high costs in existing technologies, achieving low-cost and easy-to-maintain order details query, and supporting functional expansion and iterative design.

CN120612145APending Publication Date: 2025-09-09BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410268701.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-08
Publication Date
2025-09-09

AI Technical Summary

Technical Problem

The existing order details query method requires each merchant to independently connect to various business order queues, resulting in repeated development, high access costs, high maintenance costs, and is not conducive to functional expansion and iterative design.

Method used

By integrating a unified order queue and a unified interface for order detail queries, merchants can connect to the standard unified order queue, use order query parameters to obtain basic order attributes, and filter target sub-chains from the preset order information chain to obtain extended attributes, thereby achieving standardized query of order details.

Benefits of technology

It implements a low-cost, easy-to-maintain order details query method, decouples the interactions between components, and facilitates subsequent function expansion and iterative design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120612145A_ABST
    Figure CN120612145A_ABST
Patent Text Reader

Abstract

The invention discloses an order detail query method and device, and relates to the technical field of computers. According to one specific embodiment, the method comprises the steps that order query parameters are obtained according to order summary messages obtained by monitoring a unified order queue, and the unified order queue integrates various business order queues; querying a uniform interface and order query parameters according to order details, and querying order basic attributes; and screening a target sub-chain from a preset order information chain, executing a query task of the target sub-chain according to the order basic attribute, obtaining an extension attribute, and filling the extension attribute into a corresponding position in to-be-queried order details to obtain the order details. According to the embodiment, the standard and decoupling order detail query method is achieved, the access cost is low, maintenance is easy, interaction between the components is decoupled through the uniform order queue and the uniform interface for order detail query, and subsequent function extension and iterative design are facilitated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method and device for querying order details. Background Art

[0002] The merchant platform for internet transactions provides merchants with services such as store management, item posting, order processing, and data analysis. Considering that different merchants' orders may originate from a variety of business channels, such as self-operated orders, live streaming orders, third-party POP orders, and commission orders, merchants need to access various business order queues to obtain their own order summary messages. They can then query the corresponding order details based on the obtained order summary messages to facilitate subsequent inventory management.

[0003] In the process of implementing the present invention, the inventors found that the prior art has the following problems:

[0004] The existing order details query method requires each merchant to independently connect to various business order queues, resulting in duplicate project development. This not only wastes R&D resources and has high access and maintenance costs, but also the coupling between various interface components is not conducive to subsequent functional expansion and iterative design. Summary of the Invention

[0005] In view of this, an embodiment of the present invention provides a method and device for querying order details, which implements a standard, decoupled order details query method. Various merchants connect to a standard unified order queue, with low access cost and easy maintenance. In addition, the unified order queue and the unified interface for order details query decouple the interaction between components, which is conducive to subsequent function expansion and iterative design.

[0006] To achieve the above object, according to one aspect of an embodiment of the present invention, a method for querying order details is provided, comprising:

[0007] Obtain order query parameters based on order summary messages obtained by monitoring a unified order queue that integrates various business order queues;

[0008] Query the basic attributes of the order according to the unified order details query interface and the order query parameters;

[0009] Filter the target sub-chain from the preset order information chain, execute the query task of the target sub-chain according to the basic attributes of the order, obtain the extended attributes, fill the extended attributes into the corresponding position in the order details to be queried, and obtain the order details.

[0010] Optionally, the order summary message in the unified order queue is constructed in the following manner: monitoring various business order queues, performing order parsing on the acquired message body data to obtain an initial order summary message; assembling the initial order summary message according to a preset standard format to obtain an order summary message, and forwarding the order summary message to the unified order queue.

[0011] Optionally, before assembling the initial order summary message according to a preset standard format, the method further includes: determining related businesses based on preset order businesses; and filtering out other order summary messages corresponding to non-related businesses from the initial order summary message based on the related businesses.

[0012] Optionally, the initial order summary message has channel information; the initial order summary message is assembled according to a preset standard format to obtain an order summary message, including: obtaining common parameters in the initial order summary message, assembling the common parameters according to a preset standard format, and obtaining a common message body; determining an acquisition strategy and an assembly strategy for exclusive parameters of the initial order summary message based on the channel information in the initial order summary message, obtaining the exclusive parameters through the acquisition strategy, and then assembling the exclusive parameters according to the assembly strategy to obtain an exclusive message body; generating an order summary message based on the common message body and the exclusive message body.

[0013] Optionally, a target sub-chain is filtered from a preset order information chain, and according to the basic attributes of the order, a query task of the target sub-chain is executed to obtain extended attributes, including: for each sub-chain in the order information chain: according to the order type in the order query parameters, whether the sub-chain is the target sub-chain is determined; if the sub-chain is the target sub-chain, the basic attributes of the order are used as input parameters, and the business system corresponding to the sub-chain is accessed through a remote procedure call to execute the query task of the sub-chain and obtain the extended attributes corresponding to the sub-chain.

[0014] Optionally, before querying the basic attributes of the order, the method further includes: verifying the order query parameters and confirming that the verification is successful.

[0015] Optionally, the method also includes: monitoring the query process of the order details and the construction process of the order summary message in the unified order queue; if an abnormality occurs in the query process or the construction process, issuing an alarm prompt message, or using a retry mechanism to re-query or re-construct.

[0016] According to a second aspect of an embodiment of the present invention, a device for querying order details is provided, comprising:

[0017] A query parameter acquisition module is used to obtain order query parameters based on the order summary message obtained by monitoring the unified order queue, where the unified order queue integrates various business order queues;

[0018] A basic attribute query module is used to query the basic attributes of an order based on the unified order details query interface and the order query parameters;

[0019] The order details query module is used to filter the target sub-chain from the preset order information chain, execute the query task of the target sub-chain according to the basic attributes of the order, obtain the extended attributes, and fill the extended attributes into the corresponding position in the order details to be queried to obtain the order details.

[0020] According to a third aspect of an embodiment of the present invention, there is provided an electronic query device for order details, comprising:

[0021] one or more processors;

[0022] a storage device for storing one or more programs,

[0023] When the one or more programs are executed by the one or more processors, the one or more processors implement the method provided in the first aspect of the embodiment of the present invention.

[0024] According to a fourth aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored. When the program is executed by a processor, the method provided by the first aspect of the embodiment of the present invention is implemented.

[0025] An embodiment of the invention has the following advantages or beneficial effects: by monitoring the order summary message obtained by the unified order queue, order query parameters are obtained, and the unified order queue integrates various business order queues; according to the order details query unified interface and order query parameters, the basic attributes of the order are queried; the target sub-chain is filtered from the preset order information chain, and according to the basic attributes of the order, the query task of the target sub-chain is executed to obtain the extended attributes, and the extended attributes are filled into the corresponding position in the order details to be queried to obtain the technical solution of the order details, which realizes a standard and decoupled order details query method. Various merchants connect to the standard unified order queue, with low access cost and easy maintenance. In addition, the interaction between components is decoupled through the unified order queue and the unified interface for order details query, which is conducive to subsequent function expansion and iterative design. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The accompanying drawings are provided for a better understanding of the present invention and are not intended to limit the present invention.

[0027] Figure 1 1 is a schematic diagram of the main process of a method for querying order details according to an embodiment of the present invention;

[0028] Figure 2 This is a schematic diagram of the order parsing principle of an embodiment of the present invention;

[0029] Figure 3 Schematic diagram of the principle of parameter assembly of an embodiment of the present invention;

[0030] Figure 4 This is a schematic diagram of the principle of basic attribute query according to an embodiment of the present invention;

[0031] Figure 5 Schematic diagram of the composition of the order information chain according to an embodiment of the present invention;

[0032] Figure 6 This is a schematic diagram of the overall process of querying order details according to an embodiment of the present invention;

[0033] Figure 7 2 is a schematic diagram of main modules of a device for querying order details according to an embodiment of the present invention;

[0034] Figure 8 is an exemplary system architecture diagram in which embodiments of the present invention may be applied;

[0035] Figure 9 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0036] It should be noted that the collection / aggregation, updating, analysis, use, transmission, and storage of user personal information involved in the technical solutions of the present invention all comply with relevant laws and regulations, are used for legitimate and reasonable purposes, are not shared, disclosed, or sold outside of these legitimate uses, and are subject to oversight and management by national regulatory authorities. Necessary measures should be taken with respect to user personal information to selectively block the use or access of personal information data to prevent unauthorized access to such personal information data, ensure that persons with access to personal information data comply with relevant laws and regulations, and ensure the security of user personal information. Furthermore, once such user personal information data is no longer needed, risks should be minimized by restricting or even prohibiting its collection and / or deleting it.

[0037] The following description of exemplary embodiments of the present invention is made in conjunction with the accompanying drawings, in which various details of the embodiments of the present invention are included to facilitate understanding. These details should be considered as merely exemplary. Therefore, it should be appreciated by those skilled in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0038] The existing order details query method requires each merchant to independently connect to various business order queues, resulting in duplicate project development. This not only wastes R&D resources and has high access and maintenance costs, but also the coupling between various interface components is not conducive to subsequent functional expansion and iterative design, and cannot meet practical application needs well.

[0039] To address the aforementioned issues in the prior art, the present invention proposes a method for querying order details. This method integrates a unified order queue with various business order queues, obtains order query parameters, and then uses a unified interface for querying order details to query basic order attributes and obtain order details. This method implements a standardized, decoupled method for querying order details. By integrating various merchants with the standardized unified order queue, various access costs are low and maintenance is easy. Furthermore, the unified order queue and unified interface for querying order details decouple interactions between components, facilitating subsequent functional expansion and iterative design.

[0040] In the introduction to the embodiments of the present invention, the terms and their meanings are as follows:

[0041] POP: A purchasing and sales model, in which third-party sellers use trading platforms to sell trading items, which is different from the self-operated model;

[0042] MQ: message queue;

[0043] API: A set of rules and conventions that define the interactions between software components. It allows different software systems to communicate and exchange data, enabling them to call and share functions with each other.

[0044] RPC: is a communication protocol used for remote calls between different nodes in a distributed system. It allows one node (called a client) to request a method or function on another node (called a server) and get the result.

[0045] JSON: A lightweight data exchange format commonly used for serializing and transmitting data. It's based on JavaScript syntax but can be parsed and generated by a variety of programming languages. JSON uses concise key-value pairs to represent data and supports arrays and nested structures.

[0046] XML: It is a markup language used to describe the structure and content of data. It uses tags to define data elements and can represent complex hierarchies and relationships. XML is widely used in many fields, such as data exchange, configuration files, Web services, etc.

[0047] Figure 1 FIG. 1 is a schematic diagram of the main process of the method for querying order details according to an embodiment of the present invention. Figure 1As shown, the method for querying order details according to the embodiment of the present invention includes the following steps S101 to S103.

[0048] Step S101: Obtain order query parameters based on an order summary message obtained by monitoring a unified order queue, where the unified order queue integrates various business order queues.

[0049] Specifically, the embodiment of the present invention integrates the implementation of order detail query into a cross-order message queue integration component, which is externally connected to the unified order queue in the MQ middleware system, and prompts merchant users to obtain order summary messages of various businesses by connecting to the unified order queue. The merchant procurement business system monitors the unified order queue of the MQ middleware system, and identifies its own order summary message through the store ID in the monitored order summary message. The unified order queue stores order summary messages of various business order queues, such as self-operated orders of self-operated order queues, live broadcast orders of live broadcast order queues, POP orders of third-party POP order queues, commission orders of commission order queues, etc. The order summary message is mainly used to represent newly created orders or changes in order status. The merchant parses the obtained order summary message to obtain the order query parameters included therein, such as order number, order type, order status, etc.

[0050] According to one embodiment of the present invention, the order summary message in the unified order queue is constructed in the following manner: monitoring various business order queues, performing order parsing on the acquired message body data to obtain an initial order summary message; assembling the initial order summary message according to a preset standard format to obtain an order summary message, and forwarding the order summary message to the unified order queue.

[0051] Specifically, embodiments of the present invention use a unified order queue to standardize various business order queues. The integration component monitors various business order queues through message listeners corresponding to the business order queues. For example, a self-operated order message listener is used to monitor the self-operated order message body data of the self-operated order queue and set corresponding channel information for the monitored message body. For example, if message body A of the self-operated order queue is monitored, the self-operated channel is set on message body A. The message parser then determines the parsing strategy based on the channel information set in the acquired message body and forwards the message body to the corresponding parser. The parser then performs the parsing task on the message body to obtain the initial order summary message.

[0052] Figure 2This is a schematic diagram of the order parsing principle of an embodiment of the present invention. The integrated component sends the acquired message body data to the message parser. The message parser determines the parsing strategy based on the channel type set in the message body and forwards the message body data to the corresponding parser (self-operated order parser, POP order parser, commission order parser, live broadcast order parser, etc.).

[0053] Furthermore, according to the standard format requirements of the unified order queue, the necessary assembly parameters of the initial order summary message are obtained, and each assembly parameter is assembled according to the standard format to obtain the order summary message. Finally, it is forwarded and stored in the unified order queue of the MQ middleware system. This standardizes the message body data of various businesses into a single message body format and transfers it to the unified order queue. This allows each merchant to only connect to the unified order queue, effectively reducing the complexity and cost of the connection.

[0054] According to another embodiment of the present invention, before assembling the initial order summary message according to a preset standard format, the method further includes: determining related businesses based on preset order businesses; and filtering out other order summary messages corresponding to non-related businesses from the initial order summary message based on the related businesses.

[0055] Specifically, considering that various business order queues are monitored, the full message body of the entire network is obtained, and the present invention mainly serves merchant users, so before the initial order summary message is assembled according to the preset standard format, the relevant business is determined to be the merchant order business based on the preset order business, and other order summary messages of non-merchant order businesses are filtered out from the initial order summary message obtained through parsing, such as virtual orders for insurance business. Although these orders for non-related businesses are not the focus of the present invention, they need to be synchronized to related downstream systems, so they can be filtered out before assembly.

[0056] According to another embodiment of the present invention, the initial order summary message has channel information; the initial order summary message is assembled according to a preset standard format to obtain an order summary message, including: obtaining common parameters in the initial order summary message, assembling the common parameters according to a preset standard format, and obtaining a common message body; determining an acquisition strategy and an assembly strategy for exclusive parameters of the initial order summary message based on the channel information in the initial order summary message, obtaining the exclusive parameters through the acquisition strategy, and then assembling the exclusive parameters according to the assembly strategy to obtain an exclusive message body; generating an order summary message based on the common message body and the exclusive message body.

[0057] Specifically, the filtered initial order summary message enters the message parameter assembler within the integration component. Considering the varying parameter acquisition methods for different business orders, parameters are divided into common and specific parameters. Parameters directly included in the initial order summary message, such as the order number and order status, are considered common parameters. These common parameters are directly acquired from the initial order summary message. The message parameter assembler assembles these common parameters according to a standard format to produce a common message body. Specific parameters, such as the store ID, are not present in all initial order summary messages. For example, an initial order summary message with commission order channel information does not contain a store ID. Therefore, the corresponding store ID must be acquired according to the pre-set logic for the commission order business and assembled according to the pre-set standard format (assembly strategy) for commission orders. Therefore, the corresponding specific parameter acquisition and assembly strategies are determined based on the channel information in the initial order summary message. The specific parameters are acquired using the acquisition strategy and then assembled according to the assembly strategy to produce a specific message body. Finally, the common and specific message bodies are merged to generate a standard order summary message for transfer to the unified order queue.

[0058] Figure 3 The following is a schematic diagram illustrating the parameter assembly principle of an embodiment of the present invention. Upon receiving an initial order summary message, the message parameter assembler within the integration component first obtains the common parameters within the initial order summary message and assembles them to produce a common message body. The dedicated parameter assembly strategy executor then determines the dedicated parameter acquisition and assembly strategies from among alternative strategies, such as the default strategy, POP strategy, and commission strategy, based on the channel information within the initial order summary message. This strategy then obtains and assembles the dedicated parameters, ultimately resulting in a standard order summary message.

[0059] Step S102: query the basic attributes of the order according to the unified order detail query interface and the order query parameters.

[0060] Specifically, the integration component provides merchants with a unified interface for order detail query. After the user monitors the order summary message and obtains the order query parameters, the user inputs the order query parameters into the unified API interface for order detail query. The integration component determines the specific order type policy executor based on the order type in the order query parameters. The order types in the embodiment of the present invention mainly include three types: ordinary orders, commission orders, and prototype orders. Orders of different order types correspond to different policy executors, and the policy executors clarify the external business system for specific queries and the interactive query interface. The order type policy executor uses the necessary parameters such as the order number in the order query parameters to query the basic attributes of the order, and finally assembles them into standard readable order basic attributes. The basic attributes of the embodiment of the present invention mainly include the transaction amount associated with the order, order time, express number, logistics company and other highly relevant attribute information.

[0061] Figure 4 This is a schematic diagram illustrating the basic attribute query principle of an embodiment of the present invention. The order basic attribute query assembler in the integration component forwards the received order query parameters to the order type policy executor. Based on the order type in the order query parameters, the order type policy executor selects a matching policy executor from among the regular order and commission order policy executors. Based on the matching policy executor, it queries the corresponding external business system via remote procedure call (RPC) to execute the query and assembly tasks, obtaining the basic order attributes.

[0062] According to an embodiment of the present invention, before querying the basic attributes of the order, the method further includes: verifying the order query parameters and confirming that the verification is successful.

[0063] Specifically, order query parameters serve as query conditions for subsequent order details, and their accuracy and compliance must be guaranteed. Therefore, before querying the basic attributes of an order, the input parameter verification module within the integrated component verifies the correctness and compliance of the received order query parameters, as well as the query permissions of the merchant who sent the order query parameters, and confirms that the verification has passed.

[0064] Step S103: Filter the target sub-chain from the preset order information chain, execute the query task of the target sub-chain according to the basic attributes of the order, obtain the extended attributes, fill the extended attributes into the corresponding position in the order details to be queried, and obtain the order details.

[0065] Specifically, the present invention comprehensively considers the component information of order details required by different order types and establishes a complete order information chain. The order information chain is composed of several sub-chains, each of which represents a component information of the order details. Given the limited number of parameters in the order query parameters, the basic order attributes retrieved above are used as query conditions. By executing the target sub-chain for screening, more detailed and complete order extended attributes are obtained. Finally, the queried extended attributes are filled into the corresponding positions according to the agreed assembly rules to obtain complete and detailed order details.

[0066] According to one embodiment of the present invention, a target sub-chain is screened from a preset order information chain, and a query task of the target sub-chain is executed according to the basic attributes of the order to obtain extended attributes, including: for each sub-chain in the order information chain: judging whether the sub-chain is a target sub-chain according to the order type in the order query parameters; if the sub-chain is a target sub-chain, using the basic attributes of the order as input parameters, accessing the business system corresponding to the sub-chain through a remote procedure call to execute the query task of the sub-chain and obtain the extended attributes corresponding to the sub-chain.

[0067] Specifically, according to the composition order of the sub-chains in the order information chain, for each sub-chain: based on the order type, determine whether the sub-chain is the target sub-chain predetermined for the order type; if the sub-chain is hit, use the order basic attribute information as the query input parameter, execute the sub-chain query logic, and specifically access the external business system corresponding to the corresponding sub-chain through the remote procedure call RPC, obtain the extended attributes of the sub-chain, and fill them in the corresponding position of the pre-opened order details storage unit, and then determine the next sub-chain of the sub-chain according to the above query method, until the last sub-chain in the order information chain is queried, the extended attribute query is completed, and the complete order details are obtained.

[0068] The embodiment of the present invention adopts a chain call structure to obtain various component information of order details, which not only has a clear data structure but is also easy to expand and maintain.

[0069] Figure 5 The following is a schematic diagram of the order information chain structure in an embodiment of the present invention. The order information chain is implemented using the order information chain assembler and includes a price sub-chain, a user sub-chain, a store sub-chain, a transaction item serial number sub-chain, and an address sub-chain. Each sub-chain, when matched based on order type, defines specific query logic, such as query logic for price extended attributes, user extended attributes, and store extended attributes.

[0070] According to another embodiment of the present invention, the method further includes: monitoring the query process of the order details and the construction process of the order summary message in the unified order queue; in the event of an abnormality in the query process or the construction process, issuing an alarm prompt message, or using a retry mechanism to query again or construct again.

[0071] Specifically, in order to ensure the reliability of the order details query process and the data integrity of the order summary message construction process in the unified order queue, a monitoring system is set to monitor the order summary message construction process and the order details query process of the control integrated component. In the event of an abnormality in the query process or the construction process, an alarm prompt message is issued in time to inform the merchant or operator of the possible cause of the abnormality. Alternatively, a retry mechanism is used to try to query or build again according to the number of retries set in the retry mechanism and the waiting time for the retries. If the number of retries is reached and the waiting time is exceeded, and the query or construction is still unsuccessful, a fault alarm prompt message is sent again.

[0072] Figure 6It is a schematic diagram of the overall process of querying order details in an embodiment of the present invention. The cross-message queue integration component provides the unified order queue with the ability to construct order summary messages and the ability to query order details. The integration component obtains message body data of different channel types through a variety of message listeners, and then the message parser forwards the message body data to the corresponding parser according to the channel type to obtain the initial order summary message. The filtering module in the integration component filters the initial order summary message obtained by parsing, filters out other order summary messages for non-merchant businesses, and forwards the initial order summary message for merchant businesses to the message parameter assembler. The message parameter assembler assembles the public parameters and exclusive parameters of the initial order summary message to obtain a standard order summary message, and forwards it to the unified order queue of the MQ middleware system.

[0073] Furthermore, the merchant user's purchasing business system monitors the order summary message of the unified order queue, obtains the order query parameters, and sends the order query parameters as input parameters to the integrated component's unified API interface for order details query. The input parameter verification module in the integrated component verifies the received order query parameters, and after confirming that the verification is passed, forwards the order query parameters to the order basic attribute query assembler, which accesses the external business system through the remote procedure call RPC to query and obtain the order basic attributes. The order information chain in the integrated component accesses the external business system through the remote procedure call RPC based on the obtained order basic attributes, executes the query task of the filtered target sub-chain, obtains the corresponding extended attributes, and fills each extended attribute in the agreed position in the order details to be queried, and obtains the complete order details of the order queried this time. In addition, when the monitoring system detects an exception in the order details query process or the order summary message construction process, it issues an alarm prompt message, or uses a retry mechanism to query or re-construct again.

[0074] The embodiment of the present invention implements the construction of order summary messages and the query of order details in the form of a cross-message queue integrated component. The integrated component decouples the interaction between merchants and MQ middleware systems, as well as external systems. Through this component, merchants and MQ middleware systems, as well as external business systems, are isolated. At the same time, it also provides adaptability for each system, making it easier to expand and iteratively update subsequent functions.

[0075] In addition, the cross-message queue integration component interacts in JSON format. Compared with the XML format interaction in the existing technology, the JSON format has the advantages of strong readability and simplicity, and is more suitable for promotion and application.

[0076] Figure 7 FIG. 1 is a schematic diagram of the main modules of the order details query device according to an embodiment of the present invention. Figure 7As shown, the order details query device 700 mainly includes a query parameter acquisition module 701, a basic attribute query module 702 and an order details query module 703.

[0077] The query parameter acquisition module 701 is used to obtain order query parameters based on the order summary message obtained by monitoring the unified order queue, where the unified order queue integrates various business order queues;

[0078] Basic attribute query module 702, used to query the basic attributes of the order according to the unified order detail query interface and the order query parameters;

[0079] The order details query module 703 is used to filter the target sub-chain from the preset order information chain, execute the query task of the target sub-chain according to the basic attributes of the order, obtain the extended attributes, fill the extended attributes into the corresponding position in the order details to be queried, and obtain the order details.

[0080] According to one embodiment of the present invention, the order details query device 700 also includes an order summary message construction module (not shown in the figure), which is used to: monitor various business order queues, perform order parsing on the acquired message body data, and obtain an initial order summary message; assemble the initial order summary message according to a preset standard format to obtain an order summary message, and forward the order summary message to a unified order queue.

[0081] According to another embodiment of the present invention, the order details query device 700 also includes a business filtering module (not shown in the figure), which is used to: determine related businesses based on preset order businesses before assembling the initial order summary message according to a preset standard format; and filter out other order summary messages corresponding to non-related businesses from the initial order summary message based on the relevant businesses.

[0082] According to another embodiment of the present invention, the initial order summary message has channel information; the order summary message construction module (not shown in the figure) is further used to: obtain the common parameters in the initial order summary message, assemble the common parameters according to a preset standard format, and obtain a common message body; determine the acquisition strategy and assembly strategy of the exclusive parameters of the initial order summary message according to the channel information in the initial order summary message, obtain the exclusive parameters through the acquisition strategy, and then assemble the exclusive parameters according to the assembly strategy to obtain an exclusive message body; generate an order summary message according to the common message body and the exclusive message body.

[0083] According to another embodiment of the present invention, the order details query module 703 is further used to: for each sub-chain in the order information chain: determine whether the sub-chain is a target sub-chain based on the order type in the order query parameter; if the sub-chain is a target sub-chain, use the order basic attributes as input parameters, access the business system corresponding to the sub-chain through remote procedure call to execute the query task of the sub-chain, and obtain the extended attributes corresponding to the sub-chain.

[0084] According to another embodiment of the present invention, the order details query device 700 further includes a parameter verification module (not shown in the figure) for verifying the order query parameters before querying the basic attributes of the order and confirming that the verification has passed.

[0085] According to another embodiment of the present invention, the order details query device 700 also includes a monitoring module (not shown in the figure), which is used to: monitor the query process of the order details and the construction process of the order summary message in the unified order queue; if an abnormality occurs in the query process or the construction process, an alarm prompt message is issued, or a retry mechanism is used to re-query or re-construct.

[0086] Figure 8 is an exemplary system architecture diagram to which embodiments of the present invention can be applied.

[0087] like Figure 8 As shown, system architecture 800 may include terminal devices 801, 802, 803, a network 804, and a server 805. Network 804 is used to provide a medium for communication links between terminal devices 801, 802, 803 and server 805. Network 804 may include various connection types, such as wired or wireless communication links or fiber optic cables.

[0088] Users can use terminal devices 801, 802, 803 to interact with server 805 via network 804 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 801, 802, 803, such as order details query application, etc. (only as an example).

[0089] The terminal devices 801 , 802 , and 803 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.

[0090] Server 805 can be a server that provides various services, such as a background management server (only as an example) that supports the order details of users using terminal devices 801, 802, and 803. The background management server can obtain order query parameters based on the order summary message obtained by monitoring the unified order queue, and the unified order queue integrates various business order queues; query the basic attributes of the order according to the unified interface for querying order details and the order query parameters; filter the target sub-chain from the preset order information chain, execute the query task of the target sub-chain according to the basic attributes of the order, obtain extended attributes, fill the extended attributes into the corresponding position in the order details to be queried, obtain order details, etc., and feed back the processing results (such as order details, etc. - only as an example) to the terminal device.

[0091] It should be noted that the order details query method provided in the embodiment of the present invention is generally executed by the server 805 , and accordingly, the order details query device is generally set in the server 805 .

[0092] It should be understood that Figure 8 The number of terminal devices, networks and servers in the embodiment is merely illustrative. Any number of terminal devices, networks and servers may be provided as required.

[0093] Reference below Figure 9 , which shows a schematic structural diagram of a computer system of a terminal device or server suitable for implementing an embodiment of the present invention. Figure 9 The terminal device or server shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0094] like Figure 9 As shown, the computer system 900 includes a central processing unit (CPU) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage unit 908 into a random access memory (RAM) 903. Various programs and data required for the operation of the system 900 are also stored in the RAM 903. The CPU 901, ROM 902, and RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0095] The following components are connected to the I / O interface 905: an input section 906 including a keyboard, a mouse, and the like; an output section 907 including devices such as a cathode ray tube (CRT), a liquid crystal display (LCD), and a speaker; a storage section 908 including a hard disk and the like; and a communication section 909 including a network interface card such as a LAN card or a modem. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the I / O interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory, is installed in the drive 910 as needed, so that computer programs read therefrom can be installed into the storage section 908 as needed.

[0096] In particular, according to the embodiments disclosed in the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program comprising program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 909, and / or installed from a removable medium 911. When the computer program is executed by the central processing unit (CPU) 901, the above-mentioned functions defined in the system of the present invention are performed.

[0097] It should be noted that the computer-readable medium described in the present invention can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media can include, but are not limited to, an electrical connection having one or more conductors, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present invention, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. This propagated data signal can take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wireline, optical cable, RF, or any suitable combination thereof.

[0098] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of the boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0099] The units involved in the embodiments of the present invention may be implemented in software or hardware. The units described may also be provided in a processor. For example, the processor may include a query parameter acquisition module, a basic attribute query module, and an order details query module.

[0100] Among them, the names of these modules do not constitute a limitation of the module itself in some cases. For example, the basic attribute query module can also be described as "a module used to query the basic attributes of an order based on the unified interface for querying order details and the order query parameters."

[0101] On the other hand, the present invention also provides a computer-readable medium, which may be included in the device described in the embodiment; or it may exist independently and not be assembled into the device. The computer-readable medium carries one or more programs, and when the one or more programs are executed by a device, the device includes: obtaining order query parameters based on the order summary message obtained by monitoring the unified order queue, the unified order queue integrates various business order queues; querying the basic attributes of the order based on the unified interface for order details and the order query parameters; screening the target sub-chain from the preset order information chain, executing the query task of the target sub-chain based on the basic attributes of the order, obtaining extended attributes, and filling the extended attributes into the corresponding position in the order details to be queried to obtain the order details.

[0102] The technical solution according to the embodiment of the present invention has the following advantages or beneficial effects: by monitoring the order summary message obtained by the unified order queue, order query parameters are obtained, and the unified order queue integrates various business order queues; according to the order details query unified interface and order query parameters, the basic attributes of the order are queried; the target sub-chain is screened from the preset order information chain, and according to the basic attributes of the order, the query task of the target sub-chain is executed to obtain the extended attributes, and the extended attributes are filled into the corresponding position in the order details to be queried to obtain the technical solution of the order details, thereby realizing a standard and decoupled order details query method. Various merchants are connected to the standard unified order queue, with low access cost and easy maintenance. In addition, the interaction between components is decoupled through the unified order queue and the unified interface for order details query, which is conducive to subsequent function expansion and iterative design.

[0103] The specific embodiments described herein do not limit the scope of protection of the present invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention are intended to be included within the scope of protection of the present invention.

Claims

1. A method for querying order details, characterized in that: include: Obtain order query parameters based on order summary messages obtained by monitoring a unified order queue that integrates various business order queues; Query the basic attributes of the order according to the unified order details query interface and the order query parameters; Filter the target sub-chain from the preset order information chain, execute the query task of the target sub-chain according to the basic attributes of the order, obtain the extended attributes, fill the extended attributes into the corresponding position in the order details to be queried, and obtain the order details.

2. The method according to claim 1, characterized in that The order summary message in the unified order queue is constructed in the following way: Monitor various business order queues, parse the acquired message body data, and obtain the initial order summary message; The initial order summary message is assembled according to a preset standard format to obtain an order summary message, and the order summary message is forwarded to a unified order queue.

3. The method according to claim 2, characterized in that Before assembling the initial order summary message according to a preset standard format, the method further includes: Determine related business based on preset order business; According to the related business, other order summary messages corresponding to non-related businesses are filtered out from the initial order summary message.

4. The method according to claim 2, characterized in that The initial order summary message has channel information; Assemble the initial order summary message according to a preset standard format to obtain an order summary message, including: Obtaining public parameters in the initial order summary message, assembling the public parameters according to a preset standard format, and obtaining a public message body; determining, based on the channel information in the initial order summary message, an acquisition strategy and an assembly strategy for the exclusive parameters of the initial order summary message, obtaining the exclusive parameters using the acquisition strategy, and then assembling the exclusive parameters according to the assembly strategy to obtain an exclusive message body; An order summary message is generated according to the public message body and the exclusive message body.

5. The method according to claim 1, wherein Filter the target sub-chain from the preset order information chain, execute the query task of the target sub-chain based on the basic attributes of the order, and obtain extended attributes, including: For each subchain in the order information chain: According to the order type in the order query parameter, determine whether the subchain is the target subchain. If the subchain is the target subchain, use the basic attributes of the order as input parameters, access the business system corresponding to the subchain through remote procedure calls to execute the query task of the subchain and obtain the extended attributes corresponding to the subchain.

6. The method according to claim 1, characterized in that Before querying the basic attributes of the order, the method further includes: Verify the order query parameters and confirm that the verification passes.

7. The method according to claim 1 or 2, characterized in that The method further comprises: Monitor the query process of the order details and the construction process of the order summary message in the unified order queue; In the event that an exception occurs during the query process or the construction process, an alarm prompt message is issued, or a retry mechanism is used to query again or construct again.

8. A device for querying order details, characterized in that: include: A query parameter acquisition module is used to obtain order query parameters based on the order summary message obtained by monitoring the unified order queue, where the unified order queue integrates various business order queues; A basic attribute query module is used to query the basic attributes of an order based on the unified interface for querying order details and the order query parameters; The order details query module is used to filter the target sub-chain from the preset order information chain, execute the query task of the target sub-chain according to the basic attributes of the order, obtain the extended attributes, and fill the extended attributes into the corresponding position in the order details to be queried to obtain the order details.

9. A mobile electronic device terminal, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.

10. A computer-readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.