Data configuration method and device, electronic equipment and storage medium
By determining the configuration type and business type, and automatically generating data screening instructions, the problem of inefficient data configuration in enterprise automation data governance is solved, and efficient and accurate data configuration is achieved.
Patent Information
- Application Number
- CN202510457786.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-11
- Publication Date
- 2025-07-22
AI Technical Summary
In the automated data governance of enterprises, data configuration is inefficient, and complex data screening strategy configuration is required to be implemented through coding methods, which makes development difficult.
By determining the configuration type and business type of configuration requirements, dividing the data scope, automatically generating data screening instructions, reducing duplicate editing logic, and directly translating the requirements into code.
It improves the efficiency of data configuration, narrows the query scope of configuration information, reduces configuration costs, and improves the accuracy and efficiency of data operations.
Smart Images

Figure CN120353789A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of data configuration, and particularly to a data configuration method, apparatus, electronic device, and storage medium. Background Art
[0002] Currently, in the scenario of an enterprise's automated data governance, automated screening or filtering operations are usually performed on the data to be processed in a database, and then customized processing strategies are provided for the data that needs to be processed. When implementing complex data governance requirements, it is usually necessary to configure the data screening strategy by means of coding. The development difficulty of this data configuration method is large, resulting in low data configuration efficiency. Summary of the Invention
[0003] In view of the above, it is necessary to propose a data configuration method, apparatus, electronic device, and storage medium to solve the technical problem of low efficiency in processing data configuration requirements.
[0004] This application provides a data configuration method applied to an electronic device. The method includes: determining a corresponding configuration type according to a pre-acquired configuration requirement; determining a business type corresponding to the configuration requirement based on the configuration type; determining configuration information corresponding to the configuration requirement according to the business type; formatting the configuration information according to a pre-acquired information query requirement to obtain a data screening instruction; and outputting target data corresponding to the configuration requirement according to the data screening instruction.
[0005] In some embodiments, the formatting the configuration information according to a pre-acquired information query requirement to obtain a data screening instruction includes: determining attribute information corresponding to the information query requirement from the configuration information according to a to-be-query attribute in the information query requirement; determining a query operation corresponding to the to-be-query attribute according to the type and data source of the attribute information; and determining a data screening instruction corresponding to the information query requirement according to the query operation.
[0006] In some embodiments, the method further includes: determining corresponding to-be-updated configuration information according to a pre-acquired update requirement; determining attribute information corresponding to the to-be-updated configuration information according to a configuration object in the to-be-updated configuration information; verifying the to-be-updated configuration information according to the attribute information and a business type in the update requirement to obtain a verification result; and outputting response information corresponding to the update requirement when the verification result is verified.
[0007] In some embodiments, verifying the configuration information to be updated according to the business type in the attribute information and the update requirement to obtain a verification result includes: determining a target object corresponding to the update requirement according to the business type in the update requirement; when the attribute information corresponding to the configuration information to be updated is the same as the attribute information of the target object, determining that the verification result is passed.
[0008] In some embodiments, the method further includes: when the verification result is passed, outputting an approval instruction corresponding to the configuration information to be updated; when receiving response information corresponding to the approval instruction, determining that the configuration information to be updated is in an enabled state.
[0009] In some embodiments, the method further includes: periodically obtaining configuration information to be updated; determining an attribute to be updated corresponding to the configuration object according to the configuration object in the configuration information to be updated; when the configuration object in the configuration information to be updated matches the attribute information corresponding to the configuration information to be updated, performing a preset operation on the attribute to be updated based on the attribute information.
[0010] In some embodiments, the preset operation includes: a replacement operation and / or a deletion operation.
[0011] An embodiment of the present application further provides a data configuration device, including: a determination module, configured to determine a corresponding configuration type according to a pre-obtained configuration requirement; the determination module is further configured to determine a business type corresponding to the configuration requirement based on the configuration type; a configuration module, configured to determine configuration information corresponding to the configuration requirement according to the business type; the configuration module is further configured to format the configuration information according to a pre-obtained information query requirement to obtain a data screening instruction; the configuration module is further configured to output target data corresponding to the configuration requirement according to the data screening instruction.
[0012] An embodiment of the present application further provides an electronic device, including: a memory, storing at least one instruction; a processor, executing the instruction stored in the memory to implement the above data configuration method.
[0013] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the above data configuration method are implemented.
[0014] As can be seen from the above technical solutions, in the embodiments of the present application, by determining the configuration type of the configuration requirements, dividing the range of the data to be configured corresponding to the configuration requirements, and determining the service type of the configuration requirements according to the configuration type, the service scope corresponding to the configuration data can be determined. It is possible to narrow the range of querying the configuration information to be configured and improve the efficiency of determining the configuration information. Then, according to the information query requirements input by the user, the configuration information is structurally processed, and a data screening instruction is automatically generated. When configuring the data screening process in an independent station or other business systems, there is no need to repeatedly edit the data screening logic, and the requirements can be directly translated into code, reducing the cost of configuring the conditions for data operations and improving the efficiency of data configuration. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 FIG. is an application scenario diagram of a data configuration method provided by an embodiment of the present application.
[0016] Figure 2 FIG. is an architecture diagram of an independent station provided by an embodiment of the present application.
[0017] Figure 3 FIG. is a flowchart of a data configuration method provided by an embodiment of the present application.
[0018] Figure 4 FIG. is a schematic diagram of a front-end page provided by an embodiment of the present application.
[0019] Figure 5 FIG. is a flowchart of a method for determining a data screening instruction provided by an embodiment of the present application.
[0020] Figure 6 FIG. is a flowchart of a method for updating configuration information provided by an embodiment of the present application.
[0021] Figure 7 FIG. is a flowchart of a method for verifying the configuration information to be updated provided by an embodiment of the present application.
[0022] Figure 8 FIG. is a flowchart of a method for enabling the configuration information to be updated provided by an embodiment of the present application.
[0023] Figure 9 FIG. is a flowchart of a method for updating configuration information provided by an embodiment of the present application.
[0024] Figure 10 FIG. is a functional module diagram of a data configuration device provided by an embodiment of the present application.
[0025] Figure 11 FIG. is a schematic structural diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0026] To better understand the objectives, features, and advantages of the present application, the present application will be described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that, without conflict, the embodiments of the present application and the features in the embodiments may be combined with each other. Many specific details are set forth in the following description to facilitate a thorough understanding of the present application. The described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments.
[0027] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more of the described features. In the description of the present application, "a plurality" means two or more, unless otherwise specifically defined.
[0028] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which this application belongs. The terms used in the specification of this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.
[0029] The embodiments of the present application provide a data configuration method, which can be applied to one or more electronic devices. An electronic device is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions. Its hardware includes, but is not limited to, a microprocessor, an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA), a digital signal processor (DSP), an embedded device, etc.
[0030] An electronic device can be any electronic product that can perform human-computer interaction with a customer. For example, a personal computer, a tablet computer, a smart phone, a personal digital assistant (PDA), a game console, an Internet protocol television (IPTV), a smart wearable device, etc.
[0031] The electronic device may further include a network device and / or a client device. Among them, the network device includes, but is not limited to, a single network server, a server group composed of multiple network servers, or a cloud composed of a large number of hosts or network servers based on Cloud Computing.
[0032] The network where the electronic device is located includes, but is not limited to, the Internet, wide area network, metropolitan area network, local area network, Virtual Private Network (VPN), etc.
[0033] As Figure 1 Shown is an application scenario diagram of a data configuration method provided by an embodiment of the present application. A data configuration method provided by the present application can be applied to the electronic device 100. Among them, the electronic device 100 can be a device such as a computer or a server applied to an independent site. The user 200 using the independent site inputs a configuration requirement to the electronic device 100. Among them, the configuration requirement is used to represent the requirement of the user 200 to configure the data in the independent site. Exemplarily, when the user 200 is a merchant in the independent site, the configuration requirement can be used to represent the requirement of the merchant to perform aggregation analysis on the data in the independent site; when the user 200 is a consumer in the independent site, the configuration requirement can be used to represent the requirement of the consumer to query the data in the independent site; when the user 200 is a background manager in the independent site, the configuration requirement can be used to represent the requirement of the background manager to configure the permission data in the independent site. The electronic device 100 is further configured to determine a corresponding configuration type according to the pre-acquired configuration requirement; based on the configuration type, determine the service type corresponding to the configuration requirement; according to the service type, determine the configuration information corresponding to the configuration requirement; format the configuration information according to the pre-acquired information query requirement to obtain a data screening instruction; and output the target data corresponding to the configuration requirement to the user 200 according to the data screening instruction.
[0034] As Figure 2 Shown is an architecture diagram of an independent site provided by an embodiment of the present application. The independent site 300 provided by the present application can run on Figure 1On the electronic device 100 shown, it is used to provide a trading platform for merchants and users of cross-border e-commerce. Among them, the independent site 300 includes a client 310, a business system 320, and a backend 330. Specifically, the client 310 is used to receive request data input by the user 200 to the independent site. The business system 320 is used to determine the corresponding configuration type according to the pre-obtained configuration requirements; based on the configuration type, determine the business type corresponding to the configuration requirements; according to the business type, determine the configuration information corresponding to the configuration requirements from the backend 330; format the configuration information according to the pre-obtained information query requirements to obtain a data screening instruction; and output the target data corresponding to the configuration requirements according to the data screening instruction. Among them, the backend 330 is used to store the business data in the independent site 300.
[0035] Among them, the client 310 includes a web page 311, an application 312, and a program interface 313; the web page 311 can be the corresponding portal website of the independent site 300 on the Internet, and is used to provide trading services and data inside the independent site 300 to the Figure 1 user 200 shown. The user 200 browses the web page 311 through a browser, so as to use the trading services in the independent site 300 or browse the data in the independent site 300; the application 312 can be an application program running on the electronic device 100, and the user 200 can use the trading services in the independent site 300 or browse the data in the independent site 300 based on this application 312; the program interface 313 can be a program that can be called by other programs or software, and the program interface 313 can be integrated into a third-party software. In this way, when the user uses the third-party software, they can call the independent site by calling the program interface 313 to use the trading services or browse the data in the independent site.
[0036] Among them, the backend 330 includes a distributed search engine 331, a cache engine 332, a configuration center 333, and a traffic control software 334. Specifically, the distributed search engine 331 transmits the service type output by the service system 320 to the cache engine 332 for caching in response to the service type; when the cache engine 332 receives multiple service types in a short period of time, it constructs a first-in-first-out cache queue according to the order of the received service types from earliest to latest. When any service type enters the cache queue first, the service type is preferentially processed; the configuration center 333 is used to determine the corresponding configuration information according to the service type in the cache engine 332 and transmit the configuration information to the traffic control software 334; after receiving the configuration information transmitted by the configuration center 333, the traffic control software 334 sends the configuration information to the client 310 through the service system 320 according to the pre-stored traffic control policy. For example, when the pre-stored traffic control policy is to send 512 bytes of information each time, if the configuration information received by the traffic control software 334 is greater than 512 bytes, the configuration information is sent to the client 310 through the service system 320 in multiple times.
[0037] As Figure 3 shown, it is a flowchart of a data configuration method provided by an embodiment of the present application. According to different requirements, the order of steps in this flowchart can be changed, and some steps can be omitted. The data configuration method provided by the embodiment of the present application includes the following steps.
[0038] S20, determine the corresponding configuration type according to the pre-obtained configuration requirements.
[0039] In an embodiment of the present application, the configuration requirement may be a requirement for filtering or querying data in an electronic device sent by a user. Among them, the configuration requirement may be a data operation instruction triggered by the user through the front-end page. Exemplarily, the configuration requirement may be a data query requirement triggered by the user by clicking a button on the front-end page; the configuration requirement may also be a data filtering requirement triggered by the electronic device after receiving the text information input by the user on the front-end page; the configuration requirement may also be a data review requirement triggered by the user after inputting voice data on the front-end page.
[0040] In an embodiment of the present application, the configuration type corresponding to the configuration requirement is used to characterize the configuration involved in the configuration requirement, and the meaning of the requirement is determined according to the requirement configuration to determine the corresponding configuration type. Determining the corresponding configuration type according to the configuration requirement can clarify the scenario of the requirement during requirement analysis, narrow the query range of the configuration information, and thus improve the efficiency of data configuration. The configuration information determined according to the configuration requirement.
[0041] In an embodiment of the present application, the configuration types corresponding to configuration requirements include the following multiple dimensions: function dimension, role level dimension, life cycle dimension, and management dimension. Among them, when classifying configuration requirements according to the function dimension, the configuration requirements can be divided according to function attributes (for example, network configuration, security configuration, performance configuration). When classifying configuration requirements according to the role level dimension, the configuration requirements can be classified into global configuration (for example, system level), application configuration (for example, service level), and user configuration (for example, personalized level), which can reflect the influence range and priority of the configuration. When classifying configuration requirements according to the life cycle dimension, the configuration requirements can be classified into static configuration (for example, hardware parameters), and the configuration requirements can also be classified into dynamic configuration, supporting runtime hot update (for example, log level adjustment), and the configuration requirements can also be classified into temporary configuration, session-level override (for example, timeout time test parameters). When classifying configuration requirements according to the management dimension, the configuration requirements can be classified into those implemented through type tags: version control (for example, different environment configuration branches); permission control (for example, encrypted access to sensitive configurations); change audit (for example, tracking of critical configuration operations).
[0042] In an embodiment of the present application, the configuration requirements include multiple requirement information, and the multiple requirement information is used to indicate the requirements of the user to operate or filter data in the independent station. For example, the configuration requirements can be "edit permission", "add permission", "query user", "add user". When the configuration requirement is "edit permission", the requirement information can be "permission", and the requirement information can also be used to indicate the user group that needs to perform permission editing, and the requirement information can also be used to indicate the time range for which permission editing needs to be performed.
[0043] In an embodiment of the present application, the configuration requirements can be classified according to the requirement information in the configuration requirements to determine the configuration type corresponding to the configuration requirements. When the configuration information includes basic setting parameters, it can be determined that the configuration type is infrastructure configuration. Specifically, the basic setting parameters can be network parameters; server address, port number, load balancing strategy; domain name resolution configuration (for example, DNS settings); firewall rules, IP whitelist; storage configuration; database connection string (for example, JDBC URL); cache policy (for example, Redis / Memcached configuration); file storage path, backup plan; computing resources; container resource limits (for example, CPU limit, memory quota limit); virtual machine or Kubernetes node configuration.
[0044] When the configuration information includes application information, the configuration type corresponding to the configuration requirement can also be application-layer configuration. Specifically, the application information includes function switch information, dynamic enable / disable function module information (e.g., A / B test switch), experimental function information, gray release control information, interface and interaction information, theme style information, multi-language support information (e.g., i18n format information), user interface layout information, default paging size information, performance tuning information, thread pool capacity information, timeout threshold information, batch task scheduling frequency information.
[0045] When the configuration information includes security-related information, the configuration type can also be security and permission configuration. Specifically, the security-related information includes authentication configuration information; OAuth2 / OpenID Connect client ID and secret information; LDAP / AD integration parameter information; multi-factor authentication (e.g., MFA authentication) policy information; authorization rule information; RBAC (e.g., role-based access control) model information; fine-grained permission policy information (e.g., resource-level permissions).
[0046] When the configuration information includes encryption configuration information, the configuration type can also be encryption configuration. Specifically, the encryption configuration information can be SSL / TLS certificate path information, encryption algorithm suite information, data encryption key management information (e.g., KMS service).
[0047] When the configuration information includes business rule information, the configuration type can also be business rule configuration. Specifically, the business rule information includes data validation rule information, form field validation logic information (e.g., regular expression), business data uniqueness constraint information, process engine configuration information, workflow node definition information, state machine transition rule information, approval flow level and permission binding information, pricing and promotion strategy information, discount rule information, full reduction / gift logic information, dynamic pricing algorithm parameters.
[0048] When the configuration information includes integration and extension information, the configuration type can also be integration and extension. Specifically, the integration and extension information includes API configuration information, third-party service API key information, endpoint URL information, version control information of REST / SOAP interfaces, message queue information, Topic / Exchange definition information of Kafka / RabbitMQ; message serialization format information (JSON / Protobuf), plugin system information, custom plugin loading path information, dependency management information.
[0049] When the configuration information includes monitoring information, the configuration type can also be monitoring and logging. Specifically, the monitoring information includes log configuration information, log level information, log file rotation policy information (e.g., split by time / size), monitoring alarm information, Prometheus scraping target configuration information, alarm threshold information (e.g., CPU usage > 85% triggers an alarm), audit trail information, operation log retention policy information (e.g., retain for 6 months), and sensitive data access audit rule information.
[0050] When the configuration information includes environment differentiation information, the configuration type can also be environment differentiation configuration. Specifically, the environment differentiation information includes multi-environment adaptation information, development / test / production environment variable isolation information, feature switch information (e.g., the payment function is only enabled in the production environment), regional compliance configuration information, GDPR data retention policy, and localization compliance rules.
[0051] When the configuration information includes dynamic operation parameters, the configuration type can also be dynamic operation configuration. Specifically, the dynamic operation parameters include real-time parameter adjustment information, flow limit threshold information (e.g., the number of requests per second is dynamically adjusted), circuit breaker policy parameter information (e.g., failure rate threshold), hot update configuration information, configuration reload mechanism information without restarting the application, configuration version rollback policy information, and configuration management value information.
[0052] In an embodiment of the present application, by classifying the configuration data type, the system can achieve environment isolation to avoid test configuration contaminating the production environment; it can also achieve agile iteration and perform lossless release through function switches; it can also achieve secure and compliant configuration to centrally manage sensitive configurations; it can also achieve performance optimization by dynamically adjusting resource parameters during traffic peaks; and it can also achieve observability to unify monitoring configurations and reduce the troubleshooting time.
[0053] S21, based on the configuration type, determine the business type corresponding to the configuration requirements.
[0054] In an embodiment of the present application, the configuration type is used to characterize the data operation type corresponding to the requirement information in the configuration requirement. After determining the configuration type, in order to further improve the efficiency of configuring data in the electronic device, the service type corresponding to the configuration requirement can be determined based on the configuration type. Among them, the service type is used to indicate the fine-grained data operation requirement corresponding to the configuration requirement. When configuring the data in the electronic device based on the configuration requirement, determining the service type corresponding to the configuration requirement first can clarify the construction method of subsequent data screening from the dimensions of the logic, data characteristics, and system objectives of the business scenario of the configuration requirement, and can also improve the fit between the subsequent obtained data screening instruction and the business objective. In addition, since the service type of the configuration requirement can characterize the business meaning boundary of the filterable field, after determining the service type corresponding to the configuration requirement, the semantic dimension of the subsequent determined data screening instruction can be constrained based on the service type.
[0055] Exemplarily, when the electronic device is the processor of an employee management system, in the case where the configuration type is a security configuration type, the service type can be a permission setting requirement. This service type is used to indicate that the configuration requirement is a requirement for configuring the permissions of employees in the employee management system. Specifically, in order to ensure the differentiation of employee roles, retrieval conditions within the permission scope can be configured for different users (for example, administrators, ordinary users) according to the configuration requirement (for example, administrators can query all data, and ordinary users can only retrieve data related to themselves).
[0056] In an embodiment of the present application, the service type corresponding to the configuration requirement can be determined according to the configuration type and a preset mapping relationship. Based on the association between the configuration type and the service type, the accuracy of data configuration can be achieved and the efficiency of data configuration can be improved. Specifically, determining the service type corresponding to the configuration requirement based on the configuration type includes: querying multiple candidate service types corresponding to the configuration type from the preset mapping relationship; performing keyword matching between the requirement information in the configuration requirement and the multiple candidate service types, and determining the service type corresponding to the configuration requirement from the multiple candidate service types. Among them, the preset mapping relationship is used to indicate the association relationship between the configuration type and the service type. Among them, each configuration type corresponds to at least one service type.
[0057] Exemplarily, when the requirement information includes the basic setting parameters of the system to which the electronic device belongs, the configuration type can be a basic configuration type, and the candidate service types corresponding to this configuration type can be the configuration requirement for the number of data partitions in the independent station memory, the configuration requirement for the independent station network bandwidth, or the configuration requirement for the independent station routing node.
[0058] Exemplarily, when the demand information includes information about the application, the configuration type may be an application configuration type, and the candidate business types corresponding to this configuration type may be financial APP parameter configuration requirements, or e-commerce trading system parameter configuration requirements.
[0059] Exemplarily, when the demand information includes security-related information about the system to which the electronic device belongs, the configuration type may be a permission configuration type, and the candidate business types corresponding to this configuration type may be employee permission configuration requirements, or employee approval permission configuration requirements.
[0060] In an embodiment of the present application, keyword matching is performed between the demand information in the configuration requirement and multiple candidate business types to determine the business type corresponding to the configuration requirement from the multiple candidate business types. Exemplarily, when the configuration requirement is a basic configuration type, the demand information includes "basic parameters", "query", and "configuration". Keyword matching can be performed based on the demand information among the candidate business types. For example, the candidate business types may be "IT business", "independent station business", and "live streaming platform business". After performing keyword matching according to the demand information, it can be determined that the "configuration requirement for the network bandwidth of the independent station" is the business type corresponding to the configuration requirement.
[0061] In this way, the corresponding configuration information can be determined through the corresponding classified business type, and the data query range can be narrowed according to the business type, thereby improving the efficiency of determining the configuration information.
[0062] S22. Determine the configuration information corresponding to the configuration requirement according to the business type.
[0063] In an embodiment of the present application, the business type can be used to indicate the business scope corresponding to the configuration requirement. In order to narrow the data configuration range according to the business type and improve the correlation between the data configuration requirement and the business logic, multiple configuration information that needs to be configured corresponding to the configuration requirement can be determined according to the business type, so as to provide information support for subsequent configuration data screening instructions and improve the relevance between the data screening instructions and the business logic.
[0064] In an embodiment of the present application, determining the configuration information corresponding to the configuration requirement according to the business type includes: querying a pre-stored mapping table according to the business type to determine multiple candidate configuration tables corresponding to the business type; determining the configuration information corresponding to the configuration requirement from the multiple candidate configuration tables through keyword matching of the business type. Among them, the configuration information is used to indicate the data in the electronic device that needs to be operated according to the configuration requirement.
[0065] Specifically, the pre-stored mapping table is used to indicate the mapping relationship between service types and configuration information. Among them, the mapping relationship between service types and configuration information is used to indicate service types and at least one associated configuration table. The configuration table is used to store various configuration information that needs to be configured.
[0066] Exemplarily, when the service type is the financial type, the configuration information stored in the corresponding configuration table can be financial data in the system, retail data in the system, or transaction data in the system. When the service type is the application type, the configuration information stored in the corresponding configuration table can be parameters of the application program, the trigger time of the application program, or the running duration of the application program.
[0067] S23, perform formatting processing on the configuration information according to the pre-obtained information query requirement to obtain a data screening instruction.
[0068] In an embodiment of the present application, in order to output the configuration information in a fixed format and facilitate corresponding operations on the data in the electronic device according to the configuration information, the configuration information can be formatted according to the pre-obtained information query requirement to obtain a data screening instruction. Among them, the information query requirement can be a filtering or combination operation made by the user on the configuration information through the front-end page of the electronic device. In this way, formatting the configuration information can ensure the consistency between the data input by the user through the front-end page of the electronic device and the data received by the back-end of the electronic device, and can maintain the integrity of the data during the data transmission process, thereby improving the data transmission efficiency.
[0069] In an embodiment of the present application, the information query requirement can be a filtering operation or combination operation implemented when the user inputs an instruction in the checkbox on the front-end page. Specifically, in response to the user clicking at least one checkbox on the front-end page, the configuration information corresponding to the checkbox is output. The user can filter the configuration information that meets the requirements from the configuration information corresponding to the checkbox, and can also filter the corresponding configuration information from multiple checkboxes and combine them into an information query requirement. Exemplarily, as Figure 4 is the front-end page 400 for inputting the information query requirement. Among them, "string6 budget center" in the checkbox 410 can indicate that the configuration information in the checkbox is information related to the budget center; "》contains" in the checkbox 420 can indicate that the configuration information in the checkbox is used to represent the logical operator of the screening condition corresponding to the budget center; "efficiency management department" in the checkbox 430 can indicate that the configuration information in the checkbox is information related to the efficiency management department. Among them, the data screening instruction obtained by combining the configuration information in the checkbox 410, the checkbox 420, and the checkbox 430 can be used to represent the business rule of "query the budget center containing the energy efficiency management department". In this way, the abstract business requirements can be transformed into executable query logic.
[0070] In an embodiment of the present application, for the specific method of formatting the configuration information according to the information query requirement obtained in advance to obtain a data screening instruction, please refer to Figure 5 the corresponding detailed description.
[0071] In this way, a data screening instruction can be automatically generated according to the configuration requirements input by the user, which can improve the writing speed of the data screening instruction and reduce the time-consuming for processing complex configuration requirements. It can also avoid configuration errors through syntax verification and dependency check, and improve the accuracy of the configuration data. It can also enhance the dynamic response ability to configuration requirements. Since the configuration information is stored in the form of a configuration table, the electronic device can process multiple different configuration requirements in real time and generate multiple versions of screening instructions in parallel, thereby improving the efficiency of data configuration.
[0072] S24. Output the target data corresponding to the configuration requirement according to the data screening instruction.
[0073] In an embodiment of the present application, the data screening instruction may be an instruction for operating on the data in the electronic device obtained after formatting the configuration information. When executing the data screening instruction, the logic of data screening can be implemented in stages such as instruction parsing, instruction optimization, instruction execution, and data processing. In the instruction parsing stage, the combination mode between multiple configuration information in the data screening instruction can be conditionally parsed to generate a corresponding logical expression. After running the logical expression corresponding to the data screening instruction, the target data corresponding to the configuration requirement is obtained.
[0074] Specifically, first, the condition types among the combination methods of multiple configuration information can be determined. Among them, the condition types include simple conditions, compound conditions (AND / OR conditions), and negation conditions. Among them, a simple condition can be the configuration information in the data screening instruction for indicating numerical comparison (for example, score > 80) or the configuration information for indicating fuzzy matching (for example, name LIKE 'Zhang%'); a compound condition can be a set of multiple configuration information combined by logical operators in the data screening instruction; the AND / OR condition includes the AND condition and the OR condition. Among them, the "AND" character in the data screening instruction is used to represent the AND condition, which is used to indicate that all configuration information needs to meet one or more conditions simultaneously (for example, age > 18 AND city = 'Beijing'); the "OR" character in the data screening instruction is used to represent the OR condition, which is used to indicate that the configuration information needs to meet any one of multiple conditions (for example, dept_id = 2 OR dept_id = 3); the "NOT" character in the data screening instruction is used to represent the negation condition, and the negation condition can indicate that the configuration information in the data screening instruction does not include a certain condition (for example, NOT status = 'inactive'). Exemplarily, when any configuration information meets any one or more combinations of simple conditions, compound conditions, AND / OR conditions, and negation conditions, the configuration information can be determined as the target data corresponding to the configuration requirements.
[0075] Specifically, in the instruction optimization stage, the processing priority for each configuration information in the data screening instruction can also be determined according to the logical operators in the data screening instruction. Exemplarily, the priorities of different operators can be WHERE, AND, OR, NOT in sequence. After determining the execution priority, the configuration information in the data screening instruction can be processed in the order from high to low according to the priority of the logical operators. Specifically, high-screening conditions can be executed first (for example, WHERE salary > 10000 may filter 90% of the data, so this screening condition can be executed first), and then the AND / OR conditions can be executed to perform data retrieval and filtering. According to the execution plan from high to low according to the priority of the logical operators, data blocks are extracted from the electronic device, and the filtering conditions in the data screening instruction are applied to each data block, and the records that meet the conditions are retained. Exemplarily, after processing the configuration information in sequence according to the priority, the processed configuration information can be determined as the target data corresponding to the configuration requirements.
[0076] Specifically, in the data processing stage, the processing results of the data screening instruction can be sorted, and the processing results of the data are de-duplicated and aggregated, and the processed data results after de-duplication and aggregation are determined as the target data corresponding to the configuration requirements. In this way, by reasonably configuring the retrieval conditions, the business requirements, system performance, data security, and user experience can be balanced, and efficient and accurate data-driven decision-making can be achieved.
[0077] As can be seen from the above technical solutions, in the embodiment of the present application, by determining the configuration type of the configuration requirements, dividing the range of the to-be-configured data corresponding to the configuration requirements, and determining the business type of the configuration requirements according to the configuration type, the business scope corresponding to the configuration data can be determined. It is possible to narrow the range of querying the configuration information to be configured, and improve the efficiency of determining the configuration information. Then, according to the information query requirements input by the user, the configuration information is structurally processed, and a data screening instruction is automatically generated. When configuring the data screening process in an independent station or other business systems, there is no need to repeatedly edit the data screening logic, and the requirements can be directly translated into code, reducing the cost of configuring the conditions for data operations and improving the efficiency of data configuration.
[0078] As Figure 5 shown, it is a flowchart of a method for determining a data screening instruction provided by an embodiment of the present application. According to different requirements, the order of the steps in this flowchart can be changed, and some steps can be omitted. The method for determining a data screening instruction provided by the embodiment of the present application includes the following steps.
[0079] S30. According to the to-be-query attributes in the information query requirements, determine the attribute information corresponding to the information query requirements from the configuration information.
[0080] In an embodiment of the present application, the information query requirements may be a screening operation or a combination operation implemented when the user inputs an instruction in the checkbox on the front-end page. Specifically, in response to the user clicking at least one checkbox on the front-end page, the configuration information corresponding to the checkbox is output. The user can screen the configuration information that meets the requirements from the configuration information corresponding to the checkbox, and can also screen the corresponding configuration information from multiple checkboxes and combine them into information query requirements. Among them, the to-be-query attributes in the information query requirements are used to characterize the type of the configuration information corresponding to the information query requirements.
[0081] Exemplarily, when the type of a to-be-query attribute in the information query requirements is "query department name", the to-be-query attribute corresponding to the configuration information is "department name"; when the type of a to-be-query attribute in the information query requirements is "query employee ID", the to-be-query attribute corresponding to the configuration information is "employee ID".
[0082] In an embodiment of the present application, the configuration information related to the to-be-query attributes can be determined from the configuration information corresponding to the configuration requirements as the attribute information. Exemplarily, when the to-be-query attribute is "department name", the configuration information related to the department name can be determined as the attribute information; when the to-be-query attribute is "employee ID", the configuration information related to the employee ID can be determined as the attribute information.
[0083] S31. Determine the query operation corresponding to the attribute to be queried according to the type and data source of the attribute information.
[0084] In an embodiment of the present application, the query operation corresponding to the attribute to be queried can be determined according to the type of the attribute information and the corresponding data source. For example, when the attribute to be queried is "department name", the attribute information can be the configuration information related to the department name, and the data source is the data table storing the department name, then the query operation corresponding to the attribute to be queried can be determined as "the operation of querying the department name from the data table storing the department name".
[0085] S32. Determine the data screening instruction corresponding to the information query requirement according to the query operation.
[0086] In an embodiment of the present application, the data screening instruction corresponding to the information query requirement can be determined according to the query operation corresponding to the attribute to be queried. For example, when the electronic device is a processor running an independent station, the information query requirement can be the requirement for querying or operating on the data in the e-commerce system of the independent station. Therefore, the data screening instruction can be "product category = electronic products AND inventory < 10", and this data screening instruction is used to represent the replenishment requirement. The target data obtained after running this data screening instruction can be the product categories of electronic products with an inventory of less than 10 pieces in the independent station.
[0087] For another example, when the electronic device is an electronic device running a financial application, the information query requirement can be the requirement for regulating the data in the financial application or controlling financial risks. Therefore, the data screening instruction can be "transaction amount > 10,000 yuan AND device ID appears for the first time", and this data screening instruction is used to represent the anti-fraud requirement. After running this data screening instruction, the target data obtained can be the transactions with a transaction amount greater than 10,000 yuan executed by any device ID that appears for the first time in the financial platform.
[0088] For another example, when the electronic device is a server for content review services, the information query requirement can be the requirement for reviewing the data content in the server. Therefore, the data screening instruction can be "article tag contains 'AI' AND reading volume > 1000", and this data screening instruction is used to represent the popular content analysis requirement. After running this data screening instruction, the target data obtained can be any article with a tag containing 'AI' and a reading volume greater than 1000.
[0089] In an embodiment of the present application, the life cycle of the configuration information can also be systematically managed, the configuration information can be updated in real time based on the update requirements input by the user, and a continuous verification mechanism can be implemented. When the business type characteristics change, the re-verification process of the configuration information is automatically triggered. Such as Figure 6As shown, it is a flowchart of a method for updating configuration information provided by an embodiment of the present application. According to different requirements, the order of steps in this flowchart can be changed, and some steps can be omitted. The method for updating configuration information provided by the embodiment of the present application includes the following steps.
[0090] S40. Determine the corresponding configuration information to be updated according to the pre-obtained update requirements.
[0091] In an embodiment of the present application, the pre-obtained update requirements can be parsed to determine the conditions to be updated in the update requirements. Then, according to the conditions to be updated in the update requirements, the configuration information to be updated is determined from the configuration information. Among them, the content to be updated can be used to indicate the storage location of the data to be updated in the electronic device, can also be used to indicate the storage period corresponding to the data to be updated, and can also be used to indicate the value range corresponding to the data to be updated. The present application does not make any limitations on this.
[0092] S41. Determine the attribute information corresponding to the configuration information to be updated according to the configuration object in the configuration information to be updated.
[0093] In an embodiment of the present application, the configuration object in the configuration information to be updated is used to indicate the subject to which the configuration information to be updated belongs. Exemplarily, when the configuration information to be updated is "department name", the configuration object can be determined as the name of the department; when the configuration information to be updated is "employee ID", the configuration object can be determined as the ID of the employee. Further, the corresponding attribute information can be determined according to the configuration object. Exemplarily, when the configuration object is the name of the department, the attribute information can be determined as the business type of the department, the level of the department, and other related attributes; when the configuration object is the ID of the employee, the attribute information can be determined as the name of the employee, the working years of the employee, and other related attributes.
[0094] S42. Verify the configuration information to be updated according to the attribute information and the business type in the update requirements to obtain a verification result.
[0095] In an embodiment of the present application, in order to ensure that the attribute information conforms to the business type in the update requirements and ensure the data integrity during the update of the configuration information, the configuration information to be updated can be verified according to the attribute information and the business type in the update requirements to obtain a verification result. Specifically, for the specific method of verifying the configuration information to be updated, please refer to Figure 7 The corresponding detailed description.
[0096] S43. When the verification result is verification passed, output the response information corresponding to the update requirements.
[0097] In an embodiment of the present application, when the verification result is a pass, it indicates that the attribute information conforms to the service type in the update requirement, and then the response information corresponding to the update requirement can be output. Among them, the response information can be used to represent that the configuration information has been updated.
[0098] As Figure 7 shown, it is a flowchart of a method for verifying the configuration information to be updated provided by an embodiment of the present application. According to different requirements, the order of the steps in this flowchart can be changed, and some steps can be omitted. The method for verifying the configuration information to be updated provided by the embodiment of the present application includes the following steps.
[0099] S50. Determine the target object corresponding to the update requirement according to the service type in the update requirement.
[0100] In an embodiment of the present application, in order to determine whether the attribute information conforms to the service type in the update requirement, the corresponding target object can be determined first according to the service type in the update requirement. Among them, the target object is used to indicate the object related to the service type in the update requirement. Exemplarily, when the service type in the update requirement is the "employee management" type, the target object can be the human resources management personnel responsible for implementing "employee management"; when the service type in the update requirement is the "permission management" type, the target object can be the information security management personnel responsible for implementing "permission management".
[0101] S51. When the attribute information corresponding to the configuration information to be updated is the same as the attribute information of the target object, determine that the verification result is a pass.
[0102] In an embodiment of the present application, when the attribute information corresponding to the configuration information to be updated is the same as the attribute information of the target object, it indicates that the configuration information to be updated conforms to the attribute information of the target object, and then the data integrity and consistency during the update of the configuration information can be ensured.
[0103] In an embodiment of the present application, in order to improve the security of the configuration information, after the configuration information is updated, the start-stop state of the configuration information can also be set. As Figure 8 shown, it is a flowchart of a method for enabling the configuration information to be updated provided by an embodiment of the present application. According to different requirements, the order of the steps in this flowchart can be changed, and some steps can be omitted. The method for enabling the configuration information to be updated provided by the embodiment of the present application includes the following steps.
[0104] S60. When the verification result is a pass, output the approval instruction corresponding to the configuration information to be updated.
[0105] In an embodiment of the present application, when the verification result is verification passed, indicating that the attribute information conforms to the service type in the update requirement, the approval instruction corresponding to the update configuration information can be output. Among them, the approval instruction can be used to represent the instruction for approving the to-be-updated configuration information.
[0106] S61, when receiving the response information corresponding to the approval instruction, determine that the to-be-updated configuration information is in an enabled state.
[0107] In an embodiment of the present application, when receiving the response information corresponding to the approval instruction, it indicates that the data security of the updated configuration information has passed the approval, and then the to-be-updated configuration information is enabled to determine that the to-be-updated configuration information is in an enabled state.
[0108] In an embodiment of the present application, in order to continuously manage the life cycle of the configuration information, the to-be-updated configuration information can also be periodically obtained, and a continuous verification mechanism is implemented for the to-be-updated configuration information to automatically trigger the update of the configuration information. As Figure 9 shown, it is a flowchart of the method for updating configuration information provided by an embodiment of the present application. According to different requirements, the order of the steps in this flowchart can be changed, and some steps can be omitted. The method for updating configuration information provided by the embodiment of the present application includes the following steps.
[0109] S70, periodically obtain the to-be-updated configuration information.
[0110] In an embodiment of the present application, the data update log of the electronic device can be periodically parsed, and the to-be-updated configuration information can be determined from the configuration information based on the data update log. Among them, the data update log can be used to record the change records of the configuration information.
[0111] S71, according to the configuration object in the to-be-updated configuration information, determine the to-be-updated attribute corresponding to the configuration object.
[0112] In an embodiment of the present application, the configuration object in the to-be-updated configuration information is used to indicate the subject to which the to-be-updated configuration information belongs. Exemplarily, when the to-be-updated configuration information is "department name", the configuration object can be determined as the name of the department; when the to-be-updated configuration information is "employee ID", the configuration object can be determined as the ID of the employee. Further, the corresponding attribute information can be determined according to the configuration object. Exemplarily, when the configuration object is the name of the department, the attribute information can be determined as the service type of the department, the level of the department, and other related attributes; when the configuration object is the ID of the employee, the attribute information can be determined as the name of the employee, the working years of the employee, and other related attributes.
[0113] S72. When the configuration object in the configuration information to be updated matches the attribute information corresponding to the configuration information to be updated, perform a preset operation on the attribute to be updated based on the attribute information.
[0114] In an embodiment of the present application, when the configuration object in the configuration information to be updated matches the attribute information corresponding to the configuration information to be updated, it indicates that the attribute information conforms to the service type in the update requirement. Then, a preset operation can be performed on the attribute to be updated based on the attribute information. Specifically, the preset operation includes a replacement operation and / or a deletion operation.
[0115] Please refer to Figure 10 , Figure 10 which is a functional module diagram of a data configuration device provided by an embodiment of the present application. The data configuration device 91 includes a determination module 910 and a configuration module 911. The module / unit mentioned in the present application refers to a series of computer-readable instruction segments that can be executed by a processor 13 and can complete fixed functions, and are stored in a memory 12. In this embodiment, the functions of each module / unit will be described in detail in subsequent embodiments.
[0116] The determination module 910 is used to determine the corresponding configuration type according to the pre-obtained configuration requirement.
[0117] The determination module 910 is further used to determine the service type corresponding to the configuration requirement based on the configuration type.
[0118] The configuration module 911 is used to determine the configuration information corresponding to the configuration requirement according to the service type.
[0119] The configuration module 911 is further used to format the configuration information according to the pre-obtained information query requirement to obtain a data screening instruction.
[0120] The configuration module 911 is further used to output the target data corresponding to the configuration requirement according to the data screening instruction.
[0121] In some embodiments, the configuration module 911 is further used to determine the attribute information corresponding to the information query requirement from the configuration information according to the attribute to be queried in the information query requirement; determine the query operation corresponding to the attribute to be queried according to the type and data source of the attribute information; and determine the data screening instruction corresponding to the information query requirement according to the query operation.
[0122] In some embodiments, the configuration module 911 is further configured to determine corresponding configuration information to be updated according to the pre-obtained update requirements; determine attribute information corresponding to the configuration information to be updated according to the configuration objects in the configuration information to be updated; verify the configuration information to be updated according to the attribute information and the service type in the update requirements to obtain a verification result; and output response information corresponding to the update requirements when the verification result is verified.
[0123] In some embodiments, the configuration module 911 is further configured to determine a target object corresponding to the update requirements according to the service type in the update requirements; and determine that the verification result is verified when the attribute information corresponding to the configuration information to be updated is the same as the attribute information of the target object.
[0124] In some embodiments, the configuration module 911 is further configured to output an approval instruction corresponding to the configuration information to be updated when the verification result is verified; and determine that the configuration information to be updated is in an enabled state when receiving response information corresponding to the approval instruction.
[0125] In some embodiments, the configuration module 911 is further configured to periodically obtain configuration information to be updated; determine an attribute to be updated corresponding to the configuration object according to the configuration object in the configuration information to be updated; and perform a preset operation on the attribute to be updated based on the attribute information when the configuration object in the configuration information to be updated matches the attribute information corresponding to the configuration information to be updated.
[0126] Please refer to Figure 11 , which is a schematic structural diagram of an electronic device provided by an embodiment of the present application. The electronic device 100 includes a memory 12 and a processor 13. The memory 12 is used to store computer-readable instructions, and the processor 13 is used to execute the computer-readable instructions stored in the memory to implement a data configuration method described in any of the above embodiments.
[0127] In an embodiment of the present application, the electronic device 100 further includes a bus and a computer program stored in the memory 12 and executable on the processor 13, such as a data configuration program.
[0128] Figure 11 Only the electronic device 100 having a memory 12 and a processor 13 is shown. Those skilled in the art can understand that Figure 10 the shown structure does not constitute a limitation on the electronic device 100, and it may include fewer or more components than shown, or combine certain components, or have different component arrangements.
[0129] Combined with Figure 3, the memory 12 in the electronic device 100 stores multiple computer-readable instructions to implement the data configuration method, and the processor 13 can execute the multiple instructions to implement: determining a corresponding configuration type according to a pre-acquired configuration requirement; determining a service type corresponding to the configuration requirement based on the configuration type; determining configuration information corresponding to the configuration requirement according to the service type; formatting the configuration information according to a pre-acquired information query requirement to obtain a data screening instruction; and outputting target data corresponding to the configuration requirement according to the data screening instruction.
[0130] Specifically, the specific implementation method of the above instructions by the processor 13 can refer to Figure 3 the description of the relevant steps in the corresponding embodiment, which will not be elaborated here.
[0131] Those skilled in the art can understand that the schematic diagram is only an example of the electronic device 100, and does not constitute a limitation on the electronic device 100. The electronic device 100 can be a bus structure or a star structure. The electronic device 100 can also include more or fewer other hardware or software than shown in the figure, or different component arrangements. For example, the electronic device 100 can also include input and output devices, network access devices, etc.
[0132] It should be noted that the electronic device 100 is only an example, and other existing or future electronic products that can be adapted to this application should also be included in the protection scope of this application and are included herein by reference.
[0133] Among them, the memory 12 includes at least one type of readable storage medium, and the readable storage medium can be non-volatile or volatile. The readable storage medium includes flash memory, mobile hard disk, multimedia card, card-type memory (such as: SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, etc. The memory 12 can be an internal storage unit of the electronic device 100 in some embodiments, such as the mobile hard disk of the electronic device 100. The memory 12 can also be an external storage device of the electronic device 100 in other embodiments, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a FlashCard, etc. equipped on the electronic device 100. The memory 12 can not only be used to store application software installed in the electronic device 100 and various types of data, such as the code of a data configuration program, etc., but also be used to temporarily store data that has been output or will be output.
[0134] In some embodiments, the processor 13 may be composed of an integrated circuit. For example, it may be composed of a single packaged integrated circuit, or may be composed of multiple packaged integrated circuits with the same or different functions, including a combination of one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and various control chips. The processor 13 is the control core of the electronic device 100, connecting various components of the entire electronic device 100 through various interfaces and circuits. By running or executing programs or modules stored in the memory 12 (such as executing a data configuration program, etc.), and by calling the data stored in the memory 12, it performs various functions of the electronic device 100 and processes data.
[0135] The processor 13 executes the operating system of the electronic device 100 and various installed application programs. The processor 13 executes the application programs to implement the steps in the above-mentioned various embodiments of the data configuration method. For example Figure 3 the steps shown.
[0136] Exemplarily, the computer program may be divided into one or more modules / units. The one or more modules / units are stored in the memory 12 and executed by the processor 13 to complete this application. The one or more modules / units may be a series of computer-readable instruction segments capable of performing specific functions, and these instruction segments are used to describe the execution process of the computer program in the electronic device 100. For example, the computer program may be divided into a determination module 910 and a configuration module 911.
[0137] The above-mentioned integrated units implemented in the form of software function modules may be stored in a computer-readable storage medium. The above-mentioned software function modules are stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a computer device, or a network device, etc.) or a processor to execute a part of the data configuration method described in various embodiments of this application.
[0138] If the integrated module / unit of the electronic device 100 is implemented in the form of a software function unit and sold or used as an independent product, it may be stored in a computer-readable storage medium. Based on such an understanding, to implement all or part of the processes in the above-mentioned embodiment methods of this application, it may also be completed by a computer program instructing relevant hardware devices. The computer program may be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps in the above-mentioned various method embodiments may be implemented.
[0139] Among them, the computer program includes computer program code, which can be in the form of source code, object code, executable file or some intermediate form, etc. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disc, computer memory, read-only memory (ROM, Read-Only Memory), random access memory and other memories, etc.
[0140] Further, the computer-readable storage medium mainly includes a program storage area and a data storage area. Among them, the program storage area can store an operating system, application programs required for at least one function, etc.; the data storage area can store data created according to the use of the blockchain node, etc.
[0141] The bus can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of convenience of representation, in Figure 11 only one arrow is used to represent it, but it does not mean that there is only one bus or one type of bus. The bus is set to realize the connection and communication between the memory 12 and at least one processor 13, etc.
[0142] The embodiment of the present application also provides a computer-readable storage medium (not shown in the figure). The computer-readable storage medium stores computer-readable instructions, and the computer-readable instructions are executed by a processor in an electronic device to implement the data configuration method described in any of the above embodiments.
[0143] In several embodiments provided by the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0144] The modules described as separate components may or may not be physically separated. The components shown as modules may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0145] In addition, in each embodiment of the present application, each functional module can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware, or in the form of a combination of hardware and software functional modules.
[0146] In addition, it is obvious that the word "including" does not exclude other units or steps, and the singular does not exclude the plural. A plurality of units or devices described in the specification can also be implemented by one unit or device through software or hardware. The terms such as "first" and "second" are used to represent names and do not represent any specific order.
[0147] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application and not to limit them. Although the present application has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present application can be modified or equivalently replaced without departing from the spirit and scope of the technical solutions of the present application.
Claims
1. A data configuration method, applied to an electronic device, characterized in that The method includes: Determining a corresponding configuration type according to the pre-acquired configuration requirements; Based on the configuration type, determining the service type corresponding to the configuration requirements; According to the service type, determining the configuration information corresponding to the configuration requirements; Performing formatting processing on the configuration information according to the pre-acquired information query requirements to obtain a data screening instruction; According to the data screening instruction, outputting the target data corresponding to the configuration requirements.
2. The data configuration method according to claim 1, characterized in that The performing formatting processing on the configuration information according to the pre-acquired information query requirements to obtain a data screening instruction includes: Determining the attribute information corresponding to the information query requirements from the configuration information according to the attributes to be queried in the information query requirements; Determining the query operation corresponding to the attribute to be queried according to the type and data source of the attribute information; According to the query operation, determining the data screening instruction corresponding to the information query requirements.
3. The data configuration method according to claim 1, wherein The method further includes: Determining corresponding configuration information to be updated according to the pre-acquired update requirements; According to the configuration object in the configuration information to be updated, determining the attribute information corresponding to the configuration information to be updated; Validating the configuration information to be updated according to the attribute information and the service type in the update requirements to obtain a validation result; When the validation result is passed, outputting the response information corresponding to the update requirements.
4. The data configuration method according to claim 3, wherein The validating the configuration information to be updated according to the attribute information and the service type in the update requirements to obtain a validation result includes: Determining the target object corresponding to the update requirements according to the service type in the update requirements; When the attribute information corresponding to the configuration information to be updated is the same as the attribute information of the target object, determining that the validation result is passed.
5. The data configuration method according to claim 3 or 4, characterized in that The method further includes: When the validation result is passed, outputting an approval instruction corresponding to the configuration information to be updated; When receiving the response information corresponding to the approval instruction, determining that the configuration information to be updated is in an enabled state.
6. The data configuration method according to claim 1, wherein The method further includes: Periodically obtaining the configuration information to be updated; According to the configuration object in the configuration information to be updated, determining the attribute to be updated corresponding to the configuration object; When the configuration object in the configuration information to be updated matches the attribute information corresponding to the configuration information to be updated, performing a preset operation on the attribute to be updated based on the attribute information.
7. The data configuration method according to claim 6, characterized in that The preset operation includes: a replacement operation and / or a deletion operation.
8. A data configuration device, characterized in that, The device includes: A determination module, configured to determine a corresponding configuration type according to the pre-acquired configuration requirements; The determination module is further configured to determine the service type corresponding to the configuration requirements based on the configuration type; A configuration module, configured to determine the configuration information corresponding to the configuration requirements according to the service type; The configuration module is further configured to perform formatting processing on the configuration information according to the pre-acquired information query requirements to obtain a data screening instruction; The configuration module is further configured to output the target data corresponding to the configuration requirements according to the data screening instruction.
9. An electronic device, characterized in that, The electronic device includes a processor and a memory. The processor is configured to implement the data configuration method according to any one of claims 1 to 7 when executing a computer program stored in the memory.
10. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, the steps in the data configuration method according to any one of claims 1 to 7 are implemented.