A hierarchical data processing method, system, device and storage medium

By employing a hierarchical data processing approach, the client and configuration server combine caching and database dynamic querying of configuration parameters, solving the problem that traditional configuration centers cannot achieve personalized configuration, and realizing flexible configuration and efficient maintenance.

CN117349503BActive Publication Date: 2026-06-12E-SURFING DIGITAL LIFE TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
E-SURFING DIGITAL LIFE TECH CO LTD
Filing Date
2023-10-10
Publication Date
2026-06-12

AI Technical Summary

Technical Problem

Traditional configuration centers cannot enable personalized configuration settings for organizations or individuals, resulting in high program complexity and increased maintenance costs. Furthermore, when multiple applications read the same configuration center, the configuration processing logic needs to be implemented repeatedly.

Method used

A hierarchical data processing approach is adopted, which combines client and configuration server with cache and configuration storage database to dynamically query configuration parameters based on account information and organizational relationship, thereby realizing configuration inheritance and reuse and reducing dependence on mapping relationship.

🎯Benefits of technology

It enables flexible and personalized configuration settings, reduces program complexity and maintenance costs, and improves application development efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117349503B_ABST
    Figure CN117349503B_ABST
Patent Text Reader

Abstract

The application discloses a hierarchical data processing method, system and device and a storage medium, and comprises the following steps: obtaining account information, superior organization relationship and a to-be-queried target configuration of a current account; if the to-be-queried target configuration of the account information is not found in a cache, determining a request parameter according to the account information and the to-be-queried target configuration, and sending a request to a configuration server through a first interface, so that the configuration server obtains configuration parameters of the to-be-queried target configuration from a configuration storage database; receiving feedback information sent by the configuration server; if the feedback information comprises the configuration parameters of the to-be-queried target configuration, loading the configuration parameters to the cache corresponding to the account information; otherwise, redetermining the request parameter according to the superior organization relationship and the to-be-queried target configuration, repeatedly sending the request to the configuration server until the query configuration parameter is obtained. The embodiment of the application realizes flexible personalized setting, reduces the program complexity and the maintenance cost, and can be widely applied to the computer technology field.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and in particular to a hierarchical data processing method, system, apparatus, and storage medium. Background Technology

[0002] In modern enterprises, configuration centers are a common management infrastructure used to manage the configurations of various systems and applications. Configuration centers can automatically update system configurations, ensuring the correctness and stability of systems and applications. However, traditional configuration centers have a problem: when dealing with configurations involving organizational relationships, individual configurations can only be applied globally, failing to enable personalized settings for organizations or individuals, or to allow for multiple different configuration items based on hierarchical levels. This necessitates complex configuration logic processing by the application side, significantly increasing program complexity. Furthermore, for business applications that read the same configuration center, each application must implement the same configuration processing logic, further increasing system maintenance costs. Summary of the Invention

[0003] In view of this, the purpose of this invention is to provide a hierarchical data processing method, system, device, and storage medium to achieve flexible personalized settings, reduce program complexity, and lower maintenance costs.

[0004] On one hand, embodiments of the present invention provide a hierarchical data processing method applied to a client, including:

[0005] Obtain the account information, superior organizational relationship, and target configuration to be queried for the current account, and search for the target configuration to be queried for the account information in the cache;

[0006] If the target configuration for querying the account information is not found in the cache, the request parameters are determined based on the account information and the target configuration for querying, and a request is sent to the configuration server through the first interface so that the configuration server can obtain the configuration parameters of the target configuration for querying from the configuration storage database; the request is determined based on the request parameters.

[0007] Receive feedback information sent by the configuration server;

[0008] If the feedback information includes the configuration parameters of the target configuration to be queried, the configuration parameters of the target configuration to be queried are loaded into the cache corresponding to the account information;

[0009] If the feedback information does not include the configuration parameters of the target configuration to be queried, the target configuration to be queried is queried in the cache according to the superior organizational relationship. If the target configuration to be queried is not found in the cache, the request parameters are re-determined according to the superior organizational relationship and the target configuration to be queried, and the step of sending a request to the configuration server through the first interface is returned until the configuration parameters of the target configuration to be queried are obtained.

[0010] Optionally, the step of redetermining the request parameters based on the superior organizational relationship and the configuration of the target to be queried specifically includes:

[0011] The request parameters are redefined based on the first-level organization of the parent organization relationship and the configuration of the target to be queried, so as to obtain feedback information again;

[0012] If the re-acquired feedback information does not include the configuration parameters of the target configuration to be queried, the request parameters are re-determined according to the parent organization and the target configuration to be queried, until the feedback information includes the configuration parameters of the target configuration to be queried or all organizations have been queried.

[0013] Optionally, the data processing method further includes:

[0014] If the configuration parameters of the target configuration to be queried are not obtained after querying all organizations, the default request parameters are determined based on the account information and the target configuration to be queried, and a request is sent to the configuration server through the first interface to obtain the configuration parameters of the target configuration to be queried.

[0015] Optionally, the data processing method further includes:

[0016] If the target configuration for the account information to be queried exists in the cache, the configuration parameters of the target configuration to be queried will be returned directly.

[0017] Optionally, the data processing method further includes:

[0018] Receive the modified configuration items sent by the configuration server and load the modified configuration items into the corresponding cache.

[0019] On the other hand, embodiments of the present invention provide a hierarchical data processing method applied to a configuration server, including:

[0020] Obtain the request sent by the client; the request is determined based on the request parameters, which are determined based on the configuration of the target to be queried, the account information, or the superior organizational relationship;

[0021] According to the request, the configuration storage database is queried for the configuration parameters of the target configuration to be queried. Based on the query results, feedback information is determined and sent to the client. The client then determines whether to re-determine the request parameters and resend the request based on whether the feedback information contains the configuration parameters of the target configuration to be queried and the configuration parameter information of the target configuration to be queried in the cache. The configuration items stored in the configuration storage database include account information, configuration parameters, and organization information.

[0022] Optionally, the data processing method further includes:

[0023] Receive modified configuration items sent by the management server;

[0024] The modified configuration items are sent to the client so that the client loads the modified configuration items into the cache.

[0025] On the other hand, embodiments of the present invention provide a hierarchical data processing apparatus, comprising:

[0026] At least one processor;

[0027] At least one memory for storing at least one program;

[0028] When the at least one program is executed by the at least one processor, the at least one processor implements the data processing method described above for use on a client or for use on a configuration server.

[0029] On the other hand, embodiments of the present invention provide a computer-readable storage medium storing a processor-executable program, which, when executed by a processor, performs the aforementioned data processing method applied to a client or a configuration server.

[0030] On the other hand, embodiments of the present invention provide a hierarchical data processing system, including a client, a configuration server, a configuration storage database, a management server, and a service management terminal; wherein, the configuration server connects the client and the configuration storage database, the management server connects the service management terminal and the configuration storage database, and the configuration server is connected to the management server.

[0031] The client is used to execute the data processing method applied to the client described above;

[0032] The configuration server is used to execute the data processing method applied to the configuration server described above;

[0033] The configuration storage database is used to store configuration items for all accounts;

[0034] The service management terminal is used to send change requests to the management server through the second interface;

[0035] The management server is used to obtain change requests and modify the configuration items corresponding to the configuration storage database according to the change requests. If the modification is successful, the modified configuration items are sent to the configuration server.

[0036] Implementing this embodiment of the invention has the following beneficial effects: The configuration items stored in the configuration storage database include account information, configuration parameters, and organization information. The configuration items are bound to the organization information. First, the client searches for the target configuration to be queried based on the account information in the cache. If the target configuration to be queried is not found in the cache, the client determines the request parameters based on the account information and the target configuration to be queried, and sends the first request to the configuration server. Then, the configuration server receives the first request and queries the configuration storage database for the corresponding target configuration's configuration parameters based on the first request. Based on the query result, the client determines the feedback information and sends it to the client. Next, the client determines the configuration parameters based on the feedback information. If the feedback information does not contain configuration parameters, the client re-determines the request parameters based on the superior organizational relationship and the target configuration to be queried, and sends the request again until the configuration parameters of the target configuration are obtained. This eliminates the need for additional storage of the mapping relationship between configuration items and configuration items at each level, realizing the inheritance and reuse of configurations. It also enables configuration settings of different granularities based on different organizational levels, providing more flexible and personalized configurations. It eliminates the need to focus on organizational relationships, improving application development efficiency and reducing program complexity and maintenance costs. Attached Figure Description

[0037] Figure 1 This is a flowchart illustrating the application of query configuration items in related technologies;

[0038] Figure 2 This is a schematic diagram of the structure of a hierarchical data processing system provided in an embodiment of the present invention;

[0039] Figure 3 This is a flowchart illustrating the steps of a hierarchical data processing method applied to a client, as provided in an embodiment of the present invention.

[0040] Figure 4 This is a schematic diagram of a step-by-step process for re-determining request parameters provided in an embodiment of the present invention;

[0041] Figure 5 This is a flowchart of querying configuration items in a specific embodiment of the present invention;

[0042] Figure 6 This is a flowchart illustrating the steps of a hierarchical data processing method applied to a configuration server, as provided in an embodiment of the present invention.

[0043] Figure 7 This is a flowchart illustrating the steps of another hierarchical data processing method applied to a configuration server provided by an embodiment of the present invention;

[0044] Figure 8 This is a schematic diagram of the structure of a hierarchical data processing system applied to a client, provided by an embodiment of the present invention;

[0045] Figure 9 This is a schematic diagram of the structure of a hierarchical data processing system applied to a configuration server, provided by an embodiment of the present invention;

[0046] Figure 10 This is a structural block diagram of a hierarchical data processing device provided in an embodiment of the present invention;

[0047] Figure 11 This is a structural block diagram of a computer device provided in an embodiment of the present invention. Detailed Implementation

