Data processing method and device, storage medium and program product

By constructing a mapping relationship between scene identifiers and query behavior control parameters, a full configuration is generated, which solves the problems of poor scalability and maintainability in asynchronous downloads, realizes the separation of download scenes and processing logic, and improves the efficiency and flexibility of data processing.

CN121530962APending Publication Date: 2026-02-13CHINA CONSTRUCTION BANK +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511540810.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-10-27
Publication Date
2026-02-13

AI Technical Summary

Technical Problem

In existing technologies, asynchronous download data processing methods lack scalability and maintainability, and the high coupling between business scenarios and processing logic results in poor reusability.

Method used

Construct a mapping relationship between each scenario identifier and the query behavior control parameters under the corresponding download scenario, generate full configuration, obtain the target query template, parameter rules and routing information through the scenario identifier, and concatenate the download conditions to generate asynchronous download data objects.

Benefits of technology

This approach separates the download scenario from the processing logic, improves the query efficiency of data objects, reduces the coupling between business scenarios and processing logic, and enhances the flexibility of maintenance and expansion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121530962A_ABST
    Figure CN121530962A_ABST
Patent Text Reader

Abstract

The invention provides a data processing method and device, a storage medium and a program product, and the method comprises the steps: constructing a mapping relation between each scene identifier and a query behavior control parameter in a corresponding downloading scene, so as to generate full-amount configuration; in response to a received downloading service request, acquiring a corresponding target query template, a target parameter rule and target routing information from the full-amount configuration according to a scene identifier carried in the downloading service request, and splicing a downloading condition carried in the downloading service request into the target query template based on the target parameter rule; and generating a data object for asynchronous downloading based on the target routing information and the updated target query template. According to the method, a plurality of query templates are configured for a downloading scene, and matching can be performed according to downloading conditions, field column information and the like transmitted by a user, so that the query efficiency of the data object is improved, meanwhile, the coupling between a service scene and processing logic is reduced, and the maintenance is more convenient and the expansion is more flexible.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data processing technology, and more specifically to a data processing method, a data processing apparatus, a computer-readable storage medium, and a computer program product. Background Technology

[0002] Asynchronous download is a non-blocking file transfer method that enables users to download files under customized conditions. During the download process, data processing is a crucial link connecting user requests and backend resources. Current technologies primarily use dynamic URL parameters for data processing, but this often relies on hard-coded logic, lacking scalability and maintainability. Furthermore, the high coupling between business scenarios and processing logic results in poor reusability of the processing methods. Summary of the Invention

[0003] Therefore, it is necessary to provide a data processing method, apparatus, storage medium, and program product to address the aforementioned technical problems.

[0004] In a first aspect, this application provides a data processing method, the method comprising: constructing a mapping relationship between each scenario identifier and query behavior control parameters under the corresponding download scenario to generate a full configuration; the query behavior control parameters include at least a query template, parameter rules, and routing information; in response to receiving a download service request, obtaining the corresponding target query template, target parameter rules, and target routing information from the full configuration according to the scenario identifier carried in the download service request, and concatenating the download conditions carried in the download service request into the target query template based on the target parameter rules; and generating a data object for asynchronous download based on the target routing information and the updated target query template.

[0005] In one embodiment, the update step of the full configuration includes: creating a new query template corresponding to the new download scenario; defining corresponding parameter rules according to the query template; configuring corresponding routing information according to the data source of the query template; if the verification of the routing information passes, establishing a mapping relationship between the scenario identifier, the query template, the parameter rules and the routing information under the new download scenario; adding the mapping relationship to the full configuration to generate a new full configuration.

[0006] In one embodiment, the target parameter rule includes a necessary parameter rule; the step of concatenating the download conditions carried in the download service request into the target query template based on the target parameter rule includes: obtaining the necessary parameters in the download conditions; traversing the necessary list in the query template and checking whether the necessary parameters are missing; and replacing the necessary parameters in the corresponding position in the target query template if the necessary parameters are complete.

[0007] In one embodiment, the target parameter rule includes optional parameter rules; the step of concatenating the download conditions carried in the download service request into the target query template based on the target parameter rules includes: obtaining optional parameters in the download conditions; traversing the optional list in the query template and generating the intersection of the list and the optional parameters; replacing each optional parameter in the intersection with the corresponding position in the target query template.

