Data processing method, apparatus and system
By receiving target configuration information and associating it with preset operations, a query request is generated and the page is displayed. This solves the problems of code redundancy and difficulty in reusing business code in list query and display, and achieves efficient and stable data processing and interaction logic.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- CHINA PING AN PROPERTY INSURANCE CO LTD
- Filing Date
- 2026-03-05
- Publication Date
- 2026-06-05
AI Technical Summary
In existing technologies, the decentralized development model of list query and display leads to code redundancy and repeated development, making it difficult to reuse business code, coupling data flow logic with business interfaces, making it difficult to test independently, and lacking a unified architecture specification and extension mechanism.
By receiving target configuration information, the target list is associated with multiple preset operations, a query request is generated and the page is displayed. Clear operation functions and their execution logic are defined, and a custom parsing function is used to process the data format, thereby decoupling data acquisition, status update and UI rendering. Query conditions are also automatically processed through pagination mode.
It reduces code redundancy, improves development efficiency and application stability, ensures the consistency of list functionality and the correctness of interaction logic, and reduces the difficulty and amount of code required to implement advanced interactive functions.
Smart Images

Figure CN122152918A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and can be applied to the financial and medical fields. In particular, it relates to a data processing method, apparatus, and system. Background Technology
[0002] In web front-end development, list querying and display are extremely common and core business scenarios. Currently, the industry generally adopts a "page-level" distributed development model. In this model, each list function requires developers to independently and repeatedly write code with almost identical state definitions, request control, pagination management, and data update logic, resulting in serious code redundancy and repetitive development problems. Furthermore, the data flow logic of the aforementioned list query is coupled with the business interface, making it difficult to reuse business code and preventing independent testing of the data flow logic layer. Summary of the Invention
[0003] This invention provides a data processing method, apparatus, and storage medium to at least solve the problems of code redundancy, redundant development, and difficulty in reusing business code in related technologies. The technical solution of this invention is as follows: According to a first aspect of the present invention, a data processing method is provided, the method comprising: receiving target configuration information input by a list development end for a target list; associating the target list with multiple preset operations and execution logic of the multiple preset operations; the multiple preset operations including a first operation of calling a target interface corresponding to a target interface identifier, generating a query request using input query conditions, and obtaining list data in the target list based on the query request; a second operation of generating a display page based on the obtained list data; a third operation of updating and sending data status during the query process; and a third operation of combining query conditions and pagination parameters based on a target pagination mode identifier to generate new query conditions. The fourth operation sends new query conditions to the query condition input terminal of the first operation; the target configuration information includes the target interface identifier and the target pagination mode identifier; based on the first query conditions for querying the target list input by the query terminal, multiple first target operations are determined from multiple preset operations; the multiple first target operations include a first operation and a second operation; according to the first execution logic of the multiple first target operations, with the first query conditions as input, the multiple first target operations are executed on the target list to generate and display a first display page; the first execution logic is to execute the first operation and the second operation in sequence; the first display page includes the first list data obtained based on the first query conditions.
[0004] In this implementation, multiple target operations and their execution logic are adapted to different types of query conditions, meaning there is an associated mapping relationship between query condition types, operations, and execution logic.
[0005] As one implementation, the method further includes: in response to a trigger operation on a pagination control on a first display page, determining target pagination parameters; the target pagination parameters include the current page number, the new page number, the size of each page, and the total amount of data; selecting multiple second target operations from multiple preset operations; the second target operations include a fourth operation, a first operation, and a second operation; according to the second execution logic of the multiple second target operations, using the first query condition and the target pagination parameters as inputs to the fourth operation, executing the multiple second target operations on the target list, generating and displaying a second display page; the second execution logic is to execute the fourth operation, the first operation, and the second operation sequentially.
[0006] Another implementation method, according to the second execution logic of multiple second target operations, uses the first query condition and the target pagination parameter as the input of the fourth operation, performs multiple second target operations on the target list, generates and displays the second display page, including: when the target pagination mode identifier is the overwrite mode identifier, the fourth operation includes: replacing the initial pagination parameter associated with the first query condition with the target pagination parameter to generate the second query condition; inputting the second query condition to the input end of the query condition, executing the first operation and the second operation in sequence to obtain the second list data, overwriting the first list data of the first display page with the second list data, generating the second display page, and displaying the second display page.
[0007] Another implementation method further includes: when the target pagination mode identifier is an accumulation mode identifier, concatenating the first list data with the second list data to obtain the third list data; and generating the second display page based on the third list data.
[0008] Another implementation method, according to the second execution logic of multiple second target operations, uses the first query condition and the target pagination parameter as the input of the fourth operation, performs multiple second target operations on the target list, generates and displays the second display page, including: when the target pagination mode identifier is an accumulation mode identifier, the fourth operation includes: merging the target pagination parameter with the initial pagination parameter associated with the first query condition to generate a third query condition; inputting the third query condition to the input end of the query condition, sequentially executing the first operation and the second operation to obtain the fourth list data, generating the second display page based on the fourth list data, and displaying the second display page.
[0009] Another implementation method includes: determining multiple third target operations from multiple preset operations based on the fourth query conditions input by the query terminal for querying the target list and displaying the data status; the multiple third target operations include a first operation, a second operation, and a third operation; according to the third execution logic of the multiple third target operations, performing the multiple third target operations on the target list with the third query conditions as input, generating and displaying a third display page; the third execution logic is to perform the first operation first, followed by the second and third operations simultaneously; the third display page includes fourth list data and data status information; the data status information is any one of the following: unprocessed, processing, or processed.
[0010] Another implementation method is to encapsulate the program code for performing the first operation in the first component, the program code for performing the second operation in the second component, the program code for performing the third operation in the third component, and the program code for performing the fourth operation in the fourth component. The execution logic between the components is based on listening to the trigger information of the component and triggering the callback function to call the component corresponding to the trigger information.
[0011] Another implementation method further includes: if the target configuration information contains a custom parsing function identifier, after or during the execution of the first operation, using the custom parsing function to convert the data format of the original list data obtained from the target list into the target format to obtain the target list data.
[0012] According to a second aspect of the present invention, a data processing apparatus is provided, comprising a receiving unit configured to receive target configuration information input by a list development end to a target list, and to associate the target list with multiple preset operations and execution logic of the multiple preset operations; the multiple preset operations include a first operation of calling a target interface corresponding to a target interface identifier, generating a query request using input query conditions, and obtaining list data in the target list based on the query request; a second operation of generating a display page based on the obtained list data; a third operation of updating and sending the data status during the query process; and a fourth operation of combining query conditions and pagination parameters based on a target pagination mode identifier to generate new query conditions and sending the new query conditions to the query condition input end of the first operation; the target configuration information includes a target interface identifier and a target pagination mode identifier.
[0013] The determining unit is configured to determine multiple first target operations from multiple preset operations based on the first query conditions for querying the target list input by the query terminal; the multiple first target operations include a first operation and a second operation.
[0014] The generation unit is configured to perform multiple first target operations according to a first execution logic, taking a first query condition as input, perform multiple first target operations on the target list, generate and display a first display page; the first execution logic is to execute the first operation and the second operation in sequence; the first display page includes first list data obtained based on the first query condition.
[0015] According to a third aspect of the present invention, a data processing system is provided, which is configured to perform a data processing method as described in the first aspect and any possible implementation thereof.
[0016] According to a fourth aspect of the present invention, a computer-readable storage medium is provided, on which instructions are stored, such that when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is able to perform a data processing method as described in the first aspect and any possible implementation thereof.
[0017] According to a fifth aspect of the present disclosure, a computer program product is provided, the computer program product including computer instructions that, when executed on an electronic device, cause the electronic device to perform the data processing method described in the first aspect and any possible implementation thereof.
[0018] The technical solution provided by the embodiments of the present invention brings at least the following beneficial effects: First, by requiring the development end to input standardized configuration information including the target interface identifier and the pagination mode identifier, and associating this configuration information with a set of preset, complete operation logic (first to fourth operations), the scattered logic that originally needed to be manually written on each page, such as request assembly, data acquisition, state management, and pagination processing, is abstracted and solidified into a pre-defined, readily callable logical flow. When the query end initiates a request, it only needs to provide the query conditions, and the system can automatically match and execute this set of preset logic, thereby saving developers the execution steps of repeatedly writing underlying code, improving development efficiency, and ensuring the consistency of behavior of different list functions.
[0019] Secondly, clear operational functions (such as the first operation retrieving data and the second operation generating a page) and their execution logic are defined for the aforementioned series of operations. When responding to a query, the system can automatically determine and execute the required target operations (such as the first and second operations) sequentially based on the input query conditions. Based on this, data acquisition, state updates, and UI rendering can be decoupled into independent, manageable processes, and preset logic ensures they work together in the correct order and manner. This not only reduces logical errors caused by manually orchestrating data flows but also makes the data state update and page generation processes highly automated and predictable, improving application stability and performance.
[0020] Secondly, the fourth operation is specifically responsible for intelligently combining query conditions and pagination parameters into new query conditions based on the pagination pattern and feeding them back to the request chain. This internalizes and automates the complexity of pagination and condition combinations, which are the most common issues in list queries. Developers no longer need to manually handle how to maintain or merge query conditions when pagination changes in their business code, reducing the difficulty and amount of code required to implement advanced interactive features (such as conditional pagination and pull-to-load-more), while ensuring the correctness of the interactive logic.
[0021] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0022] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure, and are not intended to unduly limit this disclosure.
[0023] Figure 1 This is a schematic diagram illustrating a data processing system according to an exemplary embodiment; Figure 2 This is a flowchart illustrating a data processing method according to an exemplary embodiment; Figure 3 This is a block diagram illustrating a data processing apparatus according to an exemplary embodiment; Figure 4 This is a schematic diagram of an electronic device according to an exemplary embodiment. Detailed Implementation
[0024] To enable those skilled in the art to better understand the technical solutions of this disclosure, the technical solutions in the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings.
[0025] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0026] Before providing a detailed description of the data processing methods provided in the embodiments of this application, let's briefly introduce the application scenarios and implementation environments involved in the embodiments of this application.
[0027] First, a brief introduction to the application scenarios involved in this application will be given.
[0028] In front-end development, list queries are frequently encountered, such as product lists, organizational operational status, and order records. Typically, list queries provide specific query conditions, including page size, current page number, and other criteria. The returned results require the query result set and the total number of records under the given conditions. In front-end development, each page's list query has its own API address and query conditions, and because they belong to different pages, data storage is also located in different modules or pages. The common query logic and repetitive code are scattered across various pages, and this logic is repeatedly developed each time a new query is created. Optimization could reduce the workload of each integration. Existing components for list display, such as Ant Design's Tabel component, are only used for displaying the results after a query and cannot optimize the query logic; they are also unsuitable for mobile pull-to-load scenarios. Therefore, the problem to be solved is the repetitive query logic, not the display issue.
[0029] Research has revealed the following specific issues.
[0030] First, there are serious issues of redundant development and code redundancy. Although list queries on different business pages differ in data structure and UI style, their underlying core logic, such as data acquisition, state management, and pagination control, is highly similar or even identical. Because existing technology lacks an effective abstraction of this common logic, developers are forced to "reinvent the wheel" on each page, resulting in projects filled with numerous implementations of identical functionality but scattered code. This not only significantly reduces development efficiency but also makes the codebase bloated, increasing maintenance costs and the risk of errors.
[0031] Second, business logic and user interface (UI) are deeply coupled. In the above pattern, data state and control logic are usually tightly bound to specific UI components (such as a table or search form). This tight coupling leads to two major problems: first, data logic is difficult to test and reuse independently; second, when the UI layout needs to be adjusted or the UI component library needs to be replaced, it often requires modification of the underlying data processing code, making the system difficult to evolve and maintain. Some existing UI component libraries (such as Ant Design's Table component) mainly solve the problem of standardizing data display, but do not address the reuse and decoupling of data acquisition and management logic.
[0032] Third, there is a lack of unified architectural standards and extension mechanisms. Different developers or projects handle interface formats, parameter naming, and response data structures differently, leading to inconsistent coding styles and high team collaboration costs. More importantly, when it is necessary to interface with a backend interface that returns non-standard data formats, or to add special authentication logic during the request process, existing solutions usually require direct modification of the core business code. This approach "pollutes" common logic or forces developers to copy and modify entire code snippets, further exacerbating code duplication and fragmentation, failing to achieve the ideal effect of "one-stop solution, adaptable everywhere."
[0033] To address the aforementioned issues, this application proposes a data processing method. By introducing a configuration-driven, logic-preset, and automatically executed list data processing paradigm, the front-end list query function is transformed from a highly customized and error-prone "manual coding mode" into a standardized, automated, and highly reliable "declarative configuration and automated execution mode." This directly leads to a qualitative leap in development efficiency, improved code quality and consistency, and a reduction in the difficulty of implementing complex interactions.
[0034] Secondly, the implementation architecture involved in this application will be briefly introduced below.
[0035] Figure 1 This is a schematic diagram of a data processing system 10 provided in this disclosure. For example... Figure 1 As shown, the data processing system includes a development terminal 101, a query terminal 102, and a server 103. The data processing system 10 can be a distributed system. The development terminal 101 and the query terminal 102 communicate with the server 103 via wired and / or wireless networks, respectively.
[0036] In some embodiments, the development terminal 101 and the query terminal 102 can be terminal devices. The development terminal 101 can be simply referred to as the list development terminal.
[0037] After receiving the target configuration information input by the developer 101 for the target list, the server 103 automatically associates the target list with multiple preset operations and their execution logic for easy subsequent invocation. Based on the first query condition input by the query client 102, the server determines the first and second operations associated with the first query condition from among the multiple preset operations. Following the first execution logic, the server executes the first and second operations sequentially with the first query condition as input, obtaining the first list data, and generating a first display page based on the first list data.
[0038] In some embodiments, server 102 includes or is connected to a database. The database stores list data, has mechanisms for identifying different query condition types, components for implementing various operations, various execution logics, and establishes a mapping relationship between query condition types, operations, and execution logic. List data of different business types are stored in different databases. For example, financial list data is stored in a first database, and medical list data is stored in a second database. Each developer terminal 101 can access and operate on the list data in the database of server 103.
[0039] In other embodiments, server 103 may be a single server, or it may be a server cluster consisting of multiple servers. In some embodiments, the server cluster may also be a distributed cluster. This application does not limit the specific implementation of server 103.
[0040] The terminal device can be a mobile phone, tablet computer, desktop computer, laptop computer, handheld computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, as well as cellular phone, personal digital assistant (PDA), augmented reality (AR) / virtual reality (VR) device, etc., that can install and use content community applications (such as Kuaishou). This disclosure does not impose any special restrictions on the specific form of the terminal device. It can interact with users through one or more methods such as keyboard, touchpad, touch screen, remote control, voice interaction, or handwriting device.
[0041] The server 103 described above can be connected to at least one terminal device. Furthermore, this application does not limit the number or type of terminal devices.
[0042] The data processing method provided in this application embodiment can be applied to the aforementioned... Figure 1 The data processing system in the implementation architecture shown is illustrated below. For ease of understanding, the data processing method provided in this application will be described in detail below with reference to the accompanying drawings.
[0043] Figure 2 This is a flowchart illustrating a data processing method according to an exemplary embodiment, such as... Figure 2 As shown, the data processing method includes the following steps.
[0044] S21, receive the target configuration information input by the list development end for the target list, and associate the target list with multiple preset operations and the execution logic of multiple preset operations.
[0045] The target configuration information includes the target interface identifier and the target pagination mode identifier.
[0046] Multiple preset operations include the first operation, the second operation, the third operation, and the fourth operation.
[0047] The first operation is to call the target interface corresponding to the target interface identifier, generate a query request using the input query conditions, and obtain the list data in the target list based on the query request.
[0048] The second step is to generate a display page based on the acquired list data.
[0049] The third operation is to update and send the data status during the query process.
[0050] The fourth operation is as follows: Based on the target pagination mode identifier, the query conditions and pagination parameters are combined to generate new query conditions, and the new query conditions are sent to the query condition input terminal of the first operation.
[0051] Understandably, the query conditions and pagination parameters are combined to generate new query conditions. Based on the new query conditions, the first operation and the second operation are called to obtain new list data. Based on the target pagination mode identifier, the new list data and the initial list data are processed.
[0052] S22, based on the first query condition for querying the target list input by the query terminal, determine multiple first target operations from multiple preset operations.
[0053] Multiple first-target operations include first operation and second operation.
[0054] In some implementations, multiple target operations and execution logic relationships corresponding to the different types of query conditions are adapted. That is, there is an association mapping relationship between the query condition type, operation and execution logic. Based on the association mapping relationship, multiple first target operations that are adapted to the condition type of the first query condition and the first execution logic corresponding to the multiple first target operations are determined from multiple preset operations.
[0055] S23, according to the first execution logic of multiple first target operations, with the first query condition as the input query condition, perform multiple first target operations on the target list, generate and display the first display page.
[0056] The first execution logic is to execute the first operation and the second operation in sequence; the first display page includes the first list data obtained based on the first query conditions.
[0057] Through the above implementation method, firstly, by requiring the development end to input standardized configuration information including the target interface identifier and pagination mode identifier, and associating this configuration information with a set of preset, complete operational logic (first to fourth operations), the previously scattered logic such as request assembly, data acquisition, state management, and pagination processing, which needed to be manually written on each page, is abstracted and solidified into a pre-defined, readily invoked logical flow. When the query end initiates a request, it only needs to provide the query conditions, and the system can automatically match and execute this set of preset logic. This saves developers from repeatedly writing low-level code, improves development efficiency, and ensures the consistency of behavior across different list functions.
[0058] Secondly, clear operational functions (such as the first operation retrieving data and the second operation generating a page) and their execution logic are defined for the aforementioned series of operations. When responding to a query, the system can automatically determine and execute the required target operations (such as the first and second operations) sequentially based on the input query conditions. Based on this, data acquisition, state updates, and UI rendering can be decoupled into independent, manageable processes, and preset logic ensures they work together in the correct order and manner. This not only reduces logical errors caused by manually orchestrating data flows but also makes the data state update and page generation processes highly automated and predictable, improving application stability and performance.
[0059] Secondly, the fourth operation is specifically responsible for intelligently combining query conditions and pagination parameters into new query conditions based on the pagination pattern and feeding them back to the request chain. This internalizes and automates the complexity of pagination and condition combinations, which are the most common issues in list queries. Developers no longer need to manually handle how to maintain or merge query conditions when pagination changes in their business code, reducing the difficulty and amount of code required to implement advanced interactive features (such as conditional pagination and pull-to-load-more), while ensuring the correctness of the interactive logic.
[0060] As one implementation method, based on the above implementation method for basic list query, the following implementation steps can also be performed to realize how to handle user interaction with pagination controls (such as page turning, changing the size of each page) in a standardized and automated manner, without requiring developers to write additional, repetitive linkage code.
[0061] First, in response to the triggering operation of the pagination control on the first display page, the target pagination parameters are determined.
[0062] The target pagination parameters include the current page number, the new page number, the size of each page, and the total amount of data.
[0063] Secondly, select multiple second target operations from multiple preset operations.
[0064] The second target operation includes the fourth operation, the first operation, and the second operation.
[0065] Third, following the second execution logic of multiple second target operations, and using the first query conditions and target pagination parameters as inputs for the fourth operation, multiple second target operations are performed on the target list to generate and display the second display page.
[0066] The second execution logic is to execute the fourth operation, the first operation, and the second operation in sequence.
[0067] In this implementation, the user's click on the pagination control is directly mapped to automatically executing a series of preset operations (the fourth, first, and second operations). Developers do not need to write any business logic for the pagination component's onChange or onShowSizeChange events; they only need to bind the control to the pagination state provided by the method. This further eliminates duplicate code and improves development efficiency. Simultaneously, the fourth operation automatically and reliably combines the latest pagination parameters with the current query conditions. This ensures that no matter how the user flips through pages or changes the page size, previous search and filtering conditions are not lost, resulting in a continuous and accurate user experience, while completely eliminating the burden of manually maintaining this state synchronization for developers.
[0068] In some specific implementations, the above-mentioned "triggering operation of pagination control" and "determining target pagination parameters" are further explained.
[0069] First, configure the `pagination` object as follows: It contains two callback functions: `onChange: (current: number, pageSize?:number) => void` and `onShowSizeChange: (current: number, pageSize: number) => void`. When the user clicks the pagination button (triggering an action), the UI pagination component calls these callback functions, passing in the new `current` (current page number / new page number) and `pageSize` (page size). This is the process of "determining the target pagination parameters". `total` (total data) is usually updated from the response data of the previous request and is also part of the pagination state.
[0070] Furthermore, the fourth operation, combining parameters and providing feedback, is explained as follows.
[0071] The `useTableHook` internally caches the current query conditions (the first query condition). When `pagination.onChange` is triggered, the hook automatically combines the newly passed pagination parameters with the internally cached query conditions (the fourth operation) to form new, complete query parameters, which are then used to re-initiate the request. This process is completely transparent to the developer and requires no intervention.
[0072] Furthermore, the automated sequence of operations for the second execution logic is explained as follows.
[0073] Step 1 (Fourth Operation): The system executes internal logic to combine the first query condition and the target pagination parameter => generate new complete query parameters.
[0074] Step 2 (First Operation): The system uses the new query parameters to call the interface and obtain the list data of the new page numbers.
[0075] Step 3 (Second Operation): The system updates the state with the newly acquired data, triggers the view to re-render, and generates and displays the second display page (i.e., the page after pagination).
[0076] Taking an order list as an example, the following process will be further explained: The user has filtered the data using "Status = Pending" (the first query condition) and is currently viewing page 1.
[0077] First, the user clicks the "Page 2" button on the paginator (triggering the operation).
[0078] Secondly, the pagination component calls pagination.onChange(2) (to determine the target pagination parameter: current becomes 2).
[0079] Third, automatic execution within the Hook: combining {status: 'pending'} with {page: 2, pageSize: 10} (fourth operation).
[0080] Fourth, send a request to the backend using the combined parameters {status: 'pending', page: 2, pageSize: 10} (first operation).
[0081] Fifth, after receiving the order data from page 2, update the data list and pagination.total (status update, which is part of the first / third operation).
[0082] Sixth, the page is automatically re-rendered to display the "pending" orders on page 2 (second operation, generating the second display page).
[0083] As one implementation method, the specific process of generating and displaying the second display page includes the following steps.
[0084] When the target pagination mode is identified as an overlay mode, the fourth operation includes: replacing the initial pagination parameter associated with the first query condition with the target pagination parameter to generate the second query condition; inputting the second query condition into the input terminal of the query condition, performing the first and second operations in sequence to obtain the second list data, overlaying the first list data of the first display page with the second list data to generate the second display page, and displaying the second display page.
[0085] The second list data mentioned above is the list data obtained based on the second query conditions, and does not include the first list data.
[0086] As one implementation method: when the target pagination mode is identified as an accumulation mode, the first list data and the second list data are concatenated to obtain the third list data; based on the third list data, the second display page is generated.
[0087] The process of concatenating the first list data and the second list data includes: when the accumulation mode identifier is the first identifier, appending the first list data to the end of the second list data; when the accumulation mode identifier is the second identifier, appending the second list data to the end of the first list data.
[0088] As another implementation method, the specific process of generating and displaying the second display page includes the following steps.
[0089] When the target pagination mode is identified as an accumulation mode, the fourth operation includes: merging the target pagination parameter with the initial pagination parameter associated with the first query condition to generate a third query condition; inputting the third query condition into the input end of the query condition, and sequentially performing the first and second operations to obtain fourth list data; generating a second display page based on the fourth list data, and displaying the second display page.
[0090] The fourth list data on the second display page includes the first list data and the second list data arranged in sequence.
[0091] As one implementation method, the third display page is generated and displayed through the following steps.
[0092] First, based on the fourth query condition of querying the target list and displaying the data status, multiple third target operations are determined from multiple preset operations.
[0093] Multiple third-target operations include the first operation, the second operation, and the third operation.
[0094] Secondly, following the third execution logic of multiple third target operations, and using the third query conditions as input, multiple third target operations are performed on the target list to generate and display the third display page.
[0095] The third execution logic is to perform the first operation first, and then perform the second and third operations simultaneously.
[0096] The third display page includes the fourth list of data and data status information.
[0097] The data status information is any of the following: Unprocessed, Processing, or Processed.
[0098] The fourth list data is one of the first list data, the second list data, or the third list data.
[0099] In one implementation, the program code for performing the first operation is encapsulated in the first component, the program code for performing the second operation is encapsulated in the second component, the program code for performing the third operation is encapsulated in the third component, and the program code for performing the fourth operation is encapsulated in the fourth component. The execution logic between the components is based on the triggering information of the listening component, and the triggering callback function calls the component corresponding to the triggering information.
[0100] As one implementation method, if the target configuration information contains a custom parsing function identifier, after or during the execution of the first operation, the custom parsing function is used to convert the data format of the original list data obtained from the target list into the target format to obtain the target list data.
[0101] The target list data can be any one of the first list data, the second list data, the third list data, and the fourth list data.
[0102] To achieve the above functions, the data processing apparatus includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art will readily recognize that, based on the algorithmic steps of the examples described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0103] This disclosure also provides an embodiment such as Figure 3 The data processing apparatus shown includes the following units.
[0104] The receiving unit 31 is configured to receive target configuration information input from the list development end for the target list, and to associate the target list with multiple preset operations and the execution logic of the multiple preset operations. The multiple preset operations include a first operation of calling the target interface corresponding to the target interface identifier, generating a query request using the input query conditions, and obtaining list data in the target list based on the query request; a second operation of generating a display page based on the obtained list data; a third operation of updating and sending the data status during the query process; and a fourth operation of combining the query conditions and pagination parameters based on the target pagination mode identifier to generate new query conditions and sending the new query conditions to the query condition input end of the first operation. The target configuration information includes the target interface identifier and the target pagination mode identifier.
[0105] The determining unit 32 is configured to determine multiple first target operations from multiple preset operations based on the first query conditions for querying the target list input by the query terminal; the multiple first target operations include a first operation and a second operation.
[0106] The generation unit 33 is configured to perform multiple first target operations according to a first execution logic, using a first query condition as input, perform multiple first target operations on the target list, generate and display a first display page; the first execution logic is to execute the first operation and the second operation in sequence; the first display page includes first list data obtained based on the first query condition.
[0107] In one implementation, the generation unit 33 is further configured to: determine target pagination parameters in response to a trigger operation on the pagination control on the first display page; the target pagination parameters include the current page number, the new page number, the size of each page, and the total amount of data; select multiple second target operations from multiple preset operations; the second target operations include a fourth operation, a first operation, and a second operation; according to the second execution logic of the multiple second target operations, with the first query condition and the target pagination parameters as inputs to the fourth operation, execute the multiple second target operations on the target list, generate and display the second display page; the second execution logic is to execute the fourth operation, the first operation, and the second operation in sequence.
[0108] In another implementation, the generation unit 33 is further configured to: when the target pagination mode identifier is an overlay mode identifier, perform a fourth operation including: replacing the initial pagination parameter associated with the first query condition with the target pagination parameter to generate a second query condition; inputting the second query condition into the input end of the query condition, performing the first operation and the second operation in sequence to obtain second list data, overlaying the first list data of the first display page with the second list data to generate a second display page, and displaying the second display page.
[0109] In another implementation, the generation unit 33 is further configured to: concatenate the first list data with the second list data to obtain the third list data when the target pagination mode identifier is an accumulation mode identifier; and generate the second display page based on the third list data.
[0110] In another implementation, the generation unit 33 is further configured to: when the target pagination mode identifier is an accumulation mode identifier, perform a fourth operation including: merging the target pagination parameter with the initial pagination parameter associated with the first query condition to generate a third query condition; inputting the third query condition to the input end of the query condition, performing the first operation and the second operation in sequence to obtain fourth list data, generating a second display page based on the fourth list data, and displaying the second display page.
[0111] In another implementation, the generation unit 33 is further configured to: determine multiple third target operations from multiple preset operations based on the fourth query conditions input by the query terminal for querying the target list and displaying the data status; the multiple third target operations include a first operation, a second operation, and a third operation; according to the third execution logic of the multiple third target operations, using the third query conditions as input query conditions, execute the multiple third target operations on the target list, generate and display a third display page; the third execution logic is to perform the first operation first, and then the second and third operations simultaneously; the third display page includes fourth list data and data status information; the data status information is any one of the following: unprocessed, processing, and processed.
[0112] In another implementation, the program code for performing the first operation is encapsulated in the first component, the program code for performing the second operation is encapsulated in the second component, the program code for performing the third operation is encapsulated in the third component, and the program code for performing the fourth operation is encapsulated in the fourth component. The execution logic between the components is based on the triggering information of the listening component, and the triggering callback function calls the component corresponding to the triggering information.
[0113] In another implementation, the receiving unit 31 is further configured to: if the target configuration information contains a custom parsing function identifier, after or during the execution of the first operation, use the custom parsing function to convert the data format of the original list data obtained from the target list into the target format to obtain the target list data.
[0114] Regarding the apparatus in the above embodiments, the specific manner in which each unit module performs its operations has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0115] Figure 4 This is a schematic diagram of an electronic device provided in this application. (For example...) Figure 4The electronic device 50 may include at least one processor 501 and a memory 503 for storing processor-executable instructions. The processor 501 is configured to execute the instructions in the memory 503 to implement the data processing methods described in the following embodiments.
[0116] In addition, electronic device 50 may also include communication bus 502, at least one communication interface 504, input device 506 and output device 505.
[0117] The processor 501 may be a processor (central processing unit, CPU), a microprocessor unit, an ASIC, or one or more integrated circuits for controlling the execution of the program of the present application.
[0118] The communication bus 502 may include a path for transmitting information between the aforementioned components.
[0119] Communication interface 504 uses any transceiver-like device for communicating with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area networks (WLAN), etc.
[0120] Input device 506 is used to receive input signals and output device 505 is used to output signals.
[0121] Memory 503 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed discs, laser discs, optical discs, digital universal discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited thereto. Memory may exist independently and be connected to the processing unit via a bus. Memory may also be integrated with the processing unit.
[0122] The memory 503 stores instructions for executing the scheme of this application, and the processor 501 controls the execution. The processor 501 executes the instructions stored in the memory 503 to implement the functions of the method of this application.
[0123] In a specific implementation, as one example, the processor 501 may include one or more CPUs, for example... Figure 4 CPU0 and CPU1 in the CPU.
[0124] In a specific implementation, as one example, the electronic device 50 may include multiple processors, such as... Figure 4 Processors 501 and 507 are mentioned. Each of these processors can be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor here can refer to one or more devices, circuits, and / or processing cores used to process data (such as computer program instructions).
[0125] The electronic device is as follows Figure 4 The diagram includes a processor 501 and a memory 503 for storing executable instructions of the processor 501; wherein the processor 501 is configured to execute executable instructions to implement the data processing method as described in any of the possible embodiments above. And it can achieve the same technical effect, so to avoid repetition, it will not be described again here.
[0126] This application also provides a computer-readable storage medium, which, when executed by a processor of a data processing device or electronic device, enables the data processing device or electronic device to perform a data processing method as described in any of the possible embodiments above. The same technical effects can be achieved, and to avoid repetition, further details are omitted here.
[0127] This application also provides a computer program product, including a computer program or instructions, which are executed by a processor as a data processing method according to any of the possible implementations described above. The same technical effects can be achieved, and to avoid repetition, further details are omitted here.
[0128] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.
[0129] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.
Claims
1. A data processing method, characterized in that, The method includes: The system receives target configuration information input from the list development end for the target list, and associates the target list with multiple preset operations and the execution logic of the multiple preset operations. The multiple preset operations include: a first operation that calls the target interface corresponding to the target interface identifier, generates a query request using the input query conditions, and obtains list data in the target list based on the query request; a second operation that generates a display page based on the obtained list data; a third operation that updates and sends the data status during the query process; and a fourth operation that combines the query conditions and pagination parameters based on the target pagination mode identifier to generate new query conditions and sends the new query conditions to the query condition input end of the first operation. The target configuration information includes the target interface identifier and the target pagination mode identifier. Based on the first query condition input by the query terminal for querying the target list, a plurality of first target operations are determined from the plurality of preset operations; the plurality of first target operations include the first operation and the second operation; According to the first execution logic of multiple first target operations, the multiple first target operations are executed on the target list with the first query condition as the input query condition to generate and display a first display page; the first execution logic is to execute the first operation and the second operation in sequence; the first display page includes first list data obtained based on the first query condition.
2. The data processing method according to claim 1, characterized in that, The method further includes: In response to a trigger operation on the pagination control on the first display page, target pagination parameters are determined; the target pagination parameters include the current page number, the new page number, the size of each page, and the total amount of data. Multiple second target operations are selected from the plurality of preset operations; the second target operations include the fourth operation, the first operation, and the second operation. According to the second execution logic of multiple second target operations, the first query condition and target pagination parameters are used as the input of the fourth operation to perform the multiple second target operations on the target list, thereby generating and displaying the second display page; the second execution logic is to execute the fourth operation, the first operation and the second operation in sequence.
3. The data processing method according to claim 2, characterized in that, The second execution logic, which follows multiple second target operations, uses the first query condition and target pagination parameters as input for the fourth operation to perform the multiple second target operations on the target list, generating and displaying the second display page, including: When the target pagination mode identifier is an overlay mode identifier, performing the fourth operation includes: replacing the initial pagination parameter associated with the first query condition with the target pagination parameter to generate a second query condition; The second query condition is input into the input terminal of the query condition. The first operation and the second operation are executed in sequence to obtain the second list data. The second list data is used to overwrite the first list data of the first display page to generate the second display page and display the second display page.
4. The data processing method according to claim 3, characterized in that, The method further includes: If the target pagination mode is identified as an accumulation mode, the first list data and the second list data are concatenated to obtain the third list data; based on the third list data, the second display page is generated.
5. The data processing method according to claim 2, characterized in that, The second execution logic, which follows multiple second target operations, uses the first query condition and target pagination parameters as input for the fourth operation to perform the multiple second target operations on the target list, generating and displaying the second display page, including: When the target pagination mode identifier is an accumulation mode identifier, the fourth operation includes: merging the target pagination parameter with the initial pagination parameter associated with the first query condition to generate a third query condition; The third query condition is input into the input terminal of the query condition. The first operation and the second operation are executed in sequence to obtain the fourth list data. Based on the fourth list data, the second display page is generated and displayed.
6. The data processing method according to any one of claims 1 to 5, characterized in that, The method includes: Based on the fourth query conditions input by the query terminal for querying the target list and displaying the data status, multiple third target operations are determined from the multiple preset operations; the multiple third target operations include the first operation, the second operation, and the third operation; According to the third execution logic of multiple third target operations, the multiple third target operations are executed on the target list with the third query condition as the input query condition to generate and display a third display page; the third execution logic is to perform the first operation first, and then the second operation and the third operation simultaneously; the third display page includes fourth list data and data status information; the data status information is any one of the following: unprocessed, processing, and processed.
7. The data processing method according to any one of claims 1 to 5, characterized in that, The program code for performing the first operation is encapsulated in the first component, the program code for performing the second operation is encapsulated in the second component, the program code for performing the third operation is encapsulated in the third component, and the program code for performing the fourth operation is encapsulated in the fourth component. The execution logic between the components is based on the triggering information of the listening component, and the triggering callback function calls the component corresponding to the triggering information.
8. The data processing method according to any one of claims 1 to 5, characterized in that, The method further includes: If the target configuration information contains a custom parsing function identifier, after or during the execution of the first operation, the custom parsing function is used to convert the data format of the original list data obtained from the target list into the target format to obtain the target list data.
9. A data processing apparatus, characterized in that, The device includes: The receiving unit is configured to receive target configuration information input from the list development end for the target list, and to associate the target list with multiple preset operations and the execution logic of the multiple preset operations; the multiple preset operations include a first operation of calling the target interface corresponding to the target interface identifier, generating a query request using the input query conditions, and obtaining list data in the target list based on the query request; a second operation of generating a display page based on the obtained list data; a third operation of updating and sending the data status during the query process; and a fourth operation of combining the query conditions and pagination parameters based on the target pagination mode identifier to generate new query conditions and sending the new query conditions to the query condition input end of the first operation; the target configuration information includes the target interface identifier and the target pagination mode identifier; The determining unit is configured to determine a plurality of first target operations from the plurality of preset operations based on a first query condition input by the query terminal for querying the target list; the plurality of first target operations include the first operation and the second operation; The generation unit is configured to perform the first target operations on the target list according to the first execution logic of multiple first target operations, taking the first query condition as the input query condition, and generate and display a first display page; the first execution logic is to execute the first operation and the second operation in sequence; the first display page includes first list data obtained based on the first query condition.
10. A data processing system, characterized in that, It is configured to perform the data processing method as described in any one of claims 1-8.