WO2020047840A1 - Bill information caching method, bill information query method and terminal device - Google Patents

Bill information caching method, bill information query method and terminal device Download PDF

Info

Publication number
WO2020047840A1
WO2020047840A1 PCT/CN2018/104602 CN2018104602W WO2020047840A1 WO 2020047840 A1 WO2020047840 A1 WO 2020047840A1 CN 2018104602 W CN2018104602 W CN 2018104602W WO 2020047840 A1 WO2020047840 A1 WO 2020047840A1
Authority
WO
WIPO (PCT)
Prior art keywords
transactions
user
page
bill
query
Prior art date
Application number
PCT/CN2018/104602
Other languages
French (fr)
Chinese (zh)
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 威富通科技有限公司
Priority to PCT/CN2018/104602 priority Critical patent/WO2020047840A1/en
Priority to CN201880001279.1A priority patent/CN109313642B/en
Publication of WO2020047840A1 publication Critical patent/WO2020047840A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/389Keeping log of transactions for guaranteeing non-repudiation of a transaction

Definitions

  • the present application belongs to the technical field of data query, and particularly relates to a billing information buffering method, a billing information querying method, and a terminal device.
  • the transaction information is stored in the billing database.
  • the billing database When the bill is queried, all the transaction information in the billing database is summarized, and then the page information is displayed and displayed in real time.
  • the billing database caches transaction information, it simply sorts the cache based on the time of the transaction or the amount of the transaction.
  • querying the bill it directly accesses all the transaction information in the billing database, which puts great pressure on the billing database and even causes the query service to fail to complete. A large number of concurrent queries may cause the system to crash.
  • embodiments of the present application provide a method for billing information caching, a method for querying billing information, and a terminal device, so as to solve the huge pressure on the billing database when the billing query in the prior art is caused.
  • a first aspect of the embodiments of the present application provides a method for buffering bill information, including:
  • the day-end data of the preset day closest to the query day is obtained from the preset day-end data table according to the identity of the user, and according to the acquired Day-end data and the preset number of transactions per page, pagination of bills for the preset day's transactions closest to the query day of the user, determining the transaction time information of each page of the bill based on the results of the paging, and dividing the paged results with The transaction time information of each page of bills is stored in the cache, wherein a piece of daily settlement data includes the number of transactions per day of the user.
  • a second aspect of the embodiments of the present application provides a bill query method based on the bill information cache method of the foregoing embodiment, including:
  • a third aspect of the embodiments of the present application provides a billing information buffering device, including:
  • a request query module is used to query whether there is data in the cache when a bill query request sent by a user terminal is received;
  • a transaction determining module configured to obtain, if there is no data in the cache, a user querying the number of transactions on the day, and determining whether the number of transactions reaches a preset number of transactions;
  • An information buffer module configured to: if the number of transactions reaches the preset number of transactions, perform pagination of bills on the transaction of the user's query on the basis of the number of transactions and the preset number of transactions per page, and The result determines the transaction time information of each page of the bill, and stores the paged result and the transaction time information of each page of the bill into the cache;
  • the information caching module is further configured to: if the number of transactions does not reach the preset number of transactions, obtain a date of a preset day closest to the query day from the preset day-end data table according to the identity of the user; Settle the data, and based on the obtained daily settlement data and the preset number of transactions per page, perform billing pagination on the preset day's transactions closest to the query day of the user, and determine the transaction time of each page of bills based on the paged results Information, and store the paged results and transaction time information of each page of bills into the cache, where a day-end data includes the number of transactions per day of the user.
  • a fourth aspect of the embodiments of the present application provides a bill query device based on the bill information cache device of the foregoing embodiment, including:
  • a time determination module is used to determine the time span of each page of the user's transaction according to the paged results in the cache and the transaction time information of each page of the bill when the bill query request sent by the user is received;
  • a data acquisition module configured to acquire daily settlement data of the user from a preset daily settlement data table according to a time span of the bill of each page;
  • the flow query module is configured to query the flow data of each page corresponding to the user and the date on which the flow of each page is located according to the daily settlement data of the user.
  • a fifth aspect of the embodiments of the present application provides a terminal device including a memory, a processor, and a computer program stored in the memory and executable on the processor.
  • the processor executes the computer program, Implement the steps of the billing information caching method as described above.
  • a computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the billing information caching method described above are implemented.
  • the client when the client sends a bill query request, it first queries whether there is data in the cache. If there is no data in the cache, it is determined whether the number of transactions on the user ’s query day reaches the preset number of transactions.
  • the number of transactions and the preset number of transactions per page paginate the transactions and determine the transaction time information of each page of the bill, and store the paged results and the transaction time information of each page of the bill into the cache; if it does not reach, obtain the nearest Set the day-to-day data, perform billing based on the day-to-day data and the preset number of transactions per page, and determine the transaction time information of each page of the bill.
  • the paged results and transaction time information of each page of the bill are stored in the cache.
  • the number of transactions is first cached on the billing information.
  • the time span of the user's transaction bill is determined based on the data in the cache, and the user's billing data is further queried based on the time span. To ensure the successful completion of the query service, which improves the query speed. A large amount of time to avoid system crashes.
  • FIG. 1 is a schematic flowchart of an implementation of a billing information caching method provided by an embodiment of the present application
  • FIG. 2 is a schematic flowchart of the implementation of step S103 in FIG. 1;
  • FIG. 3 is a schematic flowchart of an implementation of a bill query method according to an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of a billing information buffering device provided by an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a bill inquiry device according to an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a terminal device according to an embodiment of the present application.
  • an angle trigger of a terminal is used as an example for description.
  • the terminal may be a mobile terminal such as a smart phone or a tablet computer.
  • the processing process of the terminal may include the following steps:
  • Step S101 when receiving a bill query request sent by a user terminal, query whether there is data in the cache.
  • the data refers to a paged result and transaction time information of each page of the bill, which are obtained according to the number of transactions on the day of the user's query or the day-end data of a preset day closest to the day of the query.
  • the terminal when the user terminal sends a bill query request, the terminal first queries whether there is user data in the cache. If there is data, it directly obtains the total transaction information of the user's query on the basis of the data in the cache and the user's identity. , Or directly obtain the day-end data of the preset day closest to the query day in the preset day-end data table based on the data in the cache and the user ’s identity, and display the total transaction information for the day or the day-end data of the preset day In the query bill, for the current user to view, the query speed is improved.
  • step S102 if there is no data in the cache, the user queries the number of transactions for the current day, and determines whether the number of transactions reaches the preset number of transactions.
  • the determination of whether the number of transactions reaches the preset number of transactions is to first determine whether the user queries whether there is a transaction on the day, and if there is a transaction, the current bill query conditions are met, and according to the number of transactions and The preset number of transactions per page performs pagination of the bills on the day of the user's query. If there is no transaction, it means that the number of transactions on the day of the query does not meet the current bill query conditions. Get the day-end data of the preset day closest to the query day in the end-data table.
  • the client sends a bill query request on August 20, and there is no data in the cache, then the user's transaction number on August 20 is obtained, the transaction number is 6 and the preset transaction number is 2 transactions, if the number of transactions reaches the preset number of transactions, billing pagination of transactions on the day of the user's query is performed according to the number of transactions and the preset number of transactions per page.
  • the client sends a bill query request on August 20, and there is no data in the cache, then the transaction number of the user on August 20 is obtained.
  • the transaction number is 2 and the preset transaction number is 5, if the number of transactions does not reach the preset number of transactions, the day-end data of the preset day closest to the query day is obtained from the preset day-end data table according to the identity of the user, for example, from Get the day-end data in the preset day-end data table for the 8 days closest to the query day.
  • step S103 if the number of transactions reaches the preset number of transactions, then according to the number of transactions and the preset number of transactions per page, perform billing pagination on the transactions of the user's query day, and determine each Page transaction time information, and paged results and transaction time information of each page bill are stored in the cache.
  • the paged results and transaction time information of each page of bills are stored in the cache, so that when a user initiates a bill query request again, he can directly obtain the data in the cache (paged results and transaction time information of each page of bills).
  • the transaction information of the users in the daily settlement database does not need to access the entire billing database, which improves the query speed of the bill and reduces the pressure on the billing database.
  • each transaction includes the transaction time, and can also include the transaction amount.
  • step S103 according to the number of transactions and a preset number of transactions per page, perform billing pagination on the transaction of the user's query day, and determine the transaction of each page of billing according to the paging results.
  • the specific implementation process of time information includes:
  • the difference between the number of transactions minus the preset number of transactions per page is divided by the preset number of transactions per page, and the resulting quotient is rounded up by one and finally the pageable number is obtained.
  • the number of transactions is 95
  • the preset number of transactions per page is 20
  • the quotient obtained is 3.75
  • the quotient is rounded and rounded
  • 1 is added to obtain a pageable number of 5 pages.
  • Step S202 Determine the transaction time information of each page of the bill according to the pageable number and the transaction time of each transaction.
  • the transaction time information of each page of the bill may include the start transaction time and the last transaction time of each page of the bill, that is, each page of the bill includes the start transaction time point and the end transaction time point.
  • each transaction is allocated to a pageable bill according to a preset number of transactions per page. After the allocation is completed, the start time and end of each page of the bill can be determined according to the transaction time of each transaction in the bill of each page. Trading point in time.
  • the client sends a bill query request on August 20th, and there is no data in the cache, then the transaction number of the user on August 20th is obtained, and the transaction number reaches the preset transaction number, according to the The number of transactions and the preset number of transactions per page are used to perform pagination of the transactions on the day of the user's query.
  • the number of transactions on August 20 is 36
  • the default number of transactions per page is 10
  • the pageable number is 4 pages.
  • 36 transactions are allocated to 4 pages of bills according to the preset number of transactions per page.
  • each page of the bill includes the time point of starting the transaction and the time point of ending the transaction.
  • Step 104 if the number of transactions does not reach the preset number of transactions, obtain the day-end data of the preset day closest to the query day from the preset day-end data table according to the identity of the user, and According to the obtained daily settlement data and the preset number of transactions per page, perform billing pagination on the preset day's transactions closest to the query day of the user, determine the transaction time information of each page of bills based on the paged results, and Paging results and transaction time information for each page of bills are stored in the cache, where a piece of daily settlement data includes the number of transactions per day of the user.
  • the day-end data of the preset day closest to the query day includes the number of transactions per day in the preset day.
  • the obtained daily settlement data of the preset days is summarized, that is, the total number of transactions of the preset days is obtained, and according to the total number of transactions of the preset days and the preset number of transactions per page, the user is The transactions on the preset day closest to the query day are billed by page.
  • the setting of the preset day may be obtained by accumulating according to the query interval of the user's multiple query. For example, if the user frequently inquires the bill for the last 5 days, the user can automatically set the preset day to 5 days when he initiates the query request.
  • the billing information caching method further includes:
  • the daily transaction number of each user is summarized after the daily cut, and the daily settlement data of each user is generated according to the transaction number of the previous day of each user and stored in the preset daily settlement data table.
  • the daily transaction number of each user is stored in the preset daily settlement data table in units of daily settlement data, that is, the daily transaction number of each user is stored as one daily settlement data.
  • the daily settlement data may also include information on each transaction of the user per day, such as the transaction time and transaction amount of each transaction.
  • a client when a client sends a billing query request, it first queries whether there is data in the buffer. If there is no data in the buffer, it is determined whether the number of transactions on the user's query day reaches a preset number of transactions.
  • the number of transactions and the preset number of transactions per page paginate the transaction and determine the transaction time information of each page of the bill, and store the paged results and the transaction time information of each page of the bill in the cache; if not, obtain the closest Set the daily settlement data for a preset day, perform billing based on the daily settlement data and the preset number of transactions per page, and determine the transaction time information for each page of the bill.
  • the paged results and the transaction time information for each page of the bill are stored in the cache.
  • the number of transactions is first cached for billing information.
  • the time span of the user's transaction bill is determined based on the data in the cache, and the user's billing flow data is further queried according to the time span. Pressure to ensure the successful completion of the query service and increase the query speed, When large queries concurrently to avoid system crashes.
  • this embodiment provides a bill query method based on the bill information caching method in the foregoing embodiment.
  • the specific process is as follows:
  • step S301 upon receiving the bill query request sent by the user terminal, the time span of the bill of each page of the user transaction is determined according to the paged results in the cache and the transaction time information of the bill of each page.
  • the query of bills is based on the current user ID.
  • the user can check the billing data of the user at all times, which will cause great pressure on the billing database, reduce the query speed, and even cause the query service to be completed.
  • this implementation scans the user transaction information in the preset day-end data table according to the paged results in the cache and the transaction time information of each page of the bill, reducing the amount of data scanned per query, reducing the load pressure of the database paging query, and greatly Improved query performance.
  • the transaction time information of each page of the bill may include the starting transaction time and the last transaction time of each page of the bill, that is, each page of the bill includes the starting transaction time point and the ending transaction time point. According to the starting transaction of each page of the bill, The time point and the end time of the transaction determine the time span of each page of the user's transaction.
  • Step S302 Acquire the daily settlement data of the user from a preset daily settlement data table according to the time span of the bill of each page.
  • Step S303 Query the per-page flow data corresponding to the user and the date of each page flow based on the user's day-end data.
  • the flow data of each page corresponding to the user is determined according to the daily settlement data of the user, for example, the transaction amount and transaction route of each transaction, and the transaction time of each transaction is determined, so that the user can query the bill At the same time, understand your current transaction situation.
  • the number of bills displayed on each page is set according to the time span of each page, which reduces the amount of data scanned per query and reduces database paging. Query load pressure, while increasing the user's query experience.
  • the bill query method further includes:
  • the number of transactions in each page of the bill may be different, so each transaction in each page of the bill can be sorted according to the transaction time, so that the user can see it at a glance when viewing the bill.
  • each transaction in each page of the bill can also be sorted by the transaction amount.
  • each transaction in each page of the bill can be sorted according to the transaction amount, so that the user can see at a glance what time he is at The amount of segment transactions is relatively large, increasing the user experience.
  • the time span of each page of the bill is determined by the paged results in the cache and the transaction time information of each page of the bill, and then based on the time of each page of the bill
  • the span obtains the user's day-end data from the preset day-end data table, and finally queries the user's per-page flow data and the date of each page's flow based on the day-end data, reducing the amount of data scanned per query and the database.
  • Pagination query load pressure greatly improves query efficiency.
  • This embodiment provides another bill query method.
  • the specific process is as follows:
  • the user queries the number of transactions for the current day, and determines whether the number of transactions reaches the preset number of transactions.
  • the day-end data of the preset day closest to the query day is obtained from the preset day-end data table according to the identity of the user, and according to the acquired Day-end data and the preset number of transactions per page, pagination of bills for the preset day's transactions closest to the query day of the user, determining the transaction time information of each page of the bill based on the results of the paging, and dividing the paged results with The transaction time information of each page of bills is stored in the cache, wherein a piece of daily settlement data includes the number of transactions per day of the user.
  • the time span of each page of the user's transaction is determined according to the paged results in the cache and the transaction time information of each page of the bill.
  • the billing information is first cached according to the number of transactions of the user, and the day-end data in the preset day-end data table is directly obtained during the query based on the paged results in the cache and the transaction time information of each page of the bill. , Reduce the amount of data scanned per query, reduce the load on the billing database query load, improve the query speed, and greatly improve the query efficiency.
  • FIG. 4 shows a structural block diagram of the billing information buffering device in this embodiment. For convenience of explanation, only the parts related to this embodiment are shown.
  • the device includes a request query module 110, a transaction determination module 120, and an information cache module 130.
  • the request querying module 110 is configured to query whether there is data in the cache when a billing query request sent by a user terminal is received.
  • the transaction determining module 120 is configured to obtain the number of transactions of a user's query on the day if there is no data in the cache, and determine whether the number of transactions reaches a preset number of transactions.
  • the information buffering module 130 is configured to: if the number of transactions reaches the preset number of transactions, perform pagination of bills on the transaction of the user's query on the basis of the number of transactions and the preset number of transactions per page, and As a result, the transaction time information of each page of bills is determined, and the paging results and the transaction time information of each page of bills are stored in the cache.
  • the information caching module 130 is further configured to obtain, from the preset day-end data table, the day closest to the query day if the number of transactions does not reach the preset number of transactions, according to the identity of the user. Settle the data, and based on the obtained daily settlement data and the preset number of transactions per page, perform billing pagination on the preset day's transactions closest to the query day of the user, and determine the transaction time of each page of bills based on the paged results Information, and store the paged results and transaction time information of each page of bills into the cache, where a day-end data includes the number of transactions per day of the user.
  • the device further includes: a daily settlement summary module.
  • the daily settlement summary module is used to summarize the number of transactions of the previous day for each user after the daily cut, and generate the daily settlement data of each user based on the number of transactions of the previous day for each user and store them in the preset day settlement. Data sheet.
  • the requesting query module 110 first checks whether there is data in the buffer. If there is no data in the buffer, the transaction determining module 120 determines whether the number of transactions on the user's query day reaches the preset number of transactions.
  • Module 130 paginates the transactions according to the number of transactions and the preset number of transactions per page and determines the transaction time information of each page of the bill, and stores the paged results and the transaction time information of each page of the bill into the cache; if not, the information cache module 130 Obtain the daily settlement data of the preset day closest to the query day, perform billing based on the daily settlement data and the preset number of transactions per page, and determine the transaction time information of each page of the bill, that is, the billing information is first based on the number of transactions by the user. Prediction cache is used to obtain transaction information based on the data in the cache when querying, which reduces the load on the billing database query load and improves the query speed.
  • FIG. 5 shows a structural block diagram of the bill query device in this embodiment, which is based on the bill information cache device described in any one of the fourth embodiments. For convenience of explanation, only the parts related to this embodiment are shown.
  • the device includes: a time determination module 210, a data acquisition module 220, and a pipeline query module 230.
  • the time determining module 210 is configured to determine the time span of each page of the user's transaction according to the paged results in the cache and the transaction time information of each page of the bill when receiving the bill query request sent by the user.
  • the data obtaining module 220 is configured to obtain daily settlement data of the user from a preset daily settlement data table according to a time span of the bill of each page.
  • the flow query module 230 is configured to query the flow data of each page corresponding to the user and the date on which the flow of each page is located according to the daily settlement data of the user.
  • the time determination module 210 determines the time span of each page of the billing transaction of the user through the paged results in the cache and the transaction time information of each page of billing when receiving the billing query request sent by the client.
  • the obtaining module 220 obtains the daily settlement data of the user from a preset daily settlement data table according to the time span of the bill of each page, and finally the flow query module 230 queries the corresponding data of each page of the user and the date of each page of the flow according to the daily settlement data. , Reduce the amount of data scanned per query, reduce the database paging query load pressure, and greatly improve query efficiency.
  • FIG. 6 is a schematic diagram of a terminal device 100 provided in Embodiment 3 of the present application.
  • the terminal device 100 includes a processor 140, a memory 150, and a computer program 151 stored in the memory 150 and executable on the processor 140, such as a billing information cache. Method procedure, or bill inquiry method procedure.
  • the processor 140 executes the computer program 151, the steps of the foregoing billing information caching method embodiments are implemented, such as steps S101 to S104 shown in FIG. 1, or the steps of the above billing query method embodiments are implemented, For example, steps S101 to S103 shown in FIG. 3.
  • the functions of the modules / units in the foregoing device embodiments are implemented, for example, the functions of modules 110 to 130 shown in FIG. 4 or the functions of modules 210 to 230 shown in FIG. 5 Features.
  • the computer program 151 may be divided into one or more modules / units, and the one or more modules / units are stored in the memory 150 and executed by the processor 140 to complete this invention.
  • the one or more modules / units may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe an execution process of the computer program 151 in the terminal device 100.
  • the computer program 151 can be divided into a request query module, a transaction determination module, and an information cache module. The specific functions of each module are as follows:
  • the request query module is used to query whether there is data in the cache when a bill query request sent by a user terminal is received.
  • the transaction determination module is used to obtain the number of transactions of a user's query on the day if there is no data in the cache, and determine whether the number of transactions reaches a preset number of transactions.
  • the information cache module is configured to: if the number of transactions reaches the preset number of transactions, according to the number of transactions and the preset number of transactions per page, perform pagination of the bills of the transaction of the user's query on the current day, and according to the paged results Determine transaction time information for each page of bills, and store the paged results and transaction time information for each page of bills into the cache.
  • the information caching module is further configured to obtain the day end of the preset day closest to the query day from the preset day end data table according to the identity of the user, if the number of transactions does not reach the preset number of transactions. Data, and according to the obtained daily settlement data and the preset number of transactions per page, perform billing pagination on the preset day's transactions closest to the query day of the user, and determine the transaction time information of each page of bills based on the paged results , And storing the paged results and transaction time information of each page of bills into the cache, wherein a piece of daily settlement data includes the number of transactions per day of the user.
  • the computer program 151 may be divided into a time determination module, a data acquisition module, and a pipeline query module.
  • the specific functions of each module are as follows:
  • the time determination module is used to determine the time span of each page of the user's transaction according to the paged results in the cache and the transaction time information of each page of the bill when receiving the bill query request sent by the user.
  • the data acquisition module is configured to acquire daily settlement data of the user from a preset daily settlement data table according to a time span of the bill of each page.
  • the flow query module is used to query the flow data of each page corresponding to the user and the date on which the flow of each page is located according to the daily settlement data of the user.
  • the terminal device 100 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server.
  • the terminal device 100 may include, but is not limited to, a processor 140 and a memory 150.
  • FIG. 6 is only an example of the terminal device 100, and does not constitute a limitation on the terminal device 100. It may include more or fewer components than shown in the figure, or combine some components or different components.
  • the terminal device 100 may further include an input / output device, a network access device, and a bus.
  • the processor 140 may be a central processing unit (Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), and application-specific integrated circuits (Applications) Specific Integrated Circuit (ASIC), off-the-shelf Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • CPU Central Processing Unit
  • DSP digital signal processor
  • ASIC application-specific integrated circuits
  • FPGA off-the-shelf Programmable Gate Array
  • a general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the memory 150 may be an internal storage unit of the terminal device 100, such as a hard disk or a memory of the terminal device 100.
  • the memory 150 may also be an external storage device of the terminal device 100, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, and a flash memory card provided on the terminal device 100. (Flash Card), etc.
  • the memory 150 may further include both an internal storage unit of the terminal device 100 and an external storage device.
  • the memory 150 is configured to store the computer program and other programs and data required by the terminal device 100.
  • the memory 150 may also be used to temporarily store data that has been output or is to be output.
  • the disclosed apparatus / terminal device and method may be implemented in other ways.
  • the device / terminal device embodiments described above are only schematic.
  • the division of the modules or units is only a logical function division.
  • components can be combined or integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, which may be electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objective of the solution of this embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the above integrated unit may be implemented in the form of hardware or in the form of software functional unit.
  • the integrated module / unit When the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the methods of the above embodiments, and may also be completed by a computer program instructing related hardware.
  • the computer program may be stored in a computer-readable storage medium.
  • the computer When the program is executed by a processor, the steps of the foregoing method embodiments can be implemented.
  • the computer program includes computer program code, and the computer program code may be in a source code form, an object code form, an executable file, or some intermediate form.
  • the computer-readable medium may include: any entity or system capable of carrying the computer program code, a recording medium, a U disk, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signals, telecommunication signals, and software distribution media.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • electric carrier signals telecommunication signals
  • software distribution media any entity or system capable of carrying the computer program code
  • a recording medium a U disk, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signals, telecommunication signals, and software distribution media.

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present application is applicable to the technical field of data query, and provides a bill information caching method, a bill query method and a terminal device, comprising: querying whether there is data in a cache when a user side sends a bill query request; if not, determining whether the number of transactions of a user on the day of query reaches a preset number of transactions, and if so, carrying out bill pagination on transactions according to the number of transactions and a preset number of transactions on each page, determining transaction time information of each page of bill and storing same in a cache; and if not, acquiring daily settlement data on a preset day closest to the day of query, carrying out bill pagination according to the daily settlement data and the preset number of transactions on each page, determining transaction time information of each page of bill and storing same into the cache, when the user queries the bill, determining a time span of a transaction bill of the user according to the data in the cache, and further querying account statement data of the bill of the user according to the time span. The present application is simple and rapid, reduces the bill database query load pressure and increases the query speed.

