Configuration method of pre-inquiry component and processing method and device of pre-inquiry service

By automatically generating the dependencies and execution sequence between pre-diagnostic components, the problem of inefficient configuration of pre-diagnostic business components in the prior art is solved, and efficient pre-diagnostic process execution and user experience improvement is achieved.

CN119847582APending Publication Date: 2025-04-18BEIJING JINGDONG TUOXIAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311340180.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-16
Publication Date
2025-04-18

AI Technical Summary

Technical Problem

The existing pre-diagnostic business component configuration method is inefficient, making it difficult to confirm the dependencies and execution order between components, resulting in low business execution efficiency and reducing user experience.

Method used

By determining the input data and output data of each pre-diagnostic component, the dependencies between each pre-diagnostic component are automatically generated, and the execution order is determined, improving component management capabilities and business process execution efficiency.

Benefits of technology

It realizes efficient pre-diagnosis process execution, ensuring that the dependent components are pre-executed, and the mutually unreliable components are executed in parallel, improving the execution efficiency and user experience of the entire pre-diagnosis process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119847582A_ABST
    Figure CN119847582A_ABST
Patent Text Reader

Abstract

The invention discloses a pre-inquiry component configuration method and a pre-inquiry service processing method and device, and relates to the technical field of internet medical treatment. A specific embodiment of the method comprises the following steps: determining input data and output data of each pre-inquiry component; according to the input data and the output data of each pre-inquiry component, determining a dependency relationship between the pre-inquiry components; and determining an execution sequence of the pre-inquiry components according to the dependency relationship among the pre-inquiry components. According to the embodiment, the execution sequence of each pre-inquiry component can be automatically generated according to the input data and the output data of each pre-inquiry component, so that the management capability of the pre-inquiry components is improved, and the problem of low configuration efficiency caused by a manual configuration mode is solved; the execution sequence of each pre-inquiry component obtained by adopting the method can efficiently execute the pre-inquiry process, and the execution efficiency of the whole pre-inquiry process is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of Internet medical technology, and in particular to a configuration method of a pre-consultation component, and a processing method and device for a pre-consultation service. Background Art

[0002] With the continuous development of computer technology, the development of large-scale software systems generally adopts a component-based software design method, that is, for a specific business, select business components that implement business functions, and specify the dependencies between different business components to achieve business functions. In the development of Internet hospital systems, pre-consultation is the process of collecting information from users in advance before consulting with doctors in order to complete the subsequent doctor consultation.

[0003] Currently, the pre-consultation service uses manual configuration to obtain the execution components required for the business process and parse the component dependencies to achieve business functions. However, as the pre-consultation service components gradually expand, the dependencies between components become complex, the manual configuration method is inefficient, and it is difficult to confirm the dependencies and execution order between components, resulting in low business execution efficiency and reduced user experience. Summary of the invention

[0004] In view of this, the embodiments of the present invention provide a configuration method for a pre-consultation component, a processing method and device for a pre-consultation business, which can automatically generate the execution order of each pre-consultation component according to the input data and output data of each pre-consultation component, thereby improving the management capability of the pre-consultation component and overcoming the problem of low configuration efficiency caused by manual configuration. The execution order of each pre-consultation component obtained by this method can efficiently execute the pre-consultation process and improve the execution efficiency of the entire pre-consultation process.

[0005] To achieve the above object, according to one aspect of an embodiment of the present invention, a configuration method of a pre-diagnosis component is provided, comprising:

[0006] Determine the input and output data for each pre-diagnosis component;

[0007] Determining the dependency relationship between the pre-diagnosis components according to the input data and output data of each pre-diagnosis component;

[0008] The execution order of each of the pre-diagnosis components is determined according to the dependency relationship between each of the pre-diagnosis components.

[0009] Optionally, determining the execution order of each of the pre-diagnosis components includes:

[0010] Determining the in-degree of each pre-diagnosis component according to the dependency relationship between the pre-diagnosis components;

[0011] Constructing a two-dimensional array according to the in-degree of each pre-diagnosis component and the dependency relationship, wherein the two-dimensional array includes the position of each pre-diagnosis component in the two-dimensional array;

[0012] The execution order of each pre-diagnosis component is determined according to the position of each pre-diagnosis component in the two-dimensional array.

[0013] Optionally, a two-dimensional array is constructed according to the in-degree of each pre-diagnosis component and the dependency relationship, including:

[0014] The following steps are executed in a loop: obtaining a pre-diagnosis component with an in-degree of 0, placing the pre-diagnosis component with an in-degree of 0 as an element component into the two-dimensional array, and determining the position of the element component in the two-dimensional array; and updating the in-degree of the pre-diagnosis component that depends on the element component according to the element component and the dependency relationship.

[0015] Optionally, the position of each pre-diagnosis component in the two-dimensional array includes the group where the pre-diagnosis component is located and the position of the group in the two-dimensional array, and the execution order of each pre-diagnosis component is determined according to the position of each pre-diagnosis component in the two-dimensional array, including:

[0016] Determining the execution sequence number of the group according to the position of the group in the two-dimensional array; using the execution sequence number of the group as the execution sequence number of the pre-diagnosis component in the group;

[0017] Determining the execution order of each of the pre-diagnosis components according to the execution sequence number of each of the pre-diagnosis components,

[0018] The execution sequence includes a parallel execution sequence of pre-diagnosis components with the same execution sequence number and a serial execution sequence of components with different execution sequence numbers executed in ascending order.

[0019] Another aspect of the embodiment of the present invention provides a method for processing a pre-consultation service, including:

[0020] receiving a pre-consultation request, the pre-consultation request including a data identifier, and determining a target pre-consultation component corresponding to the data identifier;

