CN108052521A - Coordination data display methods, application server and storage medium - Google Patents

Coordination data display methods, application server and storage medium Download PDF

Info

Publication number
CN108052521A
CN108052521A CN201711060231.1A CN201711060231A CN108052521A CN 108052521 A CN108052521 A CN 108052521A CN 201711060231 A CN201711060231 A CN 201711060231A CN 108052521 A CN108052521 A CN 108052521A
Authority
CN
China
Prior art keywords
page
sequence number
data
number value
value
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN201711060231.1A
Other languages
Chinese (zh)
Other versions
CN108052521B (en
Inventor
张勋
王刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201711060231.1A priority Critical patent/CN108052521B/en
Priority to PCT/CN2017/113719 priority patent/WO2019085117A1/en
Publication of CN108052521A publication Critical patent/CN108052521A/en
Application granted granted Critical
Publication of CN108052521B publication Critical patent/CN108052521B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

Landscapes

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

Abstract

The invention discloses a kind of application servers, including memory, processor, there is coordination data display system on the memory, coordination data display system realizes following steps when being executed by processor:Corresponding first sequence number value of the first data and corresponding second sequence number value of the last item data that query page records are obtained according to inquiry instruction;The second total data item number of the first sequence number value, the second sequence number value and the page record that the interface called is needed to return is analyzed according to the first analysis rule, to analyze the page number scope of the page of interface return;Page number scope and the second total data item number are analyzed according to the second analysis rule, to analyze the corresponding sequence number value scope of data of the page record of interface return, being filtered out from sequence number value scope needs the data message of page record to be shown to be sent to terminal.The present invention can control the data message of the page of user's inquiry according to user intention.

Description

Coordination data display methods, application server and storage medium
Technical field
The present invention relates to data message inquiry field more particularly to a kind of coordination data display methods, application server and Storage medium.
Background technology
At present, the data that the data source of terminal user's paging request is returned in the external interface that service system is called, eventually The number of data of every page of displaying of end subscriber inquiry is limited to the number of data of every page of return of external interface.In general, terminal user The number of data for every page of record that the number of data of every page of displaying of inquiry returns every time with external interface is different.At this point, service Or system disposably obtains the data message of all page records in external interface, the number wanted according still further to user is stored It is believed that the item number of breath be shown or the item number of the data message of page record that is returned every time using the external interface of calling as Standard, be sent to terminal show every time data item number and call external interface as defined in it is identical.Both approaches drawback is all It is obvious that the former can consume huge storage resource, the latter shows that item number is limited, it is impossible to realize customization according to the demand of user Change.
The content of the invention
The present invention provides method and the application server that a kind of coordination data is shown, it is intended to it is huge to solve above-mentioned consumption Big storage resource or display item number is limited, it is impossible to realize the problem of customizing according to the demand of user.
To achieve the above object, the present invention provides a kind of method that coordination data is shown, this method comprises the following steps:
A. the first data corresponding first for the page record for needing to inquire about is obtained according to the inquiry instruction of terminal user Sequence number value and corresponding second sequence number value of the last item data;
B. the first sequence number value, the second sequence number value are analyzed according to the first analysis rule to prestore and needs the interface called each Second total data item number of the page record of return, to analyze the page number scope for the page that the interface called is needed to return;
C. the page number scope and second for the page for according to the second analysis rule analysis to prestore the interface called being needed to return Total data item number, to analyze the corresponding sequence number value scope of data for the page record that the interface called is needed to return;
D. filter out and be recorded in from the corresponding sequence number value scope of data for the page record that the interface for needing to call returns Data between the 3rd sequence number value corresponding with the first sequence number value and the 4th sequence number value corresponding with the second sequence number value, and be sent to Terminal is then recorded in the data between the 3rd sequence number value and the 4th sequence number value to need the data for the page record inquired about.
Preferably, step A includes:
It obtains the corresponding first page code value of the page for needing to inquire about and needs the first total data recorded in the page inquired about Item number;
First data of the arbitrary page record that first page code value and the substitution of the first total data item number are prestored is corresponding Sequence number value calculation formula calculates the first sequence number value, the arbitrary page that first page code value and the substitution of the first total data item number are prestored The corresponding sequence number value calculation formula of the last item data of face record, calculates the second sequence number value.
Preferably, the corresponding sequence number value calculation formula of the first data of the arbitrary page record to prestore for R × (P-1)+ 1, the corresponding sequence number value calculation formula of the last item data of the arbitrary page record to prestore is R × P, wherein, P is the arbitrary page Corresponding page number value, R are the number of data of arbitrary page record.
Preferably, the first analysis rule to prestore in stepb is:
First sequence number value and the first total data item number are carried out that business is asked to handle, first is obtained and asks business as a result, then first asking business As a result the minimum value of the page number scope of the page returned for the interface that needs call asks business's result to round up to obtain by first It rounds up value to first, then first rounds up value to need the minimum of the page number scope of the page that the interface called returns Value;
Second sequence number value and the second total data item number are carried out that business is asked to handle, second is obtained and asks business as a result, then second asking business As a result the maximum of the page number scope of the page returned for the interface that needs call asks business's result to round up to obtain by second It rounds up value to second, then second rounds up value to need the maximum of the page number scope of the page that the interface called returns Value.
Preferably, using the first total data item number as divisor, the first sequence number value and the first total data item number ask at business Reason, using the second total data item number as divisor, to the second sequence number value and the second total data item number carries out that business is asked to handle.
Preferably, in step C, the second analysis rule is:The minimum value of page number scope is substituted into default specific formulation The minimum value of the corresponding sequence number value scope of data for the page record that the interface called is needed to return is calculated, to page number scope Maximum and the second total data item number carry out quadrature processing, and the data for obtaining the page record that the interface called is needed to return correspond to Sequence number value scope maximum.
Preferably, the first sequence number value is identical with the 3rd sequence number value, and the second sequence number value is identical with the 4th sequence number value.
To achieve the above object, the present invention also provides a kind of application server, which includes, memory, place The coordination data display system managed device and storage on a memory and can run on a processor, coordination data display system are located Reason device can realize following steps when performing:
Corresponding first sequence number value of the first data for the page record for needing to inquire about is obtained according to the inquiry instruction of terminal The second sequence number value corresponding with the last item data;
First sequence number value, the second sequence number value and application are analyzed according to the first analysis rule to prestore in application server memory Second total data item number of the page record that the interface that server needs call returns every time, to analyze the interface for needing to call The page number scope of the page of return;
The page that the second analysis rule analysis according to prestoring in application server memory needs the interface called to return Page number scope and the second total data item number, to analyze the corresponding sequence number of data for the page record that the interface called is needed to return It is worth scope;
Filtered out from the corresponding sequence number value scope of data for needing page record that the interface that calls returns be recorded in Data between corresponding 3rd sequence number value of first sequence number value and the 4th sequence number value corresponding with the second sequence number value, and it is sent to end End is then recorded in the data between the 3rd sequence number value and the 4th sequence number value to need the data for the page record inquired about.
Preferably, processor performs coordination data display system, and realize needs to inquire about according to the acquisition of the inquiry instruction of terminal Corresponding first sequence number value of the first data of page record and the step of the last item data corresponding second sequence number value wrap It includes:
It obtains the corresponding first page code value of the page for needing to inquire about and needs the first total data recorded in the page inquired about Item number;
By the arbitrary page record to prestore in first page code value and the first total data item number substitution application server memory The corresponding sequence number value calculation formula of first data, calculates the first sequence number value, by first page code value and the first total data item number The corresponding sequence number value calculation formula of the last item data of the arbitrary page record to prestore in application server memory is substituted into, is calculated Go out the second sequence number value.
To achieve the above object, the present invention also provides a kind of computer readable storage medium, computer readable storage mediums Coordination data display system is stored with, coordination data display system can be performed by least one processor, so that at least one place Manage the step of device performs coordination data display methods described above.
Compared to the prior art, coordination data display methods proposed by the invention, application server and computer-readable Storage medium, it is first, corresponding by the first data that the page record for needing to inquire about is obtained according to the inquiry instruction of terminal First sequence number value and corresponding second sequence number value of the last item data;Secondly, according to the first analysis rule analysis first to prestore Second total data item number of the page record that the interface that sequence number value, the second sequence number value and needs call returns every time, to analyze Need the page number scope of the page of the interface called return;Again, need what is called according to the second analysis rule analysis to prestore The page number scope and the second total data item number for the page that interface returns, to analyze the page record that the interface called is needed to return The corresponding sequence number value scope of data;Then, the corresponding sequence number value of data of the page record returned from the interface for needing to call It is filtered out in scope and is recorded in the 3rd sequence number value corresponding with the first sequence number value and the 4th sequence number value corresponding with the second sequence number value Between data, and be sent to terminal, be then recorded in the needs of the data between the 3rd sequence number value and the 4th sequence number value and inquire about The data of page record.In this way, the number that huge storage resource storage largely needs the interface called to return will not be both consumed According to will not be limited display item number, can realize the number that calling interface is needed by user, more neatly realize calling The customization of interface.
Description of the drawings
Fig. 1 is the application environment schematic diagram of one embodiment of the invention;
Fig. 2 is the schematic diagram of the hardware structure of application server in Fig. 1;
Fig. 3 is the program module schematic diagram of coordination data display system of the present invention;
Fig. 4 is the implementation process diagram of coordination data display methods of the present invention;
Fig. 5 is the process refinement figure of step S3 in Fig. 4.
Specific embodiment
The principle and features of the present invention will be described below with reference to the accompanying drawings, and the given examples are served only to explain the present invention, and It is non-to be used to limit the scope of the present invention.
As shown in Figure 1, Fig. 1 is the application environment schematic diagram of one embodiment of the invention.
In the present embodiment, present invention can apply to include but not limited to, terminal 1, application server 2, network 3 In application environment.Wherein, terminal 1 can be mobile phone, smart phone, laptop, digit broadcasting receiver, PDA (a Personal digital assistant), PAD (tablet computer), PMP (portable media player), the movable equipment of guider etc., with And such as fixed terminal of number TV, desktop computer, notebook, server etc..
Application server 2 can be rack-mount server, blade server, tower server or Cabinet-type server etc. Computing device, application server 2 can be the server clusters that independent server or multiple servers are formed.
Network 3 can be intranet (Intranet), internet (Internet), global system for mobile communications (Global System of Mobile communication, GSM), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), 4G networks, 5G networks, bluetooth (Bluetooth), Wi-Fi etc. is wireless or has Gauze network.
In the present embodiment, application server 2 (only shows one with one or more terminals 1 respectively by network 3 in figure It is a) communication connection, be respectively mounted in each terminal 1 and run with 2 corresponding application client of application server (hereinafter Referred to as " mobile terminal client terminal "),.Mobile terminal client terminal is used to respond the operation of mobile terminal user, in mobile terminal visitor Carrying out data transmission and interact between family end and application server 2, client terminals are used for the operation of respective application server 2, Carry out data transmission and interact between application server 2.
In the present embodiment, when being installed in application server 2 and having run coordination data display system 200, coordination data Display system 200 is run, data message inquiry instruction of the application server 2 according to transmitted by mobile terminal client terminal, is obtained and is moved The number of data for the page record that dynamic client terminals needs are inquired about, and inquired about according to the mobile terminal client terminal of acquisition needs The number of data judgement of page record needs the client terminals that the number of the interface of client terminals and needs is called to call The page number value scope of the page of interface is selected from the page of the interface return of the client terminals of calling and meets mobile terminal visitor The number of data of the page record of family end inquiry is shown.And then realize the demand Selection and call according to mobile terminal client terminal The number of the interface of client terminals and the page info called, avoid the interface for calling multiple client terminals and disappear The number of data that shows is limited to the interface of client terminals when consuming huge storage resource or calling the interface of client terminals The problem of item number of the data message of the page record of return, realizes and realizes customization display according to the demand of user.
As shown in Fig. 2, it is the schematic diagram of the hardware structure of application server 2 in Fig. 1.As shown in Figure 2, in the present embodiment In, application server 2 is include but not limited to, and the memory 21 of connection, processor 22, logical is in communication with each other by system bus Communication interface 23.It is pointed out that Fig. 2 illustrates only the application server 2 with component 21-23, it should be understood that simultaneously All components shown realistic are not applied, the more or less component of the implementation that can be substituted.
Wherein, memory 21 includes at least a type of readable storage medium storing program for executing, and readable storage medium storing program for executing includes flash memory, hard Disk, multimedia card, card-type memory (for example, SD or DX memories etc.), random access storage device (RAM), static random-access Memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only storage Device (PROM), magnetic storage, disk, CD etc..In some embodiments, memory 21 can be the interior of application server 2 Portion's storage unit, such as the hard disk or memory of the application server 2.In further embodiments, memory 21 can also be answered With the plug-in type hard disk being equipped on the External memory equipment of server 2, such as application server 2, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Certainly, store Device 21 can also both include the internal storage unit of application server 2 or including its External memory equipment.In the present embodiment, storage Device 21 is installed commonly used in storage and runs on the operating system of application server 2 and types of applications software, such as coordination data Program code of display system 200 etc..It has exported or will export in addition, memory 21 can be also used for temporarily storing Various types of data.
Processor 22 can be in some embodiments central processing unit (Central Processing Unit, CPU), Controller, microcontroller, microprocessor or other data processing chips.The processor 22 is commonly used in control application server 2 Overall operation, such as perform with terminal 1 carry out data interaction or communicate it is relevant control and handle and and external interface Carry out data interaction or the relevant control of communication and processing etc..In the present embodiment, processor 22 is used in run memory 21 The program code of storage or processing data, such as operation coordination data display system 200 etc..
Communication interface 23 includes radio network interface or wired network interface, which is commonly used in taking in application It is engaged in establishing between device 2 and other electronic equipments and communicate to connect.In the present embodiment, communication interface 23 is mainly used for will by network 3 Application server 2 is connected with one or more terminals 1, and data are established between application server 2 and one or more terminals 1 Transmission channel and communication connection.
It should be noted that in the present embodiment, another communication interface (not shown in Fig. 2) is used in application server 2 Data transmission and communication connection are established between client terminals, client terminals are called for coordination data display system 200 Interface data, the data query that coordination data display system 200 is transmitted according to one or more mobile terminal client terminals, which instructs, to be adjusted The data message returned with the interface of client terminals, so as to coordinate the page shown between one or more terminals and other-end The data message of face record.
Explanation is needed further exist for, application server 2 may also include display and (be not shown in figure, in the present embodiment Do not include), it installs in application server 2 and has run application client, user can be directly by application server 2 Application client directly inquires about the data message of needs, and the display of application server 2, which directly displays user, to be needed to inquire about The page information.
Display can be in some embodiments light-emitting diode display, liquid crystal display, touch-control liquid crystal display and OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) touches device etc..
So far, the application environment of each embodiment of the present invention and the hardware configuration and work(of relevant device have been described in detail Energy.In the following, above application environment and relevant device will be based on, each embodiment of the present invention is proposed.
As shown in figure 3, Fig. 3 is the program module schematic diagram of coordination data display system 200 of the present invention.
In the present embodiment, coordination data display system 200 can be divided into one or more modules, one or more Module is stored in memory 21, and performed by one or more processors (being in the present embodiment processor 22), with Complete the present invention.For example, in figure 3, coordination data display system 200 is divided into acquisition module 201, the first analysis module 202nd, the second analysis module 203 and screening module 204.The so-called module of the present invention is to refer to complete a series of of specific function Computer program instructions section, than execution of the program more suitable for description coordination data display system 200 in application server 2 Journey.
Acquisition module 201, for obtaining the first data of the page record for needing to inquire about according to the inquiry instruction of terminal Corresponding first sequence number value and corresponding second sequence number value of the last item data.
First analysis module 202, for the first analysis rule analysis first to prestore in the memory according to application server 2 Second total data item number of the page record that the interface that sequence number value, the second sequence number value and needs call returns every time, to analyze Need the page number scope of the page of the interface called return.
Second analysis module 203, the second analysis rule for prestoring in the memory according to application server 2 analyze needs The page number scope and the second total data item number for the page that the interface of calling returns, to analyze the page that the interface called is needed to return The corresponding sequence number value scope of data of face record.
Screening module 204, for the corresponding sequence number value scope of data of the page record returned from the interface for needing to call In filter out and be recorded between the 3rd sequence number value corresponding with the first sequence number value and the 4th sequence number value corresponding with the second sequence number value Data, and be sent to terminal, be then recorded in the data between the 3rd sequence number value and the 4th sequence number value to need the page inquired about The data of record.
It should be noted that the first data of the arbitrary page record to prestore in memory using packet server 2 corresponds to Sequence number value calculation formula for R × (P-1)+1, the arbitrary page record that prestores in the memory using packet server 2 last The corresponding sequence number value calculation formula of data is R × P, wherein, P is the corresponding page number value of the arbitrary page, and R is arbitrary page record Number of data.
The first analysis rule to prestore is:First sequence number value and the first total data item number are carried out that business is asked to handle, obtain One asks business as a result, then first seeking business's result as the minimum value of the page number scope of the page of interface return or asking business by first As a result round up to obtain first to round up value, then the first page number model for rounding up the page that value returns for the interface The minimum value enclosed;
Second sequence number value and the second total data item number are carried out that business is asked to handle, second is obtained and asks business as a result, then second asking business As a result the maximum of the page number scope of the page returned for the interface asks business's result to round up to obtain second by second Round up value, then second rounds up value to need the maximum of the page number scope of the page of the interface called return.
Using the first total data item number as divisor, the first sequence number value and the first total data item number are carried out that business is asked to handle, with Two total data item numbers are divisor, and the second sequence number value and the second total data item number are carried out that business is asked to handle.
Second analysis rule is:Minimum value and the second total data item number to page number scope carry out quadrature processing, are needed The minimum value of the corresponding sequence number value scope of data for the page record that the interface to be called returns, maximum to page number scope and Second total data item number carries out quadrature processing, obtains the corresponding sequence number value of data for the page record that the interface called is needed to return The maximum of scope.And the first sequence number value is identical with the 3rd sequence number value in the present embodiment, the second sequence number value and the 4th sequence number value It is identical.
In general, it is fixed that the display screen of terminal, which looks into the number of data that can be shown, also as terminal inquiry is each Number of data shown by page, and it is continuous that every page, which corresponds to the corresponding sequence number value of data shown,.
For example, user needs 8 articles of information of the inquiry record of page 3, then page number value 3 and the information bar of the record of page 3 are obtained Number 8, then corresponding first sequence number value of the corresponding first article of information of page 3 be:8 × (3-1)+1 is corresponding equal to page 17,3 most Corresponding second sequence number value of latter information is:8 × 3 are equal to 24.Application server 2 needs the corresponding interface of terminal called to return Second total data item number of each page record returned is 5.
It is then dividend with the first sequence number value 17, the first total information item number 8 is divisor, total by the first sequence number value 17 and second Information bar number 8 understand, the first sequence number value 17 be the second total data item number 8 integral multiple, then ask first business's result 17/8 to Upper rounding is rounded up value 3 with obtaining first, then first value 3 that rounds up needs the terminal-pair called should for application server 2 Interface return the page page number scope minimum value.Similarly, it is dividend with the second sequence number value 24, the second total data item number 5 be divisor, and the second sequence number value 24 is not the integral multiple of the second total data item number 5, then to second business's result 24/5 is asked to round up It is rounded up value 5 with obtaining second, and the interface that rounds up terminal that value 5 called for application server 2 with second returns The maximum of the page number scope of the page.
That is, application server 2 needs to call the interface 3 times of terminal, and the scope of the page number value of the page called is 3- 5.The number of data of the page record returned every time due to the interface of terminal is 5, then application server 2 call page 3 of terminal, Page 4, page 5 record the corresponding sequence number value scope of data message be:[5 × (3-1)+1] to (5 × 5) namely 11 to 25, From be recorded in sequence number value be 11 to sequence number value be 25 between data message in filter out that be recorded in sequence number value be 17 to sequence number value For the data message between 24, and will be recorded in sequence number value is that 17 data message between sequence number value is 24 is sent to user institute Inquiry terminal is shown for the inquiry terminal used in user.
It should be noted that if the first sequence number value is the integral multiple of the second total data item number, the first of gained seeks business's result For an integer, then minimum value of business's result as the page number scope of the page for the interface return for needing to call is sought using the first of gained.
If the second sequence number value is the integral multiple of the second total data item number, the second of gained seeks business's result as an integer, then with The second of gained seeks business's result to need the maximum of the page number scope of the page of the interface called return.
Compared with prior art, for the present embodiment by acquisition module, being obtained according to the inquiry instruction of terminal needs what is inquired about Corresponding first sequence number value of the first data of page record and corresponding second sequence number value of the last item data;First analysis mould Block analyzes the first sequence number value, the second sequence number value according to the first analysis rule to prestore and needs what the interface called returned every time Second total data item number of page record, to analyze the page number scope for the page that the interface called is needed to return;Second analysis Module, according to the page number scope and the second total data of the page that the second analysis rule analysis to prestore needs the interface called to return Item number, to analyze the corresponding sequence number value scope of data for the page record that the interface called is needed to return;Screening module, from need It filters out and is recorded in and the first sequence number value pair in the corresponding sequence number value scope of data for the page record that the interface to be called returns Data between the 3rd sequence number value and the 4th sequence number value corresponding with the second sequence number value answered, and be sent to terminal, then it is recorded in The data for the page record that data between 3rd sequence number value and the 4th sequence number value are inquired about for needs.In this way, it will not both consume huge Big storage resource storage largely needs the data that the interface called returns, and will not be limited display item number, can realize The number of calling interface is needed by user, more neatly realizes the customization of calling interface.
As shown in figure 5, Fig. 5 is the implementation process diagram of coordination data display methods of the present invention.As shown in Figure 5, at this In embodiment, coordination data display methods includes,
Step S1 obtains corresponding first sequence number value of the first data of page record for needing to inquire about and the last item number According to corresponding second sequence number value.
Step S2, the page record that the interface that the first sequence number value of analysis, the second sequence number value and needs call returns every time Second total data item number, to analyze the page number scope for the page that the interface called is needed to return.
Step S3 analyzes the page number scope for the page that the interface called is needed to return and the second total data reconciliation element, to divide The corresponding sequence number value scope of data for the page record that the interface called is needed to return is precipitated.
Step S4 filters out the data for the page record for needing to inquire about from sequence number value scope.
It should be noted that in the present embodiment, each step is specifically, first, need are obtained according to the inquiry instruction of terminal Corresponding first sequence number value of the first data of the page record to be inquired about and corresponding second sequence number value of the last item data;Its It is secondary, according to the first analysis rule analysis the first sequence number value, the second sequence number value to prestore in the memory of application server 2 and need to adjust Second total data item number of the page record that interface returns every time, to analyze the page that the interface called is needed to return Page number scope;Again, according to the second analysis rule analysis to prestore in the memory of application server 2 the interface called is needed to return The page page number scope and the second total data item number, to analyze the data pair for the page record that the interface that calls is needed to return The sequence number value scope answered;Finally, sieved from the corresponding sequence number value scope of data for the page record that the interface for needing to call returns Select the number being recorded between the 3rd sequence number value corresponding with the first sequence number value and the 4th sequence number value corresponding with the second sequence number value According to, and be sent to terminal, then the data between the 3rd sequence number value and the 4th sequence number value are recorded in need the page record inquired about Data.
The corresponding sequence number value of the first data of the arbitrary page record to prestore in memory using packet server 2 calculates public Formula is R × (P-1)+1, the corresponding sequence of the last item data of the arbitrary page record to prestore in the memory using packet server 2 Number value calculation formula be R × P, wherein, P be the corresponding page number value of the arbitrary page, R be arbitrary page record number of data.
The first analysis rule to prestore is:First sequence number value and the first total data item number are carried out that business is asked to handle, obtain One asks business as a result, then first seeking business's result as the minimum value of the page number scope of the page of interface return or asking business by first As a result round up to obtain first to round up value, then the first page number model for rounding up the page that value returns for the interface The minimum value enclosed;
Second sequence number value and the second total data item number are carried out that business is asked to handle, second is obtained and asks business as a result, then second asking business As a result the maximum of the page number scope of the page returned for the interface asks business's result to round up to obtain second by second Round up value, then second rounds up value to need the maximum of the page number scope of the page of the interface called return.
Using the first total data item number as divisor, the first sequence number value and the first total data item number are carried out that business is asked to handle, with Two total data item numbers are divisor, and the second sequence number value and the second total data item number are carried out that business is asked to handle.
Second analysis rule is:Minimum value and the second total data item number to page number scope carry out quadrature processing, are needed The minimum value of the corresponding sequence number value scope of data for the page record that the interface to be called returns, maximum to page number scope and Second total data item number carries out quadrature processing, obtains the corresponding sequence number value of data for the page record that the interface called is needed to return The maximum of scope.And the first sequence number value is identical with the 3rd sequence number value in the present embodiment, the second sequence number value and the 4th sequence number value It is identical.
In general, it is fixed that the display screen of terminal, which looks into the number of data that can be shown, also as terminal inquiry is each Number of data shown by page, and it is continuous that every page, which corresponds to the corresponding sequence number value of data shown,.
Compared with prior art, the present embodiment passes through:First, the page for needing to inquire about is obtained according to the inquiry instruction of terminal Corresponding first sequence number value of the first data of record and corresponding second sequence number value of the last item data;Secondly, according to application The first analysis rule to prestore in the memory of server 2 analyzes the first sequence number value, the second sequence number value and needs the interface called every Second total data item number of the page record of secondary return, to analyze the page number scope for the page that the interface called is needed to return; Again, the page for according to the second analysis rule analysis to prestore in the memory of application server 2 the interface called being needed to return Page number scope and the second total data item number, to analyze the corresponding sequence number of data for the page record that the interface called is needed to return It is worth scope;Finally, record is filtered out from the corresponding sequence number value scope of data for the page record that the interface for needing to call returns Data between the 3rd sequence number value corresponding with the first sequence number value and the 4th sequence number value corresponding with the second sequence number value, and send To terminal.In this way, the data that huge storage resource storage largely needs the interface called to return will not have both been consumed, it will not Display item number is limited, can realize the number that calling interface is needed by user, more neatly realizes determining for calling interface Inhibition and generation.
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all the present invention spirit and Within principle, any modifications, equivalent replacements and improvements are made should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of coordination data display methods, which is characterized in that this method comprises the following steps:
A. obtained according to the inquiry instruction of terminal corresponding first sequence number value of the first data of page record that needs to inquire about and Corresponding second sequence number value of the last item data;
B. first sequence number value, second sequence number value are analyzed according to the first analysis rule to prestore and needs the interface called Second total data item number of the page record returned every time, to analyze the page number scope for the page that the interface returns;
C. the page number scope for the page that the interface returns and second total data are analyzed according to the second analysis rule to prestore Item number, to analyze the corresponding sequence number value scope of data for the page record that the interface returns;
D. filter out and be recorded in and described first from the corresponding sequence number value scope of data for the page record that the interface returns Data between corresponding 3rd sequence number value of sequence number value and the 4th sequence number value corresponding with second sequence number value, and it is sent to institute Terminal is stated, be then recorded in the data between the 3rd sequence number value and the 4th sequence number value needs the page inquired about note to be described The data of record.
2. coordination data display methods according to claim 1, which is characterized in that the step A includes:
Obtain the corresponding first page code value of the page for needing to inquire about and the first total data recorded in the page for needing to inquire about Item number;
First data pair of the arbitrary page record that the first page code value and the first total data item number substitution are prestored The sequence number value calculation formula answered calculates first sequence number value, by the first page code value and the first total data item number The corresponding sequence number value calculation formula of the last item data of the arbitrary page record to prestore is substituted into, calculates second sequence number Value.
3. coordination data display methods according to claim 2, which is characterized in that the of the arbitrary page record to prestore The corresponding sequence number value calculation formula of a data be R × (P-1)+1, the last item data of the arbitrary page record to prestore Corresponding sequence number value calculation formula is R × P, wherein, P is the corresponding page number value of the arbitrary page, and R is the data of arbitrary page record Item number.
4. coordination data display methods according to claim 1, which is characterized in that prestore described in the step B One analysis rule is:
First sequence number value and the first total data item number are carried out that business is asked to handle, first is obtained and asks business as a result, then described First seeks business's result as the minimum value of the page number scope of the page of interface return or by described first business's result is asked to take upwards It is whole to be rounded up value with obtaining first, then described first round up the page that value returned for the interface page number scope most Small value;
Second sequence number value and the second total data item number are carried out that business is asked to handle, second is obtained and asks business as a result, then described Second seeks business's result as the maximum of the page number scope of the page of interface return or by described second business's result is asked to take upwards It is whole to be rounded up value with obtaining second, then described second round up the page that value returned for the interface page number scope most Big value.
5. coordination data display methods according to claim 4, which is characterized in that using the first total data item number as except Number, first sequence number value and the first total data item number are carried out that business is asked to handle, using the second total data item number as except Number, to second sequence number value and the second total data item number carries out that business is asked to handle.
6. coordination data display methods according to claim 1, which is characterized in that in the step C, second analysis Rule is:
The default specific formulation of minimum value substitution of the page number scope is calculated into the number for the page record that the interface returns According to the minimum value of corresponding sequence number value scope, maximum and the second total data item number to the page number scope carry out quadrature Processing obtains the maximum of the corresponding sequence number value scope of data for the page record that the interface returns.
7. coordination data display methods according to claim 1, which is characterized in that first sequence number value and the 3rd sequence Number value is identical, and second sequence number value is identical with the 4th sequence number value.
8. a kind of application server, which is characterized in that the application server includes memory, processor, on the memory Coordination data display system is stored with, the coordination data display system can realize following steps when being performed by the processor:
Corresponding first sequence number value of the first data of page record that needs to inquire about and most is obtained according to the inquiry instruction of terminal Corresponding second sequence number value of a data afterwards;
First sequence number value, second sequence number are analyzed according to the first analysis rule to prestore in the application server memory Second total data item number of the page record that the interface that value and application server needs call returns every time, to analyze State the page number scope of the page of interface return;
The page number model for the page that the interface returns is analyzed according to the second analysis rule to prestore in the application server memory It encloses and the second total data item number, to analyze the corresponding sequence number value scope of data for the page record that the interface returns;
It filters out and is recorded in and first sequence in the corresponding sequence number value scope of data of the page record returned from the interface The data number being worth between corresponding 3rd sequence number value and the 4th sequence number value corresponding with second sequence number value, and be sent to described Terminal is then recorded in the data between the 3rd sequence number value and the 4th sequence number value as the page record for needing to inquire about Data.
9. application server according to claim 8, which is characterized in that the processor performs the coordination data display system System realizes corresponding first sequence number of the first data that the page record for needing to inquire about is obtained according to the inquiry instruction of terminal The step of value and the last item data corresponding second sequence number value, includes:
Obtain the corresponding first page code value of the page for needing to inquire about and the first total data recorded in the page for needing to inquire about Item number;
The first page code value and the first total data item number are substituted into the arbitrary page to prestore in the application server memory The corresponding sequence number value calculation formula of the first data of face record, calculates first sequence number value, by the first page code value The last item data of the arbitrary page record to prestore in the application server memory are substituted into the first total data item number Corresponding sequence number value calculation formula calculates second sequence number value.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has coordination data display system, institute Stating coordination data display system can be performed by least one processor, so that at least one processor performs such as claim Any one of 1-7 the step of coordination data display methods.
CN201711060231.1A 2017-11-01 2017-11-01 Coordinated data display method, application server and storage medium Active CN108052521B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201711060231.1A CN108052521B (en) 2017-11-01 2017-11-01 Coordinated data display method, application server and storage medium
PCT/CN2017/113719 WO2019085117A1 (en) 2017-11-01 2017-11-30 Coordination data display method, application server, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711060231.1A CN108052521B (en) 2017-11-01 2017-11-01 Coordinated data display method, application server and storage medium

Publications (2)

Publication Number Publication Date
CN108052521A true CN108052521A (en) 2018-05-18
CN108052521B CN108052521B (en) 2022-04-22

Family

ID=62118867

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711060231.1A Active CN108052521B (en) 2017-11-01 2017-11-01 Coordinated data display method, application server and storage medium

Country Status (2)

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

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110187987A (en) * 2019-06-05 2019-08-30 北京百度网讯科技有限公司 Method and apparatus for handling request
CN111046305A (en) * 2019-12-03 2020-04-21 深圳证券交易所 Data processing method, server and storage medium

Citations (5)

* 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
CN103617232A (en) * 2013-11-26 2014-03-05 北京京东尚科信息技术有限公司 Paging inquiring method for HBase table
CN105183764A (en) * 2015-07-29 2015-12-23 广州神马移动信息科技有限公司 Data paging method and apparatus
CN106227894A (en) * 2016-08-24 2016-12-14 中国农业银行股份有限公司 A kind of data page querying method and device
CN107016045A (en) * 2017-02-17 2017-08-04 阿里巴巴集团控股有限公司 A kind of method and device of paged data inquiry

Patent Citations (5)

* 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
CN103617232A (en) * 2013-11-26 2014-03-05 北京京东尚科信息技术有限公司 Paging inquiring method for HBase table
CN105183764A (en) * 2015-07-29 2015-12-23 广州神马移动信息科技有限公司 Data paging method and apparatus
CN106227894A (en) * 2016-08-24 2016-12-14 中国农业银行股份有限公司 A kind of data page querying method and device
CN107016045A (en) * 2017-02-17 2017-08-04 阿里巴巴集团控股有限公司 A kind of method and device of paged data inquiry

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110187987A (en) * 2019-06-05 2019-08-30 北京百度网讯科技有限公司 Method and apparatus for handling request
CN111046305A (en) * 2019-12-03 2020-04-21 深圳证券交易所 Data processing method, server and storage medium
CN111046305B (en) * 2019-12-03 2023-09-26 深圳证券交易所 Data processing method, server and storage medium

Also Published As

Publication number Publication date
WO2019085117A1 (en) 2019-05-09
CN108052521B (en) 2022-04-22

Similar Documents

Publication Publication Date Title
JP6518794B2 (en) Plug-in packaging method, apparatus and terminal
CN110519401A (en) Improve method, apparatus, equipment and the storage medium of network Access Success Rate
CN105701122A (en) Log collection method, apparatus and system
CN110019125A (en) The method and apparatus of data base administration
CN110825807B (en) Data interactive conversion method, device, equipment and medium based on artificial intelligence
CN110245128B (en) Meta-model establishing method and device, storage medium and electronic device
CN109816481A (en) Bill processing method, device and computer readable storage medium
CN108540568A (en) Computing capability sharing method and smart machine
CN109582458A (en) Resource information loading method, device, storage medium and processor
CN109767098A (en) Processing method, device, computer equipment and the storage medium of product attribute
US20190303466A1 (en) Customized code configurations for a multiple application service environment
CN109933595B (en) Internet of things equipment information sharing system and device and terminal equipment
CN108052521A (en) Coordination data display methods, application server and storage medium
CN108920618A (en) A kind of store method, device, medium and the electronic equipment of object reference relationship
CN107517188A (en) A kind of data processing method and device based on Android system
CN111475754A (en) Page loading method, device, terminal and storage medium
WO2024094107A1 (en) Mobile number home operator querying method and apparatus, storage medium, and device
CN110162540A (en) Querying method, electronic device and the storage medium of block chain account book data
US9916391B2 (en) Method, apparatus and terminal for webpage content browsing
CN108108400B (en) API (application program interface) local data increment-based method
CN110457408A (en) Personalized map method for down loading, device, equipment and storage medium
CN116127219A (en) Method and device for displaying pages in applet and computer equipment
CN105094881A (en) Terminal and terminal application management method
CN114840194A (en) Code and operating system generation method and device, server and electronic equipment
CN109800229B (en) Data access method and related equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant