Data paging query method and device, electronic equipment and storage medium

By modifying the initial parameters of the data pagination query request to custom parameters and using a pagination interceptor to generate the query statement, the issues of flexibility and version conflict in data pagination queries were resolved, and stable data pagination queries were achieved.

CN115576977BActive Publication Date: 2026-05-15AGRICULTURAL BANK OF CHINA
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
AGRICULTURAL BANK OF CHINA
Filing Date
2022-10-24
Publication Date
2026-05-15

AI Technical Summary

Technical Problem

Existing technologies suffer from poor flexibility in data pagination queries and the risk of version conflicts, leading to query anomalies.

Method used

By modifying the initial pagination parameters corresponding to the data pagination query request to custom pagination parameters, a data pagination query statement is generated. The pagination method is intercepted using a predefined pagination interceptor, and the query is executed based on the custom parameters.

Benefits of technology

It enables more flexible data pagination queries and avoids query anomalies caused by version conflicts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115576977B_ABST
    Figure CN115576977B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a data paging query method and device, electronic equipment and a storage medium. In response to a data paging query request, an initial paging parameter corresponding to the data paging query request is modified into a self-defined paging parameter; based on the self-defined paging parameter, a data paging query statement is generated, and the data paging query statement is executed to perform data paging query in a database. The technical solution of the embodiments of the present application can not only more flexibly perform data paging query, but also can avoid the situation that data paging query is abnormal due to version conflict.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and in particular to a data pagination query method, apparatus, electronic device, and storage medium. Background Technology

[0002] In related technologies, data pagination queries are typically performed based on pagination parameters within a data pagination plugin. If the pagination query requirements change, technical personnel need to modify the pagination parameters by altering the plugin's source code and then redeploy. Therefore, this modification method not only carries the risk of version conflicts but also suffers from poor flexibility in data pagination queries. Summary of the Invention

[0003] In view of the above problems, the present invention provides a data pagination query method, apparatus, electronic device and storage medium, so as to not only enable more flexible pagination query of data, but also avoid the occurrence of data pagination query abnormalities due to version conflicts.

[0004] According to one aspect of the present invention, a data pagination query method is provided, the method comprising:

[0005] In response to a data pagination query request, the initial pagination parameters corresponding to the data pagination query request are modified to custom pagination parameters;

[0006] Based on the custom pagination parameters, a data pagination query statement is generated and executed to perform data pagination queries in the database.

[0007] Optionally, the method further includes:

[0008] Based on a predefined pagination object, custom pagination parameters are obtained from the predefined pagination class used to create the pagination object.

[0009] Optionally, modifying the initial pagination parameters corresponding to the data pagination query request to custom pagination parameters includes:

[0010] Intercept the pagination method corresponding to the data pagination query request;

[0011] Determine the initial pagination parameters in the pagination method, and modify the initial pagination parameters to custom pagination parameters.

[0012] Optionally, the interception of the pagination method corresponding to the data pagination query request includes:

[0013] Invoke a predefined pagination interceptor to intercept the pagination method corresponding to the data pagination query request.

[0014] Optionally, the step of intercepting the pagination method corresponding to the data pagination query request by invoking a predefined pagination interceptor includes:

[0015] If the method to be executed is determined, and it is determined to be a pagination method corresponding to the data pagination query request, then a predefined pagination interceptor is invoked to intercept the pagination method.

[0016] Optionally, before invoking the predefined pagination interceptor, the method further includes:

[0017] Register the pagination interceptor.

[0018] Optionally, generating a data pagination query statement based on the custom pagination parameters includes:

[0019] Based on a predefined parameter setting object, the custom pagination parameters are reassigned to the entry parameters of the pagination query statement generation method corresponding to the data pagination query request;

[0020] After the assignment is completed, the pagination query statement generation method is called to generate the data pagination query statement.

[0021] According to another aspect of the present invention, a data pagination query apparatus is provided. The apparatus includes:

[0022] The parameter modification module is used to modify the initial pagination parameters corresponding to the data pagination query request to custom pagination parameters in response to the data pagination query request.

[0023] The pagination query module is used to generate a data pagination query statement based on the custom pagination parameters, and execute the data pagination query statement to perform data pagination queries in the database.

[0024] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0025] At least one processor; and

[0026] A memory communicatively connected to the at least one processor; wherein,

[0027] The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the data paging query method according to any embodiment of the present invention.

[0028] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the data paging query method according to any embodiment of the present invention.

[0029] The technical solution of this invention receives a data pagination query request and modifies the initial pagination parameters corresponding to the request to custom pagination parameters. Then, based on the custom pagination parameters, a data pagination query statement can be generated and executed to perform data pagination queries in the database. This technical solution not only enables more flexible data pagination queries but also avoids data pagination query anomalies caused by version conflicts.

[0030] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0031] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0032] Figure 1 This is a flowchart illustrating a data pagination query method provided in Embodiment 1 of the present invention;

[0033] Figure 2 This is a schematic diagram of the structure of a data pagination query device provided in Embodiment 3 of the present invention;

[0034] Figure 3 This is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. Detailed Implementation

[0035] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0036] It should be noted that the terms "comprising" and "having" and any variations thereof in the specification, claims and accompanying drawings of this invention are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are explicitly listed, but may include other steps or units that are not explicitly listed or that are inherent to such processes, methods, products or devices.

[0037] Example 1

[0038] Figure 1 This is a flowchart illustrating a data pagination query method provided in Embodiment 1 of the present invention. This embodiment is applicable to scenarios involving paginated data queries. The data pagination query method can be executed by a data pagination query device, which can be implemented in hardware and / or software. This data pagination query device can be configured in electronic devices such as computers or servers, for example, in electronic devices that provide data pagination query functionality. Figure 1 As shown, the method in this embodiment includes:

[0039] S110. In response to the data pagination query request, modify the initial pagination parameters corresponding to the data pagination query request to custom pagination parameters.

[0040] The data pagination query request can be understood as a request used to perform data pagination queries. There are several ways to obtain a data pagination query request, such as receiving a click operation on the data pagination query control and generating a data pagination query request based on the click operation; or receiving a data pagination query instruction entered in the data pagination query input box and generating a data pagination query request based on the data pagination query instruction. The data pagination query request may include the database name, query keywords, and query conditions, etc. Initial pagination parameters can be understood as default pagination parameters set for how the data query results should be paginated. In this embodiment of the invention, the initial pagination parameters are pagination parameters set in the programming for the data pagination query function. Initial pagination parameters may include the current page number, total number of records (assigned by the interceptor), total number of pages, and number of records displayed per page (initial value set to 500), etc. The number of records displayed per page can be understood as the maximum number of query data records that can be included per page. Custom pagination parameters can be understood as pagination parameters set according to actual query needs. It is understood that, in this embodiment of the invention, the custom pagination parameters may include at least one of the current page number, total number of pages, and number of items displayed per page.

[0041] Specifically, the system receives data pagination query requests. Upon receiving a data pagination query request, it can obtain custom pagination parameters and intercept the initial pagination parameters corresponding to the data pagination query request. After intercepting the initial pagination parameters, it can modify the intercepted initial pagination parameters to the obtained custom pagination parameters, thereby modifying the initial pagination parameters corresponding to the data pagination query request without modifying the code.

[0042] In this embodiment of the invention, obtaining custom pagination parameters may include: obtaining custom pagination parameters from a predefined pagination class used to create the pagination object, based on a predefined pagination object.

[0043] The predefined pagination object can be an object created based on a predefined pagination class. In other words, the predefined pagination object is an instance of a predefined pagination class. The predefined pagination object can be used to retrieve custom pagination parameters; that is, it can be used to retrieve custom pagination parameters. The predefined pagination class can be understood as a predefined class used to configure custom pagination parameters.

[0044] Specifically, a predefined pagination class is used. A pagination object is created based on this pagination class. After the pagination object is created, its methods and / or properties for setting pagination parameters can be called through the pagination object created from the pagination class; that is, the methods and / or variables in the pagination class used for setting pagination parameters can be called. This allows the access to custom pagination parameters configured in the pagination class. It is understood that custom pagination parameters can be configured in the methods and / or variables in the pagination class used for setting pagination parameters. It should be noted that after creating a pagination object based on the pagination class, the methods and / or variables in the pagination class used for setting pagination parameters can be used as methods and / or properties in the pagination object used for setting pagination parameters.

[0045] Optionally, modifying the initial pagination parameter corresponding to the data pagination query request to a custom pagination parameter may include: intercepting the pagination method corresponding to the data pagination query request; determining the initial pagination parameter in the pagination method; and modifying the initial pagination parameter to a custom pagination parameter.

[0046] The pagination method can be understood as a method with paginated query functionality. It can be used to query data and paginate the query results. The pagination method can have initial pagination parameters set.

[0047] Specifically, upon receiving a data query request, the pagination method corresponding to the request can be determined. This pagination method is then loaded into memory. After the pagination method is loaded into memory but before it runs, it can be intercepted. Upon interception, the initial pagination parameters within the method can be determined. These initial pagination parameters can then be modified to custom pagination parameters.

[0048] Optionally, intercepting the pagination method corresponding to the data pagination query request may include: invoking a predefined pagination interceptor to intercept the pagination method corresponding to the data pagination query request. The predefined pagination interceptor can be understood as a predefined interceptor used to intercept the pagination method before its execution.

[0049] Furthermore, the step of intercepting the pagination method corresponding to the data pagination query request by calling a predefined pagination interceptor may include: determining the method to be executed; if the method to be executed is determined to be the pagination method corresponding to the data pagination query request, then calling the predefined pagination interceptor to intercept the pagination method.

[0050] The method to be executed can be understood as the method that is about to be executed, that is, the method that needs to be executed in the next moment after the current moment.

[0051] In this embodiment of the invention, a method to be executed is determined. This allows the identification of the method to be executed to be determined. The identification of the method to be executed can then be compared with the identification of a pagination method. If the identification of the method to be executed matches the identification of the pagination method, then the method to be executed can be determined to be the pagination method corresponding to the data pagination query request. Therefore, a predefined pagination interceptor can be invoked to intercept the method to be executed; that is, a predefined pagination interceptor can be invoked to intercept the pagination method.

[0052] Based on the above embodiments, before invoking the predefined pagination interceptor, the method further includes: registering the pagination interceptor to facilitate efficient loading of the pagination interceptor, thereby enabling the use of the interceptor.

[0053] S120. Based on the custom pagination parameters, generate a data pagination query statement and execute the data pagination query statement to perform data pagination query in the database.

[0054] Among them, the pagination query statement can be a database execution statement generated based on custom pagination parameters, which can be used to query data in the database and paginate the query results.

[0055] Specifically, after modifying the initial pagination parameters corresponding to the data pagination query request to custom pagination parameters, a data pagination query statement can be generated based on the custom pagination parameters. This data pagination query statement can then be applied to the database and executed within the database. This allows for data querying and pagination of the query results within the database.

[0056] In this embodiment of the invention, generating a data pagination query statement based on the custom pagination parameters may include: reassigning the custom pagination parameters to the input parameters of the pagination query statement generation method corresponding to the data pagination query request based on a predefined parameter setting object; and after the assignment is completed, calling the pagination query statement generation method to generate the data pagination query statement.

[0057] The parameter setting object can be used to reassign custom parameters to the input parameters of the pagination query generation method. The pagination query generation method can be a predefined method for generating pagination queries. The input parameters of the pagination query generation method can be understood as the formal parameters of the pagination query generation method. Reassigning custom pagination parameters to the input parameters of the pagination query generation method can be understood as assigning the custom pagination parameters as actual parameters to the formal parameters of the pagination query generation method.