[0021] Acquire each pre-diagnosis component to be executed that has a dependency relationship with the target pre-diagnosis component;

[0022] Determining the target execution order of the target pre-diagnosis component and each of the pre-diagnosis components to be executed according to the execution order of each pre-diagnosis component;

[0023] The target pre-diagnosis component and each of the to-be-executed pre-diagnosis components are executed according to the target execution order to obtain a request result corresponding to the pre-diagnosis request.

[0024] Optionally, the execution order of each pre-diagnosis component includes the execution sequence number of each pre-diagnosis component, and determining the target execution order of the target pre-diagnosis component and each of the pre-diagnosis components to be executed includes:

[0025] According to the execution serial numbers of the pre-diagnosis components, obtaining the execution serial numbers of the target pre-diagnosis component and each of the pre-diagnosis components to be executed;

[0026] The target execution order is determined according to the execution sequence number of the target pre-diagnosis component and each of the pre-diagnosis components to be executed.

[0027] Optionally, determining the target execution order according to the execution sequence number of the target pre-diagnosis component and each of the pre-diagnosis components to be executed includes:

[0028] Arrange the execution sequence numbers of the target pre-diagnosis component and each of the pre-diagnosis components to be executed in ascending order;

[0029] The pre-diagnosis components to be executed with the same execution sequence number are divided into the same group, so as to obtain a plurality of groups arranged in sequence;

[0030] The target execution order is obtained according to a plurality of groups arranged in sequence.

[0031] In another aspect of the embodiment of the present invention, a configuration device for a pre-diagnosis component is provided, comprising:

[0032] Component definition module, which determines the input data and output data of each pre-diagnosis component;

[0033] A dependency building module, which determines the dependency between the pre-diagnosis components according to the input data and output data of each pre-diagnosis component;

[0034] The execution order building module determines the execution order of each of the pre-diagnosis components according to the dependency relationship between the pre-diagnosis components.

[0035] Another aspect of the embodiment of the present invention provides a processing device for pre-consultation service, including:

[0036] A receiving module receives a pre-diagnosis request, wherein the pre-diagnosis request includes a data identifier, and determines a target pre-diagnosis component corresponding to the data identifier;

[0037] An acquisition module, which acquires each to-be-executed pre-diagnosis component that has a dependency relationship with the target pre-diagnosis component;

[0038] A determination module, which determines the target execution order of the target pre-diagnosis component and each of the pre-diagnosis components to be executed according to the execution order of each pre-diagnosis component;

[0039] An execution module executes the target pre-diagnosis component and each of the to-be-executed pre-diagnosis components according to the target execution order to obtain a request result corresponding to the pre-diagnosis request.

[0040] According to another aspect of an embodiment of the present invention, there is provided an electronic device, including:

[0041] one or more processors;

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

[0043] When the one or more programs are executed by the one or more processors, the one or more processors implement the configuration method of the pre-consultation component or the processing method of the pre-consultation service provided by the present invention.

[0044] According to another aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored, and when the program is executed by a processor, the configuration method of the pre-consultation component or the processing method of the pre-consultation service provided by the present invention is implemented.

[0045] One embodiment of the above invention has the following advantages or beneficial effects: by defining the business of each pre-diagnosis component, determining the input data and output data of each pre-diagnosis component, and then constructing the dependency relationship between each pre-diagnosis component according to the input data and output data of each pre-diagnosis component, so as to construct the execution order of each pre-diagnosis component according to the dependency relationship. This method automatically generates the execution order of each pre-diagnosis component according to the input data and output data of each pre-diagnosis component, improves the management ability of the pre-diagnosis component, and overcomes the problem of low configuration efficiency caused by manual configuration; the execution order of each pre-diagnosis component obtained by this method can efficiently execute the pre-diagnosis process, so that the dependent pre-diagnosis components are executed in advance, and the pre-diagnosis components that are not dependent on each other can be executed in parallel, thereby improving the execution efficiency of the entire pre-diagnosis process.

[0046] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0048] Figure 1 is a schematic diagram of the main process of a configuration method of a pre-diagnosis component according to an embodiment of the present invention;

[0049] Figure 2 is a schematic diagram of dependency relationships of a pre-diagnosis component according to an embodiment of the present invention;

[0050] Figure 3 is a schematic diagram of the main process of another configuration method of the pre-diagnosis component according to an embodiment of the present invention;

[0051] Figure 4 is a schematic diagram of the main process of a method for processing a pre-consultation service according to an embodiment of the present invention;

[0052] Figure 5 is a schematic diagram of main modules of a configuration device of a pre-diagnosis component according to an embodiment of the present invention;

[0053] Figure 6 is a schematic diagram of main modules of a processing device for pre-consultation services according to an embodiment of the present invention;

[0054] Figure 7 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;

[0055] Figure 8 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

[0056] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill 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 clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0057] Figure 1 is a schematic diagram of the main process of a configuration method of a pre-diagnosis component according to an embodiment of the present invention, such as Figure 1 As shown, the method comprises the following steps:

[0058] Step S101: Determine the input data and output data of each pre-diagnosis component;

[0059] Step S102: Determine the dependency relationship between the pre-diagnosis components according to the input data and output data of each pre-diagnosis component;

[0060] Step S103: Determine the execution order of each pre-diagnosis component according to the dependency relationship between each pre-diagnosis component.

[0061] In an embodiment of the present invention, the pre-consultation component is a component that needs to be executed in the pre-consultation business process. The configuration method of the pre-consultation component is a method for configuring the execution order of each pre-consultation component in the pre-consultation business process, so that each pre-consultation component is executed in accordance with the execution order during the execution of the pre-consultation business to realize the pre-consultation function.