[0048] The present invention will now be described in further detail with reference to the accompanying drawings and specific embodiments. The step numbers in the following embodiments are only for ease of explanation and do not limit the order of the steps. The execution order of each step in the embodiments can be adapted according to the understanding of those skilled in the art.

[0049] It should be noted that although functional modules are divided in the device schematic diagram and a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first," "second," etc., used in the specification, claims, and the foregoing drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented, for example, in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatuses.

[0050] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.

[0051] See Figure 1 , Figure 1 This describes the application's query process. First, the client application queries the hierarchical data in the hierarchical library and receives the returned hierarchical information. Then, the client application queries the corresponding configuration parameters in the configuration center level by level based on the hierarchical data.

[0052] Traditional configuration centers require additional storage of mapping relationships between configuration items and configuration items at each level to achieve multi-level configuration. When retrieving configurations, the mapping relationship is queried first, and then the information is searched level by level. The disadvantages are obvious: they only implement part of the configuration inheritance function, that is, if the lower level has no configuration, it uses the configuration of the upper level, and if the lower level has a configuration, it globally overrides the upper level. They cannot achieve fine-grained control of configurations, associate them with specific organizations, and have complex logic. Every time a new configuration item is added, the configuration mapping of each level needs to be configured, which is complex and inefficient.

[0053] See Figure 2 , Figure 2 This invention illustrates an application scenario where a configuration storage database stores configuration items for all accounts. Each configuration item includes account information, organizational relationships, and configuration parameters. The configuration information is combined with the organizational relationships. The client sends a request to the configuration server via an interface call, and the configuration server reads the relevant parameters from the configuration storage database and returns the query results to the client. The service management terminal sends instructions to the management server via an interface call. The management server reads or writes configuration items in the configuration storage database according to the instructions. If the instruction is a change request, after the management server successfully modifies the configuration items in the configuration storage database, it sends the modified configuration items to the configuration server, enabling the configuration server to push the modified configuration items to the client.

[0054] It should be noted that the client is used to query the configuration database through the configuration service interface to obtain configurations for the application. At the same time, to ensure performance, the queried configurations are cached locally.

[0055] It should be noted that the service management terminal is used for configuration management web interface, and publishes and modifies configuration items in the configuration storage database by calling the management server interface.

[0056] It should be noted that the configuration server provides configuration retrieval and push interfaces to the client.

[0057] It should be noted that the management server provides configuration management interfaces as well as configuration modification and publishing interfaces.

[0058] It should be noted that the configuration storage database is used to store configuration data.

[0059] like Figure 3 As shown, this embodiment of the invention provides a hierarchical data processing method applied to a client, including:

[0060] S110. Obtain the account information, superior organizational relationship, and target configuration to be queried for the current account, and search for the target configuration to be queried for the account information in the cache.

[0061] Specifically, the client first obtains the account information, superior organizational relationship, and target configuration to be queried from the application, and then searches for the target configuration to be queried corresponding to the account information in the cache.

[0062] It should be noted that the hierarchy in the superior organizational relationship is determined according to the actual application, and this embodiment does not impose specific restrictions.

[0063] S120. If the target configuration for the query is not found in the cache, the request parameters are determined based on the account information and the target configuration for the query, and a request is sent to the configuration server through the first interface so that the configuration server can obtain the configuration parameters of the target configuration for the query from the configuration storage database; the request is determined based on the request parameters.

[0064] If the target configuration for the account information to be queried is not found in the cache, it needs to be retrieved from the configuration storage database through the configuration server. The request parameters are determined based on the account information and the target configuration to be queried, the request is determined based on the request parameters, and the request is sent to the configuration server through the first interface so that the configuration server can retrieve the configuration parameters of the target configuration to be queried corresponding to the account information from the configuration storage database according to the request.

[0065] S130, Receive feedback information sent by the configuration server.

[0066] It should be noted that the feedback information is determined based on the query results configured for the target being queried. After retrieving the query results from the configuration storage database, the configuration server generates feedback information based on the query results configured for the target being queried and returns the feedback information to the client.

[0067] S140A. If the feedback information includes the configuration parameters of the target configuration to be queried, load the configuration parameters of the target configuration to be queried into the cache corresponding to the account information.

[0068] If the feedback information includes the configuration parameters of the target configuration to be queried, the client extracts the configuration parameters of the target configuration to be queried from the feedback information and loads the configuration parameters of the target configuration to be queried into the cache corresponding to the account information.

[0069] S140B: If the feedback information does not include the configuration parameters of the target configuration to be queried, the target configuration to be queried is queried in the cache according to the superior organizational relationship. If the target configuration to be queried is not found in the cache, the request parameters are re-determined according to the superior organizational relationship and the target configuration to be queried, and the step of sending a request to the configuration server through the first interface is returned to be executed until the configuration parameters of the target configuration to be queried are obtained.