Description

账单信息缓存方法、账单信息查询方法和终端设备Billing information buffering method, billing information query method, and terminal device 技术领域Technical field
本申请属于数据查询技术领域,尤其涉及一种账单信息缓存方法、账单信息查询方法和终端设备。The present application belongs to the technical field of data query, and particularly relates to a billing information buffering method, a billing information querying method, and a terminal device.
背景技术Background technique
现有技术中,用户每交易一笔账单都会将交易信息存入账单数据库,账单查询时,将账单数据库中所有交易信息都会进行汇总,然后实时分页并展示交易信息。但账单数据库缓存交易信息时仅是以交易的时间或交易的金额简单分类缓存,在账单查询时,直接访问账单数据库中所有交易信息,给账单数据库造成巨大压力,甚至导致查询服务无法完成,当查询并发量大的时候可能导致系统崩溃。In the prior art, each time a user trades a bill, the transaction information is stored in the billing database. When the bill is queried, all the transaction information in the billing database is summarized, and then the page information is displayed and displayed in real time. However, when the billing database caches transaction information, it simply sorts the cache based on the time of the transaction or the amount of the transaction. When querying the bill, it directly accesses all the transaction information in the billing database, which puts great pressure on the billing database and even causes the query service to fail to complete. A large number of concurrent queries may cause the system to crash.
技术问题technical problem
有鉴于此,本申请实施例提供了一种账单信息缓存方法、账单信息查询方法和终端设备,以解决现有技术中账单查询时给账单数据库造成巨大压力,当查询并发量大的时候可能导致系统崩溃的问题.。In view of this, embodiments of the present application provide a method for billing information caching, a method for querying billing information, and a terminal device, so as to solve the huge pressure on the billing database when the billing query in the prior art is caused. System crash problem ...
技术解决方案Technical solutions
本申请实施例的第一方面提供了一种账单信息缓存方法,包括:A first aspect of the embodiments of the present application provides a method for buffering bill information, including:
在接收到用户端发送的账单查询请求时,查询缓存中是否有数据;When receiving the bill query request sent by the client, query whether there is data in the cache;
若所述缓存中没有数据,则获取用户查询当天的交易笔数,并判断所述交易笔数是否达到预设交易笔数;If there is no data in the cache, obtaining a user's query for the number of transactions of the day, and determining whether the number of transactions reaches a preset number of transactions;
若所述交易笔数达到所述预设交易笔数,则根据所述交易笔数和预设每页交易数量,对所述用户查询当天的交易进行账单分页,根据分页结果确定每页账单的交易时间信息,并将分页结果和每页账单的交易时间信息存入所述缓存;If the number of transactions reaches the preset number of transactions, according to the number of transactions and the preset number of transactions per page, perform pagination of bills on the day of the user's query, and determine the billing of each page according to the results Transaction time information, and storing paged results and transaction time information for each page of bills into the cache;
若所述交易笔数未达到所述预设交易笔数,则根据所述用户的身份标识从预设日结数据表中获取距离查询当天最近的预设天的日结数据,并根据获取的日结数据和所述预设每页交易数量,对所述用户距离查询当天最近的所述预设天的交易进行账单分页,根据分页结果确定每页账单的交易时间信息,并将分页结果和每页账单的交易时间信息存入所述缓存,其中,一条日结数据包括所述用户一天的交易笔数。If the number of transactions does not reach the preset number of transactions, the day-end data of the preset day closest to the query day is obtained from the preset day-end data table according to the identity of the user, and according to the acquired Day-end data and the preset number of transactions per page, pagination of bills for the preset day's transactions closest to the query day of the user, determining the transaction time information of each page of the bill based on the results of the paging, and dividing the paged results with The transaction time information of each page of bills is stored in the cache, wherein a piece of daily settlement data includes the number of transactions per day of the user.
本申请实施例的第二方面提供了一种基于上述实施例的账单信息缓存方法的账单查询方法,包括:A second aspect of the embodiments of the present application provides a bill query method based on the bill information cache method of the foregoing embodiment, including:
在接收到用户端发送的账单查询请求时,根据缓存中的分页结果和每页账单的交易时间信息,确定用户交易的每页账单的时间跨度;When receiving the bill query request sent by the client, determine the time span of each page of the user's transaction according to the paged results in the cache and the transaction time information of each page of the bill;
根据所述每页账单的时间跨度从预设日结数据表中获取所述用户的日结数据;Obtaining the daily settlement data of the user from a preset daily settlement data table according to the time span of the bill per page;
根据所述用户的日结数据查询所述用户对应的每页流水数据和每页流水所在日期。Query the per-page flow data corresponding to the user and the date of each page flow based on the user's day-end data.
本申请实施例的第三方面提供了一种账单信息缓存装置,包括:A third aspect of the embodiments of the present application provides a billing information buffering device, including:
请求查询模块,用于在接收到用户端发送的账单查询请求时,查询缓存中是否有数据;A request query module is used to query whether there is data in the cache when a bill query request sent by a user terminal is received;
交易确定模块,用于若所述缓存中没有数据,则获取用户查询当天的交易笔数,并判断所述交易笔数是否达到预设交易笔数;A transaction determining module, configured to obtain, if there is no data in the cache, a user querying the number of transactions on the day, and determining whether the number of transactions reaches a preset number of transactions;
信息缓存模块,用于若所述交易笔数达到所述预设交易笔数,则根据所述交易笔数和预设每页交易数量,对所述用户查询当天的交易进行账单分页,根据分页结果确定每页账单的交易时间信息,并将分页结果和每页账单的交易时间信息存入所述缓存;An information buffer module, configured to: if the number of transactions reaches the preset number of transactions, perform pagination of bills on the transaction of the user's query on the basis of the number of transactions and the preset number of transactions per page, and The result determines the transaction time information of each page of the bill, and stores the paged result and the transaction time information of each page of the bill into the cache;
信息缓存模块还用于,若所述交易笔数未达到所述预设交易笔数,则根据所述用户的身份标识从预设日结数据表中获取距离查询当天最近的预设天的日结数据,并根据获取的日结数据和所述预设每页交易数量,对所述用户距离查询当天最近的所述预设天的交易进行账单分页,根据分页结果确定每页账单的交易时间信息,并将分页结果和每页账单的交易时间信息存入所述缓存,其中,一条日结数据包括所述用户一天的交易笔数。The information caching module is further configured to: if the number of transactions does not reach the preset number of transactions, obtain a date of a preset day closest to the query day from the preset day-end data table according to the identity of the user; Settle the data, and based on the obtained daily settlement data and the preset number of transactions per page, perform billing pagination on the preset day's transactions closest to the query day of the user, and determine the transaction time of each page of bills based on the paged results Information, and store the paged results and transaction time information of each page of bills into the cache, where a day-end data includes the number of transactions per day of the user.
本申请实施例的第四方面提供了一种基于上述实施例的账单信息缓存装置的账单查询装置,包括:A fourth aspect of the embodiments of the present application provides a bill query device based on the bill information cache device of the foregoing embodiment, including:
时间确定模块,用于在接收到用户端发送的账单查询请求时,根据缓存中的分页结果和每页账单的交易时间信息,确定用户交易的每页账单的时间跨度;A time determination module is used to determine the time span of each page of the user's transaction according to the paged results in the cache and the transaction time information of each page of the bill when the bill query request sent by the user is received;
数据获取模块,用于根据所述每页账单的时间跨度从预设日结数据表中获取所述用户的日结数据;A data acquisition module, configured to acquire daily settlement data of the user from a preset daily settlement data table according to a time span of the bill of each page;
流水查询模块,用于根据所述用户的日结数据查询所述用户对应的每页流水数据和每页流水所在日期。The flow query module is configured to query the flow data of each page corresponding to the user and the date on which the flow of each page is located according to the daily settlement data of the user.
本申请实施例的第五方面提供了一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上述账单信息缓存方法的步骤。A fifth aspect of the embodiments of the present application provides a terminal device including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, Implement the steps of the billing information caching method as described above.
本申请实施例的第六方面提供了一种计算机可读存储介质,所述计算机可读存储介质存储计算机程序,所述计算机程序被处理器执行时实现如上述账单信息缓存方法的步骤。According to a sixth aspect of the embodiments of the present application, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the billing information caching method described above are implemented.
有益效果Beneficial effect
本申请实施例,当用户端发送账单查询请求时先查询缓存中是否有数据,若缓存中没有数据,则判断用户查询当天的交易笔数是否达到预设交易笔数,若达到时,根据交易笔数和预设每页交易数量对交易进行账单分页并确定每页账单的交易时间信息,将分页结果和每页账单的交易时间信息存入缓存;若没有达到,获取距离查询当天最近的预设天的日结数据,根据日结数据和预设每页交易数量进行账单分页并确定每页账单的交易时间信息,将分页结果和每页账单的交易时间信息存入缓存,即根据用户的交易笔数对账单信息先进行预测缓存,用户查询账单时根据缓存中的数据确定用户交易账单的时间跨度,进一步根据该时间跨度查询用户账单流水数据,简单、快速,降低了账单数据库查询负载压力,保证查询服务顺利完成,提高了查询速度,当查询并发量大的时候避免发生系统崩溃。In the embodiment of the present application, when the client sends a bill query request, it first queries whether there is data in the cache. If there is no data in the cache, it is determined whether the number of transactions on the user ’s query day reaches the preset number of transactions. The number of transactions and the preset number of transactions per page paginate the transactions and determine the transaction time information of each page of the bill, and store the paged results and the transaction time information of each page of the bill into the cache; if it does not reach, obtain the nearest Set the day-to-day data, perform billing based on the day-to-day data and the preset number of transactions per page, and determine the transaction time information of each page of the bill. The paged results and transaction time information of each page of the bill are stored in the cache. The number of transactions is first cached on the billing information. When a user queries the bill, the time span of the user's transaction bill is determined based on the data in the cache, and the user's billing data is further queried based on the time span. To ensure the successful completion of the query service, which improves the query speed. A large amount of time to avoid system crashes.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1是本申请实施例提供的账单信息缓存方法的实现流程示意图;FIG. 1 is a schematic flowchart of an implementation of a billing information caching method provided by an embodiment of the present application;
图2是图1中步骤S103的实现流程示意图;FIG. 2 is a schematic flowchart of the implementation of step S103 in FIG. 1;
图3是本申请实施例提供的账单查询方法的实现流程示意图;FIG. 3 is a schematic flowchart of an implementation of a bill query method according to an embodiment of the present application; FIG.
图4是本申请实施例提供的账单信息缓存装置的结构示意图;4 is a schematic structural diagram of a billing information buffering device provided by an embodiment of the present application;
图5是本申请实施例提供的账单查询装置的结构示意图;5 is a schematic structural diagram of a bill inquiry device according to an embodiment of the present application;
图6是本申请实施例提供的终端设备的示意图。FIG. 6 is a schematic diagram of a terminal device according to an embodiment of the present application.
本发明的实施方式Embodiments of the invention
为了说明本申请所述的技术方案,下面通过具体实施例来进行说明。In order to explain the technical solution described in this application, specific examples are used for description below.
实施例一Example one
参见图1提供了账单信息缓存方法的一个实施例实现流程示意图,在该实施例中,以终端的角度触发为例进行说明,这里,终端可以为智能手机、平板电脑等移动终端。如图1所示,在该实施例中,终端的处理过程可以包括以下步骤:Referring to FIG. 1, a schematic flowchart of implementation of a method for billing information caching is provided. In this embodiment, an angle trigger of a terminal is used as an example for description. Here, the terminal may be a mobile terminal such as a smart phone or a tablet computer. As shown in FIG. 1, in this embodiment, the processing process of the terminal may include the following steps:
步骤S101,在接收到用户端发送的账单查询请求时,查询缓存中是否有数据。Step S101: when receiving a bill query request sent by a user terminal, query whether there is data in the cache.
其中,所述数据是指根据用户查询当天的交易笔数或距离查询当天最近的预设天的日结数据得到的分页结果和每页账单的交易时间信息。Wherein, the data refers to a paged result and transaction time information of each page of the bill, which are obtained according to the number of transactions on the day of the user's query or the day-end data of a preset day closest to the day of the query.
具体的,本实施例在用户端发送账单查询请求时,终端先查询缓存中是否有用户的数据,如果有数据,则根据缓存中的数据和用户的身份标识直接获取用户查询当天的总交易信息,或者根据缓存中的数据和用户的身份标识直接获取预设日结数据表中距离查询当天最近的预设天的日结数据,将查询当天的总交易信息或预设天的日结数据显示在查询账单中,以供当前用户查看,提高了查询速度。Specifically, in this embodiment, when the user terminal sends a bill query request, the terminal first queries whether there is user data in the cache. If there is data, it directly obtains the total transaction information of the user's query on the basis of the data in the cache and the user's identity. , Or directly obtain the day-end data of the preset day closest to the query day in the preset day-end data table based on the data in the cache and the user ’s identity, and display the total transaction information for the day or the day-end data of the preset day In the query bill, for the current user to view, the query speed is improved.
步骤S102,若所述缓存中没有数据,则获取用户查询当天的交易笔数,并判断所述交易笔数是否达到预设交易笔数。In step S102, if there is no data in the cache, the user queries the number of transactions for the current day, and determines whether the number of transactions reaches the preset number of transactions.
具体的,判断所述交易笔数是否达到所述预设交易笔数,是为了先确定用户查询当天是否有交易,如果有交易,则满足当前的账单查询条件,则根据所述交易笔数和预设每页交易数量对所述用户查询当天的交易进行账单分页,若没有交易,说明查询当天的交易笔数不满足当前的账单查询条件,则需要根据所述用户的身份标识从预设日结数据表中获取距离查询当天最近的预设天的日结数据。Specifically, the determination of whether the number of transactions reaches the preset number of transactions is to first determine whether the user queries whether there is a transaction on the day, and if there is a transaction, the current bill query conditions are met, and according to the number of transactions and The preset number of transactions per page performs pagination of the bills on the day of the user's query. If there is no transaction, it means that the number of transactions on the day of the query does not meet the current bill query conditions. Get the day-end data of the preset day closest to the query day in the end-data table.
示例性的,用户端在8月20号发出账单查询请求,缓存中没有数据,则获取用户8月20号的交易笔数,所述交易笔数为6笔,所述预设交易笔数为2笔,所述交易笔数达到所述预设交易笔数,则根据所述交易笔数和预设每页交易数量对所述用户查询当天的交易进行账单分页。Exemplarily, the client sends a bill query request on August 20, and there is no data in the cache, then the user's transaction number on August 20 is obtained, the transaction number is 6 and the preset transaction number is 2 transactions, if the number of transactions reaches the preset number of transactions, billing pagination of transactions on the day of the user's query is performed according to the number of transactions and the preset number of transactions per page.
示例性的,用户端在8月20号发出账单查询请求,缓存中没有数据,则获取用户8月20号的交易笔数,所述交易笔数为2笔,所述预设交易笔数为5笔,所述交易笔数未达到所述预设交易笔数,则根据所述用户的身份标识从预设日结数据表中获取距离查询当天最近的预设天的日结数据,例如从预设日结数据表中获取距离查询当天最近的8天的日结数据。Exemplarily, the client sends a bill query request on August 20, and there is no data in the cache, then the transaction number of the user on August 20 is obtained. The transaction number is 2 and the preset transaction number is 5, if the number of transactions does not reach the preset number of transactions, the day-end data of the preset day closest to the query day is obtained from the preset day-end data table according to the identity of the user, for example, from Get the day-end data in the preset day-end data table for the 8 days closest to the query day.
步骤S103,若所述交易笔数达到所述预设交易笔数,则根据所述交易笔数和预设每页交易数量,对所述用户查询当天的交易进行账单分页,根据分页结果确定每页账单的交易时间信息,并将分页结果和每页账单的交易时间信息存入所述缓存。In step S103, if the number of transactions reaches the preset number of transactions, then according to the number of transactions and the preset number of transactions per page, perform billing pagination on the transactions of the user's query day, and determine each Page transaction time information, and paged results and transaction time information of each page bill are stored in the cache.
具体的,将分页结果和每页账单的交易时间信息存入所述缓存中,以便用户再次发起账单查询请求时,可以直接根据缓存中的数据(分页结果和每页账单的交易时间信息)获取日结数据库中用户的交易信息,不需要访问整个账单数据库,提高账单查询速度,减少账单数据库的压力。Specifically, the paged results and transaction time information of each page of bills are stored in the cache, so that when a user initiates a bill query request again, he can directly obtain the data in the cache (paged results and transaction time information of each page of bills). The transaction information of the users in the daily settlement database does not need to access the entire billing database, which improves the query speed of the bill and reduces the pressure on the billing database.
其中,每笔交易包括交易时间,还可以包括交易金额等。Among them, each transaction includes the transaction time, and can also include the transaction amount.
另一个实施例中,参见图2,步骤S103所述的根据所述交易笔数和预设每页交易数量,对所述用户查询当天的交易进行账单分页,根据分页结果确定每页账单的交易时间信息的具体实现流程包括:In another embodiment, referring to FIG. 2, in step S103, according to the number of transactions and a preset number of transactions per page, perform billing pagination on the transaction of the user's query day, and determine the transaction of each page of billing according to the paging results. The specific implementation process of time information includes:
步骤S201,根据表达式pageCount= (orderCount- pageSize )% pageSize+1,对所述用户查询当天的交易进行账单分页,其中,pageCount为可分页码,orderCount为所述交易笔数,pageSize为所述预设每页交易数量。Step S201, according to the expression pageCount = (orderCount- pageSize)% pageSize + 1, pagination of bills for transactions on the day of the user's query, where pageCount is a pageable number, orderCount is the number of transactions, and pageSize is the preset number of transactions per page.
具体的,所述交易笔数减去预设每页交易数量得到的差值,再与预设每页交易数量相除,得到的商取整再加上1,最终得到可分页码。Specifically, the difference between the number of transactions minus the preset number of transactions per page is divided by the preset number of transactions per page, and the resulting quotient is rounded up by one and finally the pageable number is obtained.
示例性的,所述交易笔数为95,预设每页交易数量为20,得到的商为3.75,对商进行四舍五入取整,再加1,得到可分页码为5页。Exemplarily, the number of transactions is 95, the preset number of transactions per page is 20, the quotient obtained is 3.75, the quotient is rounded and rounded, and 1 is added to obtain a pageable number of 5 pages.
步骤S202,根据所述可分页码和每笔交易的交易时间,确定每页账单的交易时间信息。Step S202: Determine the transaction time information of each page of the bill according to the pageable number and the transaction time of each transaction.
其中,每页账单的交易时间信息可以包括每页账单的起始交易时间和最后交易时间,即每页账单均包括起始交易时间点和结束交易时间点。The transaction time information of each page of the bill may include the start transaction time and the last transaction time of each page of the bill, that is, each page of the bill includes the start transaction time point and the end transaction time point.
具体的,将每笔交易按预设每页交易数量分配到可分页码的账单中,分配完成后可根据每页账单内的每笔交易的交易时间确定每页账单的始交易时间点和结束交易时间点。Specifically, each transaction is allocated to a pageable bill according to a preset number of transactions per page. After the allocation is completed, the start time and end of each page of the bill can be determined according to the transaction time of each transaction in the bill of each page. Trading point in time.
示例性的,用户端在8月20号发出账单查询请求,缓存中没有数据,则获取用户8月20号的交易笔数,所述交易笔数达到所述预设交易笔数,则根据所述交易笔数和预设每页交易数量对所述用户查询当天的交易进行账单分页。例如8月20号的交易笔数为36笔,预设每页交易数量为10,得到可分页码为4页。将36笔交易按预设每页交易数量分配到4页账单中,此时,每页账单中均包括始交易时间点和结束交易时间点。Exemplarily, the client sends a bill query request on August 20th, and there is no data in the cache, then the transaction number of the user on August 20th is obtained, and the transaction number reaches the preset transaction number, according to the The number of transactions and the preset number of transactions per page are used to perform pagination of the transactions on the day of the user's query. For example, the number of transactions on August 20 is 36, the default number of transactions per page is 10, and the pageable number is 4 pages. 36 transactions are allocated to 4 pages of bills according to the preset number of transactions per page. At this time, each page of the bill includes the time point of starting the transaction and the time point of ending the transaction.
步骤104,若所述交易笔数未达到所述预设交易笔数,则根据所述用户的身份标识从预设日结数据表中获取距离查询当天最近的预设天的日结数据,并根据获取的日结数据和所述预设每页交易数量,对所述用户距离查询当天最近的所述预设天的交易进行账单分页,根据分页结果确定每页账单的交易时间信息,并将分页结果和每页账单的交易时间信息存入所述缓存,其中,一条日结数据包括所述用户一天的交易笔数。Step 104: if the number of transactions does not reach the preset number of transactions, obtain the day-end data of the preset day closest to the query day from the preset day-end data table according to the identity of the user, and According to the obtained daily settlement data and the preset number of transactions per page, perform billing pagination on the preset day's transactions closest to the query day of the user, determine the transaction time information of each page of bills based on the paged results, and Paging results and transaction time information for each page of bills are stored in the cache, where a piece of daily settlement data includes the number of transactions per day of the user.
距离查询当天最近的预设天的日结数据包括预设天内每天的交易笔数。具体的,将获取的预设天的日结数据进行汇总,即得到预设天的总交易笔数,根据预设天的总交易笔数和所述预设每页交易数量,对所述用户距离查询当天最近的所述预设天的交易进行账单分页。The day-end data of the preset day closest to the query day includes the number of transactions per day in the preset day. Specifically, the obtained daily settlement data of the preset days is summarized, that is, the total number of transactions of the preset days is obtained, and according to the total number of transactions of the preset days and the preset number of transactions per page, the user is The transactions on the preset day closest to the query day are billed by page.
其中,所述预设天的设置可以根据用户多次查询的查询区间累计得出。例如,用户经常查询近5天的账单,则用户在发起查询请求时,可自动将预设天设置为5天。Wherein, the setting of the preset day may be obtained by accumulating according to the query interval of the user's multiple query. For example, if the user frequently inquires the bill for the last 5 days, the user can automatically set the preset day to 5 days when he initiates the query request.
另一个实施例中,所述账单信息缓存方法还包括:In another embodiment, the billing information caching method further includes:
每天日切后汇总每个用户前一天的交易笔数,并分别根据每个用户前一天的交易笔数生成每个用户的日结数据存入到所述预设日结数据表中。The daily transaction number of each user is summarized after the daily cut, and the daily settlement data of each user is generated according to the transaction number of the previous day of each user and stored in the preset daily settlement data table.
具体的,每个用户每天的交易笔数均以日结数据为单位存入到所述预设日结数据表中,即每个用户每天的交易笔数以一条日结数据进行存储。可选的,日结数据还可以包括用户每天的每笔交易信息,例如每笔交易的交易时间和交易金额。Specifically, the daily transaction number of each user is stored in the preset daily settlement data table in units of daily settlement data, that is, the daily transaction number of each user is stored as one daily settlement data. Optionally, the daily settlement data may also include information on each transaction of the user per day, such as the transaction time and transaction amount of each transaction.
上述账单信息缓存方法,当用户端发送账单查询请求时先查询缓存中是否有数据,若缓存中没有数据,则判断用户查询当天的交易笔数是否达到预设交易笔数,若达到时,根据交易笔数和预设每页交易数量对交易进行账单分页并确定每页账单的交易时间信息,将分页结果和每页账单的交易时间信息存入缓存;若没有达到,获取距离查询当天最近的预设天的日结数据,根据日结数据和预设每页交易数量进行账单分页并确定每页账单的交易时间信息,将分页结果和每页账单的交易时间信息存入缓存,即根据用户的交易笔数对账单信息先进行预测缓存,用户查询账单时根据缓存中的数据确定用户交易账单的时间跨度,进一步根据该时间跨度查询用户账单流水数据,简单、快速,降低了账单数据库查询负载压力,保证查询服务顺利完成,提高了查询速度,当查询并发量大的时候避免发生系统崩溃。In the above billing information buffering method, when a client sends a billing query request, it first queries whether there is data in the buffer. If there is no data in the buffer, it is determined whether the number of transactions on the user's query day reaches a preset number of transactions. The number of transactions and the preset number of transactions per page paginate the transaction and determine the transaction time information of each page of the bill, and store the paged results and the transaction time information of each page of the bill in the cache; if not, obtain the closest Set the daily settlement data for a preset day, perform billing based on the daily settlement data and the preset number of transactions per page, and determine the transaction time information for each page of the bill. The paged results and the transaction time information for each page of the bill are stored in the cache. The number of transactions is first cached for billing information. When the user queries the bill, the time span of the user's transaction bill is determined based on the data in the cache, and the user's billing flow data is further queried according to the time span. Pressure to ensure the successful completion of the query service and increase the query speed, When large queries concurrently to avoid system crashes.
实施例二Example two
参见图3,本实施例提供了一种基于上述实施例中的账单信息缓存方法的账单查询方法,具体流程如下:Referring to FIG. 3, this embodiment provides a bill query method based on the bill information caching method in the foregoing embodiment. The specific process is as follows:
步骤S301,在接收到用户端发送的账单查询请求时,根据缓存中的分页结果和每页账单的交易时间信息,确定用户交易的每页账单的时间跨度。In step S301, upon receiving the bill query request sent by the user terminal, the time span of the bill of each page of the user transaction is determined according to the paged results in the cache and the transaction time information of the bill of each page.
现有技术中,账单查询均是根据当前用户编号,在大数据量的场景下查询用户的所有时间的账单流水数据,会给账单数据库造成巨大压力,降低了查询速度,甚至导致查询服务无法完成,当多个用户同时查询的时候可能导致系统崩溃。所以,本实施根据缓存中的分页结果和每页账单的交易时间信息去扫描预设日结数据表中的用户交易信息,减少每次查询扫描的数据量,降低了数据库分页查询负载压力,大大提高的查询性能。In the prior art, the query of bills is based on the current user ID. In all scenarios, the user can check the billing data of the user at all times, which will cause great pressure on the billing database, reduce the query speed, and even cause the query service to be completed. When multiple users query at the same time, it may cause the system to crash. Therefore, this implementation scans the user transaction information in the preset day-end data table according to the paged results in the cache and the transaction time information of each page of the bill, reducing the amount of data scanned per query, reducing the load pressure of the database paging query, and greatly Improved query performance.
具体的,每页账单的交易时间信息可以包括每页账单的起始交易时间和最后交易时间,即每页账单均包括起始交易时间点和结束交易时间点,根据每页账单的起始交易时间点和结束交易时间点,确定用户交易的每页账单的时间跨度。Specifically, the transaction time information of each page of the bill may include the starting transaction time and the last transaction time of each page of the bill, that is, each page of the bill includes the starting transaction time point and the ending transaction time point. According to the starting transaction of each page of the bill, The time point and the end time of the transaction determine the time span of each page of the user's transaction.
步骤S302,根据所述每页账单的时间跨度从预设日结数据表中获取所述用户的日结数据。Step S302: Acquire the daily settlement data of the user from a preset daily settlement data table according to the time span of the bill of each page.
步骤S303,根据所述用户的日结数据查询所述用户对应的每页流水数据和每页流水所在日期。Step S303: Query the per-page flow data corresponding to the user and the date of each page flow based on the user's day-end data.
具体的,根据所述用户的日结数据确定所述用户对应的每页流水数据,例如每笔交易的交易金额和交易途径,以及确定每笔交易的交易时间,这样可以使用户在查询账单的同时,了解自己的当时的交易情况。Specifically, the flow data of each page corresponding to the user is determined according to the daily settlement data of the user, for example, the transaction amount and transaction route of each transaction, and the transaction time of each transaction is determined, so that the user can query the bill At the same time, understand your current transaction situation.
基于用户的交易笔数确定账单的时间跨度,并根据时间跨度获取预设日结数据表中用户的日结数据,比现有技术中直接将所有交易分页进行显示更加快速,而且每日账单较多时,如果每页显示账单笔数相同,用户可能需要反复操作换页,本实施例根据每页的时间跨度设置每页账单显示的笔数,减少每次查询扫描的数据量,降低了数据库分页查询负载压力,同时增加了用户查询的体验感。Determine the time span of the bill based on the number of users' transactions, and obtain the user's daily settlement data in the preset daily settlement data table based on the time span, which is faster than directly displaying all transactions by page in the prior art. For a long time, if the number of bills displayed on each page is the same, the user may need to repeatedly switch pages. In this embodiment, the number of bills displayed on each page is set according to the time span of each page, which reduces the amount of data scanned per query and reduces database paging. Query load pressure, while increasing the user's query experience.
另一个实施例中,所述账单查询方法还包括:In another embodiment, the bill query method further includes:
将所述每页流水数据和每页流水所在日期展示到流水账单中。Display the flow data of each page and the date on which each flow of pages is displayed in a flow statement.
具体的,每页账单中的交易数量可能会不同,所以可以对每页账单中的每笔交易按所述交易时间进行排序,可以让用户在查看账单的时候一目了然。Specifically, the number of transactions in each page of the bill may be different, so each transaction in each page of the bill can be sorted according to the transaction time, so that the user can see it at a glance when viewing the bill.
可选的,还可以将每页账单中的每笔交易按所述交易金额进行排序。Optionally, each transaction in each page of the bill can also be sorted by the transaction amount.
实际应用中,用户在查询账单的时候可能会更想了解金钱数量的交易,则可以将每页账单中的每笔交易按所述交易金额进行排序,可以使用户一目了然的查看到自己在哪个时间段交易的金额比较多,增加用户体验。In actual applications, users may want to know more about the amount of money when querying the bill. Then, each transaction in each page of the bill can be sorted according to the transaction amount, so that the user can see at a glance what time he is at The amount of segment transactions is relatively large, increasing the user experience.
上述账单查询方法,在接收到用户端发送的账单查询请求时,通过缓存中的分页结果和每页账单的交易时间信息,确定用户交易的每页账单的时间跨度,然后根据每页账单的时间跨度从预设日结数据表中获取所述用户的日结数据,最后根据日结数据查询用户对应的每页流水数据和每页流水所在日期,减少每次查询扫描的数据量,降低了数据库分页查询负载压力,大大提高查询效率。In the above bill query method, when receiving a bill query request sent by a client, the time span of each page of the bill is determined by the paged results in the cache and the transaction time information of each page of the bill, and then based on the time of each page of the bill The span obtains the user's day-end data from the preset day-end data table, and finally queries the user's per-page flow data and the date of each page's flow based on the day-end data, reducing the amount of data scanned per query and the database. Pagination query load pressure greatly improves query efficiency.
本领域技术人员可以理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。Those skilled in the art can understand that the size of the sequence numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not deal with the implementation process of the embodiment of the present invention. Constitute any limitation.
实施例三Example three
本实施例提供了另一种账单查询方法,具体流程如下:This embodiment provides another bill query method. The specific process is as follows:
在接收到用户端发送的账单查询请求时,查询缓存中是否有数据。When receiving the bill query request sent by the client, query whether there is data in the cache.
若所述缓存中没有数据,则获取用户查询当天的交易笔数,并判断所述交易笔数是否达到预设交易笔数。If there is no data in the cache, the user queries the number of transactions for the current day, and determines whether the number of transactions reaches the preset number of transactions.
若所述交易笔数达到所述预设交易笔数,则根据所述交易笔数和预设每页交易数量,对所述用户查询当天的交易进行账单分页,根据分页结果确定每页账单的交易时间信息,并将分页结果和每页账单的交易时间信息存入所述缓存。If the number of transactions reaches the preset number of transactions, according to the number of transactions and the preset number of transactions per page, perform pagination of bills on the day of the user's query, and determine the billing of each page according to the results of the paging. Transaction time information, and storing the paged results and transaction time information of each page of bills into the cache.
若所述交易笔数未达到所述预设交易笔数,则根据所述用户的身份标识从预设日结数据表中获取距离查询当天最近的预设天的日结数据,并根据获取的日结数据和所述预设每页交易数量,对所述用户距离查询当天最近的所述预设天的交易进行账单分页,根据分页结果确定每页账单的交易时间信息,并将分页结果和每页账单的交易时间信息存入所述缓存,其中,一条日结数据包括所述用户一天的交易笔数。If the number of transactions does not reach the preset number of transactions, the day-end data of the preset day closest to the query day is obtained from the preset day-end data table according to the identity of the user, and according to the acquired Day-end data and the preset number of transactions per page, pagination of bills for the preset day's transactions closest to the query day of the user, determining the transaction time information of each page of the bill based on the results of the paging, and dividing the paged results with The transaction time information of each page of bills is stored in the cache, wherein a piece of daily settlement data includes the number of transactions per day of the user.
用户查询时,根据缓存中的分页结果和每页账单的交易时间信息,确定用户交易的每页账单的时间跨度。When a user queries, the time span of each page of the user's transaction is determined according to the paged results in the cache and the transaction time information of each page of the bill.
根据所述每页账单的时间跨度从预设日结数据表中获取所述用户的日结数据。Acquiring the daily settlement data of the user from a preset daily settlement data table according to the time span of the bill of each page.
根据所述用户的日结数据查询所述用户对应的每页流水数据和每页流水所在日期。Query the per-page flow data corresponding to the user and the date of each page flow based on the user's day-end data.
上述账单查询方法,先根据用户的交易笔数对账单信息先进行预测缓存,在查询时根据缓存中的分页结果和每页账单的交易时间信息直接获取预设日结数据表中的日结数据,减少每次查询扫描的数据量,降低了账单数据库查询负载压力,提高了查询速度,大大提高查询效率。In the above bill query method, the billing information is first cached according to the number of transactions of the user, and the day-end data in the preset day-end data table is directly obtained during the query based on the paged results in the cache and the transaction time information of each page of the bill. , Reduce the amount of data scanned per query, reduce the load on the billing database query load, improve the query speed, and greatly improve the query efficiency.
实施例四Embodiment 4
对应于上文实施例一所述的账单信息缓存方法,图4中示出了本实施例中账单信息缓存装置的结构框图。为了便于说明,仅示出了与本实施例相关的部分。Corresponding to the billing information buffering method described in the first embodiment above, FIG. 4 shows a structural block diagram of the billing information buffering device in this embodiment. For convenience of explanation, only the parts related to this embodiment are shown.
该装置包括:请求查询模块110、交易确定模块120和信息缓存模块130。The device includes a request query module 110, a transaction determination module 120, and an information cache module 130.
请求查询模块110用于在接收到用户端发送的账单查询请求时,查询缓存中是否有数据。The request querying module 110 is configured to query whether there is data in the cache when a billing query request sent by a user terminal is received.
交易确定模块120用于若所述缓存中没有数据,则获取用户查询当天的交易笔数,并判断所述交易笔数是否达到预设交易笔数。The transaction determining module 120 is configured to obtain the number of transactions of a user's query on the day if there is no data in the cache, and determine whether the number of transactions reaches a preset number of transactions.
信息缓存模块130用于若所述交易笔数达到所述预设交易笔数,则根据所述交易笔数和预设每页交易数量,对所述用户查询当天的交易进行账单分页,根据分页结果确定每页账单的交易时间信息,并将分页结果和每页账单的交易时间信息存入所述缓存。The information buffering module 130 is configured to: if the number of transactions reaches the preset number of transactions, perform pagination of bills on the transaction of the user's query on the basis of the number of transactions and the preset number of transactions per page, and As a result, the transaction time information of each page of bills is determined, and the paging results and the transaction time information of each page of bills are stored in the cache.
信息缓存模块130还用于若所述交易笔数未达到所述预设交易笔数,则根据所述用户的身份标识从预设日结数据表中获取距离查询当天最近的预设天的日结数据,并根据获取的日结数据和所述预设每页交易数量,对所述用户距离查询当天最近的所述预设天的交易进行账单分页,根据分页结果确定每页账单的交易时间信息,并将分页结果和每页账单的交易时间信息存入所述缓存,其中,一条日结数据包括所述用户一天的交易笔数。The information caching module 130 is further configured to obtain, from the preset day-end data table, the day closest to the query day if the number of transactions does not reach the preset number of transactions, according to the identity of the user. Settle the data, and based on the obtained daily settlement data and the preset number of transactions per page, perform billing pagination on the preset day's transactions closest to the query day of the user, and determine the transaction time of each page of bills based on the paged results Information, and store the paged results and transaction time information of each page of bills into the cache, where a day-end data includes the number of transactions per day of the user.
可选的,该装置还包括:日结汇总模块。Optionally, the device further includes: a daily settlement summary module.
日结汇总模块用于每天日切后汇总每个用户前一天的交易笔数,并分别根据每个用户前一天的交易笔数生成每个用户的日结数据存入到所述预设日结数据表中。The daily settlement summary module is used to summarize the number of transactions of the previous day for each user after the daily cut, and generate the daily settlement data of each user based on the number of transactions of the previous day for each user and store them in the preset day settlement. Data sheet.
上述账单信息缓存装置,请求查询模块110先查询缓存中是否有数据,若缓存中没有数据,交易确定模块120判断用户查询当天的交易笔数是否达到预设交易笔数,若达到时,信息缓存模块130根据交易笔数和预设每页交易数量对交易进行账单分页并确定每页账单的交易时间信息,将分页结果和每页账单的交易时间信息存入缓存;若没有达到,信息缓存模块130获取距离查询当天最近的预设天的日结数据,根据日结数据和预设每页交易数量进行账单分页并确定每页账单的交易时间信息,即根据用户的交易笔数对账单信息先进行预测缓存,在查询时根据缓存中的数据获取交易信息,降低了账单数据库查询负载压力,提高了查询速度。In the above-mentioned billing information buffering device, the requesting query module 110 first checks whether there is data in the buffer. If there is no data in the buffer, the transaction determining module 120 determines whether the number of transactions on the user's query day reaches the preset number of transactions. Module 130 paginates the transactions according to the number of transactions and the preset number of transactions per page and determines the transaction time information of each page of the bill, and stores the paged results and the transaction time information of each page of the bill into the cache; if not, the information cache module 130 Obtain the daily settlement data of the preset day closest to the query day, perform billing based on the daily settlement data and the preset number of transactions per page, and determine the transaction time information of each page of the bill, that is, the billing information is first based on the number of transactions by the user. Prediction cache is used to obtain transaction information based on the data in the cache when querying, which reduces the load on the billing database query load and improves the query speed.
实施例五Example 5
对应于上文实施例二所述的账单查询方法,图5中示出了本实施例中账单查询装置的结构框图,基于上述实施例四中任一种所述的账单信息缓存装置。为了便于说明,仅示出了与本实施例相关的部分。Corresponding to the bill query method described in the second embodiment above, FIG. 5 shows a structural block diagram of the bill query device in this embodiment, which is based on the bill information cache device described in any one of the fourth embodiments. For convenience of explanation, only the parts related to this embodiment are shown.
该装置包括:时间确定模块210、数据获取模块220和流水查询模块230。The device includes: a time determination module 210, a data acquisition module 220, and a pipeline query module 230.
时间确定模块210用于在接收到用户端发送的账单查询请求时,根据缓存中的分页结果和每页账单的交易时间信息,确定用户交易的每页账单的时间跨度。The time determining module 210 is configured to determine the time span of each page of the user's transaction according to the paged results in the cache and the transaction time information of each page of the bill when receiving the bill query request sent by the user.
数据获取模块220用于根据所述每页账单的时间跨度从预设日结数据表中获取所述用户的日结数据。The data obtaining module 220 is configured to obtain daily settlement data of the user from a preset daily settlement data table according to a time span of the bill of each page.
流水查询模块230用于根据所述用户的日结数据查询所述用户对应的每页流水数据和每页流水所在日期。The flow query module 230 is configured to query the flow data of each page corresponding to the user and the date on which the flow of each page is located according to the daily settlement data of the user.
上述账单信息缓存装置,时间确定模块210在接收到用户端发送的账单查询请求时,通过缓存中的分页结果和每页账单的交易时间信息,确定用户交易的每页账单的时间跨度,然后数据获取模块220根据每页账单的时间跨度从预设日结数据表中获取所述用户的日结数据,最后流水查询模块230根据日结数据查询用户对应的每页流水数据和每页流水所在日期,减少每次查询扫描的数据量,降低了数据库分页查询负载压力,大大提高查询效率。In the above-mentioned billing information buffering device, the time determination module 210 determines the time span of each page of the billing transaction of the user through the paged results in the cache and the transaction time information of each page of billing when receiving the billing query request sent by the client. The obtaining module 220 obtains the daily settlement data of the user from a preset daily settlement data table according to the time span of the bill of each page, and finally the flow query module 230 queries the corresponding data of each page of the user and the date of each page of the flow according to the daily settlement data. , Reduce the amount of data scanned per query, reduce the database paging query load pressure, and greatly improve query efficiency.
实施例六Example Six
图6是本申请实施例三提供的一种终端设备100的示意图。如图6所示,该实施例所述的终端设备100包括:处理器140、存储器150以及存储在所述存储器150中并可在所述处理器140上运行的计算机程序151,例如账单信息缓存方法的程序,或账单查询方法的程序。所述处理器140在执行所述计算机程序151时实现上述各个账单信息缓存方法实施例中的步骤,例如图1所示的步骤S101至S104,或实现上述各个账单查询方法实施例中的步骤,例如图3所示的步骤S101至S103。或者,所述处理器140执行所述计算机程序151时实现上述各装置实施例中各模块/单元的功能,例如图4所示模块110至130的功能,或图5所示模块210至230的功能。FIG. 6 is a schematic diagram of a terminal device 100 provided in Embodiment 3 of the present application. As shown in FIG. 6, the terminal device 100 according to this embodiment includes a processor 140, a memory 150, and a computer program 151 stored in the memory 150 and executable on the processor 140, such as a billing information cache. Method procedure, or bill inquiry method procedure. When the processor 140 executes the computer program 151, the steps of the foregoing billing information caching method embodiments are implemented, such as steps S101 to S104 shown in FIG. 1, or the steps of the above billing query method embodiments are implemented, For example, steps S101 to S103 shown in FIG. 3. Alternatively, when the processor 140 executes the computer program 151, the functions of the modules / units in the foregoing device embodiments are implemented, for example, the functions of modules 110 to 130 shown in FIG. 4 or the functions of modules 210 to 230 shown in FIG. 5 Features.
示例性的,所述计算机程序151可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器150中,并由所述处理器140执行,以完成本发明。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序151在所述终端设备100中的执行过程。例如,所述计算机程序151可以被分割成请求查询模块、交易确定模块和信息缓存模块,各模块具体功能如下:Exemplarily, the computer program 151 may be divided into one or more modules / units, and the one or more modules / units are stored in the memory 150 and executed by the processor 140 to complete this invention. The one or more modules / units may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe an execution process of the computer program 151 in the terminal device 100. For example, the computer program 151 can be divided into a request query module, a transaction determination module, and an information cache module. The specific functions of each module are as follows:
请求查询模块用于在接收到用户端发送的账单查询请求时,查询缓存中是否有数据。The request query module is used to query whether there is data in the cache when a bill query request sent by a user terminal is received.
交易确定模块用于若所述缓存中没有数据,则获取用户查询当天的交易笔数,并判断所述交易笔数是否达到预设交易笔数。The transaction determination module is used to obtain the number of transactions of a user's query on the day if there is no data in the cache, and determine whether the number of transactions reaches a preset number of transactions.
信息缓存模块用于若所述交易笔数达到所述预设交易笔数,则根据所述交易笔数和预设每页交易数量,对所述用户查询当天的交易进行账单分页,根据分页结果确定每页账单的交易时间信息,并将分页结果和每页账单的交易时间信息存入所述缓存。The information cache module is configured to: if the number of transactions reaches the preset number of transactions, according to the number of transactions and the preset number of transactions per page, perform pagination of the bills of the transaction of the user's query on the current day, and according to the paged results Determine transaction time information for each page of bills, and store the paged results and transaction time information for each page of bills into the cache.
信息缓存模块还用于若所述交易笔数未达到所述预设交易笔数,则根据所述用户的身份标识从预设日结数据表中获取距离查询当天最近的预设天的日结数据,并根据获取的日结数据和所述预设每页交易数量,对所述用户距离查询当天最近的所述预设天的交易进行账单分页,根据分页结果确定每页账单的交易时间信息,并将分页结果和每页账单的交易时间信息存入所述缓存,其中,一条日结数据包括所述用户一天的交易笔数。The information caching module is further configured to obtain the day end of the preset day closest to the query day from the preset day end data table according to the identity of the user, if the number of transactions does not reach the preset number of transactions. Data, and according to the obtained daily settlement data and the preset number of transactions per page, perform billing pagination on the preset day's transactions closest to the query day of the user, and determine the transaction time information of each page of bills based on the paged results , And storing the paged results and transaction time information of each page of bills into the cache, wherein a piece of daily settlement data includes the number of transactions per day of the user.
例如,所述计算机程序151可以被分割成时间确定模块、数据获取模块和流水查询模块,各模块具体功能如下:For example, the computer program 151 may be divided into a time determination module, a data acquisition module, and a pipeline query module. The specific functions of each module are as follows:
时间确定模块用于在接收到用户端发送的账单查询请求时,根据缓存中的分页结果和每页账单的交易时间信息,确定用户交易的每页账单的时间跨度。The time determination module is used to determine the time span of each page of the user's transaction according to the paged results in the cache and the transaction time information of each page of the bill when receiving the bill query request sent by the user.
数据获取模块用于根据所述每页账单的时间跨度从预设日结数据表中获取所述用户的日结数据。The data acquisition module is configured to acquire daily settlement data of the user from a preset daily settlement data table according to a time span of the bill of each page.
流水查询模块用于根据所述用户的日结数据查询所述用户对应的每页流水数据和每页流水所在日期。The flow query module is used to query the flow data of each page corresponding to the user and the date on which the flow of each page is located according to the daily settlement data of the user.
所述终端设备100可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。所述终端设备100可包括,但不仅限于处理器140、存储器150。本领域技术人员可以理解,图6仅仅是终端设备100的示例,并不构成对终端设备100的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如终端设备100还可以包括输入输出设备、网络接入设备、总线等。The terminal device 100 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server. The terminal device 100 may include, but is not limited to, a processor 140 and a memory 150. Those skilled in the art can understand that FIG. 6 is only an example of the terminal device 100, and does not constitute a limitation on the terminal device 100. It may include more or fewer components than shown in the figure, or combine some components or different components. For example, the terminal device 100 may further include an input / output device, a network access device, and a bus.
所称处理器140可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器 (Digital Signal Processor,DSP)、专用集成电路 (Application Specific Integrated Circuit,ASIC)、现成可编程门阵列 (Field-Programmable Gate Array,FPGA) 或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor 140 may be a central processing unit (Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), and application-specific integrated circuits (Applications) Specific Integrated Circuit (ASIC), off-the-shelf Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
所述存储器150可以是终端设备100的内部存储单元,例如终端设备100的硬盘或内存。所述存储器150也可以是终端设备100的外部存储设备,例如终端设备100上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器150还可以既包括终端设备100的内部存储单元也包括外部存储设备。所述存储器150用于存储所述计算机程序以及终端设备100所需的其他程序和数据。所述存储器150还可以用于暂时地存储已经输出或者将要输出的数据。The memory 150 may be an internal storage unit of the terminal device 100, such as a hard disk or a memory of the terminal device 100. The memory 150 may also be an external storage device of the terminal device 100, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, and a flash memory card provided on the terminal device 100. (Flash Card), etc. Further, the memory 150 may further include both an internal storage unit of the terminal device 100 and an external storage device. The memory 150 is configured to store the computer program and other programs and data required by the terminal device 100. The memory 150 may also be used to temporarily store data that has been output or is to be output.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above embodiments, the description of each embodiment has its own emphasis. For a part that is not detailed or recorded in an embodiment, reference may be made to related descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art may realize that the units and algorithm steps of each example described in connection with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. A person skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
在本发明所提供的实施例中,应该理解到,所揭露的装置/终端设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/终端设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided by the present invention, it should be understood that the disclosed apparatus / terminal device and method may be implemented in other ways. For example, the device / terminal device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be another division manner, such as multiple units. Or components can be combined or integrated into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, which may be electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objective of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist separately physically, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional unit.
所述集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或系统、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包括的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。When the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the methods of the above embodiments, and may also be completed by a computer program instructing related hardware. The computer program may be stored in a computer-readable storage medium. The computer When the program is executed by a processor, the steps of the foregoing method embodiments can be implemented. The computer program includes computer program code, and the computer program code may be in a source code form, an object code form, an executable file, or some intermediate form. The computer-readable medium may include: any entity or system capable of carrying the computer program code, a recording medium, a U disk, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signals, telecommunication signals, and software distribution media. It should be noted that the content included in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdictions. For example, in some jurisdictions, the computer-readable medium Excludes electric carrier signals and telecommunication signals.
以上所述实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围,均应包括在本发明的保护范围之内。The above-mentioned embodiments are only used to illustrate the technical solutions of the present invention, but not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still implement the foregoing implementations. The technical solutions described in the examples are modified, or some of the technical features are equivalently replaced; and these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in Within the scope of the present invention.

