Bill processing method, system, computer device and storage medium

By receiving query requests in the credit card management system, obtaining the bill settlement interval and generating bills without consumption records, the problem of being unable to respond to query requests is solved, and the effect of bill query and user experience are improved.

CN110321461BActive Publication Date: 2024-09-24PING AN BANK CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN201910440422.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-05-24
Publication Date
2024-09-24
Estimated Expiration
2039-05-24

AI Technical Summary

Technical Problem

In a credit card management system, when faced with a bill database that only stores transaction records, the query request may not be able to respond, affecting the processing effect of bill queries.

Method used

By receiving the client's bill query request, extract the query date, and obtain the bill settlement interval of the specified user from the bill database. If the query date does not belong to any settlement interval, the target settlement interval is generated based on the query date and the user's settlement date change record information, and a bill without consumption records is generated and returned to the client.

Benefits of technology

It saves bill storage space, avoids unresponsive query requests, and improves the bill query effect and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110321461B
    Figure CN110321461B
Patent Text Reader

Abstract

The present invention relates to the field of data query technology. The present invention provides a bill processing method and system, a computer device and a storage medium. The above method includes: receiving a bill query request from a client, extracting the query date according to the query request; obtaining the bill of a specified user from a bill database, and obtaining the settlement interval of each bill; if the query date does not belong to the settlement interval of any bill, generating a target settlement interval for the bill corresponding to the bill query request according to the query date and the user's settlement date change record information; generating a bill with no consumption record according to the target settlement interval, and returning the bill with no consumption record to the client. The above bill processing method, after failing to find the bill corresponding to the query date, obtains the settlement interval corresponding to the query date, generates a corresponding bill with no consumption record according to the blank consumption record and the settlement interval, and returns it to the client, thereby avoiding the situation where the query request is unresponsive and improving the effect of the bill query.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data query, and in particular to a bill processing method, a bill processing system, a computer device and a storage medium. Background Art

[0002] At present, with the development of social economy, people's consumption and transaction volume are gradually increasing. Credit card consumption transactions are becoming more and more common, and the use of credit cards also generates a large number of bills on a regular basis. In the credit card management system, blank bills with no transaction records will be generated during the billing cycle, and these blank bills will waste a lot of storage resources. Therefore, when storing bill information, the bills without transaction records can be deleted, or the bills without transaction records can be directly not generated.

[0003] For bill query, the generated bill information is usually returned. However, when facing a bill database that only stores bills with transaction records, when accepting a query request from a client, it is possible that the bill cannot be found. At this time, the query request cannot be responded to, which affects the processing effect of the bill query. Summary of the invention

[0004] The purpose of the present invention is to solve at least one of the above-mentioned technical deficiencies, especially the technical defect of being unable to respond to query requests.

[0005] The present invention provides a bill processing method, comprising the following steps:

[0006] Receive a bill query request from a client, and extract a query date according to the query request;

[0007] Obtaining bills of a specified user from a bill database and obtaining a settlement interval for each bill, wherein the bill database is used to store bills with consumption transaction records;

[0008] Determine whether the query date belongs to the settlement interval, if the query date does not belong to any of the settlement intervals of the bills, generate a target settlement interval of the bill corresponding to the bill query request according to the query date and the settlement date change record information of the user;

[0009] A bill with no consumption record is generated according to the target settlement interval, and the bill with no consumption record is returned to the client.

[0010] In one embodiment, after the step of determining whether the query date is within the settlement interval, the method further includes:

[0011] If the query date belongs to a settlement period of the bill, the bill corresponding to the query date is returned to the client.

[0012] In one embodiment, the step of generating a target settlement interval of the bill corresponding to the bill query request according to the query date and the settlement date change record information of the user includes:

[0013] When the settlement date change record information is blank, the current settlement date is obtained according to the settlement interval of any of the bills; and the target settlement interval is calculated according to the current settlement date and the query date.

[0014] In one embodiment, the step of acquiring the target settlement interval according to the current settlement date and the query date includes:

[0015] Search the bill of the designated user for the most recent historical bill before the query date, and obtain the historical settlement date of the settlement interval in the historical bill; if the settlement date change record information is between the historical settlement date and the query date, determine whether there is a record of the settlement date change; if there is a record of the settlement date change, extract the changed settlement date according to the record of the settlement date change; and calculate the target settlement interval according to the changed settlement date and the query date.