[0062] In an embodiment of the present invention, the input data and output data of each pre-diagnosis component can be determined by performing business definition on each pre-diagnosis component, that is, defining the capabilities that each pre-diagnosis component can provide, including defining the input data and output data of the pre-diagnosis component, that is, the data required and the data generated when the pre-diagnosis component is executed, so that the pre-diagnosis component can process the input data to obtain the output data. For example, the input data of the pre-consultation component A is the configuration ID, and the output data is the configuration information, that is, the configuration information can be obtained according to the configuration ID; the input data of the pre-consultation component B is the user PIN, and the output data is the user information, that is, the user information can be queried according to the user PIN; the input data of the pre-consultation component C is the configuration information, and the output data is the original price information, that is, the original price information can be queried according to the configuration information; the input data of the pre-consultation component D is the user information, and the output information is the coupon information, that is, the user's coupon information can be queried according to the user information; the input data of the pre-consultation component E is the configuration information, and the output data is the guide template information, that is, the guide template information can be obtained according to the configuration information; the input data of the pre-consultation component F is the original price information, coupon information and configuration information, and the output data is the display price information, that is, the display price information can be generated according to the original price information, coupon information and configuration information; the input data of the pre-consultation component G is the guide template information and user information, and the output data is the display guide, that is, the display guide can be generated according to the guide template information and user information.

[0063] In an embodiment of the present invention, before determining the dependency relationship between the pre-diagnosis components based on the input data and output data of each pre-diagnosis component, each pre-diagnosis component is normalized, that is, each pre-diagnosis component is normalized into a field code for identifying each pre-diagnosis component. There are many types of pre-diagnosis components, such as SpringBean, FAAS execution script and the like. The pre-diagnosis component is defined using a json field, which is compatible with the implementation methods of different types of components. The pre-diagnosis component can implement the initialization of data content, thereby realizing business logic. For example, the pre-diagnosis component B is a Spring container bean, and the json description of the pre-diagnosis component B is {"component":"userInfoInit"}, which can be normalized to "userInfoInit". In the following text, "component X" is normalized and recorded as X.

[0064] In an embodiment of the present invention, the dependency relationship between the pre-diagnosis components can be determined based on the input data and output data of each pre-diagnosis component, that is, if the input data of one pre-diagnosis component is the same as the output data of another pre-diagnosis component, then the two pre-diagnosis components have a dependency relationship. Specifically, one of the pre-diagnosis components depends on the other pre-diagnosis component, that is, one of the pre-diagnosis components can only be executed after the other pre-diagnosis component is executed. For example, the parameters brought into the interface by the front-end pre-diagnosis page are the process configuration ID and the user PIN. From the foregoing, the input data and output data of the pre-diagnosis component AG can be known. For example, the pre-diagnosis component A needs the parameter configuration ID in the context to obtain the configuration information, and put the configuration information into the context for use by subsequent pre-diagnosis components. Pre-diagnosis components A and B do not depend on any other components. The parameters they depend on can be obtained from the front-end input parameters, namely the configuration ID and user PIN. The configuration information required by pre-diagnosis component C needs to be put into the context after pre-diagnosis component A is executed. It can be concluded that pre-diagnosis component C depends on pre-diagnosis component A. According to this logic, it can be concluded that pre-diagnosis component D depends on pre-diagnosis component B, pre-diagnosis component D depends on pre-diagnosis component A, pre-diagnosis component F depends on pre-diagnosis components A, C and D, and pre-diagnosis component G depends on pre-diagnosis components B and E. Figure 2 The diagram shows the dependency relationship of each pre-diagnosis component after the pre-diagnosis component AG is normalized, which intuitively shows the dependency relationship between the components. The arrow pointing from E to A indicates that the pre-diagnosis component depends on the pre-diagnosis component A.

[0065] In the embodiment of the present invention, Figure 3 As shown, according to the dependency relationship between the pre-diagnosis components, the execution order of the pre-diagnosis components is determined, including:

[0066] Step S301: Determine the in-degree of each pre-diagnosis component according to the dependency relationship between the pre-diagnosis components;

[0067] Step S302: constructing a two-dimensional array according to the in-degree and dependency relationship of each pre-diagnosis component, wherein the two-dimensional array includes the position of each pre-diagnosis component in the two-dimensional array;

[0068] Step S303: determining the execution order of each pre-diagnosis component according to the position of each pre-diagnosis component in the two-dimensional array.

[0069] In the embodiment of the present invention, after the dependency relationships between the pre-diagnosis components are determined, data initialization is performed according to the dependency relationships, including determining the in-degree, full dependency, and dependent relationship of each pre-diagnosis component according to the dependency relationships (i.e., direct dependency relationships). For example, in the above text, the dependency relationship of the pre-diagnosis component AG can be expressed as:

[0070] {"C":["A"],"D":["B"],"E":["A"],"F":["A","C","D"],"G":[B,E]}, Formula (1),

[0071] The dependency is JSON data, the key is the pre-consultation component, and the value is the set of other pre-consultation components that the pre-consultation component depends on.

[0072] The in-degree of each pre-diagnosis component can be determined based on the dependency relationship. The in-degree of each pre-diagnosis component is the component that each pre-diagnosis component directly depends on. For example, pre-diagnosis component F directly depends on pre-diagnosis components A, C, and D. Then, the in-degree of pre-diagnosis component F is 3, and the initial in-degree of pre-diagnosis component AG is:

[0073] {"A":0,"B":0,"c":1,"D":1,"E":1,"F":3,"G":2}, Formula (2),

[0074] The full dependency relationship of each pre-diagnosis component is all the pre-diagnosis components that the pre-diagnosis component depends on. For example, pre-diagnosis component G depends on pre-diagnosis components B and E, and pre-diagnosis component D depends on pre-diagnosis component A. Then the pre-diagnosis components that pre-diagnosis component G fully depends on are A, B and E. Thus, the full dependency relationship of pre-diagnosis component AG is:

[0075] {"C":["A"],"D":["B"],"E":["A"],"F":["A","B","C","D"],"G":["A","B","E"]}, formula (3),

[0076] The dependency relationship of each pre-diagnosis component is which pre-diagnosis components the pre-diagnosis component directly depends on. For example, pre-diagnosis component B is directly dependent on pre-diagnosis components D and G. By traversing the dependency relationship, the dependency relationship of pre-diagnosis component AG can be obtained as follows:

[0077] {"A":["C","E","F"],"B":["D","G"],"C":["F"],"D":["F"],"E":["G"],"F":[],"G":[]}, formula (4),

[0078] Among them, [] indicates that there is no dependent pre-diagnosis component.

[0079] In an embodiment of the present invention, after determining the dependency relationship between the various pre-diagnosis components, the dependency relationship is verified to verify that there is no circular dependency between the pre-diagnosis components. The circular dependency includes direct circular dependency and indirect circular dependency. Direct circular dependency is such as pre-diagnosis component A relying on pre-diagnosis component A, and indirect circular dependency is such as pre-diagnosis component A relying on B, B relying on C, and C relying on A. Circular dependency will result in the inability to find the execution entry in the circular pre-diagnosis component and the inability to parse it. Direct circular dependency is verified by traversing the dependency relationship, i.e., formula (1). The key cannot be included in the value set corresponding to the key, otherwise a direct circular dependency is formed. Indirect circular dependency is verified when constructing a two-dimensional array.

[0080] In an embodiment of the present invention, after determining the in-degree of each pre-diagnosis component, a two-dimensional array can be constructed according to the in-degree and dependency relationship of each pre-diagnosis component to determine the execution order of each pre-diagnosis component according to the two-dimensional array, wherein the two-dimensional array includes the position of each pre-diagnosis component in the two-dimensional array.

[0081] In the embodiment of the present invention, a two-dimensional array is constructed according to the in-degree and dependency relationship of each pre-diagnosis component, including:

[0082] The following steps are executed in a loop: obtaining the pre-diagnosis component with an in-degree of 0, placing the pre-diagnosis component with an in-degree of 0 as an element component into a two-dimensional array, and determining the position of the element component in the two-dimensional array; updating the in-degree of the pre-diagnosis component that depends on the element component according to the element component and the dependency relationship.

[0083] In the embodiment of the present invention, the two-dimensional array is first initialized to []. According to formula (2), the pre-diagnosis components with an in-degree of 0 are obtained, namely, the pre-diagnosis components A and B. That is, these two components do not depend on any other components and can be directly executed. The pre-diagnosis components A and B are placed in the first position of the two-dimensional array as element components, that is, the two-dimensional array is [["A", "B"]]. At the same time, A and B are deleted from formula (2); then, according to the element components and the dependency relationship or the dependent relationship, the components that directly depend on the element components are determined, that is, the pre-diagnosis components that directly depend on the pre-diagnosis components A and B are C, E, F, D, and G, respectively, that is, A is directly dependent on E, C and F, respectively, and B is directly dependent on D and G, respectively. The in-degrees of the pre-diagnosis components C, E, F, D, and G in formula (2) are reduced by 1, that is, which pre-diagnosis components can be executed after the pre-diagnosis components A and B are executed, and the updated in-degree is obtained as:

[0084] {"C":0,"D":0,"E":0,"F":2,"G":1}, Formula (5),

[0085] According to formula (5), obtain the pre-diagnosis components C, D and E with in-degree 0, put the pre-diagnosis components C, D and E as element components into the second position of the two-dimensional array, and update the two-dimensional array to [["A","B"],["C","D","E"]]; at the same time, delete C, D and E from formula (5);

[0086] Then, according to the dependency relationship or the dependent relationship, the components that directly depend on the pre-diagnosis components C, D and E are determined to be F and G respectively. The pre-diagnosis component C is dependent on F, D is dependent on F, and E is dependent on G. Then, the in-degree of F in formula (5) is reduced by 2, and the in-degree of G is reduced by 1. The updated in-degree is:

[0087] {"F":0,"G":0}, Formula (6),

[0088] According to formula (6), the pre-diagnosis components F and G with in-degree 0 are obtained, and F and G are placed as element components in the third position of the two-dimensional array. The two-dimensional array is then updated to [["A","B"], ["C","D","E"], ["F","G"]], and the pre-diagnosis components F and G are deleted from formula (2).

[0089] When the pre-diagnosis component in formula (2) is empty, it is determined that the two-dimensional array is constructed, that is, the constructed two-dimensional array is [["A","B"], ["C","D","E"], ["F","G"]]. The pre-diagnosis components with an in-degree of 0 are obtained layer by layer, put into the two-dimensional array, and the in-degrees of other components are updated until there are no components with an in-degree of 0 and all components are taken out of formula (2), and the construction is completed.

[0090] In the embodiment of the present invention, if there is a circular dependency in the process of constructing the two-dimensional array, such as components E and G are dependent on each other, the in-degree of components E and G will not be 0, that is, after calculating that there is no component with an in-degree of 0, the in-degree of components E and G is not 0, and E and G cannot be taken out from formula (2), that is, the dependency relationship, then it is determined that components E and G are dependent on each other, and an error prompt is generated, and parsing cannot be performed.

[0091] In an embodiment of the present invention, the position of each pre-diagnosis component in the two-dimensional array includes the group where the pre-diagnosis component is located and the position of the group in the two-dimensional array, and the execution order of each pre-diagnosis component is determined according to the position of each pre-diagnosis component in the two-dimensional array, including:

[0092] Determine the execution sequence number of the group according to the position of the group in the two-dimensional array; use the execution sequence number of the group as the execution sequence number of the pre-diagnosis component in the group;

[0093] Determine the execution order of each pre-diagnosis component according to the execution sequence number of each pre-diagnosis component.

[0094] The execution sequence includes the parallel execution sequence of pre-diagnosis components with the same execution sequence number and the serial execution sequence of components with different execution sequence numbers executed in ascending order.

[0095] In an embodiment of the present invention, the position of each pre-diagnosis component in the two-dimensional array includes the group where the pre-diagnosis component is located and the position of the group in the two-dimensional array, that is, each pre-diagnosis component has a corresponding group when placed in the two-dimensional array, and each group has a corresponding position, and the first position, second position or third position in the above text is the position of the group where the pre-diagnosis component is located in the two-dimensional array. The pre-diagnosis components placed in the two-dimensional array with an in-degree of 0 correspond to the same group, such as pre-diagnosis components A and B are the same group, pre-diagnosis components C, D and E are the same group, and pre-diagnosis components F and G are the same group, and the positions of the three groups in the two-dimensional array are the first position, the second position and the third position respectively.

[0096] When determining the execution order of each pre-diagnosis component according to the position of each pre-diagnosis component in the two-dimensional array, first determine the execution sequence number of each group according to the position of each group in the two-dimensional array. For example, if the group is in the first position in the two-dimensional array, the execution sequence number of the group is 1; if the group is in the second position in the two-dimensional array, the execution sequence number of the group is 2; if the group is in the third position in the two-dimensional array, the execution sequence number of the group is 3; at the same time, the execution sequence number of the pre-diagnosis component in the group is the same as the execution sequence number of the group, such as group [" The execution sequence number of the group ["A","B"] is 1, then the execution sequence numbers of the pre-diagnosis components A and B are both 1, and the execution sequence number of the group ["F","G"] is 3, then the execution sequence numbers of the pre-diagnosis components F and G are both 3, so the execution sequence number of each pre-diagnosis component can be determined, and the execution order of each pre-diagnosis component is determined in ascending order of the execution sequence number. According to the two-dimensional array [["A","B"],["C","D","E"],["F","G"]], the execution order of the pre-diagnosis components AG is obtained as follows:

[0097] {"A":1,"B":1,"C":2,"D":2,"E":2,"F":3,"G":3}, formula (7).

[0098] In the embodiment of the present invention, the execution order of each pre-diagnosis component includes a parallel execution order and a serial execution order. For the pre-diagnosis components in the same group, that is, the pre-diagnosis components with the same execution sequence number, the parallel execution order is used. For the pre-diagnosis components in different groups, that is, the pre-diagnosis components with different execution sequence numbers, the serial execution order is in ascending order according to the execution sequence number of the group or the execution sequence number of the pre-diagnosis component. For example, in formula (7), ["A", "B"], ["C", "D", "E"], ["F", "G"] are serial execution orders, A and B can be executed in parallel, C, D and E can be executed in parallel, and F and G can be executed in parallel. By making the dependent pre-diagnosis components execute in advance and the pre-diagnosis components that are not dependent on each other execute in parallel, the execution efficiency of the business process can be improved, thereby improving the response speed of the request and improving the user experience.

[0099] Another aspect of the embodiment of the present invention is as follows Figure 4 As shown, a method for processing a pre-consultation service is provided, including:

[0100] Step S401: receiving a pre-consultation request, the pre-consultation request including a data identifier, and determining a target pre-consultation component corresponding to the data identifier;

[0101] Step S402: Acquire each pre-diagnosis component to be executed that has a dependency relationship with the target pre-diagnosis component;

[0102] Step S403: determining the target execution order of the target pre-diagnosis component and each pre-diagnosis component to be executed according to the execution order of each pre-diagnosis component;

[0103] Step S404: executing the target pre-diagnosis component and each pre-diagnosis component to be executed according to the target execution order to obtain a request result corresponding to the pre-diagnosis request.

[0104] In an embodiment of the present invention, after obtaining the execution order of each pre-diagnosis component according to the configuration method of the pre-diagnosis component, when executing the pre-diagnosis process, the corresponding pre-diagnosis components are obtained according to the business logic that needs to be executed, and a two-dimensional array is constructed to determine the execution order based on the two-dimensional array.

[0105] In an embodiment of the present invention, a pre-consultation request is received, and the pre-consultation request includes a data identifier. According to the data identifier, the corresponding target pre-consultation component can be determined, that is, the data identifier is an identifier corresponding to the output data of the target pre-consultation component. For example, if the pre-consultation request is a request for obtaining a display price, and the data identifier is the display price, then the target pre-consultation component is the pre-consultation component F, and the display price can be obtained through the pre-consultation component F.

[0106] Then, obtain all the pre-diagnosis components to be executed that have a dependency relationship with the target pre-diagnosis component, that is, all the dependent components of the target pre-diagnosis component, that is, all the components that the target pre-diagnosis component depends on. For example, the all dependent components of the pre-diagnosis component F are pre-diagnosis components A, B, C and D. Therefore, the pre-diagnosis components that need to be executed in the pre-diagnosis process corresponding to the pre-diagnosis request include A, B, C, D and F.

[0107] In an embodiment of the present invention, after determining the target pre-diagnosis component and each pre-diagnosis component to be executed, the execution order of each constructed pre-diagnosis component is called to determine the target execution order of the target pre-diagnosis component and each pre-diagnosis component to be executed, so as to execute the target execution component and each pre-diagnosis component to be executed according to the target execution order to obtain a request result corresponding to the pre-diagnosis request, that is, data corresponding to the data identifier.

[0108] In the embodiment of the present invention, the execution order of each pre-diagnosis component includes the execution sequence number of each pre-diagnosis component, and determining the target execution order of the target pre-diagnosis component and each pre-diagnosis component to be executed includes:

[0109] According to the execution sequence numbers of each pre-diagnosis component, the execution sequence numbers of the target pre-diagnosis component and each pre-diagnosis component to be executed are obtained;

[0110] The target execution order is determined according to the execution sequence number of the target pre-diagnosis component and each pre-diagnosis component to be executed.

[0111] In an embodiment of the present invention, the execution order of each pre-diagnosis component includes the execution serial number of each pre-diagnosis component. According to the execution serial number of each pre-diagnosis component, the execution serial number of the target pre-diagnosis component and each pre-diagnosis component to be executed can be obtained, so that the target pre-diagnosis component and each pre-diagnosis component to be executed are executed according to the execution serial number.

[0112] In an embodiment of the present invention, determining a target execution order according to the target pre-diagnosis component and the execution sequence number of each pre-diagnosis component to be executed includes:

[0113] Arrange the execution sequence numbers of the target pre-diagnosis component and each pre-diagnosis component to be executed in ascending order;

[0114] The pre-diagnosis components to be executed with the same execution sequence number are divided into the same group, so as to obtain a plurality of groups arranged in sequence;

[0115] A target execution order is obtained according to a plurality of sequentially arranged groups.

[0116] In an embodiment of the present invention, after obtaining the execution sequence number of the target pre-diagnosis component and each pre-diagnosis component to be executed, the target pre-diagnosis component and each pre-diagnosis to be executed can be arranged in the order of the execution sequence number from small to large, such as obtaining {"A":1,"B":1,"C":2,"D":2,"F":3}, and then grouping is performed, and the pre-diagnosis components to be executed with the same execution sequence number are divided into the same group, that is, A and B are the same group, C and D are the same group, and multiple groups arranged in sequence are obtained, wherein the execution sequence number of each group is the execution sequence number of the pre-diagnosis component to be executed, and a two-dimensional array is constructed according to the multiple groups arranged in sequence, and the two-dimensional array is constructed. The multiple groups in the array are arranged in order from small to large execution numbers, such as the obtained two-dimensional array [["A","B"],["C","D"],["F"]], and then the target pre-diagnosis component and the pre-diagnosis component to be executed are denormalized, that is, [["component A","component B"],["component C","component D"],["component F"]] are obtained. According to the two-dimensional array, the target execution order can be determined, so that the program parses each component in the two-dimensional array and executes each component according to the target execution order, that is, A and B are executed in parallel, after A and B are executed, C and D are executed in parallel, and after C and D are executed, F is executed. The execution order of parallel execution can reduce the business execution time, improve the response speed of requests, reduce user waiting time, and thus improve user experience.

[0117] The configuration method of the pre-diagnosis component of the embodiment of the present invention performs business definition for each pre-diagnosis component, determines the input data and output data of each pre-diagnosis component, and then constructs the dependency relationship between the pre-diagnosis components based on the input data and output data of each pre-diagnosis component, so as to construct the execution order of each pre-diagnosis component based on the dependency relationship. This method automatically generates the execution order of each pre-diagnosis component based on the input data and output data of each pre-diagnosis component, improves the management capability of the pre-diagnosis component, and overcomes the problem of low configuration efficiency caused by manual configuration; the execution order of each pre-diagnosis component obtained by this method can efficiently execute the pre-diagnosis process, so that the dependent pre-diagnosis components are executed in advance, and the pre-diagnosis components that are not dependent on each other can be executed in parallel, thereby improving the execution efficiency of the entire pre-diagnosis process.

[0118] The processing method of the pre-consultation service of the embodiment of the present invention, after receiving the pre-consultation request from the user, determines the target pre-consultation component through the data identifier in the pre-consultation request, determines the various pre-consultation components to be executed corresponding to the target pre-consultation component according to the dependency relationship, calls the execution order of each configured pre-consultation component, determines the target execution order of the target pre-consultation component and each pre-consultation component to be executed, and executes the target pre-consultation component and each pre-consultation component to be executed according to the target execution order. This method realizes the parallel execution of pre-consultation components without mutual dependence by calling the execution order of each pre-consultation component, improves the execution efficiency of the pre-consultation business process, and improves the response speed of the request, thereby improving the user's interactive experience on the pre-consultation page.

[0119] In another aspect of the embodiment of the present invention, Figure 5 As shown, a configuration device 500 of a pre-diagnosis component is provided, comprising:

[0120] Component definition module 501, determines the input data and output data of each pre-diagnosis component;

[0121] A dependency building module 502 determines the dependency between the pre-diagnosis components according to the input data and output data of each pre-diagnosis component;

[0122] The execution order building module 503 determines the execution order of each pre-diagnosis component according to the dependency relationship between each pre-diagnosis component.

[0123] In the embodiment of the present invention, the execution order construction module 503 is further used to: determine the in-degree of each pre-diagnosis component according to the dependency relationship between the pre-diagnosis components; construct a two-dimensional array according to the in-degree and dependency relationship of each pre-diagnosis component, the two-dimensional array including the position of each pre-diagnosis component in the two-dimensional array; determine the execution order of each pre-diagnosis component according to the position of each pre-diagnosis component in the two-dimensional array.

[0124] In the embodiment of the present invention, the execution sequence construction module 503 is further used to: loop through the following steps: obtain a pre-diagnosis component with an in-degree of 0, place the pre-diagnosis component with an in-degree of 0 as an element component into a two-dimensional array, and determine the position of the element component in the two-dimensional array; update the in-degree of the pre-diagnosis component of the dependent element component according to the element component and the dependency relationship.

[0125] In an embodiment of the present invention, the position of each pre-diagnosis component in the two-dimensional array includes the group where the pre-diagnosis component is located and the position of the group in the two-dimensional array, and the execution order construction module 503 is further used to: determine the execution sequence number of the group according to the position of the group in the two-dimensional array; use the execution sequence number of the group as the execution sequence number of the pre-diagnosis component in the group; determine the execution sequence of each pre-diagnosis component according to the execution sequence number of each pre-diagnosis component, wherein the execution sequence includes the parallel execution sequence of pre-diagnosis components with the same execution sequence number and the serial execution sequence of different execution sequences in ascending order.

[0126] In another aspect of the embodiment of the present invention, Figure 6 As shown, a processing device 600 for pre-consultation service is provided, including:

[0127] A receiving module 601 receives a pre-consultation request including a data identifier, and determines a target pre-consultation component corresponding to the data identifier;

[0128] An acquisition module 602 is used to acquire each pre-diagnosis component to be executed that has a dependency relationship with the target pre-diagnosis component;

[0129] Determining module 603, determining the target execution order of the target pre-diagnosis component and each pre-diagnosis component to be executed according to the execution order of each pre-diagnosis component;

[0130] The execution module 604 executes the target pre-diagnosis component and each pre-diagnosis component to be executed according to the target execution order to obtain a request result corresponding to the pre-diagnosis request.

[0131] In an embodiment of the present invention, the execution order of each pre-diagnosis component includes the execution serial number of each pre-diagnosis component, and the determination module 603 is further used to: obtain the execution serial number of the target pre-diagnosis component and each pre-diagnosis component to be executed according to the execution serial number of each pre-diagnosis component; determine the target execution order according to the execution serial number of the target pre-diagnosis component and each pre-diagnosis component to be executed.

[0132] In an embodiment of the present invention, the determination module 603 is further used to: arrange the execution numbers of the target pre-diagnosis component and each pre-diagnosis component to be executed in ascending order; divide the pre-diagnosis components to be executed with the same execution number into the same group to obtain multiple groups arranged in sequence; and obtain the target execution order based on the multiple groups arranged in sequence.

[0133] According to another aspect of an embodiment of the present invention, there is provided an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the configuration method of the pre-consultation component or the processing method of the pre-consultation service provided by the present invention.

[0134] According to another aspect of an embodiment of the present invention, a computer readable medium is provided, on which a computer program is stored, and when the program is executed by a processor, the configuration method of the pre-consultation component or the processing method of the pre-consultation service provided by the present invention is implemented.

[0135] Figure 7 An exemplary system architecture 700 is shown to which a method for configuring a pre-consultation component or an apparatus for configuring a pre-consultation component, and a method for processing a pre-consultation service or an apparatus for processing a pre-consultation service according to an embodiment of the present invention can be applied.

[0136] like Figure 7 As shown, system architecture 700 may include terminal devices 701, 702, 703, network 704 and server 705. Network 704 is used to provide a medium for communication links between terminal devices 701, 702, 703 and server 705. Network 704 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0137] Users can use terminal devices 701, 702, and 703 to interact with server 705 through network 704 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 701, 702, and 703, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only examples).