[0070] If the feedback information does not include the configuration parameters of the target configuration to be queried, it is necessary to query the target configuration corresponding to the parent organization of the current organization. First, search the cache for the target configuration corresponding to the parent organization of the current organization. If the target configuration corresponding to the parent organization of the current organization exists in the cache, load the target configuration corresponding to the parent organization of the current organization into the cache corresponding to the account information. If the target configuration corresponding to the parent organization of the current organization does not exist in the cache, redetermine the request parameters based on the parent organization of the current organization and the target configuration to be queried, and resend the request to the configuration server until the configuration parameters of the target configuration to be queried are obtained.

[0071] like Figure 4 As shown, optionally, the request parameters can be redefined based on the superior organizational relationship and the configuration of the target to be queried, specifically including:

[0072] S140B1. Based on the first-level organization of the superior organizational relationship and the configuration of the target to be queried, the request parameters are redefined in order to obtain feedback information again.

[0073] S140B2. If the re-acquired feedback information does not include the configuration parameters of the target configuration to be queried, the request parameters shall be re-determined according to the parent organization and the target configuration to be queried, until the feedback information includes the configuration parameters of the target configuration to be queried or all organizations have been queried.

[0074] It should be noted that the first-level organization refers to the organization above the current account. If the target configuration cannot be found based on the current account, you need to search upwards level by level according to the organizational relationship of the current account.

[0075] Specifically, firstly, the request parameters are redefined based on the first-level organization in the parent organization relationship and the configuration of the target to be queried, in order to obtain feedback information again. The configuration of the target to be queried is further determined based on the feedback information from the first-level organization. If the feedback information from the first-level organization still cannot determine the configuration of the target to be queried, the request parameters are redefined based on the second-level organization in the parent organization relationship and the configuration of the target to be queried, in order to obtain feedback information again. The configuration of the target to be queried is further determined based on the feedback information from the second-level organization. If the feedback information from the second-level organization still cannot determine the configuration of the target to be queried, the process is repeated, and the request parameters are redefined based on the third-level organization or higher, until the feedback information includes the configuration parameters of the target to be queried or all organizations have been queried.

[0076] Optionally, the data processing methods applied to the client also include:

[0077] S140B3. If the configuration parameters of the target configuration to be queried are not obtained after querying all organizations, the default request parameters are determined based on the account information and the target configuration to be queried, and a request is sent to the configuration server through the first interface to obtain the configuration parameters of the target configuration to be queried.

[0078] Specifically, if no configuration parameters for the target configuration are found after querying all organizations, it indicates that the configuration parameters for the target configuration may not have been modified. Therefore, it is necessary to query the default configuration parameters. First, the default request parameters are determined based on the account information and the target configuration. The request is then determined based on the default request parameters and sent to the configuration server through the first interface. The configuration server queries the configuration storage database for the default configuration parameters of the target configuration based on the request and sends the default configuration parameters to the client.

[0079] Optionally, the data processing methods applied to the client also include:

[0080] S120B: If the target configuration for the query contains account information in the cache, the configuration parameters of the target configuration for the query will be returned directly.

[0081] If the target configuration for the query contains account information in the cache, there is no need to query it again through the configuration server. The configuration parameters of the target configuration can be returned directly, reducing the processing steps and improving data processing efficiency.

[0082] Optionally, the data processing methods applied to the client also include:

[0083] S500 receives the modified configuration items sent by the configuration server and loads the modified configuration items into the corresponding cache.

[0084] The service management end modifies configuration items in the configuration storage database through the management server. If a configuration item in the configuration storage database is modified, the management server sends the modified configuration item to the configuration server, which then sends the modified configuration item to the client. The client receives the modified configuration item and loads it into the corresponding cache. By loading the modified configuration item, consistency is maintained with the configuration item in the configuration storage database, reducing the number of queries and improving accuracy.

[0085] like Figure 5 As shown, in a specific embodiment, taking an application with a three-tier organizational structure as an example, the steps for the client application to obtain configuration items are as follows:

[0086] Step 1: The application first queries and obtains the current account's accid and its superior organizational relationship. The superior organizational relationship includes the department's ou_id and its subsidiary's cmp_id.

[0087] Step 2: The application passes the accid, ou_id, cmp_id obtained in Step 1 and the target configuration config_key to be queried as parameters to the client to perform configuration query.

[0088] Step 3: The client searches for the accid's config_key configuration in the account cache. If it exists, it returns the value directly, completing the configuration query.

[0089] Step 4: When the accid configuration key does not exist in the client cache, the client sends the accid and config key as parameters to the configuration server.

[0090] Step 5: Configure the server to query the configuration database using accid and config_key as conditions, and return the results to the client.

[0091] Step 6: When the client obtains the config_key configuration for accid from the configuration server, it loads it into the account cache and returns the configuration value to the application. Otherwise, the client searches for the config_key configuration for ou_id in the department cache; if it exists, it returns it directly, completing the configuration query.

[0092] Step 7: When the config_key configuration item for ou_id does not exist in the client's department cache, the client sends a request to the configuration server with ou_id and config_key as parameters.