[0016] In one embodiment, after the step of determining whether there is a record of a settlement date change, the method further includes:

[0017] If there is no record of the settlement date change, the target settlement interval is calculated according to the historical settlement date and the query date.

[0018] In one embodiment, before the step of generating the target settlement interval of the bill corresponding to the bill query request according to the query date and the settlement date change record information of the user, the step further includes:

[0019] According to the current date and the settlement date change record information, obtain the pending settlement interval corresponding to the user on the current date; obtain the change time of the settlement date changed for the last time in the settlement date change record information; determine whether the change time belongs to the pending settlement interval; if the change time belongs to the pending settlement interval, return to the client a reminder message indicating that the bill has not been settled due to the adjustment of the settlement date.

[0020] In one embodiment, after the step of obtaining the to-be-settled interval corresponding to the current date of the user, the method further includes:

[0021] Determine whether the query date belongs to the pending settlement interval; if the query date belongs to the pending settlement interval, request the current consumption record within the pending settlement interval from the bill database; generate a temporary bill according to the current consumption record, and return the temporary bill to the client.

[0022] The present invention also provides a bill processing system, comprising:

[0023] An extraction module, used to receive a bill query request from a client, and extract a query date according to the query request;

[0024] An acquisition module, used to acquire the bills of a specified user from a bill database and to acquire the settlement interval of each bill, wherein the bill database is used to store bills with consumption transaction records;

[0025] A generating module, configured to determine whether the query date belongs to the settlement interval, and if the query date does not belong to any of the settlement intervals of the bills, generate a target settlement interval of the bill corresponding to the bill query request according to the query date and the settlement date change record information of the user;

[0026] A return module is used to generate a bill with no consumption record according to the target settlement interval, and return the bill with no consumption record to the client.

[0027] The present invention also provides a computer device, including a memory and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the steps of the bill processing method described in any of the above embodiments.

[0028] The present invention also provides a storage medium storing computer-readable instructions, which, when executed by one or more processors, enables the one or more processors to execute the steps of the bill processing method described in any of the above embodiments.

[0029] The above-mentioned bill processing method, system, computer equipment and storage medium, after failing to find the bill corresponding to the query date in the bill database that saves bill storage space, obtain the settlement interval corresponding to the query date, generate a corresponding bill with no consumption record based on the blank consumption record and the settlement interval, and return the bill with no consumption record to the client. That is, when the client is querying the bill database that saves storage space, it avoids the situation where the query request is unresponsive, thereby improving the effect of bill query.

[0030] Additional aspects and advantages of the present invention will be given in part in the following description, which will become obvious from the following description, or may be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0032] Figure 1 A diagram of an implementation environment of a bill processing method provided in one embodiment;

[0033] Figure 2 is a flow chart of a bill processing method in one embodiment;

[0034] Figure 3 A flowchart of a bill processing method in another embodiment;

[0035] Figure 4 A schematic diagram of the structure of a bill processing system in one embodiment;

[0036] Figure 5 Schematic diagram of the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0037] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be interpreted as limiting the present invention.

[0038] Those skilled in the art will appreciate that, unless otherwise stated, the singular forms "a", "an", "said" and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present invention refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.

[0039] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as generally understood by those skilled in the art in the art to which the present invention belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with the meanings in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as herein.

[0040] like Figure 1 As shown, Figure 1 The diagram is an implementation environment diagram of a bill processing method provided in an embodiment, wherein the implementation environment includes a server 110 and a client 120 .

[0041] The server 110 can call the bills stored in the bill database, wherein each bill in the bill database contains at least one transaction record, that is, blank bills without transaction records are not stored. The server 110 and the client 120 can be connected via a network. The server 110 can be installed on a computer device or a server device, and the client 120 can be installed on a computer device such as a desktop computer, a laptop computer, a tablet computer, a smart phone, etc.

[0042] In one embodiment, Figure 2 As shown, Figure 2 Flow chart of a bill processing method in an embodiment. In this embodiment, a bill processing method is proposed. The bill processing method can be applied to the above-mentioned server 110, and specifically can include the following steps:

[0043] Step S210: receiving a bill query request from a client, and extracting a query date according to the query request.

[0044] In this step, the client needs to query the bill corresponding to the query date. The client generates a query request and sends it to the server. After receiving the bill query request, the server identifies the query date corresponding to the request. The server can also determine the specified user to be queried based on the client or the bill query request.

[0045] Step S220: Obtain the bills of the designated user from a bill database, and obtain the settlement interval of each bill, wherein the bill database is used to store bills with consumption transaction records.

[0046] The bill database is used to store bills with consumption transaction records, and there are no bills without consumption transaction records. In this step, the server searches the bill database for the bills that have been generated and stored for the specified user, and extracts the settlement intervals corresponding to each bill of the specified user. The settlement interval is the time period for statistical bills, which may include a settlement start date and a settlement date. The settlement date can be used to generate bills for the settlement interval when the date is reached. After obtaining the settlement intervals of each bill, the server can also determine whether the query date belongs to the settlement interval.

[0047] Step S230: Determine whether the query date is within the settlement interval. If the query date is not within the settlement interval of any bill, generate a target settlement interval for the bill corresponding to the bill query request based on the query date and the user's settlement date change record information.

[0048] In this step, if the query date does not belong to the settlement interval of any bill, it can be indicated that the bill corresponding to the query date cannot be found in the bill database, that is, it can be indicated that the bill corresponding to the query date does not exist. At this time, the corresponding settlement interval can be obtained according to the query date, so as to generate a new bill later and return the bill to the client.

[0049] Step S240: Generate a bill with no consumption record according to the target settlement interval, and return the bill with no consumption record to the client.

[0050] In this step, since the bill database does not store bills without transaction records, when the bill corresponding to the query request is a bill without transaction records, the transaction bill corresponding to the query request cannot be obtained in the bill database. Therefore, it is necessary to regenerate the transaction bill corresponding to the query request according to the settlement interval.

[0051] The above-mentioned bill processing method, after failing to find the bill corresponding to the query date in the bill database that saves bill storage space, obtains the settlement interval corresponding to the query date, generates a corresponding bill with no consumption record based on the blank consumption record and the settlement interval, and returns the bill with no consumption record to the client. That is, when the client is querying the bill database that saves storage space, it avoids the situation where the query request is unresponsive, thereby improving the effect of bill query.

[0052] In one embodiment, after the step of determining whether the query date is within the settlement period, the following steps may also be performed:

[0053] If the query date falls within the settlement period of a certain bill, the bill corresponding to the query date will be returned to the client.

[0054] In the above-mentioned bill processing method, if the query date belongs to the settlement period of a certain bill, that is, the bill corresponding to the query request can be queried in the bill database, then the bill corresponding to the query date can be obtained from the bill database and returned to the client.

[0055] For bills that can be queried in the bill database, this part of the bill will display the consumption record and the settlement interval of the bill. For bills without consumption records, although the consumption record will not be displayed in the bill without consumption records, the settlement interval still needs to be displayed accordingly. Therefore, when regenerating the bill without consumption records corresponding to the query request based on the settlement interval, it is necessary to calculate and obtain the settlement interval. The following is an example to illustrate the implementation method of calculating the settlement interval.

[0056] In one embodiment, the step of generating a target settlement interval of the bill corresponding to the bill query request according to the query date and the user's settlement date change record information in step S230 may include:

[0057] S231: When the settlement date change record information is blank, the current settlement date is obtained according to the settlement period of any bill.

[0058] In this step, when the settlement date change record information is blank, it indicates that the designated user has not modified the settlement date, and the current settlement date can be quickly determined according to the settlement interval of any bill of the designated user in the bill database.

[0059] S232: Calculate the target settlement interval based on the current settlement date and the query date.

[0060] In this step, the settlement date is obtained from any bill settlement interval, and then the current settlement date can be determined from the settlement date and the length of the settlement interval, as the length of the settlement interval remains unchanged. For example, if the settlement interval is monthly and the settlement date of any bill is the 8th, the current settlement date can be calculated as the 8th of the corresponding month.