[0058] The technical solution of this invention receives a data pagination query request and modifies the initial pagination parameters corresponding to the request to custom pagination parameters. Then, based on the custom pagination parameters, a data pagination query statement can be generated and executed to perform data pagination queries in the database. This technical solution not only enables more flexible data pagination queries but also avoids data pagination query anomalies caused by version conflicts.

[0059] Example 2

[0060] Embodiment 3 of this invention provides an optional embodiment of a data pagination query method, taking the built-in pagination plugin of MybatisPlus as an example, and performing data pagination queries based on the built-in pagination plugin of MybatisPlus. Specific implementation details can be found in the following embodiments. Technical terms that are the same as or corresponding to those in the above embodiments will not be repeated here.

[0061] The method in this embodiment specifically includes the following steps:

[0062] 1. When the MybatisPlus built-in pagination plugin receives a data pagination query request, it can determine the method to be executed. If the method to be executed is a pagination method corresponding to the data pagination query request, a predefined pagination interceptor can be called to intercept the pagination method.

[0063] 2. After intercepting the pagination method, custom pagination parameters can be obtained from the predefined pagination class (Page class) used to create the pagination object, based on a predefined pagination object (Page object). The initial pagination parameters in the pagination method can also be determined. Furthermore, the initial pagination parameters can be modified to custom pagination parameters. In other words, the initial pagination parameters in the pagination method can be modified to custom pagination parameters.

[0064] 3. After modification, the custom pagination parameters can be reassigned to the entry parameters of the pagination query statement (pagination query SQL) generation method corresponding to the data pagination query request based on the predefined parameter setting object (StatementHandler).

[0065] 4. After the assignment is complete, the pagination query statement generation method is called to generate the data pagination query statement. The data pagination query statement can then be executed to perform data pagination queries in the database.

[0066] The technical solution of this invention, based on the built-in pagination plugin of MybatisPlus, can intercept the database pagination query statement that needs to be paginated from the source, and concatenate the database pagination query statement that meets the business requirements to realize a new pagination plugin. This not only enables more flexible pagination querying of data, but also avoids the situation where data pagination query is abnormal due to version conflicts.

[0067] Example 3

[0068] Figure 2 This is a schematic diagram of a data pagination query device provided in Embodiment 3 of the present invention. Figure 2 As shown, the device includes a parameter modification module 210 and a pagination query module 220.

[0069] The parameter modification module 210 is used to modify the initial pagination parameters corresponding to the data pagination query request to custom pagination parameters in response to the data pagination query request; the pagination query module 220 is used to generate a data pagination query statement based on the custom pagination parameters and execute the data pagination query statement to perform data pagination query in the database.

[0070] The technical solution of this invention receives a data pagination query request through a parameter modification module, and modifies the initial pagination parameters corresponding to the data pagination query request to custom pagination parameters. Then, a pagination query module can generate a data pagination query statement based on the custom pagination parameters, and execute the data pagination query statement to perform data pagination queries in the database. The technical solution of this invention not only enables more flexible data pagination queries but also avoids data pagination query anomalies caused by version conflicts.

[0071] Optionally, the device further includes a custom parameter acquisition module, used to acquire custom paging parameters from a predefined paging class used to create the paging object, based on a predefined paging object.

[0072] Optionally, a custom parameter acquisition module is specifically used to intercept the pagination method corresponding to the data pagination query request; determine the initial pagination parameters in the pagination method; and modify the initial pagination parameters to custom pagination parameters.

[0073] Optionally, the custom parameter acquisition module includes a method interception unit, which is used to call a predefined pagination interceptor to intercept the pagination method corresponding to the data pagination query request.

[0074] Optionally, the method interception unit is specifically used to determine the method to be executed. If the method to be executed is determined to be a pagination method corresponding to the data pagination query request, then a predefined pagination interceptor is invoked to intercept the pagination method.