[0008] In one embodiment, the target parameter rule includes a hidden field; obtaining the hidden field identifier in the query template and the download conditions; finding the statement position information corresponding to the hidden field identifier in the query template; and removing the corresponding query statement in the query template based on the statement position information.

[0009] In one embodiment, the target parameter rule includes a maximum download volume; the step of concatenating the download conditions carried in the download service request into the target query template based on the target parameter rule includes: reading the number of query entries in the download conditions; if the reading is successful, using the number of query entries as the final download volume of the target query template; if the reading fails, using a preset download volume in the target query template as the final download volume; if the preset download volume is empty, using the maximum download volume in the download scenario as the final download volume.

[0010] In one embodiment, the download service request further includes user information; before the step of obtaining the corresponding target query template, target parameter rules, and target routing information from the full configuration based on the scenario identifier carried in the download service request, the method includes: querying whether the download service request carries authentication information; if it is determined that the authentication information is carried, querying the permission data of the download service request based on the scenario identifier and the user information; comparing the authentication information carried by the user with the permission data and generating a verification result; if the verification result indicates that the verification is successful, continuing to execute subsequent steps.

[0011] Secondly, this application also provides a data processing apparatus, the apparatus comprising: a full configuration module, configured to construct a mapping relationship between each scene identifier and query behavior control parameters under the corresponding download scene, so as to generate a full configuration; the query behavior control parameters include at least a query template, parameter rules, and routing information; and a parameter concatenation module, configured to, in response to receiving a download service request, obtain the corresponding target query template, target parameter rules, and target routing information from the full configuration according to the scene identifier carried in the download service request, and concatenate the download conditions carried in the download service request into the target query template based on the target parameter rules; and generate a data object for asynchronous download based on the target routing information and the updated target query template.

[0012] Thirdly, embodiments of this application provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of a data processing method.

[0013] Fourthly, embodiments of this application provide a computer program product. The computer program product includes computer program code, which, when executed by a computer, causes the computer to perform the methods described in the first aspect or any possible implementation thereof.

[0014] One of the above technical solutions has the following advantages or beneficial effects: By constructing a mapping relationship between each scenario identifier and the corresponding query behavior control parameters under the download scenario, a full configuration is generated; in response to a received download service request, the corresponding target query template, target parameter rules, and target routing information are obtained from the full configuration based on the scenario identifier carried in the download service request; based on the target parameter rules, the download conditions carried in the download service request are concatenated into the target query template; based on the target routing information and the updated target query template, a data object for asynchronous download is generated. This method configures multiple query templates for download scenarios, supports dynamically expanding the configuration file to define scenario parameter rules, and can match based on the user-input download conditions, field column information, etc., thereby improving the query efficiency of data objects. Simultaneously, it reduces the coupling between business scenarios and processing logic, making maintenance more convenient and expansion more flexible.

[0015] Other features and advantages of the embodiments of the present invention will be described in detail in the following detailed description section. Attached Figure Description

[0016] The accompanying drawings are provided to further illustrate embodiments of the present invention and form part of the specification. They are used together with the following detailed description to explain the embodiments of the present invention, but do not constitute a limitation thereof. In the drawings: Figure 1 This is a diagram illustrating the application environment of a data processing method in one embodiment. Figure 2 This is a flowchart illustrating a data processing method in one embodiment; Figure 3 This is a flowchart illustrating the data processing method in another embodiment; Figure 4 This is a structural block diagram of the data processing apparatus in another embodiment; Figure 5 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0017] The specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are for illustration and explanation only and are not intended to limit the scope of the present invention.

[0018] It should be noted that the acquisition, transmission, storage, use, and processing of data in the technical solution of this application all comply with relevant laws and regulations. In the embodiments of this application, certain existing industry solutions such as software, components, and models may be mentioned. These should be considered exemplary, intended only to illustrate the feasibility of implementing the technical solution of this application, and do not imply that the applicant has already used or necessarily used such solutions.

[0019] The data processing method provided in this application can be applied to, for example... Figure 1 In the application environment shown, mobile terminal 102 communicates with server 104 via a network, in a scenario such as... Figure 1 In the application environment shown, the mobile terminal 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets and portable wearable devices; the server 104 can be implemented using a standalone server or a server cluster consisting of multiple servers.

[0020] In one embodiment, such as Figure 2 As shown, a data processing method is provided, the method including: S202, construct the mapping relationship between each scenario identifier and the query behavior control parameters under the corresponding download scenario to generate full configuration; the query behavior control parameters include at least query template, parameter rules and routing information.

[0021] Full configuration refers to the configuration set of all download scenarios in the system, including all available and configured download scenarios. Download scenarios are defined based on different business needs, data types, etc., and have specific download behaviors and requirements. These can include scenarios such as project statistics, transaction detail statements, transaction screening results, and financial statement export. Different download scenarios will have different query behavior control parameters. The parameter rules for query templates can be configured according to the actual situation. Query behavior control parameters are predefined rules used to control how database queries are generated and executed. These include at least query templates, parameter rules, and routing information, representing the data content, execution method, and data source of the query, etc. They may also include control rules to limit resource usage, control the output format of results, etc. It should be understood that query behavior control parameters are a centralized management of query logic and rules, and the relationship between various configurations can be modified according to the actual application situation.

[0022] A query template is a file of SQL statements that provides the data structure and basic logic for queries. It can be replaced, concatenated, and deleted based on parameter matching rules. Parameter rules define the handling rules for wildcards in the template and can be divided into two categories: required parameter rules and optional parameter rules. Required parameters are the specific values ​​that users must provide in the actual download conditions, corresponding to the required fields in the query template, forming complete query conditions. For example, in a report download scenario, fields such as time, organization, and employee can be set as required fields. Routing information refers to the storage location information of the target data. When data is stored in a microservice or sharded database architecture, it ensures that subsequent queries can be routed to the correct database cluster, database, and table.

[0023] S204, in response to receiving a download service request, retrieves the corresponding target query template, target parameter rules, and target routing information from the full configuration based on the scenario identifier carried in the download service request; based on the target parameter rules, concatenates the download conditions carried in the download service request into the target query template; and based on the target routing information and the updated target query template, generates a data object for asynchronous download.

[0024] A download request is a user-initiated request object requesting the execution of an asynchronous download operation. It contains all the information needed to complete the operation, including a scenario identifier, download conditions, request timestamp, user information, etc. The scenario identifier carried in the download request is a unique identifier for each download scenario, used to match pre-configured download scenarios. When the user requests, this identifier is used to locate the corresponding configuration set; it can be a string identifier, such as "user_export" or "jfmx". Download conditions contain a set of various parameters set by the user for this download. After validation, these parameters will replace wildcards in the query template to satisfy the user's query requirements. The data object is a structured object output by the parameter concatenation service, containing all the information needed to execute the asynchronous download, and can include a complete SQL query statement and corresponding routing information.

[0025] In this embodiment, the download scenario and processing logic are separated, which enables a standardized data processing flow and improves the efficiency of development and operation. At the same time, this combined splicing service can be reused in multiple scenarios. In practical applications, only the corresponding configuration file parameter matching rules or the design of necessary parameters need to be modified according to business requirements, which is highly flexible and scalable.

[0026] In one embodiment, the full configuration update step includes: creating a new query template corresponding to the new download scenario; defining corresponding parameter rules according to the query template; configuring corresponding routing information according to the data source of the query template; if the routing information is verified, establishing a mapping relationship between the scenario identifier, query template, parameter rules and routing information under the new download scenario; adding the mapping relationship to the full configuration to generate a new full configuration.

[0027] In this embodiment, each scenario identifier in the full configuration has a corresponding file storage path. Query templates can be created under this path. The template content can inherit from the base template or be written with SQL statements according to specific application scenarios. Furthermore, necessary parameter rules and optional parameter rules are defined to determine the necessary options passed by the user. Constraints such as parameter data type, format, and enumeration values ​​must be defined. Necessary parameters must completely match wildcards in the template. Users can add optional parameters, and default values ​​can be set for optional parameters. To associate scenario identifiers with physical data sources, routing information is configured based on parameters. This verifies data consistency and routing connectivity, checks whether the fields in the query template match the actual table structure of the data source, and checks whether the parameter rules cover all necessary fields. By simulating request parameter instances, the routing logic is tested to ensure it can correctly parse the target data source. The data verification process can be automated. Finally, the verified configuration information is written to the scenario list as serialized structured data, which can be stored in key-value pairs. When a new download scenario needs to be added, only the new configuration needs to be added according to the standard format, without modifying any code logic. Furthermore, to further improve flexibility and scalability, template inheritance can be configured, allowing new download scenarios to inherit and override the base template configuration.