[0061] The above bill processing method can quickly determine the current settlement date when the designated user has not changed the settlement date, so that the target settlement interval can be quickly calculated based on the current settlement date, thereby improving the efficiency of obtaining the target settlement interval.

[0062] In one embodiment, the step of obtaining the target settlement interval according to the current settlement date and the query date in S232 may include:

[0063] A1: Search the specified user's bill for the most recent historical bill before the query date, and obtain the historical settlement date of the settlement period in the historical bill.

[0064] In this step, a bill that is slightly older than the query date but closest to the query date is found and used as a historical bill. The settlement date before the query date can be obtained from the historical bill and used as the historical settlement date.

[0065] A2: In the settlement date change record information, determine whether there is a settlement date change record between the historical settlement date and the query date.

[0066] In this step, for the bills of the designated users whose settlement dates have been modified, it is necessary to know whether there is a record of modifying the settlement date before the query date. This record of modifying the settlement date will affect the calculation of the target settlement interval.

[0067] A3: If there is a record of settlement date change, extract the changed settlement date based on the record of settlement date change.

[0068] In this step, if there is a change in the settlement date between the historical settlement date and the query date in the settlement date change record information, the settlement date of the target settlement interval cannot be determined based on the historical settlement date because the settlement date has been changed at this time.

[0069] A4: Calculate the target settlement period based on the changed settlement date and the query date.

[0070] In this step, the settlement date of the target settlement period is determined based on the changed settlement date, and the target settlement period is calculated.

[0071] The above-mentioned bill processing method takes into account the impact of the change of the settlement date on the target settlement interval, thereby improving the accuracy of the calculated target settlement interval.

[0072] In one embodiment, after the step of determining whether there is a record of a settlement date change in A2, the following steps may also be performed:

[0073] A5: If there is no record of settlement date change, the target settlement period is calculated based on the historical settlement date and the query date.

[0074] In the above-mentioned bill processing method, if there is no change in the settlement date between the historical settlement date and the query date in the settlement date change record information, the settlement date of the target settlement interval can be determined based on the historical settlement date, thereby calculating the target settlement interval, thereby improving the accuracy of the calculated target settlement interval.

[0075] Changes in the settlement date will not only affect the determination of the settlement interval, but also affect the generation of bills. For example, for bills settled on a monthly basis, the length of the settlement interval of the bill can be delayed by changing the settlement date. For example, the original settlement date for the designated user is the 10th of each month, but the designated user changes the settlement date to the 8th of each month on September 9th. Then, the first settlement interval after the settlement date is changed is from August 11th to October 8th. The length of the first settlement interval is greatly extended, but it will also face the problem of not being able to query the bill after September 10th, because no bill has been generated at this time. Sometimes users feel that the settlement date has passed, but at this time they do not receive the bill when querying the bill, and the bill query request is not responded to, resulting in a poor user experience. At this time, it is also necessary to return the query response to the user in a timely manner to improve the user experience.

[0076] In one embodiment, before the step of generating the target settlement interval of the bill corresponding to the bill query request according to the query date and the user's settlement date change record information in step S230, the following may also be included:

[0077] B1: Change the record information based on the current date and settlement date, and obtain the user's corresponding settlement period on the current date.

[0078] In this step, the settlement interval in which the current date falls is calculated.

[0079] B2: Get the last change time of the settlement date in the settlement date change record information.

[0080] In this step, if the change time of the settlement date is before the original settlement date, the length of the current settlement interval will be extended, and the change time will still be included in the latest settlement interval. If the change time still does not belong to the settlement interval, a round of bill settlement has passed after the change time, and the settlement date of the target settlement interval can be determined based on the changed settlement date.

[0081] B3: Determine whether the changed time belongs to the pending settlement period.

[0082] B4: If the modified time falls within the pending settlement period, a reminder message indicating that the bill has not been settled due to the adjustment of the settlement date is returned to the client.

[0083] The above-mentioned bill processing method can determine that the bill cannot be settled due to the change of the settlement date, and return the corresponding reminder information in response to the bill query request.

[0084] In order to solve the bill query response when the bill is not settled due to the adjustment of the settlement date, in one embodiment, after the step of obtaining the to-be-settled interval corresponding to the current date of the user in B2, the following may also be included:

[0085] C1: Determine whether the query date belongs to the pending settlement period.

[0086] In this step, it is determined whether it belongs to the pending settlement period: if it does, it indicates that the bill corresponding to the query date has not been generated; if it does not, it indicates that the bill corresponding to the query date has been settled.

[0087] C2: If the query date belongs to the pending settlement period, the current consumption record within the pending settlement period is requested from the bill database.

[0088] In this step, the consumption record of the designated user in the waiting settlement interval is searched and taken as the current consumption record belonging to the waiting settlement interval.

[0089] C3: Generate a temporary bill based on the current consumption record and return the temporary bill to the client.

[0090] In this step, a temporary bill is generated for the interval to be settled. The consumption records contained in the temporary bill start from the settlement start time of the interval to be settled and end at the current date.

[0091] The above-mentioned bill processing method, when the bill is not settled due to adjustment of the settlement date, generates a temporary bill showing the existing consumption records in the pending settlement period and returns it to the client, which can respond to bill query requests, while improving the real-time nature of bill generation and improving user experience.

[0092] In another embodiment, Figure 3 As shown, Figure 3 This is a flowchart of a bill processing method in another embodiment. This embodiment provides a bill processing method, which may specifically include the following steps:

[0093] S310: Receive a bill query request from a client, and extract a query date according to the query request.

[0094] S320: Obtain the bills of the designated user from the bill database, and obtain the settlement interval of each bill. The bill database is used to store bills with consumption transaction records, and there are bills without consumption records in the bill database.

[0095] S330: Determine whether the query date belongs to the settlement period.

[0096] S340: If the query date belongs to the settlement period of a certain bill, the bill corresponding to the query date is returned to the client.

[0097] S350: If the query date does not belong to the settlement period of any bill, a target settlement period of the bill corresponding to the bill query request is generated according to the query date and the settlement date change record information of the user.

[0098] S351: Determine whether the settlement date change record information is blank.

[0099] S352: When the settlement date change record information is blank, the current settlement date is obtained according to the settlement interval of any bill, and the target settlement interval is calculated according to the current settlement date and the query date.

[0100] S353: When there is a record of the settlement date change record information, search the bill of the specified user for the most recent historical bill before the query date, and obtain the historical settlement date of the settlement period in the historical bill.

[0101] S354: In the settlement date change record information, determine whether there is a record of settlement date change between the historical settlement date and the query date.

[0102] S355: If there is a record of a settlement date change, extract the changed settlement date according to the record of the settlement date change; and calculate the target settlement interval according to the changed settlement date and the query date.

[0103] S356: If there is no record of settlement date change, the target settlement interval is calculated based on the historical settlement date and the query date.

[0104] S360: Generate a bill with no consumption record according to the target settlement interval, and return the bill with no consumption record to the client.

[0105] After determining that the query date does not belong to the settlement interval, it is also possible to obtain the user's pending settlement interval corresponding to the current date based on the current date and the settlement date change record information; obtain the change time of the last change of the settlement date in the settlement date change record information; determine whether the change time belongs to the pending settlement interval; if the change time belongs to the pending settlement interval, return a reminder message to the client indicating that the bill has not been settled due to the adjustment of the settlement date.

[0106] After determining that the query date does not belong to the settlement interval, it is also possible to determine whether the query date belongs to the pending settlement interval; if the query date belongs to the pending settlement interval, the current consumption record within the pending settlement interval is requested from the bill database; a temporary bill is generated based on the current consumption record, and the temporary bill is returned to the client.

[0107] The above-mentioned bill processing method, after failing to find the bill corresponding to the query date in the bill database that saves bill storage space, obtains the settlement interval corresponding to the query date, generates the corresponding bill without consumption record based on the blank consumption record and the settlement interval, and returns the bill without consumption record to the client, that is, in the process of querying the bill database that saves storage space, the client avoids the situation where the query request is unresponsive, thereby improving the effect of bill query. In order to reduce storage space, when the customer does not issue a bill, the bill may not be generated. At this time, when querying the bill without consumption record, the settlement interval of the bill without consumption record may be returned to the client. In particular, after the bill date is changed, it can be distinguished whether the bill cannot be found because there is no consumption record or there is no bill because the bill date is adjusted. At the same time, a temporary bill is returned to the client according to the interval to be settled of the adjusted bill date, thereby improving the user experience.