[0093] Step 8: Configure the server to query the configuration database using ou_id and config_key as conditions, and return the results to the client.

[0094] Step 9: When the client obtains the config_key configuration for ou_id from the config service, it loads it into the department cache and returns the configuration value to the application. Otherwise, the client searches for the config_key configuration for cmp_id in the subsidiary's cache; if it exists, it returns it directly, completing the configuration query.

[0095] Step 10: When the client subsidiary does not have the config_key configuration item cmp_id in its cache, the client sends cmp_id and config_key as parameters to the configuration server.

[0096] Step 11: Configure the server to query the configuration database using cmp_id and config_key as conditions, and return the results to the client.

[0097] Step 12: When the client obtains the config_key configuration with cmp_id from the configuration server, it loads it into the subsidiary's cache and returns the configuration value to the application. Otherwise, the client looks up the config_key configuration in the group's cache (global default) to complete the configuration query.

[0098] like Figure 6 As shown, this embodiment of the invention provides a hierarchical data processing method applied to a configuration server, including:

[0099] S210. Obtain the request sent by the client; the request is determined based on the request parameters, which are determined based on the target configuration, account information, or superior organizational relationship.

[0100] It should be noted that the request parameters are determined based on the account information and the target to be queried, or the request parameters are determined based on the superior organizational relationship and the target to be queried, depending on the actual application. This embodiment does not impose specific restrictions. For example, the first request parameters are determined based on the account information and the target to be queried, and subsequent request parameters are determined based on the various levels of organizations in the superior organizational relationship and the target to be queried.

[0101] S220. Based on the request, query the configuration parameters of the target configuration to be queried in the configuration storage database, determine the feedback information based on the query results, and send the feedback information to the client so that the client can determine whether to re-determine the request parameters and resend the request based on whether the feedback information contains the configuration parameters of the target configuration to be queried and the configuration parameter information of the target configuration to be queried in the cache. The configuration items stored in the configuration storage database include account information, configuration parameters and organization information.

[0102] It should be noted that the storage method of configuration items in the configuration storage database can be referred to Table 1. Key1 represents the configuration item name, ID1 / ID2 represents account information or organization information, Value1 / Value2 represents the configuration parameters, and Defaultvalue represents the default parameters.

[0103] Table 1

[0104]

[0105] The configuration server queries the configuration storage database for the corresponding configuration parameters of the target configuration based on the request sent by the client. The configuration storage database then sends the query results back to the configuration server. The configuration server determines the feedback information based on the query results and sends the feedback information to the client.

[0106] It should be noted that if the configuration parameters of the target configuration to be queried exist in the configuration storage database, the feedback information will include the configuration parameters of the target configuration to be queried; otherwise, the feedback information will not include the configuration parameters of the target configuration to be queried.

[0107] Optionally, see Figure 7 Data processing methods applied to configuration servers also include:

[0108] S230, Receive the modified configuration items sent by the management server;

[0109] S240. Send the modified configuration items to the client so that the client can load the modified configuration items into the cache.

[0110] If the management server successfully modifies the configuration item in the configuration storage database, the management server sends the modified configuration item to the configuration server; the management server then sends the modified configuration item to the client; the client loads the modified configuration item into the cache, overwriting the previous configuration item, thus achieving consistency with the configuration item in the configuration storage database, reducing the number of queries, and improving accuracy.

[0111] In one specific embodiment, the steps for updating configuration items are as follows:

[0112] Step 1: Specify the configuration information to be changed through the service management terminal and submit a change request to the configuration management server.

[0113] Step 2: The configuration management server modifies the corresponding configuration stored in the configuration storage database based on the target configuration items and hierarchical information.

[0114] Step 3: If the modification is successful, the client is notified through the configuration server to invalidate the corresponding level of configuration item cache and reload the target configuration into the corresponding level of cache.

[0115] Implementing this embodiment of the invention has the following beneficial effects: The configuration items stored in the configuration storage database include account information, configuration parameters, and organization information. The configuration items are bound to the organization information. First, the client searches for the target configuration to be queried based on the account information in the cache. If the target configuration to be queried is not found in the cache, the client determines the request parameters based on the account information and the target configuration to be queried, and sends the first request to the configuration server. Then, the configuration server receives the first request and queries the configuration storage database for the corresponding target configuration's configuration parameters based on the first request. Based on the query result, the client determines the feedback information and sends it to the client. Next, the client determines the configuration parameters based on the feedback information. If the feedback information does not contain configuration parameters, the client re-determines the request parameters based on the superior organizational relationship and the target configuration to be queried, and sends the request again until the configuration parameters of the target configuration are obtained. This eliminates the need for additional storage of the mapping relationship between configuration items and configuration items at each level, realizing the inheritance and reuse of configurations. It also enables configuration settings of different granularities based on different organizational levels, providing more flexible and personalized configurations. It eliminates the need to focus on organizational relationships, improving application development efficiency and reducing program complexity and maintenance costs.