Claims (10)

  1. 一种账单信息缓存方法,其特征在于,包括:A billing information buffering method, which is characterized by:
    在接收到用户端发送的账单查询请求时,查询缓存中是否有数据;When receiving the bill query request sent by the client, query whether there is data in the cache;
    若所述缓存中没有数据,则获取用户查询当天的交易笔数,并判断所述交易笔数是否达到预设交易笔数;If there is no data in the cache, obtaining a user's query for the number of transactions of the day, and determining whether the number of transactions reaches a preset number of transactions;
    若所述交易笔数达到所述预设交易笔数,则根据所述交易笔数和预设每页交易数量,对所述用户查询当天的交易进行账单分页,根据分页结果确定每页账单的交易时间信息,并将分页结果和每页账单的交易时间信息存入所述缓存;If the number of transactions reaches the preset number of transactions, according to the number of transactions and the preset number of transactions per page, perform pagination of bills on the day of the user's query, and determine the billing of each page according to the results Transaction time information, and storing paged results and transaction time information for each page of bills into the cache;
    若所述交易笔数未达到所述预设交易笔数,则根据所述用户的身份标识从预设日结数据表中获取距离查询当天最近的预设天的日结数据,并根据获取的日结数据和所述预设每页交易数量,对所述用户距离查询当天最近的所述预设天的交易进行账单分页,根据分页结果确定每页账单的交易时间信息,并将分页结果和每页账单的交易时间信息存入所述缓存,其中,一条日结数据包括所述用户一天的交易笔数。If the number of transactions does not reach the preset number of transactions, the day-end data of the preset day closest to the query day is obtained from the preset day-end data table according to the identity of the user, and according to the acquired Day-end data and the preset number of transactions per page, pagination of bills for the preset day's transactions closest to the query day of the user, determining the transaction time information of each page of the bill based on the results of the paging, and dividing the paged results with The transaction time information of each page of bills is stored in the cache, wherein a piece of daily settlement data includes the number of transactions per day of the user.
  2. 如权利要求1所述的账单信息缓存方法,其特征在于,还包括:The method for buffering bill information according to claim 1, further comprising:
    每天日切后汇总每个用户前一天的交易笔数,并分别根据每个用户前一天的交易笔数生成每个用户的日结数据存入到所述预设日结数据表中。The daily transaction number of each user is summarized after the daily cut, and the daily settlement data of each user is generated according to the transaction number of the previous day of each user and stored in the preset daily settlement data table.
  3. 如权利要求1所述的账单信息缓存方法,其特征在于,每笔交易包括交易时间;The method according to claim 1, wherein each transaction includes a transaction time;
    所述根据所述交易笔数和预设每页交易数量,对所述用户查询当天的交易进行账单分页,根据分页结果确定每页账单的交易时间信息包括:According to the number of transactions and a preset number of transactions per page, performing pagination of bills on transactions of the user's query on the current day, and determining transaction time information of each page of bills according to the results of the paging includes:
    根据表达式pageCount= (orderCount- pageSize )% pageSize+1,对所述用户查询当天的交易进行账单分页,其中,pageCount为可分页码,orderCount为所述交易笔数,pageSize为所述预设每页交易数量;According to the expression pageCount = (orderCount- pageSize)% pageSize + 1, to perform pagination of bills on transactions of the user's query day, where pageCount is a pageable number, orderCount is the number of transactions, and pageSize is the preset number of transactions per page;
    根据所述可分页码和每笔交易的交易时间,确定每页账单的交易时间信息。The transaction time information of each page of the bill is determined according to the pageable number and the transaction time of each transaction.
  4. 一种基于权利要求1至3中任意一项所述的账单信息缓存方法的账单查询方法,其特征在于,包括:A bill query method based on the bill information caching method according to any one of claims 1 to 3, comprising:
    在接收到用户端发送的账单查询请求时,根据缓存中的分页结果和每页账单的交易时间信息,确定用户交易的每页账单的时间跨度;When receiving the bill query request sent by the client, determine the time span of each page of the user's transaction according to the paged results in the cache and the transaction time information of each page of the bill;
    根据所述每页账单的时间跨度从预设日结数据表中获取所述用户的日结数据;Obtaining the daily settlement data of the user from a preset daily settlement data table according to the time span of the bill per page;
    根据所述用户的日结数据查询所述用户对应的每页流水数据和每页流水所在日期。Query the per-page flow data corresponding to the user and the date of each page flow based on the user's day-end data.
  5. 如权利要求4所述的账单查询方法,其特征在于,还包括:The bill inquiry method according to claim 4, further comprising:
    将所述每页流水数据和每页流水所在日期展示到流水账单中。Display the flow data of each page and the date on which each flow of pages is displayed in a flow statement.
  6. 一种账单信息缓存装置,其特征在于,包括:A billing information buffering device, comprising:
    请求查询模块,用于在接收到用户端发送的账单查询请求时,查询缓存中是否有数据;A request query module is used to query whether there is data in the cache when a bill query request sent by a user terminal is received;
    交易确定模块,用于若所述缓存中没有数据,则获取用户查询当天的交易笔数,并判断所述交易笔数是否达到预设交易笔数;A transaction determining module, configured to obtain, if there is no data in the cache, a user querying the number of transactions on the day, and determining whether the number of transactions reaches a preset number of transactions;
    信息缓存模块,用于若所述交易笔数达到所述预设交易笔数,则根据所述交易笔数和预设每页交易数量,对所述用户查询当天的交易进行账单分页,根据分页结果确定每页账单的交易时间信息,并将分页结果和每页账单的交易时间信息存入所述缓存;An information buffer module, configured to: if the number of transactions reaches the preset number of transactions, perform pagination of bills on the transaction of the user's query on the basis of the number of transactions and the preset number of transactions per page, and The result determines the transaction time information of each page of the bill, and stores the paged result and the transaction time information of each page of the bill into the cache;
    信息缓存模块还用于,若所述交易笔数未达到所述预设交易笔数,则根据所述用户的身份标识从预设日结数据表中获取距离查询当天最近的预设天的日结数据,并根据获取的日结数据和所述预设每页交易数量,对所述用户距离查询当天最近的所述预设天的交易进行账单分页,根据分页结果确定每页账单的交易时间信息,并将分页结果和每页账单的交易时间信息存入所述缓存,其中,一条日结数据包括所述用户一天的交易笔数。The information caching module is further configured to: if the number of transactions does not reach the preset number of transactions, obtain a date of a preset day closest to the query day from the preset day-end data table according to the identity of the user; Settle the data, and based on the obtained daily settlement data and the preset number of transactions per page, perform billing pagination on the preset day's transactions closest to the query day of the user, and determine the transaction time of each page of bills based on the paged results Information, and store the paged results and transaction time information of each page of bills into the cache, where a day-end data includes the number of transactions per day of the user.
  7. 如权利要求6所述的账单信息缓存装置,其特征在于,还包括:The billing information buffer device according to claim 6, further comprising:
    日结汇总模块,用于每天日切后汇总每个用户前一天的交易笔数,并分别根据每个用户前一天的交易笔数生成每个用户的日结数据存入到所述预设日结数据表中。The daily settlement summary module is used to summarize the daily transaction amount of each user after the daily cut, and generate daily settlement data of each user based on the transaction number of the previous day of each user and store the data into the preset day. Knot data table.
  8. 一种基于权利要求6至7中任意一项所述的账单信息缓存装置的账单查询装置,其特征在于,包括:A bill query device based on the bill information cache device according to any one of claims 6 to 7, comprising:
    时间确定模块,用于在接收到用户端发送的账单查询请求时,根据缓存中的分页结果和每页账单的交易时间信息,确定用户交易的每页账单的时间跨度;A time determination module is used to determine the time span of each page of the user's transaction according to the paged results in the cache and the transaction time information of each page of the bill when the bill query request sent by the user is received;
    数据获取模块,用于根据所述每页账单的时间跨度从预设日结数据表中获取所述用户的日结数据;A data acquisition module, configured to acquire daily settlement data of the user from a preset daily settlement data table according to a time span of the bill of each page;
    流水查询模块,用于根据所述用户的日结数据查询所述用户对应的每页流水数据和每页流水所在日期。The flow query module is configured to query the flow data of each page corresponding to the user and the date on which the flow of each page is located according to the daily settlement data of the user.
  9. 一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1至3任一项所述方法的步骤。A terminal device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the computer program according to claims 1 to 1 when executing the computer program. Steps of the method of any one of 3.
  10. 一种计算机可读存储介质,所述计算机可读存储介质存储计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至3任一项所述方法的步骤。A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.
PCT/CN2018/104602 2018-09-07 2018-09-07 Bill information caching method, bill information query method and terminal device WO2020047840A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2018/104602 WO2020047840A1 (en) 2018-09-07 2018-09-07 Bill information caching method, bill information query method and terminal device
CN201880001279.1A CN109313642B (en) 2018-09-07 2018-09-07 Bill information caching method, bill information query method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/104602 WO2020047840A1 (en) 2018-09-07 2018-09-07 Bill information caching method, bill information query method and terminal device

Publications (1)

Publication Number Publication Date
WO2020047840A1 true WO2020047840A1 (en) 2020-03-12

Family

ID=65221740

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/104602 WO2020047840A1 (en) 2018-09-07 2018-09-07 Bill information caching method, bill information query method and terminal device

Country Status (2)

Country Link
CN (1) CN109313642B (en)
WO (1) WO2020047840A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112506970A (en) * 2020-12-11 2021-03-16 中信银行股份有限公司 Data query method and device, electronic equipment and computer readable storage medium
CN113377812A (en) * 2021-01-08 2021-09-10 北京数衍科技有限公司 Order duplication eliminating method and device for big data
CN113516476A (en) * 2021-05-18 2021-10-19 中国工商银行股份有限公司 Account checking processing method and device
CN115455015A (en) * 2022-08-08 2022-12-09 中亿(深圳)信息科技有限公司 Mass data storage method and device and storage medium

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110083763A (en) * 2019-04-09 2019-08-02 上海车轮互联网服务有限公司 Data query method and device
CN111125148B (en) * 2019-12-12 2023-07-07 中化石化销售有限公司 Paging query method and device for database
CN111428459A (en) * 2020-03-27 2020-07-17 中国建设银行股份有限公司 Staff transaction amount statistical method and device
CN114579528B (en) * 2022-04-27 2022-08-02 广州市伍麦信息科技有限公司 File quick look-up management system based on pre-caching

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103888547A (en) * 2014-04-16 2014-06-25 中国银行股份有限公司 Bill processing method and server
CN105243169A (en) * 2015-11-12 2016-01-13 中国建设银行股份有限公司 Data query method and system
US20170177655A1 (en) * 2015-12-17 2017-06-22 SpringAhead, Inc. Dynamic data normalization and duplicate analysis
CN106886548A (en) * 2016-08-03 2017-06-23 阿里巴巴集团控股有限公司 Data query method and device
CN107918635A (en) * 2017-08-17 2018-04-17 上海陆家嘴国际金融资产交易市场股份有限公司 Bill querying method, operation device and computer-readable recording medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040193656A1 (en) * 2003-03-28 2004-09-30 Pizzo Michael J. Systems and methods for caching and invalidating database results and derived objects
GB2456294A (en) * 2007-12-03 2009-07-15 Cachelogic Ltd Reporting and invoicing of data downloads
US10275347B2 (en) * 2010-03-08 2019-04-30 Excalibur Ip, Llc System, method and computer program product for managing caches
US8775488B2 (en) * 2010-04-14 2014-07-08 Siemens Product Lifecycle Management Software Inc. System and method for data caching
CN103533002A (en) * 2012-07-05 2014-01-22 阿里巴巴集团控股有限公司 Data processing method and system
CN105468644B (en) * 2014-09-10 2018-11-23 菜鸟智能物流控股有限公司 Method and equipment for querying in database
US10572390B2 (en) * 2016-02-29 2020-02-25 Apple Inc. Methods and apparatus for loading firmware on demand
CN108196829A (en) * 2017-12-12 2018-06-22 广东广业开元科技有限公司 A kind of artificial intelligence mobile phone accounting system for analyzing account and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103888547A (en) * 2014-04-16 2014-06-25 中国银行股份有限公司 Bill processing method and server
CN105243169A (en) * 2015-11-12 2016-01-13 中国建设银行股份有限公司 Data query method and system
US20170177655A1 (en) * 2015-12-17 2017-06-22 SpringAhead, Inc. Dynamic data normalization and duplicate analysis
CN106886548A (en) * 2016-08-03 2017-06-23 阿里巴巴集团控股有限公司 Data query method and device
CN107918635A (en) * 2017-08-17 2018-04-17 上海陆家嘴国际金融资产交易市场股份有限公司 Bill querying method, operation device and computer-readable recording medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112506970A (en) * 2020-12-11 2021-03-16 中信银行股份有限公司 Data query method and device, electronic equipment and computer readable storage medium
CN113377812A (en) * 2021-01-08 2021-09-10 北京数衍科技有限公司 Order duplication eliminating method and device for big data
CN113516476A (en) * 2021-05-18 2021-10-19 中国工商银行股份有限公司 Account checking processing method and device
CN115455015A (en) * 2022-08-08 2022-12-09 中亿(深圳)信息科技有限公司 Mass data storage method and device and storage medium
CN115455015B (en) * 2022-08-08 2024-01-26 中亿(深圳)信息科技有限公司 Mass data storage method and device and storage medium