[0108] In one embodiment, Figure 4 As shown, Figure 4 4 is a schematic diagram of the structure of a bill processing system in an embodiment. This embodiment generally provides a bill processing system, which may specifically include an extraction module 410, an acquisition module 420, a generation module 430 and a return module 440, wherein:

[0109] The extraction module 410 is used to receive a bill query request from a client and extract a query date according to the query request.

[0110] The client needs to query the bill corresponding to the query date, the client generates the query request and sends it to the server. After receiving the bill query request, the server identifies the query date corresponding to the request in the extraction module 410. In the extraction module 410, the server can also determine the specified user to be queried according to the client or the bill query request.

[0111] The acquisition module 420 is used to obtain the bills of the specified user from the bill database and obtain the settlement interval of each bill, wherein the bill database is used to store bills with consumption transaction records.

[0112] The bill database is used to store bills with consumption transaction records, and there are no bills without consumption transaction records. In the acquisition module 420, the server can search the bill database for the bills that have been generated and stored for the specified user, and extract the settlement intervals corresponding to each bill of the specified user. The settlement interval is the time period for statistical bills, which can include a settlement start date and a settlement date. The settlement date can be used to generate a bill for the settlement interval when the date is reached. After obtaining the settlement intervals of each bill, the server can also determine whether the query date belongs to the settlement interval.

[0113] The generation module 430 is used to determine whether the query date belongs to the settlement interval. If the query date does not belong to the settlement interval of any bill, the target settlement interval of the bill corresponding to the bill query request is generated according to the query date and the user's settlement date change record information.

[0114] If the query date does not belong to the settlement interval of any bill, it can be indicated that the bill corresponding to the query date cannot be found in the bill database, that is, it can be indicated that the bill corresponding to the query date does not exist. At this time, the generation module 430 can obtain the corresponding settlement interval according to the query date, so as to generate a new bill and return the bill to the client later.

[0115] The return module 440 is used to generate a bill without consumption record according to the target settlement interval, and return the bill without consumption record to the client.

[0116] Since the bill database does not store bills without transaction records, when the bill corresponding to the query request is a bill without transaction records, the transaction bill corresponding to the query request cannot be obtained in the bill database. Therefore, it is necessary to return to module 440 to regenerate the transaction bill corresponding to the query request according to the settlement interval.

[0117] The above-mentioned bill processing system, after failing to find the bill corresponding to the query date in the bill database that saves bill storage space, obtains the settlement interval corresponding to the query date, generates a corresponding bill with no consumption record based on the blank consumption record and the settlement interval, and returns the bill with no consumption record to the client. That is, when the client is querying the bill database that saves storage space, the situation of no response to the query request is avoided, thereby improving the effect of bill query.

[0118] For the specific definition of the bill processing system, please refer to the definition of the bill processing method above, which will not be repeated here. Each module in the above-mentioned bill processing system can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0119] like Figure 5 As shown, Figure 5 Schematic diagram of the internal structure of a computer device in one embodiment. The computer device includes a processor, a non-volatile storage medium, a memory, and a network interface connected via a system bus. The non-volatile storage medium of the computer device stores an operating system and computer-readable instructions, which, when executed by the processor, enable the processor to implement a bill processing method. The processor of the computer device is used to provide computing and control capabilities to support the operation of the entire computer device. The memory of the computer device may store computer-readable instructions, which, when executed by the processor, enable the processor to execute a bill processing method. The network interface of the computer device is used to connect and communicate with a terminal. Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0120] In one embodiment, a computer device is provided, including a memory and a processor. The memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the processor executes the steps of the bill processing method in any of the above embodiments.

[0121] In one embodiment, a storage medium storing computer-readable instructions is provided. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the bill processing method in any of the above embodiments.