[0116] like Figure 8 As shown, this embodiment of the invention provides a hierarchical data processing system applied to a client, including:

[0117] The first module is used to obtain the account information, superior organizational relationship and target configuration to be queried of the current account, and to search for the target configuration to be queried of the account information in the cache;

[0118] The second module is used to determine request parameters based on the account information and the target configuration to be queried if the target configuration to be queried is not found in the cache, and to send a request to the configuration server through the first interface so that the configuration server can obtain the configuration parameters of the target configuration to be queried from the configuration storage database; the request is determined based on the request parameters.

[0119] The third module is used to receive feedback information sent by the configuration server;

[0120] The fourth module is used to load the configuration parameters of the target configuration to be queried into the cache corresponding to the account information if the feedback information includes the configuration parameters of the target configuration to be queried.

[0121] The fifth module is used to, if the feedback information does not include the configuration parameters of the target configuration to be queried, re-determine the request parameters according to the superior organizational relationship and the target configuration to be queried, and return to the second module until the configuration parameters of the target configuration to be queried are obtained.

[0122] It is evident that the content of the above method embodiments is applicable to this system embodiment. The specific functions implemented in this system embodiment are the same as those in the above method embodiments, and the beneficial effects achieved are also the same as those achieved in the above method embodiments.

[0123] like Figure 9 As shown, this embodiment of the invention provides a hierarchical data processing system applied to a configuration server, including:

[0124] The sixth module is used to obtain requests sent by the client; the request is determined based on request parameters, which are determined based on the configuration of the target to be queried, the account information, or the superior organizational relationship;

[0125] The seventh module is used to query the configuration parameters of the target configuration to be queried in the configuration storage database according to the request, determine the feedback information based on the query result, and send the feedback information to the client, so that the client can determine whether to re-determine the request parameters and resend the request based on whether the feedback information contains the configuration parameters of the target configuration to be queried and the configuration parameter information of the target configuration to be queried in the cache; the configuration items stored in the configuration storage database include account information, configuration parameters and organization information.

[0126] It is evident that the content of the above method embodiments is applicable to this system embodiment. The specific functions implemented in this system embodiment are the same as those in the above method embodiments, and the beneficial effects achieved are also the same as those achieved in the above method embodiments.

[0127] like Figure 10 As shown, an embodiment of the present invention provides a hierarchical data processing apparatus, comprising:

[0128] At least one processor;

[0129] At least one memory for storing at least one program;

[0130] When at least one program is executed by at least one processor, the at least one processor implements the data processing method described above, which is applied to a client or to a configuration server.

[0131] The memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. The memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory may optionally include remote memory located remotely relative to the processor, which can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0132] It is evident that the content of the above method embodiments is applicable to this device embodiment. The specific functions implemented in this device embodiment are the same as those in the above method embodiments, and the beneficial effects achieved are also the same as those achieved in the above method embodiments.

[0133] Furthermore, this application also discloses a computer program product or computer program stored in a computer-readable storage medium. A processor of a computer device can read the computer program from the computer-readable storage medium, and the processor executes the computer program, causing the computer device to perform the described method. Similarly, the content of the above method embodiments is applicable to this storage medium embodiment. The specific functions implemented in this storage medium embodiment are the same as those in the above method embodiments, and the beneficial effects achieved are also the same as those achieved in the above method embodiments.

[0134] This invention also provides a computer-readable storage medium storing a processor-executable program that, when executed by a processor, implements the above-described method.

[0135] It is understood that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components can be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, which can include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, as is known to those skilled in the art, communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.

[0136] Specifically, see Figure 11 The computer device 1100 may include an RF (Radio Frequency) circuit 1110, a memory 1120 including one or more computer-readable storage media, an input unit 1130, a display unit 1140, a sensor 1150, an audio circuit 1160, a short-range wireless transmission module 1170, a processor 1180 including one or more processing cores, and a power supply 1190, among other components. Those skilled in the art will understand that... Figure 11 The device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0137] RF circuit 1110 can be used for receiving and transmitting signals during information transmission or calls. Specifically, it receives downlink information from the base station and hands it over to one or more processors 1180 for processing; additionally, it transmits uplink data to the base station. Typically, RF circuit 1110 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, etc. Furthermore, RF circuit 1110 can also communicate wirelessly with networks and other devices. Wireless communication can use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), email, SMS (Short Messaging Service), etc.

[0138] Memory 1120 can be used to store software programs and modules. Processor 1180 executes various functional applications and data processing by running the software programs and modules stored in memory 1120. Memory 1120 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of device 1100 (such as audio data, telephone directory, etc.). In addition, memory 1120 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, memory 1120 may also include a memory controller to provide processor 1180 and input unit 1130 with access to memory 1120. Although Figure 11 RF circuit 1110 is shown, but it is understood that it is not a necessary component of device 1100 and can be omitted as needed without changing the nature of the invention.

