WO2019085117A1 - 协调数据显示方法、应用服务器及存储介质 - Google Patents

协调数据显示方法、应用服务器及存储介质 Download PDF

Info

Publication number
WO2019085117A1
WO2019085117A1 PCT/CN2017/113719 CN2017113719W WO2019085117A1 WO 2019085117 A1 WO2019085117 A1 WO 2019085117A1 CN 2017113719 W CN2017113719 W CN 2017113719W WO 2019085117 A1 WO2019085117 A1 WO 2019085117A1
Authority
WO
WIPO (PCT)
Prior art keywords
page
data
value
number value
interface
Prior art date
Application number
PCT/CN2017/113719
Other languages
English (en)
French (fr)
Inventor
张勋
王刚
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019085117A1 publication Critical patent/WO2019085117A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality

Definitions

  • the present application relates to the field of data information query, and in particular, to a coordinated data display method, an application server, and a storage medium.
  • the data requested by the end user paging is derived from the data returned by the external interface invoked by the service system, and the number of data displayed per page of the terminal user query is limited by the number of data returned per page of the external interface.
  • the number of data per page displayed by an end user query is different from the number of data records per page returned by the external interface each time.
  • the service system either obtains the data information of all the page records in the external interface at one time, stores them according to the number of data information that the user wants, or records the data information of the page returned each time by the called external interface.
  • the number of bars is the standard, and the number of data sent to the terminal each time is the same as that specified by the calling external interface.
  • the present application provides a method and application server for coordinating data display, which aims to solve the above-mentioned problem of huge consumption of storage resources, or limited display number, and cannot be customized according to user requirements.
  • the present application provides a method for coordinating data display, the method comprising the following steps:
  • the first serial number corresponding to the first data of the page record to be queried and the second serial number corresponding to the last data are obtained according to the query instruction of the terminal user;
  • step A comprises:
  • the calculation formula of the sequence number value corresponding to the first piece of data of any pre-stored page record is R ⁇ (P ⁇ 1)+1, and the calculation formula of the sequence number value corresponding to the last piece of data of any pre-stored page record is R ⁇ P.
  • P is the page number value corresponding to any page
  • R is the number of data records of any page.
  • the first analysis rule pre-stored in step B is:
  • the quotient result is rounded up to obtain the first rounded up value, and the first rounded up value is the minimum value of the page range of the page returned by the interface to be called;
  • the second quotient result is the maximum value of the page number range of the page returned by the interface to be called, or the second request
  • the result of the quotient is rounded up to get the second rounded up value
  • the second rounded up value is the maximum value of the page range of the page returned by the interface to be called.
  • the first total sequence value and the first total data number are subjected to a quotient process by using the first total number of data as a divisor, and the second total data number is a divisor, and the second serial number value and the second total data are used.
  • the number of transactions is processed.
  • the second analysis rule is: substituting the minimum value of the page code range into the preset specific formula to calculate the minimum value of the sequence value range corresponding to the data recorded by the page returned by the interface to be called, and the page number range
  • the maximum value and the second total number of data strips are subjected to quadrature processing, and the maximum value of the sequence value range corresponding to the data recorded by the page returned by the interface to be called is obtained.
  • the first serial number value is the same as the third serial number value
  • the second serial number value is the same as the fourth serial number value
  • the present application further provides an application server, including: a memory, a processor, and a coordinated data display system stored on the memory and operable on the processor, when the coordinated data display system is executed by the processor.
  • the processor executes the coordinated data display system, and the step of obtaining the first serial number value corresponding to the first data and the second serial number corresponding to the last data of the page record to be queried according to the query instruction of the terminal includes:
  • the present application further provides a computer readable storage medium storing a coordinated data display system, the coordinated data display system being executable by at least one processor to cause at least one processor to perform the above The steps of the coordinated data display method.
  • the coordinated data display method, the application server, and the computer readable storage medium proposed by the present application firstly obtain the first serial number corresponding to the first data of the page record that needs to be queried according to the query instruction of the terminal. a second sequence number corresponding to the last data; and secondly, analyzing the first sequence number value, the second sequence number value, and the second total number of data records of the page record returned by the interface to be invoked according to the pre-stored first analysis rule, To analyze the page number range of the page returned by the interface to be called; again, analyze the page number range of the page returned by the interface to be called and the second total number of data according to the pre-stored second analysis rule, to analyze the interface that needs to be called to return The sequence number value range corresponding to the data recorded by the page; and then, the third sequence number corresponding to the first sequence number value and the second serial number are selected from the range of the sequence number values corresponding to the data recorded by the page returned by the interface to be called.
  • the data between the fourth serial number value corresponding to the value is sent to the terminal, and recorded in the third serial number value and the fourth sequence Data between the value of the data page records to be queried.
  • it does not consume huge storage resources to store a large amount of data returned by the interface to be called, nor does it limit the number of displays. It can realize the number of times the interface is called according to the user's needs, and the customization of the calling interface is more flexible. Chemical.
  • FIG. 1 is a schematic diagram of an application environment according to an embodiment of the present application
  • FIG. 2 is a schematic diagram of a hardware architecture of the application server in FIG. 1;
  • FIG. 3 is a schematic diagram of a program module of a coordinated data display system of the present application.
  • FIG. 4 is a schematic diagram of an implementation process of a method for displaying coordinated data according to the present application.
  • FIG. 5 is a flow refinement diagram of step S3 in FIG. 4.
  • FIG. 1 is a schematic diagram of an application environment according to an embodiment of the present application.
  • the present application is applicable to an application environment including, but not limited to, the terminal 1, the application server 2, and the network 3.
  • the terminal 1 may be a mobile device, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (Personal Digital Assistant), a PAD (Tablet), a PMP (Portable Multimedia Player), a navigation device, or the like, and a mobile device.
  • PDA Personal Digital Assistant
  • PAD Tablett
  • PMP Portable Multimedia Player
  • navigation device or the like
  • fixed terminals such as digital TVs, desktop computers, notebooks, servers, and the like.
  • the application server 2 may be a computing device such as a rack server, a blade server, a tower server, or a rack server.
  • the application server 2 may be a stand-alone server or a server cluster composed of multiple servers.
  • Network 3 can be an intranet, an Internet, a Global System of Mobile communication (GSM), a Wideband Code Division Multiple Access (WCDMA), a 4G network, a 5G network. , wireless or wired networks such as Bluetooth and Wi-Fi.
  • GSM Global System of Mobile communication
  • WCDMA Wideband Code Division Multiple Access
  • 4G Fifth Generation
  • 5G Fifth Generation
  • wireless or wired networks such as Bluetooth and Wi-Fi.
  • the application server 2 is respectively connected to one or more terminals 1 (only one is shown) through the network 3, and each application 1 has an application client corresponding to the application server 2 installed and running. End (hereinafter referred to as "mobile terminal client").
  • the mobile terminal client is configured to perform data transmission and interaction between the mobile terminal client and the application server 2 in response to the operation of the mobile terminal user, and the terminal client is used for operation of the corresponding application server 2 and data between the application server 2 and the application server 2. Transfer and interaction.
  • the coordinated data display system 200 when the coordinated data display system 200 is installed and run in the application server 2, the coordinated data display system 200 operates, and the application server 2 obtains the needs of the mobile terminal client according to the data information query command sent by the mobile terminal client.
  • the number of data records recorded on the page of the query, and the number of times of the interface that needs to be called by the terminal client and the page number range of the page of the interface of the terminal client to be called are determined according to the number of data records of the page that the mobile terminal client needs to query.
  • the number of data that meets the page record of the query of the mobile terminal client is selected from the page returned by the interface of the called terminal client for display.
  • the number of times of calling the interface of the terminal client and the page information of the call are selected according to the requirements of the client of the mobile terminal, thereby avoiding the huge storage resource consumed by the interface of the terminal client that has been called many times, or the data displayed when the interface of the terminal client is invoked.
  • the number of pieces is limited by the number of pieces of data information recorded by the page returned by the interface of the terminal client, and the customized display is realized according to the needs of the user.
  • FIG. 2 it is a schematic diagram of the hardware architecture of the application server 2 in FIG.
  • the application server 2 includes, but is not limited to, a memory 21, a processor 22, and a communication interface 23 that are communicably connected to each other through a system bus.
  • FIG. 2 only shows the application server 2 with components 21-23, but it should be understood that not all illustrated components may be implemented, and more or fewer components may be implemented instead.
  • the memory 21 includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (for example, SD or DX memory, etc.), a random access memory (RAM), and a static random access.
  • Memory SRAM
  • ROM read only memory
  • EEPROM Electrically Erasable Programmable Read Only Memory
  • PROM Programmable Read Only Memory
  • magnetic memory magnetic disk, optical disk, and the like.
  • the memory 21 may be an internal storage unit of the application server 2, such as a hard disk or memory of the application server 2.
  • the memory 21 may also be an external storage device of the application server 2, such as a plug-in hard disk equipped on the application server 2, a smart memory card (SMC), and a secure digital (Secure Digital, SD). ) cards, flash cards, etc.
  • the memory 21 can also include both the internal storage unit of the application server 2 and its external storage device.
  • the memory 21 is generally used to store an operating system installed and running on the application server 2 and various types of application software, such as program code for coordinating the data display system 200, and the like. Further, the memory 21 can also be used to temporarily store various types of data that have been output or are to be output.
  • Processor 22 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments.
  • the processor 22 is typically used to control the overall operation of the application server 2, such as performing control and processing related to data interaction or communication with the terminal 1 and control and processing related to data interaction or communication with an external interface.
  • the processor 22 is configured to run program code or process data stored in the memory 21, such as running the coordinated data display system 200 or the like.
  • the communication interface 23 includes a wireless network interface or a wired network interface, which is typically used to establish a communication connection between the application server 2 and other electronic devices.
  • the communication interface 23 is mainly used to connect the application server 2 to one or more terminals 1 through the network 3, and establish a data transmission channel and a communication connection between the application server 2 and one or more terminals 1.
  • another communication interface (not shown in FIG. 2) is used to establish a data transmission and communication connection between the application server 2 and the terminal client for the coordinated data display system 200 to call the terminal.
  • the interface data of the client, the coordinated data display system 200 invokes the data information returned by the interface of the terminal client according to the data query instruction transmitted by the one or more mobile terminal clients, thereby coordinating the page record displayed between the one or more terminals and other terminals. Data information.
  • the application server 2 may further include a display (not shown in the figure, not included in the embodiment), and the application server 2 is installed and running on the application server 2, and the user can directly pass through the application server 2.
  • the application client directly queries the required data information, and the display of the application server 2 directly displays the information of the page that the user needs to query.
  • the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch sensor, or the like in some embodiments.
  • FIG. 3 is a schematic diagram of a program module of the coordinated data display system 200 of the present application.
  • the coordinated data display system 200 can be partitioned into one or more modules, one or more modules being stored in the memory 21 and by one or more processors (in this implementation) The example is executed by the processor 22) to complete the application.
  • the coordinated data display system 200 is divided into an acquisition module 201, a first analysis module 202, a second analysis module 203, and a screening module 204.
  • a module referred to in this application refers to a series of computer program instructions that are capable of performing a particular function, and are more suitable than the program to describe the execution of the coordinated data display system 200 in the application server 2.
  • the obtaining module 201 is configured to obtain, according to the query instruction of the terminal, a first serial number value corresponding to the first data of the page record to be queried and a second serial number value corresponding to the last data.
  • the first analyzing module 202 is configured to analyze, according to the first analysis rule pre-stored in the memory of the application server 2, the first serial number value, the second serial number value, and the second total data number of the page record returned by the interface to be called each time, To analyze the page range of the page returned by the interface that needs to be called.
  • the second analysis module 203 is configured to analyze, according to the second analysis rule pre-stored in the memory of the application server 2, the page number range of the page returned by the interface to be invoked and the second total data number, to analyze the page returned by the interface to be called.
  • the range of serial number values corresponding to the recorded data is configured to analyze, according to the second analysis rule pre-stored in the memory of the application server 2, the page number range of the page returned by the interface to be invoked and the second total data number, to analyze the page returned by the interface to be called.
  • the filtering module 204 is configured to filter, in a range of sequence number values corresponding to the data recorded by the page returned by the interface to be invoked, a third serial number value corresponding to the first serial number value and a fourth serial number value corresponding to the second serial number value. The data between them is sent to the terminal, and the data recorded between the third serial number value and the fourth serial number value is the data recorded on the page to be queried.
  • calculation formula of the sequence number corresponding to the first data of any page record pre-stored in the memory of the application package server 2 is R ⁇ (P ⁇ 1)+1, and any page pre-stored in the memory of the application package server 2 is used.
  • the calculation formula of the sequence number value corresponding to the last data of the record is R ⁇ P, where P is the page number value corresponding to any page, and R is the number of data records of any page record.
  • the pre-stored first analysis rule is: performing a business negotiation process on the first serial number value and the first total data data number to obtain a first business search result, wherein the first business search result is a minimum of a page number range of the page returned by the interface. a value, or rounding the first search result to obtain a first rounded up value, the first rounded up value is a minimum value of a page range of the page returned by the interface;
  • the second quotient result is the maximum value of the page number range of the page returned by the interface, or the second request quotient
  • the result is rounded up to get the second rounded up value
  • the second rounded up value is the maximum value of the page range of the page returned by the interface to be called.
  • the second analysis rule is: performing a quadrature process on the minimum value of the page number range and the second total number of data strips, and obtaining the minimum value of the sequence value range corresponding to the data of the page record returned by the interface to be called, and the maximum value of the page number range. And performing a quadrature process with the second total number of data strips, and obtaining the maximum value of the sequence value range corresponding to the data recorded by the page returned by the interface to be called.
  • the first sequence number value is the same as the third sequence number value
  • the second sequence number value is the same as the fourth sequence number value.
  • the number of data that can be displayed on the display screen of the terminal is fixed, that is, the number of data displayed on each page of the terminal query, and the serial number corresponding to the data displayed on each page is continuously.
  • the page number value 3 and the number of pieces of information recorded on the third page are 8, and the first sequence value corresponding to the first piece of information corresponding to the third page is: 8 ⁇ (3-1) +1 is equal to 17, and the second sequence value corresponding to the last piece of information corresponding to page 3 is: 8 ⁇ 3 is equal to 24.
  • the second total number of data records recorded on each page returned by the interface corresponding to the terminal that the application server 2 needs to invoke is 5.
  • the first serial number value 17 is a dividend
  • the first total information number 8 is a divisor.
  • the first serial number value 17 and the second total information strip number 8 are known, and the first serial number value 17 is not the second total data strip number 8
  • An integer multiple of the page is rounded up to obtain the first rounded up value of 3, and the first rounded up value of 3 is the page returned by the interface corresponding to the terminal that the application server 2 needs to call.
  • the second serial number value 24 is the dividend
  • the second total data number 5 is the divisor
  • the second serial number value 24 is not the integer multiple of the second total data number 5, then the second evaluation result is 24/5. Rounding up to get a second rounded up value of 5, and taking the second upward rounded value of 5 is the maximum value of the page range of the page returned by the interface of the terminal called by the application server 2.
  • the application server 2 needs to call the interface of the terminal 3 times, and the page number of the called page ranges from 3-5. Since the number of pieces of data recorded on the page returned by the interface of the terminal is 5, the range of the sequence number corresponding to the data information recorded on the third page, the fourth page, and the fifth page of the application server 2 is: [5 ⁇ ( 3-1) +1] to (5 ⁇ 5), that is, 11 to 25, from the data information recorded between the sequence number value 11 and the sequence number value 25, the record is recorded in the sequence number value of 17 to the serial number value. Data information between 24, and the data information recorded between the serial number value 17 and the serial number value 24 is sent to the query terminal used by the user for display by the query terminal used by the user.
  • the obtained first business result is the page returned by the interface to be called.
  • the obtained second search result is the maximum value of the page range of the page returned by the interface to be called.
  • the first module value corresponding to the first data of the page record to be queried and the second serial number corresponding to the last data are obtained by the acquiring module according to the query instruction of the terminal;
  • the module analyzes the first serial number value, the second serial number value, and the second total data number of the page record returned by the interface to be called each time according to the pre-stored first analysis rule, to analyze the page number of the page returned by the interface to be called.
  • the second analysis module analyzes the page number range of the page returned by the interface to be called and the second total number of data according to the pre-stored second analysis rule, to analyze the sequence number corresponding to the data recorded by the page returned by the interface to be called.
  • a filtering module that filters out a third serial number value corresponding to the first serial number value and a fourth serial number value corresponding to the second serial number value from a range of sequence number values corresponding to the data recorded by the page returned by the interface to be invoked
  • the data between the third sequence number and the fourth sequence number is the page record that needs to be queried.
  • the data In this way, it does not consume huge storage resources to store a large amount of data returned by the interface to be called, nor does it limit the number of displays, and can be implemented according to user needs.
  • the number of times the interface is called, the customization of the calling interface is more flexible.
  • FIG. 5 is a schematic flowchart of an implementation process of a coordinated data display method according to the present application.
  • the coordinated data display method includes:
  • Step S1 Acquire a first sequence number value corresponding to the first piece of data of the page record to be queried and a second sequence number value corresponding to the last piece of data.
  • Step S2 analyzing the first serial number value, the second serial number value, and the second total data number of the page record returned by the interface to be called each time, to analyze the page number range of the page returned by the interface to be called.
  • Step S3 analyzing the page number range of the page returned by the interface to be called and the second total data harmonin to analyze the sequence value range corresponding to the data recorded by the page returned by the interface to be called.
  • step S4 the data of the page record to be queried is selected from the sequence number value range.
  • each step is specifically: first, the first sequence number corresponding to the first data of the page record to be queried and the second sequence number corresponding to the last data are obtained according to the query instruction of the terminal. Secondly, according to the first analysis rule pre-stored in the memory of the application server 2, analyzing the first serial number value, the second serial number value, and the second total data number of the page record returned by the interface to be called each time, to analyze the need to call The page number range of the page returned by the interface; again, analyzing the page number range of the page returned by the interface to be called and the second total number of data according to the second analysis rule pre-stored in the memory of the application server 2, to analyze the interface to be called The range of the sequence number value corresponding to the data recorded by the returned page; finally, the third sequence number corresponding to the first sequence number value and the second record are selected from the range of the sequence number values corresponding to the data recorded by the page returned by the interface to be called.
  • the calculation formula of the sequence number corresponding to the first data of any page record pre-stored in the memory of the application package server 2 is R ⁇ (P-1)+1, and the last data of any page record pre-stored in the memory of the application package server 2 is used.
  • the corresponding sequence number value is calculated as R ⁇ P, where P is the page number value corresponding to any page, and R is the number of data records recorded on any page.
  • the pre-stored first analysis rule is: performing a business negotiation process on the first serial number value and the first total data data number to obtain a first business search result, wherein the first business search result is a minimum of a page number range of the page returned by the interface. a value, or rounding the first search result to obtain a first rounded up value, the first rounded up value is a minimum value of a page range of the page returned by the interface;
  • the second quotient result is the maximum value of the page number range of the page returned by the interface, or the second request quotient
  • the result is rounded up to get the second rounded up value
  • the second rounded up value is the maximum value of the page range of the page returned by the interface to be called.
  • the second analysis rule is: performing a quadrature process on the minimum value of the page number range and the second total number of data strips, and obtaining the minimum range of the sequence number value corresponding to the data of the page record returned by the interface to be called.
  • the value is a product of the maximum value of the page number range and the second total number of data strips, and the maximum value of the sequence value range corresponding to the data recorded by the page returned by the interface to be called is obtained.
  • the first sequence number value is the same as the third sequence number value
  • the second sequence number value is the same as the fourth sequence number value.
  • the number of data that can be displayed on the display screen of the terminal is fixed, that is, the number of data displayed on each page of the terminal query, and the serial number value corresponding to the data displayed on each page is continuous.
  • the embodiment obtains: firstly, according to the query instruction of the terminal, the first sequence number corresponding to the first data of the page record to be queried and the second sequence number corresponding to the last data are obtained; secondly, according to The first analysis rule pre-stored in the memory of the application server 2 analyzes the first serial number value, the second serial number value, and the second total data number of the page record returned by the interface to be called each time to analyze the returned interface that needs to be called.
  • the page number range of the page again, according to the second analysis rule pre-stored in the memory of the application server 2, the page number range of the page returned by the interface to be called and the second total number of data pieces are analyzed to analyze the page record returned by the interface to be called.
  • the range of the sequence number value corresponding to the data; finally, the third sequence value corresponding to the first sequence number value and the second sequence number value corresponding to the first sequence number value are selected from the range of the sequence number values corresponding to the data recorded by the page returned by the interface to be called.
  • the data between the fourth serial number values is sent to the terminal. In this way, it does not consume huge storage resources to store a large amount of data returned by the interface to be called, nor does it limit the number of displays. It can realize the number of times the interface is called according to the user's needs, and the customization of the calling interface is more flexible. Chemical.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本申请公开了一种应用服务器,包括存储器、处理器,所述存储器上有协调数据显示系统,协调数据显示系统被处理器执行时实现如下步骤:根据查询指令获取查询页面记录的第一条数据对应的第一序号值和最后一条数据对应的第二序号值;根据第一分析规则分析第一序号值、第二序号值及需要调用的接口返回的页面记录的第二总数据条数,以分析出该接口返回的页面的页码范围;根据第二分析规则分析页码范围及第二总数据条数,以分析出该接口返回的页面记录的数据对应的序号值范围,从序号值范围中筛选出需要显示的页面记录的数据信息发送至终端。本申请可以按照用户意愿控制用户查询的页面的数据信息。