[0028] In one embodiment, the target parameter rules include necessary parameter rules; the step of concatenating the download conditions carried in the download service request into the target query template based on the target parameter rules includes: obtaining the necessary parameters in the download conditions; traversing the necessary list in the query template and checking whether the necessary parameters are missing; and replacing the necessary parameters in the corresponding positions in the target query template if the necessary parameters are complete.

[0029] Based on the target parameter rules, the download conditions carried in the download service request are appended to the target query template. The download conditions must include at least the necessary parameters, and these parameters replace the necessary fields in the target query template. For each necessary parameter, the system checks if the user-provided parameter has a corresponding key-value pair in the target query template, and replaces the placeholder with the actual value of the provided necessary parameter. It should be understood that the download conditions need to be parsed when appending them to the target query template; if any necessary parameters are empty or incomplete, an error message is returned.

[0030] In one embodiment, the target parameter rule includes the maximum download volume; the step of concatenating the download conditions carried in the download service request into the target query template based on the target parameter rule includes: reading the number of query records in the download conditions; if the reading is successful, using the number of query records as the final download volume of the target query template; if the reading fails, using the preset download volume in the target query template as the final download volume; if the preset download volume is empty, using the maximum download volume in the download scenario as the final download volume.

[0031] In this embodiment, the maximum download volume refers to the maximum number of data rows allowed to be downloaded in this scenario. Query limits can be set according to the download scenario to ensure query time. The download conditions carried in the download service request are parsed, and the number of query rows in the download conditions is read. For example, maxRows=30000. If the parameter exists and meets the parameter rules, it is marked as successfully read, and this value is used as the final download volume. If the user does not specify the number of query rows or the number of query rows is invalid, the preset download volume is read from the query template of the current scenario. If the preset download volume exists and is valid, it is used as the final download volume. If the query template of the current scenario does not define a preset download volume, the default maximum download volume of the download scenario is obtained from the configuration as the final download volume. This setting is to ensure that the system can meet user customization needs while taking into account configuration robustness and avoiding invalid query rows being entered into the query template.

[0032] In one embodiment, the target parameter rule includes optional parameter rules; the step of concatenating the download conditions carried in the download service request into the target query template based on the target parameter rules includes: obtaining optional parameters in the download conditions; traversing the optional list in the query template and generating the intersection of the list and the optional parameters; and replacing each optional parameter in the intersection with the corresponding position in the target query template.

[0033] In this embodiment, download conditions are parsed, and optional parameters are extracted. If no optional parameters are explicitly specified, they are left empty by default, and no optional filtering conditions are enabled. The display of optional parameters follows the default configuration. The wildcard list defining optional parameters in the query template is traversed, and the names of the optional parameters and their positions in the template are recorded. The intersection of the optional parameter list in the query template and the set of optional parameters in the download conditions is taken. For each parameter in the intersection, its value is replaced with the corresponding wildcard position in the template. This method allows users to filter data as needed without modifying the template.

[0034] In one embodiment, the target parameter rule includes hidden fields; obtaining hidden field identifiers in the query template and download conditions; finding the statement position information corresponding to the hidden field identifier in the query template; and removing the corresponding query statement in the query template based on the statement position information.

[0035] In this embodiment, hidden field identifiers refer to field names that should not appear in the final download results during the query process, such as passwords, personal IDs, and phone information. For data security or privacy protection purposes, these fields need to be removed from the query results. The metadata of the query template is parsed to extract the list of hidden field identifiers. If the download conditions contain hidden field identifiers, they are read and merged into the hidden field list. The syntax fragments corresponding to the hidden fields in the query template are located sequentially, and the syntax fragments corresponding to the hidden fields are deleted or replaced from the query template. The query statement is then reconstructed. Each scenario's query template is configured with a default hidden identifier. This method combines configuration and dynamic processing to ensure data security while providing user flexibility.