[0139] Input unit 1130 can be used to receive input numerical or character information, and generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control. Specifically, input unit 1130 may include touch-sensitive surface 1131 and other input devices 1132. Touch-sensitive surface 1131, also known as a touch display screen or touchpad, can collect touch operations by the user on or near it (such as operations by the user using a finger, stylus, or any suitable object or accessory on or near the touch-sensitive surface 1131), and drive the corresponding connection device according to a pre-set program. Optionally, touch-sensitive surface 1131 may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch position and the signal generated by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, sends it to processor 1180, and can receive and execute commands from processor 1180. In addition, the touch-sensitive surface 1131 can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave. Besides the touch-sensitive surface 1131, the input unit 1130 may also include other input devices 1132. Specifically, other input devices 1132 may include, but are not limited to, one or more of the following: a physical keyboard, function keys (such as volume control buttons, power buttons, etc.), a trackball, a mouse, and a joystick.

[0140] Display unit 1140 can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces for controlling 1100. These graphical user interfaces can be composed of graphics, text, icons, video, and any combination thereof. Display unit 1140 may include display panel 1141, optionally configured as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), etc. Further, touch-sensitive surface 1131 may cover display panel 1141. When touch-sensitive surface 1131 detects a touch operation on or near it, it transmits the information to processor 1180 to determine the type of touch event. Subsequently, processor 1180 provides corresponding visual output on display panel 1141 according to the type of touch event. Although in Figure 11 In this embodiment, the touch-sensitive surface 1131 and the display panel 1141 are implemented as two separate components to realize input and output functions. However, in some embodiments, the touch-sensitive surface 1131 and the display panel 1141 can be integrated to realize input and output functions.

[0141] The computer device 1100 may also include at least one sensor 1150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 1141 according to the ambient light level, and the proximity sensor can turn off the display panel 1141 and / or backlight when the device 1100 is moved to the ear. As a type of motion sensor, a gravity acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes). When stationary, it can detect the magnitude and direction of gravity and can be used for applications that recognize the phone's posture (such as landscape / portrait switching, related games, magnetometer posture calibration), vibration recognition-related functions (such as pedometer, tapping), etc. Other sensors that the device 1100 may be equipped with, such as a gyroscope, barometer, hygrometer, thermometer, and infrared sensor, will not be described in detail here.

[0142] Audio circuitry 1160, speaker 1161, and microphone 1162 provide an audio interface between the user and device 1100. Audio circuitry 1160 converts received audio data into electrical signals, which are then transmitted to speaker 1161, where they are converted into sound signals for output. Conversely, microphone 1162 converts collected sound signals into electrical signals, which are received by audio circuitry 1160, converted back into audio data, and then processed by processor 1180 before being transmitted via RF circuitry 1110 to another control device, or output to memory 1120 for further processing. Audio circuitry 1160 may also include an earphone jack to facilitate communication between peripheral headphones and device 1100.

[0143] The short-range wireless transmission module 1170 can be a WIFI (wireless fidelity) module, Bluetooth module, or infrared module, etc. Device 1100 can transmit information with the wireless transmission module installed on the battle equipment via the short-range wireless transmission module 1170.

[0144] Processor 1180 is the control center of device 1100. It connects various parts of the control device via various interfaces and lines. By running or executing software programs and / or modules stored in memory 1120, and by calling data stored in memory 1120, it performs various functions of device 1100 and processes data, thereby providing overall monitoring of the control device. Optionally, processor 1180 may include one or more processing cores; optionally, processor 1180 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, while the modem processor mainly handles wireless communication. It is understood that the aforementioned modem processor may not be integrated into processor 1150.

[0145] The device 1100 also includes a power supply 1190 (such as a battery) to power various components. Preferably, the power supply can be logically connected to the processor 1180 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 1190 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0146] Although not shown, device 1100 may also include a camera, Bluetooth module, etc., which will not be described in detail here.

[0147] It is understood that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components can be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, which can include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, as is known to those skilled in the art, communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.

[0148] like Figure 2 As shown, this embodiment of the invention provides a hierarchical data processing system, including a client, a configuration server, a configuration storage database, a management server, and a service management terminal; wherein, the configuration server connects to the client and the configuration storage database, the management server connects to the service management terminal and the configuration storage database, and the configuration server connects to the management server.

[0149] The client is used to execute the data processing methods described above that are applied to the client.

[0150] Configure the server to execute the data processing methods described above for the configuration server;

[0151] Configure a storage database to store configuration items for all accounts;

[0152] The service management interface is used to send change requests to the management server through the second interface.

[0153] The management server is used to receive change requests and modify the corresponding configuration items in the configuration storage database according to the change requests. If the modification is successful, the modified configuration items are sent to the configuration server.

[0154] Specifically, the client or service management terminal includes, but is not limited to, terminals with input and display functions such as mobile phones, tablets, wearable devices, airborne devices, desktop computers, and laptops; the configuration server and management server include, but are not limited to, processors or servers with data and logic processing capabilities; and the configuration storage database includes, but is not limited to, storage devices with storage capacity.