Description

协调数据显示方法、应用服务器及存储介质
本申请要求于2017年11月01日提交中国专利局、申请号为201711060231.1、发明名称为“协调数据显示方法、应用服务器及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在申请中。
技术领域
本申请涉及数据信息查询领域,尤其涉及一种协调数据显示方法、应用服务器及存储介质。
背景技术
目前,终端用户分页请求的数据来源于服务系统调用的外部接口返回的数据,终端用户查询的每页展示的数据条数受限于外部接口每页返回的数据条数。通常,终端用户查询的每页展示的数据条数和外部接口每次返回的每页记录的数据条数不同。此时,服务系统要么一次性获取外部接口中所有页面记录的数据信息,储存下来再按照用户想要的数据信息的条数进行展示,要么以调用的外部接口每次返回的页面记录的数据信息的条数为标准,发送给终端每次展现数据的条数和调用的外部接口规定的相同。这两种方法弊端都很明显,前者会消耗巨大的存储资源,后者显示条数受限,不能根据用户的需求实现定制化。
发明内容
本申请提供一种协调数据显示的方法及应用服务器,旨在解决上述存在的消耗巨大的存储资源,或显示条数受限,不能根据用户的需求实现定制化的问题。
为实现上述目的,本申请提供一种协调数据显示的方法,该方法包括如下步骤:
A.根据终端用户的查询指令获取需要查询的页面记录的第一条数据对应的第一序号值和最后一条数据对应的第二序号值;
B.根据预存的第一分析规则分析第一序号值、第二序号值及需要调用的接口每次返回的页面记录的第二总数据条数,以分析出需要调用的接口返回的页面的页码范围;
C.根据预存的第二分析规则分析需要调用的接口返回的页面的页码范围及第二总数据条数,以分析出需要调用的接口返回的页面记录的数据对应的序号值范围;
D.从需要调用的接口返回的页面记录的数据对应的序号值范围中筛选出记录在与第一序号值对应的第三序号值和与第二序号值对应的第四序号值之间的数据,并发送至终端,则记录在第三序号值和第四序号值之间的数据为需要查询的页面记录的数据。
优选地,步骤A包括:
获取需要查询的页面对应的第一页码值及需要查询的页面中记录的第一总数据条数;
将第一页码值和第一总数据条数代入预存的任意页面记录的第一条数据对应的序号值计算公式,计算出第一序号值,将第一页码值和第一总数据条数代入预存的任意页面记录的最后一条数据对应的序号值计算公式,计算出第二序号值。
优选地,预存的任意页面记录的第一条数据对应的序号值计算公式为R×(P-1)+1,预存的任意页面记录的最后一条数据对应的序号值计算公式为R×P,其中,P为任意页面对应的页码值,R为任意页面记录的数据条数。
优选地,在步骤B中预存的第一分析规则为:
对第一序号值和第一总数据条数进行求商处理,得到第一求商结果,则第一求商结果为需要调用的接口返回的页面的页码范围的最小值,或将第一求商结果向上取整以得到第一向上取整值,则第一向上取整值为需要调用的接口返回的页面的页码范围的最小值;
对第二序号值和第二总数据条数进行求商处理,得到第二求商结果,则第二求商结果为需要调用的接口返回的页面的页码范围的最大值,或将第二求商结果向上取整以得到第二向上取整值,则第二向上取整值为需要调用的接口返回的页面的页码范围的最大值。
优选地,以第一总数据条数为除数,对第一序号值和第一总数据条数进行求商处理,以第二总数据条数为除数,对第二序号值和第二总数据条数进行求商处理。
优选地,在步骤C中,第二分析规则为:将页码范围的最小值代入预设的特定公式计算出需要调用的接口返回的页面记录的数据对应的序号值范围的最小值,对页码范围的最大值和第二总数据条数进行求积处理,得到需要调用的接口返回的页面记录的数据对应的序号值范围的最大值。
优选地,第一序号值与第三序号值相同,第二序号值与第四序号值相同。
为实现上述目的,本申请还提供一种应用服务器,该应用服务器包括,存储器、处理器及存储在存储器上并可在处理器上运行的协调数据显示系统,协调数据显示系统被处理器执行时可实现如下步骤:
根据终端的查询指令获取需要查询的页面记录的第一条数据对应的第一序号值和最后一条数据对应的第二序号值;
根据应用服务器内存中预存的第一分析规则分析第一序号值、第二序号值及应用服务器需要调用的接口每次返回的页面记录的第二总数据条数,以分析出需要调用的接口返回的页面的页码范围;
根据应用服务器内存中预存的第二分析规则分析需要调用的接口返回的页面的页码范围及第二总数据条数,以分析出需要调用的接口返回的页面记录的数据对应的序号值范围;
从需要调用的接口返回的页面记录的数据对应的序号值范围中筛选出 记录在与第一序号值对应的第三序号值和与第二序号值对应的第四序号值之间的数据,并发送至终端,则记录在第三序号值和第四序号值之间的数据为需要查询的页面记录的数据。
优选地,处理器执行协调数据显示系统,实现根据终端的查询指令获取需要查询的页面记录的第一条数据对应的第一序号值和最后一条数据对应的第二序号值的步骤包括:
获取需要查询的页面对应的第一页码值及需要查询的页面中记录的第一总数据条数;
将第一页码值和第一总数据条数代入应用服务器内存中预存的任意页面记录的第一条数据对应的序号值计算公式,计算出第一序号值,将第一页码值和第一总数据条数代入应用服务器内存中预存的任意页面记录的最后一条数据对应的序号值计算公式,计算出第二序号值。
为实现上述目的,本申请还提供一种计算机可读存储介质,计算机可读存储介质存储有协调数据显示系统,协调数据显示系统可被至少一个处理器执行,以使至少一个处理器执行如上述的协调数据显示方法的步骤。
相较于现有技术,本申请所提出的协调数据显示方法、应用服务器及计算机可读存储介质,首先,通过根据终端的查询指令获取需要查询的页面记录的第一条数据对应的第一序号值和最后一条数据对应的第二序号值;其次,根据预存的第一分析规则分析第一序号值、第二序号值及需要调用的接口每次返回的页面记录的第二总数据条数,以分析出需要调用的接口返回的页面的页码范围;再次,根据预存的第二分析规则分析需要调用的接口返回的页面的页码范围及第二总数据条数,以分析出需要调用的接口返回的页面记录的数据对应的序号值范围;接着,从需要调用的接口返回的页面记录的数据对应的序号值范围中筛选出记录在与第一序号值对应的第三序号值和与第二序号值对应的第四序号值之间的数据,并发送至终端,则记录在第三序号值和第四序号值之间的数据为需要查询的页面记录的数据。这样,既不会消耗巨大的存储资源存放大量的需要调用的接口返回的数据,也不会使显示条数受限,能够实现按用户需要调用接口的次数,比较灵活地实现了调用接口的定制化。
附图说明
图1为本申请一实施例的应用环境示意图;
图2为图1中应用服务器的硬件架构的示意图;
图3为本申请协调数据显示系统的程序模块示意图;
图4为本申请协调数据显示方法的实施流程示意图;
图5为图4中步骤S3的流程细化图。
具体实施方式
以下结合附图对本申请的原理和特征进行描述,所举实例只用于解释本 申请,并非用于限定本申请的范围。
如图1所示,图1为本申请一实施例的应用环境示意图。
在本实施例中,本申请可应用于包括,但不仅限于,终端1、应用服务器2、、网络3的应用环境中。其中,终端1可以是移动电话、智能电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、导航装置等等的可移动设备,以及诸如数字TV、台式计算机、笔记本、服务器等等的固定终端。
应用服务器2可以是机架式服务器、刀片式服务器、塔式服务器或机柜式服务器等计算设备,应用服务器2可以是独立的服务器,也可以是多个服务器所组成的服务器集群。
网络3可以是企业内部网(Intranet)、互联网(Internet)、全球移动通讯系统(Global System of Mobile communication,GSM)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、4G网络、5G网络、蓝牙(Bluetooth)、Wi-Fi等无线或有线网络。
在本实施例中,应用服务器2通过网络3分别与一个或多个终端1(图中仅示出一个)通信连接,每一个终端1中均安装并运行有与应用服务器2对应的应用程序客户端(后文简称“移动终端客户端”),。移动终端客户端用于响应移动终端用户的操作,在移动终端客户端与应用服务器2之间进行数据传输和交互,终端客户端用于相应应用服务器2的操作,与应用服务器2之间进行数据传输和交互。
本实施例中,当应用服务器2内安装并运行有协调数据显示系统200时,协调数据显示系统200运行,应用服务器2根据移动终端客户端所发送的数据信息查询指令,获取移动终端客户端需要查询的页面记录的数据条数,并根据获取的移动终端客户端需要查询的页面记录的数据条数判断需要调用终端客户端的接口的次数和需要调用的终端客户端的接口的页面的页码值范围,从调用的终端客户端的接口返回的页面中选出满足移动终端客户端查询的页面记录的数据条数进行显示。进而实现根据移动终端客户端的需求选择调用终端客户端的接口的次数和调用的页面信息,避免了调用过多次的终端客户端的接口而消耗巨大的存储资源,或调用终端客户端的接口时显示的数据条数受限于终端客户端的接口返回的页面记录的数据信息的条数的问题,实现了根据用户的需求实现定制化显示。
如图2所示,是图1中应用服务器2的硬件架构的示意图。由图2可知,在本实施例中,应用服务器2包括,但不仅限于,通过系统总线相互通信连接的存储器21、处理器22、通讯接口23。需要指出的是,图2仅示出了具有组件21-23的应用服务器2,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。
其中,存储器21至少包括一种类型的可读存储介质,可读存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、 电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等。在一些实施例中,存储器21可以是应用服务器2的内部存储单元,例如该应用服务器2的硬盘或内存。在另一些实施例中,存储器21也可以是应用服务器2的外部存储设备,例如应用服务器2上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。当然,存储器21还可以既包括应用服务器2的内部存储单元也包括其外部存储设备。本实施例中,存储器21通常用于存储安装并运行于应用服务器2的操作系统和各类应用软件,例如协调数据显示系统200的程序代码等。此外,存储器21还可以用于暂时地存储已经输出或者将要输出的各类数据。
处理器22在一些实施例中可以是中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器、或其他数据处理芯片。该处理器22通常用于控制应用服务器2的总体操作,例如执行与终端1进行数据交互或者通信相关的控制和处理以及与外部接口进行数据交互或者通信相关的控制与处理等。本实施例中,处理器22用于运行存储器21中存储的程序代码或者处理数据,例如运行协调数据显示系统200等。
通讯接口23包括无线网络接口或有线网络接口,该通讯接口23通常用于在应用服务器2与其他电子设备之间建立通信连接。本实施例中,通讯接口23主要用于通过网络3将应用服务器2与一个或多个终端1相连,在应用服务器2与一个或多个终端1之间的建立数据传输通道和通信连接。
需要说明的是,在本实施例中,另一通讯接口(图2中未示出)用于在应用服务器2与终端客户端之间建立数据传输和通信连接,供协调数据显示系统200调用终端客户端的接口数据,协调数据显示系统200根据一个或多个移动终端客户端传输的数据查询指令调用终端客户端的接口返回的数据信息,从而协调一个或多个终端与其他终端之间显示的页面记录的数据信息。
进一步需要说明的是,应用服务器2还可包括有显示器(图中未示出,本实施例中不包括),应用服务器2中安装并运行有应用程序客户端,用户可直接通过应用服务器2上的应用程序客户端直接查询需要的数据信息,应用服务器2的显示器直接显示用户需要查询的页面的信息。
显示器在一些实施例中可以是LED显示器、液晶显示器、触控式液晶显示器以及OLED(Organic Light-Emitting Diode,有机发光二极管)触摸器等。
至此,已经详细介绍了本申请各个实施例的应用环境和相关设备的硬件结构和功能。下面,将基于上述应用环境和相关设备,提出本申请的各个实施例。
如图3所示,图3为本申请协调数据显示系统200的程序模块示意图。
在本实施例中,协调数据显示系统200可以被分割成一个或多个模块,一个或多个模块被存储在存储器21中,并由一个或多个处理器(在本实施 例中为处理器22)所执行,以完成本申请。例如,在图3中,协调数据显示系统200被分割成获取模块201、第一分析模块202、第二分析模块203及筛选模块204。本申请所称的模块是指能够完成特定功能的一系列计算机程序指令段,比程序更适合于描述协调数据显示系统200在应用服务器2中的执行过程。
获取模块201,用于根据终端的查询指令获取需要查询的页面记录的第一条数据对应的第一序号值和最后一条数据对应的第二序号值。
第一分析模块202,用于根据应用服务器2的内存中预存的第一分析规则分析第一序号值、第二序号值及需要调用的接口每次返回的页面记录的第二总数据条数,以分析出需要调用的接口返回的页面的页码范围。
第二分析模块203,用于根据应用服务器2的内存中预存的第二分析规则分析需要调用的接口返回的页面的页码范围及第二总数据条数,以分析出需要调用的接口返回的页面记录的数据对应的序号值范围。
筛选模块204,用于从需要调用的接口返回的页面记录的数据对应的序号值范围中筛选出记录在与第一序号值对应的第三序号值和与第二序号值对应的第四序号值之间的数据,并发送至终端,则记录在第三序号值和第四序号值之间的数据为需要查询的页面记录的数据。
需要说明的是,应用包服务器2的内存中预存的任意页面记录的第一条数据对应的序号值计算公式为R×(P-1)+1,应用包服务器2的内存中预存的任意页面记录的最后一条数据对应的序号值计算公式为R×P,其中,P为任意页面对应的页码值,R为任意页面记录的数据条数。
预存的第一分析规则为:对第一序号值和第一总数据条数进行求商处理,得到第一求商结果,则第一求商结果为所述接口返回的页面的页码范围的最小值,或将第一求商结果向上取整以得到第一向上取整值,则第一向上取整值为所述接口返回的页面的页码范围的最小值;
对第二序号值和第二总数据条数进行求商处理,得到第二求商结果,则第二求商结果为所述接口返回的页面的页码范围的最大值,或将第二求商结果向上取整以得到第二向上取整值,则第二向上取整值为需要调用的接口返回的页面的页码范围的最大值。
以第一总数据条数为除数,对第一序号值和第一总数据条数进行求商处理,以第二总数据条数为除数,对第二序号值和第二总数据条数进行求商处理。
第二分析规则为:对页码范围的最小值和第二总数据条数进行求积处理,得到需要调用的接口返回的页面记录的数据对应的序号值范围的最小值,对页码范围的最大值和第二总数据条数进行求积处理,得到需要调用的接口返回的页面记录的数据对应的序号值范围的最大值。且在本实施例中第一序号值与第三序号值相同,第二序号值与第四序号值相同。
通常,终端的显示屏幕查所能显示的数据条数是固定的,也即为终端查询的每一页所显示的数据条数,并且每一页对应显示的数据对应的序号值是 连续的。
例如,用户需要查询第3页记录的8条信息,则获取页码值3和第3页记录的信息条数8,则第3页对应的第一条信息对应的第一序号值为:8×(3-1)+1等于17,第3页对应的最后一条信息对应的第二序号值为:8×3等于24。应用服务器2需要调用的终端对应的接口返回的每一页面记录的第二总数据条数为5。
则以第一序号值17为被除数,第一总信息条数8为除数,由第一序号值17和第二总信息条数8可知,第一序号值17不为第二总数据条数8的整数倍,则对第一求商结果17/8向上取整以得到第一向上取整值3,则第一向上取整值3为应用服务器2需要调用的终端对应的接口返回的页面的页码范围的最小值。同理,以第二序号值24为被除数,第二总数据条数5为除数,第二序号值24不为第二总数据条数5的整数倍,则对第二求商结果24/5向上取整以得到第二向上取整值5,且以第二向上取整值5为应用服务器2调用的终端的接口返回的页面的页码范围的最大值。
也即,应用服务器2需要调用终端的接口3次,且调用的页面的页码值的范围为3-5。由于终端的接口每次返回的页面记录的数据条数为5,则应用服务器2调用终端的第3页、第4页、第5页记录的数据信息对应的序号值范围为:[5×(3-1)+1]至(5×5),也即11至25,从记录在序号值为11至序号值为25之间的数据信息中筛选出记录在序号值为17至序号值为24之间的数据信息,并将记录在序号值为17至序号值为24之间的数据信息发送至用户所用的查询终端供用户所用的查询终端进行显示。
需要说明的是,若第一序号值为第二总数据条数的整数倍,所得的第一求商结果为一整数,则以所得的第一求商结果为需要调用的接口返回的页面的页码范围的最小值。
若第二序号值为第二总数据条数的整数倍,所得的第二求商结果为一整数,则以所得的第二求商结果为需要调用的接口返回的页面的页码范围的最大值。
与现有技术相比,本实施例通过获取模块,根据终端的查询指令获取需要查询的页面记录的第一条数据对应的第一序号值和最后一条数据对应的第二序号值;第一分析模块,根据预存的第一分析规则分析第一序号值、第二序号值及需要调用的接口每次返回的页面记录的第二总数据条数,以分析出需要调用的接口返回的页面的页码范围;第二分析模块,根据预存的第二分析规则分析需要调用的接口返回的页面的页码范围及第二总数据条数,以分析出需要调用的接口返回的页面记录的数据对应的序号值范围;筛选模块,从需要调用的接口返回的页面记录的数据对应的序号值范围中筛选出记录在与第一序号值对应的第三序号值和与第二序号值对应的第四序号值之间的数据,并发送至终端,则记录在第三序号值和第四序号值之间的数据为需要查询的页面记录的数据。这样,既不会消耗巨大的存储资源存放大量的需要调用的接口返回的数据,也不会使显示条数受限,能够实现按用户需要 调用接口的次数,比较灵活地实现了调用接口的定制化。
如图5所示,图5为本申请协调数据显示方法的实施流程示意图。由图5可知,在本实施例中,协调数据显示方法包括,
步骤S1,获取需要查询的页面记录的第一条数据对应的第一序号值和最后一条数据对应的第二序号值。
步骤S2,分析第一序号值、第二序号值及需要调用的接口每次返回的页面记录的第二总数据条数,以分析出需要调用的接口返回的页面的页码范围。
步骤S3,分析需要调用的接口返回的页面的页码范围及第二总数据调和素,以分析出需要调用的接口返回的页面记录的数据对应的序号值范围。
步骤S4,从序号值范围中筛选出需要查询的页面记录的数据。
需要说明的是,在本实施例中,各步骤具体为,首先,根据终端的查询指令获取需要查询的页面记录的第一条数据对应的第一序号值和最后一条数据对应的第二序号值;其次,根据应用服务器2的内存中预存的第一分析规则分析第一序号值、第二序号值及需要调用的接口每次返回的页面记录的第二总数据条数,以分析出需要调用的接口返回的页面的页码范围;再次,根据应用服务器2的内存中预存的第二分析规则分析需要调用的接口返回的页面的页码范围及第二总数据条数,以分析出需要调用的接口返回的页面记录的数据对应的序号值范围;最后,从需要调用的接口返回的页面记录的数据对应的序号值范围中筛选出记录在与第一序号值对应的第三序号值和与第二序号值对应的第四序号值之间的数据,并发送至终端,则记录在第三序号值和第四序号值之间的数据为需要查询的页面记录的数据。
应用包服务器2的内存中预存的任意页面记录的第一条数据对应的序号值计算公式为R×(P-1)+1,应用包服务器2的内存中预存的任意页面记录的最后一条数据对应的序号值计算公式为R×P,其中,P为任意页面对应的页码值,R为任意页面记录的数据条数。
预存的第一分析规则为:对第一序号值和第一总数据条数进行求商处理,得到第一求商结果,则第一求商结果为所述接口返回的页面的页码范围的最小值,或将第一求商结果向上取整以得到第一向上取整值,则第一向上取整值为所述接口返回的页面的页码范围的最小值;
对第二序号值和第二总数据条数进行求商处理,得到第二求商结果,则第二求商结果为所述接口返回的页面的页码范围的最大值,或将第二求商结果向上取整以得到第二向上取整值,则第二向上取整值为需要调用的接口返回的页面的页码范围的最大值。
以第一总数据条数为除数,对第一序号值和第一总数据条数进行求商处理,以第二总数据条数为除数,对第二序号值和第二总数据条数进行求商处理。
第二分析规则为:对页码范围的最小值和第二总数据条数进行求积处理,得到需要调用的接口返回的页面记录的数据对应的序号值范围的最小 值,对页码范围的最大值和第二总数据条数进行求积处理,得到需要调用的接口返回的页面记录的数据对应的序号值范围的最大值。且在本实施例中第一序号值与第三序号值相同,第二序号值与第四序号值相同。
通常,终端的显示屏幕查所能显示的数据条数是固定的,也即为终端查询的每一页所显示的数据条数,并且每一页对应显示的数据对应的序号值是连续的。
与现有技术相比,本实施例通过:首先,根据终端的查询指令获取需要查询的页面记录的第一条数据对应的第一序号值和最后一条数据对应的第二序号值;其次,根据应用服务器2的内存中预存的第一分析规则分析第一序号值、第二序号值及需要调用的接口每次返回的页面记录的第二总数据条数,以分析出需要调用的接口返回的页面的页码范围;再次,根据应用服务器2的内存中预存的第二分析规则分析需要调用的接口返回的页面的页码范围及第二总数据条数,以分析出需要调用的接口返回的页面记录的数据对应的序号值范围;最后,从需要调用的接口返回的页面记录的数据对应的序号值范围中筛选出记录在与第一序号值对应的第三序号值和与第二序号值对应的第四序号值之间的数据,并发送至终端。这样,既不会消耗巨大的存储资源存放大量的需要调用的接口返回的数据,也不会使显示条数受限,能够实现按用户需要调用接口的次数,比较灵活地实现了调用接口的定制化。
以上所述仅为本申请的较佳实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。