[0138] The terminal devices 701 , 702 , and 703 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.

[0139] The server 705 may be a server that provides various services, such as a backend management server (only for example) that supports shopping websites browsed by users using the terminal devices 701, 702, and 703. The backend management server may analyze and process the received data such as product information query requests, and feed back the processing results (such as target push information, product information - only for example) to the terminal device.

[0140] It should be noted that the configuration method of the pre-consultation component or the processing method of the pre-consultation service provided in the embodiment of the present invention is generally executed by the server 705. Accordingly, the configuration device of the pre-consultation component or the processing device of the pre-consultation service is generally set in the server 705.

[0141] It should be understood that Figure 7 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0142] Reference below Figure 8 , which shows a schematic diagram of the structure of a computer system 800 of a terminal device suitable for implementing an embodiment of the present invention. Figure 8 The terminal device 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.

[0143] like Figure 8 As shown, the computer system 800 includes a central processing unit (CPU) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage part 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the system 800 are also stored. The CPU 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0144] The following components are connected to the I / O interface 805: an input section 806 including a keyboard, a mouse, etc.; an output section 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a LAN card, a modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the I / O interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed, so that a computer program read therefrom is installed into the storage section 808 as needed.

[0145] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 809, and / or installed from the removable medium 811. When the computer program is executed by the central processing unit (CPU) 801, the above-mentioned functions defined in the system of the present invention are executed.

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