[0075] Optionally, the device further includes an interceptor registration module for registering the pagination interceptor before the predefined pagination interceptor is invoked.

[0076] Optionally, the pagination query module 220 is specifically used to reassign the custom pagination parameters to the entry parameters of the pagination query statement generation method corresponding to the data pagination query request based on a predefined parameter setting object; after the assignment is completed, the pagination query statement generation method is called to generate the data pagination query statement.

[0077] The data pagination query device provided in this embodiment of the invention can execute the data pagination query method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0078] It is worth noting that the various units and modules included in the above-mentioned data pagination query device are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the protection scope of the embodiments of the present invention.

[0079] Example 4

[0080] Figure 3 A schematic diagram of an electronic device 10 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0081] like Figure 3 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0082] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0083] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as data paging query methods.

[0084] In some embodiments, the data paging query method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the data paging query method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the data paging query method by any other suitable means (e.g., by means of firmware).

[0085] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0086] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0087] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0088] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0089] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0090] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0091] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0092] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A data pagination query method, characterized in that, include: In response to a data pagination query request, the initial pagination parameters corresponding to the data pagination query request are modified to custom pagination parameters; wherein, the initial pagination parameters are default pagination parameters set for how the data query results should be paginated, and at least include the current page number, total number of records, total number of pages, and number of items displayed per page; the custom pagination parameters are pagination parameters set according to actual query needs, and the custom pagination parameters include at least one of the current page number, total number of pages, and number of items displayed per page; Based on the custom pagination parameters, a data pagination query statement is generated and executed to perform data pagination queries in the database. The method further includes: Based on a predefined pagination object, custom pagination parameters are obtained from the predefined pagination class used to create the pagination object.

2. The method according to claim 1, characterized in that, The step of modifying the initial pagination parameters corresponding to the data pagination query request to custom pagination parameters includes: Intercept the pagination method corresponding to the data pagination query request; Determine the initial pagination parameters in the pagination method, and modify the initial pagination parameters to custom pagination parameters.

3. The method according to claim 2, characterized in that, The interception of the pagination method corresponding to the data pagination query request includes: Invoke a predefined pagination interceptor to intercept the pagination method corresponding to the data pagination query request.

4. The method according to claim 3, characterized in that, By invoking a predefined pagination interceptor, the pagination method corresponding to the data pagination query request is intercepted, including: If the method to be executed is determined, and it is determined to be a pagination method corresponding to the data pagination query request, then a predefined pagination interceptor is invoked to intercept the pagination method.

5. The method according to claim 3, characterized in that, Before invoking the predefined paging interceptor, the method further includes: Register the pagination interceptor.

6. The method according to claim 1, characterized in that, The step of generating a data pagination query statement based on the custom pagination parameters includes: Based on a predefined parameter setting object, the custom pagination parameters are reassigned to the entry parameters of the pagination query statement generation method corresponding to the data pagination query request; After the assignment is completed, the pagination query statement generation method is called to generate the data pagination query statement.

7. A data pagination query device, characterized in that, include: The parameter modification module is used to respond to a data pagination query request by modifying the initial pagination parameters corresponding to the data pagination query request to custom pagination parameters. The initial pagination parameters are default pagination parameters set for how the data query results should be paginated, and at least include the current page number, total number of records, total number of pages, and number of records displayed per page. The custom pagination parameters are pagination parameters set according to actual query requirements, and include at least one of the following: current page number, total number of pages, and number of records displayed per page. The pagination query module is used to generate a data pagination query statement based on the custom pagination parameters, and execute the data pagination query statement to perform data pagination query in the database; The device further includes: A custom parameter retrieval module is used to retrieve custom pagination parameters from a predefined pagination class used to create the pagination object, based on a predefined pagination object.

8. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the data paging query method according to any one of claims 1-6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the data paging query method according to any one of claims 1-6.