[0155] It is evident that the content of the above method embodiments is applicable to this system embodiment. The specific functions implemented in this system embodiment are the same as those in the above method embodiments, and the beneficial effects achieved are also the same as those achieved in the above method embodiments.

[0156] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.

[0157] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection between apparatuses or units through some interfaces, and may be electrical, mechanical, or other forms.

[0158] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0159] The above is a detailed description of the preferred embodiments of the present invention. However, the present invention is not limited to the embodiments described. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of the present invention. All such equivalent modifications or substitutions are included within the scope defined by the claims of this application.

Claims

1. A hierarchical data processing method, characterized in that, Applied to the client side, including: Retrieve the account information, superior organizational relationship, and target configuration to be queried for the current account, and search for the target configuration to be queried for the account information in the cache; the superior organizational relationship represents the organizational hierarchy. If the target configuration for querying the account information is not found in the cache, the request parameters are determined based on the account information and the target configuration for querying, and a request is sent to the configuration server through the first interface so that the configuration server can obtain the configuration parameters of the target configuration for querying from the configuration storage database; the request is determined based on the request parameters. Receive feedback information sent by the configuration server; If the feedback information includes the configuration parameters of the target configuration to be queried, the configuration parameters of the target configuration to be queried are loaded into the cache corresponding to the account information; If the feedback information does not include the configuration parameters of the target configuration to be queried, the target configuration to be queried is queried in the cache according to the superior organizational relationship. If the target configuration to be queried is not found in the cache, the request parameters are re-determined according to the superior organizational relationship and the target configuration to be queried, and the step of sending a request to the configuration server through the first interface is returned until the configuration parameters of the target configuration to be queried are obtained.

2. The data processing method according to claim 1, characterized in that, The step of re-determining the request parameters based on the superior organizational relationship and the configuration of the target to be queried specifically includes: The request parameters are redefined based on the first-level organization of the parent organization relationship and the configuration of the target to be queried, so as to obtain feedback information again; If the re-acquired feedback information does not include the configuration parameters of the target configuration to be queried, the request parameters are re-determined according to the parent organization and the target configuration to be queried, until the feedback information includes the configuration parameters of the target configuration to be queried or all organizations have been queried.

3. The data processing method according to claim 2, characterized in that, The data processing method further includes: If the configuration parameters of the target configuration to be queried are not obtained after querying all organizations, the default request parameters are determined based on the account information and the target configuration to be queried, and a request is sent to the configuration server through the first interface to obtain the configuration parameters of the target configuration to be queried.

4. The data processing method according to claim 1, characterized in that, The data processing method further includes: If the target configuration for the account information to be queried exists in the cache, the configuration parameters of the target configuration to be queried will be returned directly.

5. The data processing method according to claim 1, characterized in that, The data processing method further includes: Receive the modified configuration items sent by the configuration server and load the modified configuration items into the corresponding cache.

6. A hierarchical data processing method, characterized in that, Applied to configuration servers, including: Obtain the request sent by the client; the request is determined based on the request parameters, which are determined based on the target configuration, account information, or superior organizational relationship; the superior organizational relationship represents the organizational hierarchy. According to the request, the configuration storage database is queried for the configuration parameters of the target configuration to be queried. Based on the query results, feedback information is determined and sent to the client. The client then determines whether to re-determine the request parameters and resend the request based on whether the feedback information contains the configuration parameters of the target configuration to be queried and the configuration parameter information of the target configuration to be queried in the cache. The configuration items stored in the configuration storage database include account information, configuration parameters, and organization information. If a request is received again from the client, return to the step of querying the configuration parameters of the target configuration to be queried in the configuration storage database according to the request, until the client obtains the configuration parameters of the target configuration to be queried.

7. The data processing method according to claim 6, characterized in that, The data processing method further includes: Receive modified configuration items sent by the management server; The modified configuration items are sent to the client so that the client loads the modified configuration items into the cache.

8. A hierarchical data processing device, characterized in that, include: At least one processor; At least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the data processing method as described in any one of claims 1-7.

9. A computer-readable storage medium storing a processor-executable program, characterized in that, The processor-executable program, when executed by the processor, is used to perform the data processing method as described in any one of claims 1-7.

10. A hierarchical data processing system, characterized in that, It includes a client, a configuration server, a configuration storage database, a management server, and a service management terminal; wherein, the configuration server connects the client and the configuration storage database, the management server connects the service management terminal and the configuration storage database, and the configuration server is connected to the management server. The client is configured to execute the data processing method as described in any one of claims 1-5; The configuration server is configured to execute the data processing method as described in any one of claims 6-7; The configuration storage database is used to store configuration items for all accounts; The service management terminal is used to send change requests to the management server through the second interface; The management server is used to obtain change requests and modify the configuration items corresponding to the configuration storage database according to the change requests. If the modification is successful, the modified configuration items are sent to the configuration server.