[0122] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0123] The above descriptions are only some embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A bill processing method, characterized in that: The steps include: Receive a bill query request from a client, and extract a query date according to the query request; Obtaining bills of a specified user from a bill database and obtaining a settlement interval for each bill, wherein the bill database is used to store bills with consumption transaction records; Determine whether the query date belongs to the settlement interval, if the query date does not belong to any of the settlement intervals of the bills, generate a target settlement interval of the bill corresponding to the bill query request according to the query date and the settlement date change record information of the user; generating a bill with no consumption record according to the target settlement interval, and returning the bill with no consumption record to the client; The step of generating a target settlement interval of the bill corresponding to the bill query request according to the query date and the settlement date change record information of the user includes: When the settlement date change record information is blank, the current settlement date is obtained according to the settlement interval of any of the bills; Calculate the target settlement interval according to the current settlement date and the query date; The step of acquiring the target settlement interval according to the current settlement date and the query date includes: Searching the bill of the designated user for the most recent historical bill before the query date, and obtaining the historical settlement date of the settlement interval in the historical bill; The settlement date change record information determines whether there is a settlement date change record between the historical settlement date and the query date; If there is a record of the settlement date change, extract the changed settlement date according to the record of the settlement date change; The target settlement interval is calculated according to the changed settlement date and the query date.

2. The bill processing method according to claim 1, characterized in that: After the step of determining whether the query date is within the settlement interval, the method further includes: If the query date belongs to a settlement period of the bill, the bill corresponding to the query date is returned to the client.

3. The bill processing method according to claim 1, characterized in that: After the step of determining whether there is a record of a settlement date change, the method further includes: If there is no record of the settlement date change, the target settlement interval is calculated according to the historical settlement date and the query date.

4. The bill processing method according to claim 1, characterized in that: Before the step of generating a target settlement interval of the bill corresponding to the bill query request according to the query date and the settlement date change record information of the user, the step further includes: According to the current date and the settlement date change record information, obtaining the to-be-settled interval corresponding to the current date of the user; Obtain the last change time of the settlement date in the settlement date change record information; Determine whether the change time belongs to the to-be-settled interval; If the modified time belongs to the pending settlement period, a reminder message indicating that the bill has not been settled due to the adjustment of the settlement date is returned to the client.

5. The bill processing method according to claim 4, characterized in that: After the step of obtaining the to-be-settled interval corresponding to the current date of the user, the method further includes: Determine whether the query date belongs to the to-be-settled period; If the query date belongs to the pending settlement period, requesting the current consumption record within the pending settlement period from the bill database; A temporary bill is generated according to the current consumption record, and the temporary bill is returned to the client.

6. A bill processing system, characterized in that: include: An extraction module, used to receive a bill query request from a client, and extract a query date according to the query request; An acquisition module, used to acquire the bills of a specified user from a bill database and to acquire the settlement interval of each bill, wherein the bill database is used to store bills with consumption transaction records; A generating module, configured to determine whether the query date belongs to the settlement interval, and if the query date does not belong to any of the settlement intervals of the bills, generate a target settlement interval of the bill corresponding to the bill query request according to the query date and the settlement date change record information of the user; A return module, configured to generate a bill with no consumption record according to the target settlement interval, and return the bill with no consumption record to the client; Wherein, the generating module is also used for: When the settlement date change record information is blank, the current settlement date is obtained according to the settlement interval of any of the bills; Calculate the target settlement interval according to the current settlement date and the query date; Wherein, the generating module is also used for: Searching the bill of the designated user for the most recent historical bill before the query date, and obtaining the historical settlement date of the settlement interval in the historical bill; The settlement date change record information determines whether there is a settlement date change record between the historical settlement date and the query date; If there is a record of the settlement date change, extract the changed settlement date according to the record of the settlement date change; The target settlement interval is calculated according to the changed settlement date and the query date.

7. A computer device comprising a memory and a processor, wherein the memory stores computer-readable instructions, characterized in that: When the computer-readable instructions are executed by the processor, the processor is caused to perform the steps of the bill processing method according to any one of claims 1 to 5.

8. A storage medium storing computer-readable instructions, characterized in that: When the computer-readable instructions are executed by one or more processors, the one or more processors are caused to perform the steps of the bill processing method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Consumption statistic system for credit card and mobile phone with consumption statistic function of credit card

    CN102385736A

  • Method and device for generating account bills

    CN103377264A

  • Bill processing method and server

    CN103888547A

  • Electronic accounting method and device and terminal equipment

    CN104700277A