Business data configuration processing method, device, computer equipment and storage medium
The method and device facilitate efficient business data configuration by parsing and updating form attributes and dictionary parameters, enabling non-developers to dynamically configure and update business data through a data dictionary, thus reducing manual effort and costs.
Patent Information
- Application Number
- CN202010123250.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-02-27
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2040-02-27
AI Technical Summary
Existing methods for configuring business data require manual updates by developers, leading to high manpower and resource costs and low efficiency in data configuration and maintenance.
A method and device for processing business data configuration that involves obtaining a service data configuration request, returning a form configuration page, parsing form configuration data, updating form attribute and dictionary parameters into a data dictionary, and sending updated page data for display, allowing dynamic and efficient configuration and update of business data.
Enables flexible and dynamic configuration of business data, improving configuration efficiency by allowing non-developers to update data configurations directly through a data dictionary, reducing manual intervention and resource costs.
Smart Images

Figure CN111310427B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, apparatus, computer equipment and storage medium for processing business data configuration. Background Art
[0002] With the development of computer technology, various application systems or software products have emerged to handle various affairs, and various affairs in daily life have become more information-based. For example, the data entered by the user can be sent to the server for processing through a web form to digitally process various business needs. When using a web form for data interaction, the configuration data required by the form needs to be pre-configured.
[0003] However, these configuration data usually need to be pre-configured by developers. If new user requirements are needed, they can only be manually updated through the data dictionary, which requires developers to modify and maintain the configuration data. However, this heavy configuration method consumes a lot of manpower and other resource costs to maintain configuration data such as data dictionaries, and the efficiency of data configuration and maintenance is low. Summary of the invention
[0004] Based on this, it is necessary to provide a business data configuration processing method, device, computer equipment and storage medium that can effectively improve the configuration efficiency and update efficiency of business data in response to the above technical problems.
[0005] A method for processing business data configuration, the method comprising:
[0006] Obtaining a service data configuration request sent by the first terminal, where the configuration request carries a service identifier;
[0007] Returning a form configuration page to the first terminal according to the business data configuration request;
[0008] Acquire form configuration data input by the first terminal based on the form configuration page; the form configuration data includes a form identifier of a form to be configured;
[0009] Parsing the form configuration data according to the form identifier to obtain form attribute parameters and dictionary configuration parameters of the form to be configured;
[0010] Update the form attribute parameters and dictionary configuration parameters of the form to be configured into the corresponding dictionary data, and use the updated data dictionary to update the corresponding page data;
[0011] When a resource acquisition request sent by the second terminal is received, the updated page data is sent to the second terminal for display.
[0012] In one of the embodiments, before obtaining the configuration request of the first user terminal, the method also includes: obtaining initial configuration data; the initial configuration data includes a business identifier and a dictionary configuration parameter; extracting the corresponding initial configuration data according to the business identifier, and generating a dictionary set corresponding to the business identifier using the extracted initial configuration data; the dictionary set includes a dictionary set identifier; obtaining a data dictionary framework, and generating a data dictionary using the initial configuration data in the dictionary set according to the data dictionary framework and the dictionary configuration parameters; obtaining a business interface identifier of a form configuration page, associating and binding the business interface identifier of the form configuration page with the dictionary set identifier of the data dictionary, and storing the configured data dictionary in the business cache library corresponding to the business system.
[0013] In one of the embodiments, the step of parsing the form configuration data according to the form identifier includes: determining the corresponding business identifier according to the form identifier; parsing the form attribute parameters and dictionary configuration parameters of the form to be configured in the form configuration data according to the form identifier and the business identifier; the dictionary configuration parameters of the form to be configured include configuration parameter values; determining the dictionary set identifier and the position to be configured in the data dictionary according to the dictionary configuration parameters and the form attribute parameters.
[0014] In one of the embodiments, the step of updating the configuration attribute data and dictionary attribute data of the form to be configured into the corresponding dictionary data includes: obtaining the page identifier of the form to be configured, and obtaining the corresponding dictionary interface and dictionary set identifier based on the page; serializing the dictionary configuration parameters and the corresponding configuration parameter values according to the form attribute parameters, and adding sequence tags to the serialized dictionary configuration parameters; calling the dictionary set corresponding to the dictionary set identifier in the data dictionary according to the dictionary interface, and updating the dictionary configuration parameters with the added sequence tags into the dictionary set according to the position to be configured; associating and binding the updated form configuration data in the data dictionary with the corresponding page form attributes.
[0015] In one of the embodiments, the step of updating the corresponding page data using the updated data dictionary includes: obtaining the updated update form data in the data dictionary; parsing the updated form data into page configuration data in a preset exchange format; and using the page configuration data to update the page data corresponding to the page identifier to obtain updated page data.
[0016] In one of the embodiments, the method also includes: obtaining business update data published in the business system; the business update data includes a business identifier; obtaining a keyword mapping table, and extracting key update data in the business update data according to the keyword mapping table; obtaining current business configuration data corresponding to the business identifier, matching the key update data with the current business configuration data to obtain update configuration item parameters; using the update configuration item parameters to generate configuration data to be updated, and pushing the configuration data to be updated to the first terminal.
[0017] A service data configuration processing device, the device comprising:
[0018] A data acquisition module, used to acquire a service data configuration request sent by the first terminal, wherein the configuration request carries a service identifier;
[0019] A data sending module, used for returning a form configuration page to the first terminal according to the business data configuration request;
[0020] The data acquisition module is also used to acquire the form configuration data input by the first terminal based on the form configuration page; the form configuration data includes the form identifier of the form to be configured;
[0021] A data parsing module, used to parse the form configuration data according to the form identifier to obtain form attribute parameters and dictionary configuration parameters of the form to be configured;
[0022] A configuration update module, used to update the form attribute parameters and dictionary configuration parameters of the form to be configured into the corresponding dictionary data, and update the corresponding page data using the updated data dictionary;
[0023] The data sending module is further configured to send the updated page data to the second terminal for display when receiving a resource acquisition request sent by the second terminal.
[0024] In one of the embodiments, the configuration update module is also used to obtain the page identifier of the form to be configured, and obtain the corresponding dictionary interface and dictionary set identifier based on the page; serialize the dictionary configuration parameters and the corresponding configuration parameter values according to the form attribute parameters, and add sequence tags to the serialized dictionary configuration parameters; call the dictionary set corresponding to the dictionary set identifier in the data dictionary according to the dictionary interface, and update the dictionary configuration parameters with the added sequence tags to the dictionary set according to the position to be configured; and associate and bind the updated form configuration data in the data dictionary with the corresponding page form attributes.
[0025] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the business data configuration processing method provided in any embodiment of the present application are implemented.
[0026] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the business data configuration processing method provided in any embodiment of the present application.
[0027] The above-mentioned business data configuration processing method, device, computer equipment and storage medium, after obtaining the business data configuration request sent by the first terminal, returns the form configuration page to the first terminal and obtains the form configuration data input by the first terminal based on the form configuration page. Then, the form configuration data is parsed according to the form identifier, so that the form attribute parameters and dictionary configuration parameters of the form to be configured can be effectively parsed. The form attribute parameters and dictionary configuration parameters of the form to be configured are updated to the corresponding dictionary data. Since the page data of the business system is pre-associated and bound to the data dictionary, the updated data dictionary can be directly used to update the corresponding page data, so that the business data can be effectively configured and the page data can be effectively updated. When the resource acquisition request sent by the second terminal is received, the updated page data is sent to the second terminal for display. By updating and configuring the page form data in the business system according to the configuration requirements of the first terminal, the page data can be flexibly and dynamically configured and updated according to the configuration requirements, thereby effectively improving the configuration efficiency of the business data. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 An application scenario diagram of a business data configuration processing method in an embodiment;
[0029] Figure 2 A schematic diagram of a process flow of a business data configuration processing method in one embodiment;
[0030] Figure 3 A schematic diagram of a process for constructing a data dictionary in one embodiment;
[0031] Figure 4 A schematic diagram of a flow chart of a step of updating dictionary data in one embodiment;
[0032] Figure 5 A structural block diagram of a service data configuration processing device in one embodiment;
[0033] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0034] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0035] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first terminal may be referred to as a second terminal, and similarly, a second terminal may be referred to as a first terminal. Both the first terminal and the second terminal are terminals, but they are not the same terminal.
[0036] The business data configuration processing method provided in this application can be applied to Figure 1 In the application environment shown. Among them, the first terminal 102 communicates with the server 104 through the network, and the server 104 communicates with the second terminal 106 through the network. After the server 104 obtains the business data configuration request sent by the first terminal 102, it returns the form configuration page to the first terminal 102 and obtains the form configuration data input by the first terminal based on the form configuration page. The server 104 then parses the form configuration data according to the form identifier, so that the form attribute parameters and dictionary configuration parameters of the form to be configured can be effectively parsed. The server 104 updates the form attribute parameters and dictionary configuration parameters of the form to be configured to the corresponding dictionary data, and updates the corresponding page data using the updated data dictionary, so that the business data can be effectively configured and the page data can be effectively updated. When the resource acquisition request sent by the second terminal 106 is received, the updated page data is sent to the second terminal 106 for display. Among them, the first terminal 102 and the second terminal 106 can be, but are not limited to, various personal computers, laptops, smart phones, tablet computers and portable wearable devices, and the server 104 can be implemented with an independent server or a server cluster composed of multiple servers.
[0037] In one embodiment, Figure 2 As shown, a business data configuration processing method is provided, which is applied to Figure 1 The server in the example is used to illustrate the following steps:
[0038] Step 202: Acquire a service data configuration request sent by the first terminal, where the configuration request carries a service identifier.
[0039] Among them, the business system may include multiple sub-business systems, for example, it may be a government affairs system. During the operation of the business system, it is usually necessary to maintain the page data and form data of the business system. Among them, the first terminal may be a page maintenance terminal. For example, in a government affairs system, the first terminal may be an approval terminal, and the approval terminal may configure and maintain the web page form data of the business system. The business system includes multiple web page data, and the web page data may include one or more page forms. The business system is pre-configured with a data dictionary corresponding to the page form, and the data dictionary includes multiple data sets, which store the configuration data of multiple page forms.
[0040] A data dictionary is a definition and description of data items, data structures, data flows, data storage, processing logic, etc. Its purpose is to provide detailed descriptions of each element in a data flow diagram. A data dictionary is used for simple modeling projects. A data dictionary is a collection of descriptions of data objects or items in a data model. It is a directory that records database and application metadata that users can access. That is, a data dictionary is a collection of information that describes data and a collection of definitions of all data elements used in the system. An active data dictionary is a data dictionary whose content can be automatically updated by a DBMS (Database Management System) when the database or application structure is modified. A passive data dictionary is a data dictionary whose content must be manually updated when modified.
[0041] The first terminal may configure the page data of the business system corresponding to the business identifier by initiating a business data configuration request to the server.
[0042] Step 204: Return a form configuration page to the first terminal according to the service data configuration request.
[0043] The business system includes several web pages, and the page data corresponding to the web pages usually also includes several forms. Forms are usually used for data collection in web pages. Forms can include form objects such as text fields, check boxes, radio buttons, menus, file address fields, buttons, etc. The form objects are contained in a form structure marked by an identifier. When configuring business data, the first terminal can configure multiple form data through the form configuration page.
[0044] After the server obtains the service data configuration request sent by the first terminal, it returns the form configuration page to the first terminal according to the service data configuration request, so that the page maintainer enters the corresponding form configuration data on the form configuration page and uploads the form configuration data to the server.
[0045] Step 206: Acquire form configuration data input by the first terminal based on the form configuration page; the form configuration data includes a form identifier of the form to be configured.
[0046] The server obtains form configuration data input by the first terminal based on the form configuration page, where the form configuration data includes data such as a form identifier of the form to be configured, attributes of the form to be configured, and attribute values of the form to be configured.
[0047] Step 208: Parse the form configuration data according to the form identifier to obtain form attribute parameters and dictionary configuration parameters of the form to be configured.
[0048] After the server obtains the form configuration data, it parses the form configuration data. Specifically, the server determines the corresponding business identifier according to the form identifier, and then parses the form attribute parameters and dictionary configuration parameters of the form to be configured in the form configuration data according to the form identifier and the business identifier. The dictionary configuration parameters of the form to be configured include configuration parameter values. The form attribute parameters may include attribute data such as the form identifier and / or the parent form identifier, the form field name, and the form field attribute value. The configuration attribute parameters may include category attributes configured such as adding a new category, modifying a category, and deleting a category.
[0049] Step 210, updating the configuration attribute data and dictionary attribute data of the form to be configured into the corresponding dictionary data, and updating the corresponding page data using the updated data dictionary.
[0050] The server then determines the dictionary set to be updated of the data dictionary according to the form identifier and the business identifier, and performs dictionary serialization on the parsed form attribute parameters and dictionary configuration parameters of the form to be configured, generates corresponding dictionary serialization data, and updates the generated dictionary serialization data to the dictionary set to be updated according to the form identifier, thereby updating the data dictionary. This enables the page form to be dynamically configured effectively.
[0051] After the server updates the dictionary data, it updates the page form using the updated data dictionary. Specifically, the server deserializes the updated dictionary data and generates corresponding page configuration data. The server generates updated page data using the page configuration data and publishes the updated page data in the business system in real time.
[0052] Step 212: When a resource acquisition request sent by the second terminal is received, the updated page data is sent to the second terminal for display.
[0053] After the server updates the page data, when receiving a resource acquisition request sent by the second terminal, for example, the resource acquisition request may be a page access request, a data query request, a data acquisition request, etc., the server acquires the updated page data according to the resource acquisition request and sends the updated page data to the second terminal for display.
[0054] During the development of the business system, developers can use the corresponding development terminal to pre-generate a configuration file, which includes the initial configuration data of the page form. The development terminal then uses the initial configuration data to generate the corresponding page form and web page data to develop the corresponding business system. After the development of the business system is completed, the business system will be released and put online. For example, taking the government affairs system as an example, during the operation of the business system, the applicant and the approval user can process the corresponding business through the business system. The first terminal can be the approval terminal, and the second terminal can be the application user terminal. The user can access the business system to process related businesses, such as project application, government affairs approval and other businesses. The approval terminal is used for the approval personnel to approve the business reported by the application user. In the process of the approval terminal using the business system to process related businesses, the page form data in the business system can be updated and configured according to business needs, so as to flexibly and dynamically configure the page form according to the corresponding needs, thereby effectively improving the configuration efficiency of business data.
[0055] In the above-mentioned business data configuration processing method, after the server obtains the business data configuration request sent by the first terminal, it returns the form configuration page to the first terminal and obtains the form configuration data input by the first terminal based on the form configuration page. The server then parses the form configuration data according to the form identifier, so that the form attribute parameters and dictionary configuration parameters of the form to be configured can be effectively parsed. The server updates the form attribute parameters and dictionary configuration parameters of the form to be configured to the corresponding dictionary data. Since the page data of the business system is pre-associated and bound to the data dictionary, the server can directly use the updated data dictionary to update the corresponding page data, so that the business data can be effectively configured and the page data can be effectively updated. When the resource acquisition request sent by the second terminal is received, the updated page data is sent to the second terminal for display. By updating and configuring the page form data in the business system according to the configuration requirements of the first terminal, the page data can be flexibly and dynamically configured and updated according to the configuration requirements, thereby effectively improving the configuration efficiency of the business data.
[0056] In one embodiment, Figure 3 As shown, before obtaining the configuration request of the first user terminal, the method further includes the step of constructing a data dictionary, which specifically includes the following contents:
[0057] Step 302, obtaining initial configuration data; the initial configuration data includes a service identifier and dictionary configuration parameters.
[0058] Step 304: extract corresponding initial configuration data according to the service identifier, and generate a dictionary set corresponding to the service identifier using the extracted initial configuration data; the dictionary set includes a dictionary set identifier.
[0059] Step 306, obtaining a data dictionary framework, and generating a data dictionary using the initial configuration data in the dictionary set according to the data dictionary framework and dictionary configuration parameters.
[0060] Step 308, obtaining the business interface identifier of the form configuration page, associating and binding the business interface identifier of the form configuration page with the dictionary set identifier of the data dictionary, and storing the configured data dictionary in the business cache library corresponding to the business system.
[0061] Before the business system goes online, during the process of developing the business system, the server can pre-build a data dictionary based on the initial configuration data. The business system includes a form configuration page, and the data dictionary can be a dictionary tree with a tree structure. The form configuration page is used by the first terminal or the development terminal to configure the form in the business system. For example, the form configuration page is used by the approval user to configure the form in the business system, so as to flexibly and dynamically configure the form of the page according to the corresponding needs.
[0062] Specifically, the initial configuration data and the data dictionary framework can be pre-configured by the developer, and the initial configuration data includes the business identifier, dictionary configuration parameters, and form attribute parameters, etc. Among them, the dictionary configuration parameters may include dictionary subset configuration parameters of the data dictionary, configuration category attributes, and interface parameters of the data dictionary, etc. The form attribute parameters may include the form names, form categories, form attributes, and form attribute values of multiple forms, etc., and may also include parameters such as the hierarchical mapping relationship of each form, such as the mapping relationship between the label node data and the parent-child hierarchical category forms.
[0063] When the server constructs the data dictionary, it obtains the initial configuration data and parses the dictionary configuration parameters and form configuration parameters of the initial configuration data. The initial configuration data may include the initial configuration data of multiple business identifiers. The server extracts the initial configuration data corresponding to the business identifier according to the business identifier, and generates a dictionary set corresponding to the business identifier using the initial configuration data of each business identifier. The server then constructs the data dictionary using the dictionary framework according to the dictionary configuration parameters and attribute parameters in the dictionary set, and the constructed data dictionary includes dictionary sets corresponding to multiple business identifiers. The server also associates and binds the form configuration data with the form in the corresponding page data, further obtains the business interface identifier of the form configuration page, associates and binds the business interface identifier of the form configuration page with the dictionary set identifier of the data dictionary, and then stores the configured data dictionary in the business cache library corresponding to the business system. By caching the entire dictionary data set, the corresponding data can be quickly and effectively obtained when obtaining the data in the data dictionary. By pre-configuring and associating the data dictionary, the first terminal can directly perform form configuration through the form configuration page during the operation of the business system, and automatically update it to the data dictionary, so that the form of the page can be effectively dynamically configured.
[0064] In one embodiment, the step of parsing the form configuration data according to the form identifier includes: determining the corresponding business identifier according to the form identifier; parsing the form attribute parameters and dictionary configuration parameters of the form to be configured in the form configuration data according to the form identifier and the business identifier; the dictionary configuration parameters of the form to be configured include configuration parameter values; determining the dictionary set identifier and the position to be configured in the data dictionary according to the dictionary configuration parameters and the form attribute parameters.
[0065] After the server obtains the form configuration data, it parses the form configuration data. Specifically, the server determines the corresponding business identifier according to the form identifier, and then parses the form attribute parameters and dictionary configuration parameters of the form to be configured in the form configuration data according to the form identifier and the business identifier. The dictionary configuration parameters of the form to be configured include configuration parameter values. Among them, the form attribute parameters may include attribute data such as the form identifier and / or the form field name of the parent form, the form field attribute value, etc. The configuration attribute parameters may include configuration attribute data such as new identifier, adding category, modifying category, and deleting category.
[0066] The form configuration data also includes a page identifier, and the server further identifies the form attribute identifier and hierarchical relationship of the form configuration data according to the page identifier and the selected field, and further matches the dictionary set identifier and the position to be configured corresponding to the form to be configured from the data dictionary according to the page identifier and the form attribute identifier, so that the configuration attribute data and dictionary attribute data of the form to be configured in the form configuration data can be effectively parsed, and the dictionary set identifier and the position to be configured are used to update the configuration data of the form to be configured into the data dictionary. In this way, the business data can be configured efficiently.
[0067] In one embodiment, Figure 4 As shown, the steps of updating the configuration attribute data and dictionary attribute data of the form to be configured into the corresponding dictionary data specifically include the following contents:
[0068] Step 402, obtain the page identifier of the form to be configured, and obtain the corresponding dictionary interface and dictionary set identifier according to the page.
[0069] Step 404 , serialize the dictionary configuration parameters and the corresponding configuration parameter values according to the form attribute parameters, and add sequence tags to the serialized dictionary configuration parameters.
[0070] Step 406 , calling the dictionary set corresponding to the dictionary set identifier in the data dictionary according to the dictionary interface, and updating the dictionary configuration parameters for adding sequence tags into the dictionary set according to the position to be configured.
[0071] Step 408: associate and bind the updated form configuration data in the data dictionary with the corresponding page form attributes.
[0072] After the server parses the configuration attribute data and dictionary attribute data of the form to be configured in the form configuration data, it then obtains the page identifier of the form to be configured, and obtains the corresponding dictionary interface and dictionary set identifier according to the page. The dictionary configuration parameters and the corresponding configuration parameter values are serialized according to the form attribute parameters to generate corresponding dictionary serialization data, and a sequence tag is added to the dictionary serialization data after serialization. The server then calls the dictionary set corresponding to the dictionary set identifier in the data dictionary according to the dictionary interface, and updates the dictionary configuration parameters with the added sequence tag to the dictionary set according to the position to be configured, thereby updating the dictionary serialization data to the corresponding position in the data dictionary set. Among them, the server can also deserialize the form data to be configured, generate dictionary data in the corresponding format and store it in the data dictionary, thereby updating the data dictionary. After the server serializes the dictionary data to the data dictionary set, it associates and binds the updated form configuration data in the data dictionary with the corresponding page form attributes, so that the server can automatically update the corresponding page data with the updated form configuration data according to the bound related identifier.
[0073] Specifically, the server can serialize the configuration attribute parameters of the form to be configured according to the dictionary attribute data, and the server can obtain the corresponding dictionary tree and tree structure information according to the dictionary set identifier. The tree structure information may include form node information and parent-child relationship information, etc. The server then generates a sequence tag with the configuration form according to the position to be configured and the tree structure information of the configuration form. The sequence tag can be used to represent the label of the structured traversal path stored in the data dictionary for the form to be configured to obtain the traversal result of the form data. The server then calls the dictionary interface of the data dictionary set to update the configuration attribute parameters with the added sequence tag into the data dictionary through the dictionary interface. The server also caches the configured data dictionary for the user to call when reading the form. In this way, the data of the form to be configured can be effectively updated to the data dictionary, so that the configuration form can be effectively customized, and the page data can be effectively dynamically configured.
[0074] In one embodiment, the step of updating the corresponding page data using the updated data dictionary includes: obtaining the updated update form data in the data dictionary; parsing the updated form data into page configuration data in a preset exchange format; and using the page configuration data to update the page data corresponding to the page identifier to obtain updated page data.
[0075] After the server obtains the business data configuration request sent by the first terminal, it parses the form configuration data sent by the first terminal according to the form identifier, thereby effectively parsing the form attribute parameters and dictionary configuration parameters of the form to be configured. The server updates the form attribute parameters and dictionary configuration parameters of the form to be configured into the corresponding dictionary data, and uses the updated data dictionary to update the corresponding page data.
[0076] Specifically, after the server updates the dictionary data according to the form configuration data, it obtains the updated form data of the updated part in the data dictionary. The server further parses the dictionary data, parses the updated form data into page configuration data in a preset exchange format, and then uses the page configuration data to update the page data corresponding to the page identifier to obtain the updated page data. For example, the preset exchange format can be a JSON format, and the server can parse the updated form data into JSON data corresponding to the form. The server can then directly use the page configuration data to associate the form data to be configured with the corresponding page, and perform corresponding update configuration according to the configuration operation, thereby generating updated page data. In this way, business data can be effectively configured and page data can be effectively updated.
[0077] After the server updates the page data, it can also obtain the access request sent by the second terminal, and then return the updated page data to the second terminal according to the access request. Therefore, when the second terminal accesses the business system, it calls the corresponding updated page data according to the access request sent by the second terminal, and returns the updated page data to the second terminal in real time, so as to timely and effectively display the updated page data to the second terminal. Since the page data of the business system is pre-associated with the data dictionary, the server can directly use the updated data dictionary to update the corresponding page data, so that the business data can be effectively configured and the page data can be effectively updated.
[0078] In one embodiment, the method further includes: obtaining business update data published in the business system; the business update data includes a business identifier; obtaining a keyword mapping table, and extracting key update data in the business update data according to the keyword mapping table; obtaining current business configuration data corresponding to the business identifier, matching the key update data with the current business configuration data, and obtaining update configuration item parameters; using the update configuration item parameters to generate configuration data to be updated, and pushing the configuration data to be updated to the first terminal.
[0079] During the operation of the business system, the server can also detect and obtain the business update data published in the business system in real time. The business update data can be captured by the business system in real time from the associated third-party platform, or uploaded by users with corresponding permissions. The server can be pre-configured with a keyword mapping table, which stores the key information corresponding to the relevant business process data and business configuration data of the business system. Among them, the business configuration data may include business process data and key business data of the corresponding business. For example, the business system may include administrative approval business, and the administrative approval business may include enterprise application approval business, etc. For example, the enterprise application approval business includes the corresponding approval process data, and the approval process may undergo corresponding changes in the application approval process or new approval processes. When the approval process business data is changed or added, relevant notification information about the business update is usually released.
[0080] Specifically, after the server obtains the service update data published in the service system, it obtains the keyword mapping table, identifies and matches the corresponding keywords in the service update data according to the multiple service keywords stored in the keyword mapping table, and extracts the key update data in the service update data according to the matched keywords. The server also stores the current service configuration data corresponding to each service identifier. The server further obtains the current service configuration data corresponding to the service identifier, matches the current service configuration data with the key update data, and obtains the update configuration item parameters. The update configuration item parameters can represent some sub-item parameters that need to be updated for the service. For example, it can be a field or field attribute value that needs to be updated. The server generates the configuration data to be updated of the service identifier using the update configuration item parameters and the corresponding specific update data, and pushes the configuration data to be updated to the first terminal. By automatically obtaining the service update data and extracting the configuration data to be updated, the configuration requirement information can be provided to the first terminal in a timely and effective manner, so that the first user terminal can configure and update the service data in the service system in a timely and effective manner according to the configuration data to be updated, thereby effectively improving the configuration efficiency and update efficiency of the service data.
[0081] It should be understood that although Figure 2-4 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2-4 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0082] In one embodiment, Figure 5 As shown, a business data configuration processing device is provided, including: a data acquisition module 502, a data sending module 504, a data parsing module 506 and a configuration updating module 508, wherein:
[0083] A data acquisition module 502 is used to acquire a service data configuration request sent by the first terminal, where the configuration request carries a service identifier;
[0084] The data sending module 504 is used to return a form configuration page to the first terminal according to the business data configuration request;
[0085] The data acquisition module 502 is also used to acquire the form configuration data input by the first terminal based on the form configuration page; the form configuration data includes the form identifier of the form to be configured;
[0086] The data parsing module 506 is used to parse the form configuration data according to the form identifier to obtain the form attribute parameters and dictionary configuration parameters of the form to be configured;
[0087] Configuration update module 508, used to update the form attribute parameters and dictionary configuration parameters of the form to be configured into the corresponding dictionary data, and update the corresponding page data using the updated data dictionary;
[0088] The data sending module 504 is further configured to send the updated page data to the second terminal for display when receiving a resource acquisition request sent by the second terminal.
[0089] In one embodiment, the device also includes a data dictionary construction module, which is used to obtain initial configuration data; the initial configuration data includes a business identifier and a dictionary configuration parameter; the corresponding initial configuration data is extracted according to the business identifier, and a dictionary set corresponding to the business identifier is generated using the extracted initial configuration data; the dictionary set includes a dictionary set identifier; a data dictionary framework is obtained, and a data dictionary is generated using the initial configuration data in the dictionary set according to the data dictionary framework and the dictionary configuration parameters; the business interface identifier of the form configuration page is obtained, the business interface identifier of the form configuration page is associated and bound with the dictionary set identifier of the data dictionary, and the configured data dictionary is stored in the business cache library corresponding to the business system.
[0090] In one embodiment, the data parsing module 506 is also used to determine the corresponding business identifier based on the form identifier; parse the form attribute parameters and dictionary configuration parameters of the form to be configured in the form configuration data based on the form identifier and the business identifier; the dictionary configuration parameters of the form to be configured include configuration parameter values; determine the dictionary set identifier and the position to be configured in the data dictionary based on the dictionary configuration parameters and the form attribute parameters.
[0091] In one embodiment, the configuration update module 508 is also used to obtain the page identifier of the form to be configured, and obtain the corresponding dictionary interface and dictionary set identifier based on the page; serialize the dictionary configuration parameters and the corresponding configuration parameter values according to the form attribute parameters, and add sequence tags to the serialized dictionary configuration parameters; call the dictionary set corresponding to the dictionary set identifier in the data dictionary according to the dictionary interface, and update the dictionary configuration parameters with the added sequence tags to the dictionary set according to the position to be configured; and associate and bind the updated form configuration data in the data dictionary with the corresponding page form attributes.
[0092] In one embodiment, the configuration update module 508 is further used to obtain the updated form data updated in the data dictionary; parse the updated form data into page configuration data in a preset exchange format; and use the page configuration data to update the page data corresponding to the page identifier to obtain updated page data.
[0093] In one embodiment, the data acquisition module 502 is also used to acquire business update data published in the business system; the business update data includes a business identifier; a keyword mapping table is acquired, and key update data in the business update data is extracted according to the keyword mapping table; the data parsing module 506 is also used to acquire the current business configuration data corresponding to the business identifier, match the key update data with the current business configuration data, and obtain updated configuration item parameters; the data sending module 504 is also used to generate configuration data to be updated using the updated configuration item parameters, and push the configuration data to be updated to the first terminal.
[0094] For the specific definition of the business data configuration processing device, please refer to the definition of the business data configuration processing method above, which will not be repeated here. Each module in the above-mentioned business data configuration processing device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0095] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 6 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store form configuration data, data dictionary and other data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the steps of the business data configuration processing method provided in any embodiment of the present application are implemented.
[0096] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0097] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the business data configuration processing method provided in any embodiment of the present application are implemented.
[0098] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0099] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0100] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A method for processing business data configuration, the method comprising: Get initial configuration data; The initial configuration data includes a service identifier and dictionary configuration parameters; Extracting corresponding initial configuration data according to the service identifier, and generating a dictionary set corresponding to the service identifier using the extracted initial configuration data; the dictionary set includes a dictionary set identifier; Acquire a data dictionary framework, and generate a data dictionary using initial configuration data in the dictionary set according to the data dictionary framework and the dictionary configuration parameters; Obtaining a business interface identifier of a form configuration page, associating and binding the business interface identifier of the form configuration page with a dictionary set identifier of the data dictionary, and storing the configured data dictionary in a business cache library corresponding to the business system; Acquire a service data configuration request sent by the first terminal, where the configuration request carries a service identifier; Returning a form configuration page to the first terminal according to the business data configuration request; Acquire form configuration data input by the first terminal based on the form configuration page; the form configuration data includes a form identifier of a form to be configured; Parsing the form configuration data according to the form identifier to obtain form attribute parameters and dictionary configuration parameters of the form to be configured, including: determining the corresponding business identifier according to the form identifier; parsing the form attribute parameters and dictionary configuration parameters of the form to be configured in the form configuration data according to the form identifier and the business identifier; the dictionary configuration parameters of the form to be configured include configuration parameter values; determining the dictionary set identifier and the position to be configured in the data dictionary according to the dictionary configuration parameters and the form attribute parameters; The form attribute parameters and dictionary configuration parameters of the form to be configured are updated to the corresponding dictionary data, and the corresponding page data is updated using the updated data dictionary, including: obtaining the page identifier of the form to be configured, and obtaining the corresponding dictionary interface and dictionary set identifier according to the page; serializing the dictionary configuration parameters and the corresponding configuration parameter values according to the form attribute parameters, and adding sequence tags to the serialized dictionary configuration parameters; calling the dictionary set corresponding to the dictionary set identifier in the data dictionary according to the dictionary interface, and updating the dictionary configuration parameters with the added sequence tags to the dictionary set according to the position to be configured; associating and binding the updated form configuration data in the data dictionary with the corresponding page form attributes; When a resource acquisition request sent by the second terminal is received, the updated page data is sent to the second terminal for display.
2. The method according to claim 1, characterized in that The step of updating the corresponding page data using the updated data dictionary includes: Obtaining updated form data updated in the data dictionary; Parsing the update form data into page configuration data in a preset exchange format; The page data corresponding to the page identifier is updated using the page configuration data to obtain updated page data.
3. The method according to any one of claims 1 to 2, characterized in that: The method further comprises: Acquire business update data published in the business system; the business update data includes a business identifier; Acquire a keyword mapping table, and extract key update data from the service update data according to the keyword mapping table; Acquire current service configuration data corresponding to the service identifier, match the key update data with the current service configuration data, and obtain update configuration item parameters; The configuration data to be updated is generated by using the updated configuration item parameters, and the configuration data to be updated is pushed to the first terminal.
4. A service data configuration processing device, used to implement the method according to any one of claims 1 to 3, the device comprising: A data acquisition module, used to acquire a service data configuration request sent by the first terminal, wherein the configuration request carries a service identifier; A data sending module, used for returning a form configuration page to the first terminal according to the business data configuration request; The data acquisition module is also used to acquire the form configuration data input by the first terminal based on the form configuration page; the form configuration data includes the form identifier of the form to be configured; A data parsing module, used to parse the form configuration data according to the form identifier to obtain form attribute parameters and dictionary configuration parameters of the form to be configured; A configuration update module, used to update the form attribute parameters and dictionary configuration parameters of the form to be configured into the corresponding dictionary data, and update the corresponding page data using the updated data dictionary; The data sending module is further configured to send the updated page data to the second terminal for display when receiving a resource acquisition request sent by the second terminal.
5. The device according to claim 4, characterized in that The configuration update module is further used to obtain the page identifier of the form to be configured, and obtain the corresponding dictionary interface and dictionary set identifier according to the page; serialize the dictionary configuration parameters and the corresponding configuration parameter values according to the form attribute parameters, and add a sequence tag to the serialized dictionary configuration parameters; The dictionary set corresponding to the dictionary set identifier in the data dictionary is called according to the dictionary interface, and the dictionary configuration parameters with added sequence tags are updated to the dictionary set according to the position to be configured; the updated form configuration data in the data dictionary is associated and bound with the corresponding page form attributes.
6. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 3 are implemented.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.