[0036] In one embodiment, such as Figure 3 As shown, the download service request also includes user information. Before the step of obtaining the corresponding target query template, target parameter rules, and target routing information from the full configuration based on the scenario identifier carried in the download service request, the process includes: querying whether the download service request carries authentication information; if it is determined that it carries authentication information, querying the permission data of the download service request based on the scenario identifier and user information; comparing the authentication information carried by the user with the permission data and generating a verification result; if the verification result indicates that the verification is successful, continuing to execute the subsequent steps.

[0037] In this embodiment, user information refers to the identity and attribute information of the user initiating the download request, while authentication information refers to the parameters carried in the user request to prove their right to access data. Different download scenarios may require different authentication information, such as customer element information, mobile phone number, key verification fields, etc. To ensure the security of data information within the user's access scope and prevent unauthorized data export, authentication information needs to be extracted from the request header or request body of the download request. If no authentication information is carried, a permission failure error message is returned. If authentication information is carried, the corresponding scenario configuration is located in the full configuration based on the scenario identifier to query the permission rules under that scenario. Combining the user information and permission rules, the user's permission data is generated, and the validity of the authentication information is verified. If the authentication information is valid, the authentication information carried by the user is strongly validated against the permission data, and a validation result is generated. If the validation is successful, the query template for the corresponding scenario in the full configuration is obtained based on the scenario identifier; if the validation fails, a failure message is returned.

[0038] In one embodiment, such as Figure 4 As shown, this application also provides a data processing apparatus 400, the apparatus comprising: The full configuration module 401 is used to construct the mapping relationship between each scenario identifier and the query behavior control parameters under the corresponding download scenario in order to generate the full configuration; the query behavior control parameters include at least the query template, parameter rules and routing information.

[0039] The parameter concatenation module 402 is used to respond to a received download service request, obtain the corresponding target query template, target parameter rules and target routing information from the full configuration according to the scenario identifier carried in the download service request, concatenate the download conditions carried in the download service request into the target query template based on the target parameter rules, and generate a data object for asynchronous download based on the target routing information and the updated target query template.

[0040] In one embodiment, the device further includes a scene update module, which is used to create a query template corresponding to a new download scene; define corresponding parameter rules according to the query template; configure corresponding routing information according to the data source of the query template; and, if the verification of the routing information passes, establish a mapping relationship between the scene identifier, query template, parameter rules and routing information under the new download scene; add the mapping relationship to the full configuration, and generate a new full configuration.

[0041] In one embodiment, the target parameter rules include necessary parameter rules; the parameter concatenation module 402 includes a necessary parameter module, used to obtain necessary parameters in the download conditions; traverse the necessary list in the query template and check whether any necessary parameters are missing; if all necessary parameters are passed in, replace the necessary parameters in the corresponding positions in the target query template. In one embodiment, the target parameter rule includes the maximum download volume; the parameter splicing module 402 also includes a download restriction module, which is used to read the number of query records in the download conditions; if the reading is successful, the number of query records is used as the final download volume of the target query template; if the reading fails, the preset download volume in the target query template is used as the final download volume; if the preset download volume is empty, the maximum download volume in the download scenario is used as the final download volume.

[0042] In one embodiment, the target parameter rule includes optional parameter rules; the parameter splicing module 402 further includes an optional parameter module for obtaining optional parameters in the download conditions; traversing the optional list in the query template and generating the intersection of the list and the optional parameters; and replacing each optional parameter in the intersection with the corresponding position in the target query template.

[0043] In one embodiment, the target parameter rule includes a hidden field; the parameter concatenation module 402 further includes a hiding module, used to obtain the hidden field identifier in the query template and download conditions; find the statement position information corresponding to the hidden field identifier in the query template; and remove the corresponding query statement in the query template according to the statement position information.

[0044] In one embodiment, the download service request also includes user information; the parameter splicing module 402 includes a security verification module, used to query whether the download service request carries authentication information; if it is determined that it carries authentication information, the permission data of the download service request is queried according to the scenario identifier and user information; the authentication information carried by the user is compared with the permission data, and a verification result is generated; if the verification result indicates that the verification is passed, the subsequent steps are continued.

[0045] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above method embodiments.

[0046] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0047] This invention provides a processor for running a program, wherein the program executes a data processing method during runtime.