Claims (20)

  1. 一种协调数据显示方法,其特征在于,该方法包括如下步骤:
    A.根据终端的查询指令获取需要查询的页面记录的第一条数据对应的第一序号值和最后一条数据对应的第二序号值;
    B.根据预存的第一分析规则分析所述第一序号值、所述第二序号值及需要调用的接口每次返回的页面记录的第二总数据条数,以分析出所述接口返回的页面的页码范围;
    C.根据预存的第二分析规则分析所述接口返回的页面的页码范围及所述第二总数据条数,以分析出所述接口返回的页面记录的数据对应的序号值范围;
    D.从所述接口返回的页面记录的数据对应的序号值范围中筛选出记录在与所述第一序号值对应的第三序号值和与所述第二序号值对应的第四序号值之间的数据,并发送至所述终端,则记录在所述第三序号值和所述第四序号值之间的数据为所述需要查询的页面记录的数据。
  2. 根据权利要求1所述协调数据显示方法,其特征在于,所述步骤A包括:
    获取需要查询的页面对应的第一页码值及所述需要查询的页面中记录的第一总数据条数;
    将所述第一页码值和所述第一总数据条数代入预存的任意页面记录的第一条数据对应的序号值计算公式,计算出所述第一序号值,将所述第一页码值和所述第一总数据条数代入预存的任意页面记录的最后一条数据对应的序号值计算公式,计算出所述第二序号值。
  3. 根据权利要求2所述协调数据显示方法,其特征在于,所述预存的任意页面记录的第一条数据对应的序号值计算公式为R×(P-1)+1,所述预存的任意页面记录的最后一条数据对应的序号值计算公式为R×P,其中,P为任意页面对应的页码值,R为任意页面记录的数据条数。
  4. 根据权利要求1所述协调数据显示方法,其特征在于,在所述步骤B中所述预存的第一分析规则为:
    对所述第一序号值和所述第一总数据条数进行求商处理,得到第一求商结果,则所述第一求商结果为所述接口返回的页面的页码范围的最小值,或将所述第一求商结果向上取整以得到第一向上取整值,则所述第一向上取整值为所述接口返回的页面的页码范围的最小值;
    对所述第二序号值和所述第二总数据条数进行求商处理,得到第二求商结果,则所述第二求商结果为所述接口返回的页面的页码范围的最大值,或将所述第二求商结果向上取整以得到第二向上取整值,则所述第二向上取整值为所述接口返回的页面的页码范围的最大值。
  5. 根据权利要求4所述协调数据显示方法,其特征在于,以所述第一总数据条数为除数,对所述第一序号值和所述第一总数据条数进行求商处理, 以所述第二总数据条数为除数,对所述第二序号值和所述第二总数据条数进行求商处理。
  6. 根据权利要求1所述协调数据显示方法,其特征在于,在所述步骤C中,所述第二分析规则为:
    将所述页码范围的最小值代入预设的特定公式计算出所述接口返回的页面记录的数据对应的序号值范围的最小值,对所述页码范围的最大值和所述第二总数据条数进行求积处理,得到所述接口返回的页面记录的数据对应的序号值范围的最大值。
  7. 根据权利要求1所述协调数据显示方法,其特征在于,所述第一序号值与所述第三序号值相同,所述第二序号值与所述第四序号值相同。
  8. 一种应用服务器,其特征在于,所述应用服务器包括存储器、处理器,所述存储器上存储有协调数据显示系统,所述协调数据显示系统被所述处理器执行时可实现如下步骤:
    根据终端的查询指令获取需要查询的页面记录的第一条数据对应的第一序号值和最后一条数据对应的第二序号值;
    根据所述应用服务器内存中预存的第一分析规则分析所述第一序号值、所述第二序号值及所述应用服务器需要调用的接口每次返回的页面记录的第二总数据条数,以分析出所述接口返回的页面的页码范围;
    根据所述应用服务器内存中预存的第二分析规则分析所述接口返回的页面的页码范围及所述第二总数据条数,以分析出所述接口返回的页面记录的数据对应的序号值范围;
    从所述接口返回的页面记录的数据对应的序号值范围中筛选出记录在与所述第一序号值对应的第三序号值和与所述第二序号值对应的第四序号值之间的数据,并发送至所述终端,则记录在所述第三序号值和所述第四序号值之间的数据为所述需要查询的页面记录的数据。
  9. 根据权利要求8所述应用服务器,其特征在于,所述处理器执行所述协调数据显示系统,实现所述根据终端的查询指令获取需要查询的页面记录的第一条数据对应的第一序号值和最后一条数据对应的第二序号值的步骤包括:
    获取需要查询的页面对应的第一页码值及所述需要查询的页面中记录的第一总数据条数;
    将所述第一页码值和所述第一总数据条数代入所述应用服务器内存中预存的任意页面记录的第一条数据对应的序号值计算公式,计算出所述第一序号值,将所述第一页码值和所述第一总数据条数代入所述应用服务器内存中预存的任意页面记录的最后一条数据对应的序号值计算公式,计算出所述第二序号值。
  10. 根据权利要求9所述应用服务器,其特征在于,所述预存的任意页面记录的第一条数据对应的序号值计算公式为R×(P-1)+1,所述预存的任意页面记录的最后一条数据对应的序号值计算公式为R×P,其中,P为任意 页面对应的页码值,R为任意页面记录的数据条数。
  11. 根据权利要求8所述应用服务器,其特征在于,在所述步骤B中所述预存的第一分析规则为:
    对所述第一序号值和所述第一总数据条数进行求商处理,得到第一求商结果,则所述第一求商结果为所述接口返回的页面的页码范围的最小值,或将所述第一求商结果向上取整以得到第一向上取整值,则所述第一向上取整值为所述接口返回的页面的页码范围的最小值;
    对所述第二序号值和所述第二总数据条数进行求商处理,得到第二求商结果,则所述第二求商结果为所述接口返回的页面的页码范围的最大值,或将所述第二求商结果向上取整以得到第二向上取整值,则所述第二向上取整值为所述接口返回的页面的页码范围的最大值。
  12. 根据权利要求11所述应用服务器,其特征在于,以所述第一总数据条数为除数,对所述第一序号值和所述第一总数据条数进行求商处理,以所述第二总数据条数为除数,对所述第二序号值和所述第二总数据条数进行求商处理。
  13. 根据权利要求8所述应用服务器,其特征在于,在所述步骤C中,所述第二分析规则为:
    将所述页码范围的最小值代入预设的特定公式计算出所述接口返回的页面记录的数据对应的序号值范围的最小值,对所述页码范围的最大值和所述第二总数据条数进行求积处理,得到所述接口返回的页面记录的数据对应的序号值范围的最大值。
  14. 根据权利要求8所述应用服务器,其特征在于,所述第一序号值与所述第三序号值相同,所述第二序号值与所述第四序号值相同。
  15. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有协调数据显示系统,所述协调数据显示系统可被至少一个处理器执行,以使所述至少一个处理器执行如下步骤:
    A.根据终端的查询指令获取需要查询的页面记录的第一条数据对应的第一序号值和最后一条数据对应的第二序号值;
    B.根据预存的第一分析规则分析所述第一序号值、所述第二序号值及需要调用的接口每次返回的页面记录的第二总数据条数,以分析出所述接口返回的页面的页码范围;
    C.根据预存的第二分析规则分析所述接口返回的页面的页码范围及所述第二总数据条数,以分析出所述接口返回的页面记录的数据对应的序号值范围;
    D.从所述接口返回的页面记录的数据对应的序号值范围中筛选出记录在与所述第一序号值对应的第三序号值和与所述第二序号值对应的第四序号值之间的数据,并发送至所述终端,则记录在所述第三序号值和所述第四序号值之间的数据为所述需要查询的页面记录的数据。
  16. 根据权利要求15所述计算机可读存储介质,其特征在于,所述步骤 A包括:
    获取需要查询的页面对应的第一页码值及所述需要查询的页面中记录的第一总数据条数;
    将所述第一页码值和所述第一总数据条数代入预存的任意页面记录的第一条数据对应的序号值计算公式,计算出所述第一序号值,将所述第一页码值和所述第一总数据条数代入预存的任意页面记录的最后一条数据对应的序号值计算公式,计算出所述第二序号值。
  17. 根据权利要求16所述计算机可读存储介质,其特征在于,所述预存的任意页面记录的第一条数据对应的序号值计算公式为R×(P-1)+1,所述预存的任意页面记录的最后一条数据对应的序号值计算公式为R×P,其中,P为任意页面对应的页码值,R为任意页面记录的数据条数。
  18. 根据权利要求15所述计算机可读存储介质,其特征在于,在所述步骤B中所述预存的第一分析规则为:
    对所述第一序号值和所述第一总数据条数进行求商处理,得到第一求商结果,则所述第一求商结果为所述接口返回的页面的页码范围的最小值,或将所述第一求商结果向上取整以得到第一向上取整值,则所述第一向上取整值为所述接口返回的页面的页码范围的最小值;
    对所述第二序号值和所述第二总数据条数进行求商处理,得到第二求商结果,则所述第二求商结果为所述接口返回的页面的页码范围的最大值,或将所述第二求商结果向上取整以得到第二向上取整值,则所述第二向上取整值为所述接口返回的页面的页码范围的最大值。
  19. 根据权利要求18所述计算机可读存储介质,其特征在于,以所述第一总数据条数为除数,对所述第一序号值和所述第一总数据条数进行求商处理,以所述第二总数据条数为除数,对所述第二序号值和所述第二总数据条数进行求商处理。
  20. 根据权利要求15所述计算机可读存储介质,其特征在于,在所述步骤C中,所述第二分析规则为:
    将所述页码范围的最小值代入预设的特定公式计算出所述接口返回的页面记录的数据对应的序号值范围的最小值,对所述页码范围的最大值和所述第二总数据条数进行求积处理,得到所述接口返回的页面记录的数据对应的序号值范围的最大值。
PCT/CN2017/113719 2017-11-01 2017-11-30 协调数据显示方法、应用服务器及存储介质 WO2019085117A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711060231.1 2017-11-01
CN201711060231.1A CN108052521B (zh) 2017-11-01 2017-11-01 协调数据显示方法、应用服务器及存储介质

Publications (1)

Publication Number Publication Date
WO2019085117A1 true WO2019085117A1 (zh) 2019-05-09

Family

ID=62118867

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/113719 WO2019085117A1 (zh) 2017-11-01 2017-11-30 协调数据显示方法、应用服务器及存储介质

Country Status (2)

Country Link
CN (1) CN108052521B (zh)
WO (1) WO2019085117A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110187987B (zh) * 2019-06-05 2022-02-25 北京百度网讯科技有限公司 用于处理请求的方法和装置
CN111046305B (zh) * 2019-12-03 2023-09-26 深圳证券交易所 数据的处理方法、服务器及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103617232A (zh) * 2013-11-26 2014-03-05 北京京东尚科信息技术有限公司 一种针对HBase表的分页查询方法
CN105183764A (zh) * 2015-07-29 2015-12-23 广州神马移动信息科技有限公司 一种数据分页方法及装置
CN106227894A (zh) * 2016-08-24 2016-12-14 中国农业银行股份有限公司 一种数据分页查询方法和装置
CN107016045A (zh) * 2017-02-17 2017-08-04 阿里巴巴集团控股有限公司 一种分页数据查询的方法及装置

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050273716A1 (en) * 2004-06-03 2005-12-08 Pahno Achilles N Database server paging method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103617232A (zh) * 2013-11-26 2014-03-05 北京京东尚科信息技术有限公司 一种针对HBase表的分页查询方法
CN105183764A (zh) * 2015-07-29 2015-12-23 广州神马移动信息科技有限公司 一种数据分页方法及装置
CN106227894A (zh) * 2016-08-24 2016-12-14 中国农业银行股份有限公司 一种数据分页查询方法和装置
CN107016045A (zh) * 2017-02-17 2017-08-04 阿里巴巴集团控股有限公司 一种分页数据查询的方法及装置