[0147] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a 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 from the order 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 flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0148] The modules involved in the embodiments of the present invention may be implemented in software or hardware. The modules described may also be set in a processor. For example, they may be described as: a processor includes a component definition module, a dependency building module, and an execution order building module. The names of these modules do not, in some cases, constitute a limitation on the module itself. For example, the dependency building module may also be described as "a module that determines the dependency between each pre-diagnosis component based on the input data and output data of each pre-diagnosis component."

[0149] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: determining the input data and output data of each pre-diagnosis component; determining the dependency relationship between each pre-diagnosis component based on the input data and output data of each pre-diagnosis component; and determining the execution order of each pre-diagnosis component based on the dependency relationship between each pre-diagnosis component.

[0150] According to the technical solution of the embodiment of the present invention, the configuration method of the pre-diagnosis component of the embodiment of the present invention, by defining the business of each pre-diagnosis component, determines the input data and output data of each pre-diagnosis component, and then constructs the dependency relationship between each pre-diagnosis component according to the input data and output data of each pre-diagnosis component, so as to construct the execution order of each pre-diagnosis component according to the dependency relationship. This method automatically generates the execution order of each pre-diagnosis component according to the input data and output data of each pre-diagnosis component, improves the management ability of the pre-diagnosis component, and overcomes the problem of low configuration efficiency caused by manual configuration; the execution order of each pre-diagnosis component obtained by this method can efficiently execute the pre-diagnosis process, so that the dependent pre-diagnosis components are executed in advance, and the pre-diagnosis components that are not dependent on each other can be executed in parallel, thereby improving the execution efficiency of the entire pre-diagnosis process.