[0048] In one embodiment, a computer device is provided, which may be a mobile terminal, and the internal structure diagram of the computer device may be as follows: Figure 5As shown, the computer device includes a processor, memory, input / output interfaces, and a communication interface. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the input / output interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a data processing method.

[0049] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps in the above-described method embodiments.

[0050] It should be noted that the business information and data involved in this application (including but not limited to data used for querying, routing information, identifiers, etc.) are all information and data authorized by the client or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions.

[0051] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0052] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. Each block in a flowchart or block diagram may represent a module, segment, or portion of code, which includes one or more executable instructions for implementing a specified logical function. It should be understood that each block in the flowchart and / or block diagram, and combinations of blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, produce instructions for implementing the specified logical function in the flowchart. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0053] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0054] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.

Claims

1. A data processing method, characterized in that, The method includes: Construct a mapping relationship between each scenario identifier and the corresponding query behavior control parameters under the download scenario to generate a full configuration; the query behavior control parameters include at least query templates, parameter rules, and routing information; In response to receiving a download service request, the system retrieves the corresponding target query template, target parameter rules, and target routing information from the full configuration based on the scenario identifier carried in the download service request. Based on the target parameter rules, the system concatenates the download conditions carried in the download service request into the target query template. Based on the target routing information and the updated target query template, the system generates a data object for asynchronous download.

2. The method according to claim 1, characterized in that, The full configuration update steps include: Create a new query template corresponding to the download scenario; Define the corresponding parameter rules based on the query template; Configure the corresponding routing information based on the data source of the query template; If the routing information passes the verification, a mapping relationship is established between the scene identifier, the query template, the parameter rules, and the routing information in the new download scenario. The mapping relationship is added to the full configuration to generate a new full configuration.

3. The method according to claim 1, characterized in that, The target parameter rules include necessary parameter rules; The step of concatenating the download conditions carried in the download service request into the target query template based on the target parameter rules includes: Obtain the necessary parameters from the download conditions; Iterate through the necessary list in the query template and check if any of the necessary parameters are missing; If all the necessary parameters are passed in, replace the necessary parameters in the corresponding positions in the target query template.

4. The method according to claim 1, characterized in that, The target parameter rules include optional parameter rules; The step of concatenating the download conditions carried in the download service request into the target query template based on the target parameter rules includes: Obtain the optional parameters from the download conditions; Iterate through the optional list in the query template and generate the intersection of the list and the optional parameters; Replace each optional parameter in the intersection with the corresponding position in the target query template.

5. The method according to claim 1, characterized in that, The target parameter rules include hidden fields; The step of concatenating the download conditions carried in the download service request into the target query template based on the target parameter rules includes: Obtain the identifiers of the hidden fields in the query template and the download conditions; Find the statement location information corresponding to the hidden field identifier in the query template; Remove the corresponding query statement from the query template based on the statement location information.

6. The method according to claim 1, characterized in that, The target parameter rules include the maximum download volume; The step of concatenating the download conditions carried in the download service request into the target query template based on the target parameter rules includes: Read the number of query entries in the download criteria; If the read is successful, the number of query results will be used as the final download count of the target query template; In the event of a read failure, the preset download count in the target query template will be used as the final download count; If the preset download count is empty, the maximum download count will be used as the final download count.

7. The method according to any one of claims 1-6, characterized in that, The download request also includes user information; Before the step of obtaining the corresponding target query template, target parameter rules, and target routing information from the full configuration based on the scenario identifier carried in the download service request, the following steps are included: Check whether the download request carries authentication information; If the authentication information is confirmed to be present, the permission data for the download service request is queried based on the scenario identifier and the user information. The authentication information carried by the user is compared with the permission data, and a verification result is generated. If the verification result indicates that the verification has passed, proceed with the subsequent steps.

8. A data processing apparatus, characterized in that, The device includes: The full configuration module is used to construct the mapping relationship between each scenario identifier and the query behavior control parameters under the corresponding download scenario, so as to generate the full configuration; the query behavior control parameters include at least query template, parameter rules and routing information; The parameter concatenation module is used to respond to a received download service request, obtain the corresponding target query template, target parameter rules, and target routing information from the full configuration according to the scenario identifier carried in the download service request, concatenate the download conditions carried in the download service request into the target query template based on the target parameter rules, and generate a data object for asynchronous download based on the target routing information and the updated target query template.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.