Also Published As

Publication number Publication date
CN108052521B (zh) 2022-04-22
CN108052521A (zh) 2018-05-18

Similar Documents

Publication Publication Date Title
US11036744B2 (en) Personalization of news articles based on news sources
WO2019140828A1 (zh) 电子装置、分布式系统日志查询方法及存储介质
US9071649B2 (en) System and method for real time delivery of context based content from the cloud to mobile
WO2019085327A1 (zh) 电子装置、产品推荐方法、系统和计算机可读存储介质
US20140195977A1 (en) User interface content personalization system
WO2019134340A1 (zh) 薪资计算方法、应用服务器及计算机可读存储介质
US20140040760A1 (en) Personalized entertainment services content system
WO2019041753A1 (zh) 信息修改方法、装置、计算机设备及计算机可读存储介质
JP6404351B2 (ja) 商品情報を通信および提示するための方法、装置、および、システム
CN111177113B (zh) 数据迁移方法、装置、计算机设备和存储介质
US9529568B1 (en) Systems and methods for low interference logging and diagnostics
CN105488125A (zh) 页面访问方法和装置
WO2019071968A1 (zh) 薪资计算方法、应用服务器及计算机可读存储介质
US20190114989A1 (en) Systems and methods for image optimization
WO2019085117A1 (zh) 协调数据显示方法、应用服务器及存储介质
US20120113148A1 (en) Dynamic image result stitching
CN113010542B (zh) 业务数据处理方法、装置、计算机设备及存储介质
WO2019071907A1 (zh) 基于操作页面识别帮助信息的方法及应用服务器
CN116702752A (zh) 文件数据处理方法、装置、设备及存储介质
CN113849524B (zh) 一种数据处理方法及装置
CN111221917B (zh) 智能分区存储方法、装置及计算机可读存储介质
US10171687B2 (en) Providing content and attachment printing for communication
US20220050614A1 (en) System and method for approximating replication completion time
US9361651B2 (en) Displaying quantitative trending of pegged data from cache
US20150046439A1 (en) Determining Recommendations In Data Analysis

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 13/10/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17930384

Country of ref document: EP

Kind code of ref document: A1