[0151] The processing method of the pre-consultation service of the embodiment of the present invention, after receiving the pre-consultation request from the user, determines the target pre-consultation component through the data identifier in the pre-consultation request, determines the various pre-consultation components to be executed corresponding to the target pre-consultation component according to the dependency relationship, calls the execution order of each configured pre-consultation component, determines the target execution order of the target pre-consultation component and each pre-consultation component to be executed, and executes the target pre-consultation component and each pre-consultation component to be executed according to the target execution order. This method realizes the parallel execution of pre-consultation components without mutual dependence by calling the execution order of each pre-consultation component, improves the execution efficiency of the pre-consultation business process, and improves the response speed of the request, thereby improving the user's interactive experience on the pre-consultation page.

[0152] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for configuring a pre-diagnosis component, characterized in that: include: Determine the input and output data for each pre-diagnosis component; Determining the dependency relationship between the pre-diagnosis components according to the input data and output data of each pre-diagnosis component; The execution order of each of the pre-diagnosis components is determined according to the dependency relationship between each of the pre-diagnosis components.

2. The method according to claim 1, characterized in that Determining the execution order of each of the pre-diagnosis components includes: Determining the in-degree of each pre-diagnosis component according to the dependency relationship between the pre-diagnosis components; Constructing a two-dimensional array according to the in-degree of each pre-diagnosis component and the dependency relationship, wherein the two-dimensional array includes the position of each pre-diagnosis component in the two-dimensional array; The execution order of each pre-diagnosis component is determined according to the position of each pre-diagnosis component in the two-dimensional array.

3. The method according to claim 2, characterized in that A two-dimensional array is constructed according to the in-degree of each pre-diagnosis component and the dependency relationship, including: The following steps are executed in a loop: obtaining a pre-diagnosis component with an in-degree of 0, placing the pre-diagnosis component with an in-degree of 0 as an element component into the two-dimensional array, and determining the position of the element component in the two-dimensional array; and updating the in-degree of the pre-diagnosis component that depends on the element component according to the element component and the dependency relationship.

4. The method according to claim 2, characterized in that: The position of each pre-diagnosis component in the two-dimensional array includes the group where the pre-diagnosis component is located and the position of the group in the two-dimensional array, and the execution order of each pre-diagnosis component is determined according to the position of each pre-diagnosis component in the two-dimensional array, including: Determining the execution sequence number of the group according to the position of the group in the two-dimensional array; using the execution sequence number of the group as the execution sequence number of the pre-diagnosis component in the group; Determining the execution order of each of the pre-diagnosis components according to the execution sequence number of each of the pre-diagnosis components, The execution sequence includes a parallel execution sequence of pre-diagnosis components with the same execution sequence number and a serial execution sequence of components with different execution sequence numbers executed in ascending order.

5. A method for processing pre-consultation services, characterized in that: include: receiving a pre-consultation request, the pre-consultation request including a data identifier, and determining a target pre-consultation component corresponding to the data identifier; Acquire each pre-diagnosis component to be executed that has a dependency relationship with the target pre-diagnosis component; Determining the target execution order of the target pre-diagnosis component and each of the pre-diagnosis components to be executed according to the execution order of each pre-diagnosis component; The target pre-diagnosis component and each of the to-be-executed pre-diagnosis components are executed according to the target execution order to obtain a request result corresponding to the pre-diagnosis request.

6. The method according to claim 5, characterized in that The execution order of each pre-diagnosis component includes the execution sequence number of each pre-diagnosis component. Determining the target execution order of the target pre-diagnosis component and each of the pre-diagnosis components to be executed includes: According to the execution serial numbers of the pre-diagnosis components, obtaining the execution serial numbers of the target pre-diagnosis component and each of the pre-diagnosis components to be executed; The target execution order is determined according to the execution sequence number of the target pre-diagnosis component and each of the pre-diagnosis components to be executed.

7. The method according to claim 6, characterized in that Determining the target execution order according to the execution sequence number of the target pre-diagnosis component and each of the pre-diagnosis components to be executed includes: Arrange the execution sequence numbers of the target pre-diagnosis component and each of the pre-diagnosis components to be executed in ascending order; The pre-diagnosis components to be executed with the same execution sequence number are divided into the same group, so as to obtain a plurality of groups arranged in sequence; The target execution order is obtained according to a plurality of groups arranged in sequence.

8. A configuration device for a pre-diagnosis component, characterized in that: include: Component definition module, which determines the input data and output data of each pre-diagnosis component; A dependency building module, which determines the dependency between the pre-diagnosis components according to the input data and output data of each pre-diagnosis component; The execution order building module determines the execution order of each of the pre-diagnosis components according to the dependency relationship between the pre-diagnosis components.

9. A processing device for pre-consultation service, characterized in that: include: A receiving module receives a pre-diagnosis request, wherein the pre-diagnosis request includes a data identifier, and determines a target pre-diagnosis component corresponding to the data identifier; An acquisition module, which acquires each to-be-executed pre-diagnosis component that has a dependency relationship with the target pre-diagnosis component; A determination module, which determines the target execution order of the target pre-diagnosis component and each of the pre-diagnosis components to be executed according to the execution order of each pre-diagnosis component; An execution module executes the target pre-diagnosis component and each of the to-be-executed pre-diagnosis components according to the target execution order to obtain a request result corresponding to the pre-diagnosis request.

10. An electronic device, 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.

11. 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.