Also Published As

Publication number Publication date
CN109313642A (en) 2019-02-05
CN109313642B (en) 2022-07-12

Similar Documents

Publication Publication Date Title
WO2020047840A1 (en) Bill information caching method, bill information query method and terminal device
CN109144647B (en) Form design method and device, terminal equipment and storage medium
WO2019033605A1 (en) Method and apparatus for asynchronous order processing, and storage medium and terminal
WO2019041753A1 (en) Information modification method, apparatus, computer device and computer-readable storage medium
CN110909025A (en) Database query method, query device and terminal
CN107943828B (en) Service state query method and device, computer equipment and storage medium
US9721015B2 (en) Providing a query results page
CN108038112B (en) File processing method, mobile terminal and computer readable storage medium
CN109376318B (en) Page loading method, computer readable storage medium and terminal equipment
US20210192046A1 (en) Resource Management Unit for Capturing Operating System Configuration States and Managing Malware
CN111104426A (en) Data query method and system
WO2019019702A1 (en) Algorithm generation method and device, terminal device and storage medium
WO2018166145A1 (en) Method and device for batch offering of repayment data
CN110909022A (en) Data query method and device
US20240012683A1 (en) Resource Management Unit for Capturing Operating System Configuration States and Offloading Tasks
CN107992569B (en) Data access method and device, electronic equipment and computer readable storage medium
CN113704307A (en) Data query method, device, server and computer readable storage medium
CN113129150A (en) Transaction data processing method and device, terminal device and readable storage medium
WO2019127772A1 (en) Data dictionary display method and device, terminal device and storage medium
US20220083507A1 (en) Trust chain for official data and documents
CN109271564A (en) Declaration form querying method and equipment
WO2019019596A1 (en) Breakpoint list processing method, device, server and medium
CN110782310B (en) Method, device and system for asynchronously acquiring user attribute information from third-party platform
CN107609119B (en) File processing method, mobile terminal and computer readable storage medium
CN111708715B (en) Memory allocation method, memory allocation device and terminal equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18932931

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18932931

Country of ref document: EP

Kind code of ref document: A1