CN109598575B - Bill generation method and device, electronic equipment and medium - Google Patents
Bill generation method and device, electronic equipment and medium Download PDFInfo
- Publication number
- CN109598575B CN109598575B CN201811253391.2A CN201811253391A CN109598575B CN 109598575 B CN109598575 B CN 109598575B CN 201811253391 A CN201811253391 A CN 201811253391A CN 109598575 B CN109598575 B CN 109598575B
- Authority
- CN
- China
- Prior art keywords
- bill
- data
- short message
- current
- historical
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 71
- 238000012790 confirmation Methods 0.000 claims abstract description 18
- 238000000605 extraction Methods 0.000 claims description 17
- 238000004590 computer program Methods 0.000 claims description 14
- 238000012544 monitoring process Methods 0.000 claims description 8
- 230000001360 synchronised effect Effects 0.000 claims description 8
- 230000003252 repetitive effect Effects 0.000 claims description 7
- 230000000694 effects Effects 0.000 abstract description 5
- 238000010276 construction Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- PCHJSUWPFVWCPO-UHFFFAOYSA-N gold Chemical compound [Au] PCHJSUWPFVWCPO-UHFFFAOYSA-N 0.000 description 2
- 239000010931 gold Substances 0.000 description 2
- 229910052737 gold Inorganic materials 0.000 description 2
- 238000010801 machine learning Methods 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000012827 research and development Methods 0.000 description 1
- 238000005406 washing Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
- G06Q30/0633—Lists, e.g. purchase orders, compilation or processing
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a bill generation method, a bill generation device, electronic equipment and a bill generation medium, wherein the bill generation method comprises the following steps: after receiving the short message, acquiring short message data of the short message; extracting bill data in the short message data according to a preset bill template, and generating a current bill according to the bill data; and outputting the current bill to prompt a user, and storing the current bill after receiving the confirmation operation of the user. The method and the device provided by the application are used for solving the technical problem that a user knows about own consumption condition and needs to consume a large amount of searching time in the prior art, and realizing the technical effect of improving the searching efficiency.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, an electronic device, and a medium for generating a bill.
Background
With the advancement of technology, smart phones have become popular, and activities such as living, consumption, entertainment and the like of the masses are not separated from various mobile devices. The use of smartphones has led to convenience, and in particular, in various consumer activities, the use of handsets to make payments is also more common.
In order to facilitate users to know and inquire about their consumption conditions, banks, network paytables or merchants often generate funds change short messages by using mobile phones or bank cards to consume and transfer funds, and send the funds change short messages to users so as to reserve consumption records for users to inquire.
However, each time the user wants to know his consumption situation or inquire about a certain consumption, he needs to scroll through the history short messages one by one, so that a lot of time is required to be consumed, and the efficiency is low.
Disclosure of Invention
The present invention has been made in view of the above problems, and it is an object of the present invention to provide a bill generating method, apparatus, electronic device and medium that overcomes or at least partially solves the above problems.
In a first aspect, a bill generation method is provided, including:
after receiving the short message, acquiring short message data of the short message;
extracting bill data in the short message data according to a preset bill template, and generating a current bill according to the bill data;
and outputting the current bill to prompt a user, and storing the current bill after receiving the confirmation operation of the user.
Optionally, the short message data includes any one or more of the following combinations: the receiving time of the short message, the sender of the short message and the content data of the short message.
Optionally, extracting the bill data in the short message data according to a preset bill template includes: extracting bill data in the short message data according to keywords in a preset bill template; or extracting bill data in the short message data according to an extraction algorithm in a preset bill template.
Optionally, the billing data includes any one or more of the following combinations: amount, transaction category, transaction own account, transaction time, transaction counterpart information, and transaction scenario.
Optionally, the extracting bill data in the short message data includes: extracting transaction time information in the content data of the short message data; and if the transaction time information does not exist in the content data, taking the receiving time of the short message as the transaction time information.
Optionally, after the generating the current bill, the method further includes: comparing the current bill with the stored historical bill, and determining whether the current bill and the historical bill have a repetitive relationship or not; if there is a repeat relationship, the bills for which there is a repeat relationship are combined.
Optionally, the determining whether the current bill and the historical bill have a repetitive relationship includes: if the difference value of the transaction time of the current bill and the historical bill is within a preset difference value range, and the bill data of the current bill is matched with the bill data of the historical bill, determining that a repeated relationship exists between the current bill and the historical bill; and if the difference value of the transaction time of the current bill and the historical bill is not within the preset difference value range, or the bill data of the current bill and the bill data of the historical bill are not matched, determining that the current bill and the historical bill have no repeated relationship.
Optionally, outputting the bill to prompt the user includes: monitoring a short message receiving event, and generating and outputting the bill to prompt a user after each short message receiving event occurs; or outputting the bill according to the preset time to prompt the user; or after the preset page of the bill application is opened, outputting the bill to prompt the user.
Optionally, the storing the current bill includes: and determining the type of the current bill according to the bill data, and storing the current bill in a classified manner.
Optionally, the method is applied to the client, and after the storing the current bill, the method further includes: and sending the current bill to a server for data synchronization, wherein the data in the current bill of the client and the server are synchronized based on the operation result of the last end of the client and the server for operating the current bill.
In a second aspect, there is provided a bill generating apparatus comprising:
the acquisition module is used for acquiring the short message data of the short message after receiving the short message;
the extracting module is used for extracting bill data in the short message data according to a preset bill template and generating a current bill according to the bill data;
And the output module is used for outputting the current bill to prompt a user, and storing the current bill after receiving the confirmation operation of the user.
Optionally, the short message data includes any one or more of the following combinations: the receiving time of the short message, the sender of the short message and the content data of the short message.
Optionally, the extracting module is further configured to: extracting bill data in the short message data according to keywords in a preset bill template; or extracting bill data in the short message data according to an extraction algorithm in a preset bill template.
Optionally, the billing data includes any one or more of the following combinations: amount, transaction category, transaction own account, transaction time, transaction counterpart information, and transaction scenario.
Optionally, the extracting module is further configured to: extracting transaction time information in the content data of the short message data; and if the transaction time information does not exist in the content data, taking the receiving time of the short message as the transaction time information.
Optionally, the apparatus further includes: the duplicate checking module is used for comparing the current bill with the stored historical bill and determining whether the current bill and the historical bill have a duplicate relationship or not; if there is a repeat relationship, the bills for which there is a repeat relationship are combined.
Optionally, the duplicate checking module is further configured to: if the difference value of the transaction time of the current bill and the historical bill is within a preset difference value range, and the bill data of the current bill is matched with the bill data of the historical bill, determining that a repeated relationship exists between the current bill and the historical bill; and if the difference value of the transaction time of the current bill and the historical bill is not within the preset difference value range, or the bill data of the current bill and the bill data of the historical bill are not matched, determining that the current bill and the historical bill have no repeated relationship.
Optionally, the output module is further configured to: monitoring a short message receiving event, and generating and outputting the bill to prompt a user after each short message receiving event occurs; or outputting the bill according to the preset time to prompt the user; or after the preset page of the bill application is opened, outputting the bill to prompt the user.
Optionally, the output module is further configured to: and determining the type of the current bill according to the bill data, and storing the current bill in a classified manner.
Optionally, the device is a client, and further includes: and the sending module is used for sending the current bill to a server for data synchronization, wherein the data in the current bill of the client and the server are synchronized based on the operation result of the last end for operating the current bill in the client and the server.
In a third aspect, there is provided an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method of any of the first aspects when executing the program.
In a fourth aspect, there is provided a computer readable storage medium having stored thereon a computer program which when executed by a processor implements the method of any of the first aspects.
The technical scheme provided in the embodiment of the application has at least the following technical effects or advantages:
according to the bill generation method, the bill generation device, the electronic equipment and the medium, after the short message is received, the bill data in the short message data is automatically extracted according to the preset bill template to generate the current bill. The key bill data is automatically extracted from the short message to generate and store the bill, so that the subsequent user can conveniently inquire the funds change record and obtain the concentrated consumption data according to the bill. And further outputting the current bill to prompt the user, storing the current bill after the user confirms, and improving the accuracy of the bill through the confirmation of the user.
The foregoing description is only an overview of the present invention, and is intended to be implemented in accordance with the teachings of the present invention in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present invention more readily apparent.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
FIG. 1 is a flow chart of a bill generation method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a bill generating device according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an electronic device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a storage medium according to an embodiment of the present invention.
Detailed Description
According to the technical scheme in the embodiment of the application, the overall thought is as follows:
according to the bill template, bill data is automatically extracted from the short message to generate a current bill for storage, and the efficiency of inquiring fund data by a user can be improved. Before storing the current bill, the current bill is output to prompt the user, and the accuracy of the bill is improved through confirmation of the user.
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Example 1
Referring to fig. 1, fig. 1 is a flowchart of a bill generation method in an embodiment of the present application, which includes:
step S101, after receiving a short message, acquiring short message data of the short message;
step S102, extracting bill data in the short message data according to a preset bill template, and generating a current bill according to the bill data;
step S103, outputting the current bill to prompt a user, and storing the current bill after receiving the confirmation operation of the user.
It should be noted that, the method provided in this embodiment may be applied to a client, for example, a smart phone, a smart watch, a computer, etc.; the method can also be applied to a server, for example: servers, cloud, etc., are not limited herein.
The short message in this embodiment is text or picture information received by electronic devices such as a smart phone, a smart watch, a tablet computer, a computer or a special accounting device, and the sender may be a payment platform, a bank server or a merchant.
The following describes in detail, with reference to fig. 1, specific implementation steps of the method provided in the embodiment of the present application:
step S101, after receiving the short message, acquiring the short message data of the short message.
In the embodiment of the application, the short message receiving event can be monitored, and the short message data is acquired when the short message is received each time; the short message data of the received short messages in the preset time range can be obtained in batches according to the preset time; and after the special bill application is started, when the application front page is opened, the acquisition of the short message data in batches can be stimulated, and the method is not limited.
The short message data comprises any one or a combination of more than one of the following: the receiving time of the short message, the sender of the short message and the content data of the short message. For example, a "you 2018-09-11:12 initiated" you 2018-09-10 "received a" you's return gold application sent by "you's bicycle" at 12:00 on day 9 and 10 of 18, has successfully transferred 299 to your WeChat change account at 2018-09-10, please make your collection. "wherein," 12:00 of day 9 and 10 of 18 "," certain bicycle ", and" certain bicycle refund gold application initiated by you 2018-09-09:11:12 "has successfully transferred 299 to your WeChat change account, please check you at 2018-09-10. "all are short message data.
Specifically, whether the short message is a short message related to fund change is judged according to the short message data, if so, the subsequent steps are carried out, and if not, the processing is directly ignored. The judging method may be based on whether the sender of the short message belongs to a preset bill sender list, or based on whether keywords such as "element", "account", "expenditure" or "transfer" exist in the content of the short message, or based on the learning algorithm thereof, which is not limited herein.
Step S102, extracting bill data in the short message data according to a preset bill template, and generating a current bill according to the bill data.
The billing data includes any one or more of the following combinations: amount, transaction category, transaction own account, transaction time, transaction counterpart information, transaction scenario, etc. The transaction category can be "expenditure", "income", and the transaction scene can be "credit card repayment", "catering" or "telephone fee", etc.
In this embodiment of the present application, specific items (for example, an amount of money, a transaction time, a transaction scenario, etc.) of bill data to be extracted are set in a preset bill template, and a display format of the items and an extraction manner of the items. The specific extraction modes can be various, and the following two examples are listed:
first, keywords.
And extracting bill data in the short message data according to the keywords in the preset bill template.
For example, digital information before and after "meta" and "renminbi" may be set to be extracted as an amount in bill data; setting information belonging to a preset account list such as a certain bank, a certain treasure, a certain letter and the like, and extracting the information as a transaction own account; setting information of merchant account lists such as 'east', 'washing somewhere' or 'where' and the like, and extracting the information as transaction counterpart information; setting ": digital information before and after "" "year, month, day", etc. is extracted as trade time, etc.
For example, the billing template requires that billing data be extracted for the amount of money, time of transaction, transaction scenario, transaction b-party account, etc. For the short message "you account 9414 22:51 credit card pays Renminbi 529 on day 27 of 03 months. The trade time of 22:51 of 03 months and 27 days can be extracted according to the preset keyword of month and day in the bill template; according to the keywords ' account ', ' bank ', a transaction own account ' business bank ' and an account 9414 ' can be extracted; according to the keyword 'credit card', a transaction scene 'credit card repayment' can be extracted; according to the keyword "Renminbi", the amount "529" can be extracted.
For another example, for the short message "you 2018-10-23, pay 6 yuan to some supermarket through the construction bank (3675), the WeChat pays the evidence", can withdraw the trade time "2018-10-23" according to keyword "-" preset in the bill template; according to the keyword ' bank ', the own transaction account ' construction bank ' and the account 3675 ' can be extracted; according to the keyword supermarket, a transaction scene shopping can be extracted; according to the keyword "element", the amount "6" can be extracted.
Second, an extraction algorithm.
And extracting bill data in the short message data according to an extraction algorithm in a preset bill template.
Specifically, an algorithm model that can be used to extract billing data from a short message can be trained in advance by means of machine learning, big data, and the like, and then the billing data can be extracted by the algorithm model. Of course, after collecting various extraction data, the developer may develop and edit an extraction algorithm according to the research and development experience to extract billing data from the short message.
Of course, in the implementation process, the bill data may be extracted locally at the client, or the bill data may be extracted by sending the short message data to the server, which is not limited herein.
In the implementation process, the transaction time information is preferentially extracted from the content data of the short message data, and if the transaction time information does not exist in the content data, the receiving time of the short message can be used as the transaction time information. Further, the transaction counterpart information is preferentially extracted from the content data of the short message data, if the transaction counterpart information does not exist in the content data, the sender number of the short message or the name corresponding to the sender number can be used as the transaction counterpart information, so that the complete bill data can be extracted to the maximum extent.
After the bill data is extracted, the bill data is arranged according to a format preset by a bill template to generate a current bill, and then the follow-up steps are executed.
In this embodiment of the present application, after the current bill is generated, the current bill and the stored historical bill may be compared, so as to determine whether the current bill and the historical bill have a repetitive relationship, so as to avoid that the repetitive bill interferes with the user query, which is also unfavorable for the subsequent statistics and analysis of the bill. The duplication checking step may be performed after step S102 or after step S103, and is not limited herein.
The specific weight checking method can be set according to the needs, and the following two examples are listed:
first, the machine learning algorithm looks up duplicate.
Namely, a large number of bills are input to train a weight checking model, the trained weight checking model is used for checking weight, the current bill is compared with the stored historical bill, and whether a repeated relationship exists is determined.
Second, setting condition check weight.
Namely, the duplicate checking condition is set according to the experience of analyzing the historical data to check duplicate. Can be set as follows:
if the difference value of the transaction time of the current bill and the historical bill is within the preset difference value range and the bill data of the current bill is matched with the bill data of the historical bill, determining that a repeated relationship exists between the current bill and the historical bill;
If the difference value of the transaction time of the current bill and the historical bill is not within the preset difference value range, or the bill data of the current bill and the bill data of the historical bill are not matched, determining that the current bill and the historical bill have no repeated relationship.
The preset difference range may be 24h or 10h, etc., which is not limited herein. The matching of the bill data of the current bill and the bill data of the historical bill can be transaction opposite party information, transaction account number b, amount, transaction scene or the same.
And if the repeated relation exists between the current bill and the historical bill after the repeated check is carried out, merging the bills with the repeated relation. The specific merging method can be to delete any bill or merge the data of both to form a more complete bill.
Step S103, outputting a current bill to prompt a user, and storing the current bill after receiving the confirmation operation of the user.
Specifically, the present bill may be output, without limitation, by ejecting a bill card for the user to watch, or by outputting a voice bill for the user to listen to, etc. The trigger event for outputting the current bill can have various settings, and the following three examples are listed:
First, output with short message.
Monitoring a short message receiving event, and generating and outputting a current bill to prompt a user after each short message receiving event occurs. Taking the smart phone as an example, after receiving the short message each time, the smart phone triggers and extracts bill data in the short message to generate a current bill, and triggers and outputs the current bill to prompt the user for confirmation. And the short message event received each time is the triggering event of the current bill output.
Second, a preset time is set to be output.
I.e., outputting a bill to prompt the user at a preset time. Specifically, the user may set a preset time in the billing application in advance, and the preset time may be a specific time point or a duration. If the time point is a specific time point, when the preset time is reached, outputting all bills which are not output before the preset time in batches so as to prompt the user to confirm in batches; and if the time is the duration, outputting all bills in the period periodically according to the duration so as to prompt the user to confirm in batches.
By setting the preset time, the bill prompt can be avoided when the short message is received every time, and the user is disturbed.
Third, the application APP is started for output.
I.e. after opening a preset page of the billing application, a bill is output to prompt the user. Specifically, each time a user opens a bill application, the user will prompt in batches all bill outputs between the opening and the last opening.
Further, the method and the device can also accurately set when the bill application is started and the application front page is popped up, and output bills to prompt a user, or after the bill application is started, the user clicks an unacknowledged bill mark on the page to trigger outputting all bills unacknowledged up to the present.
Of course, in the implementation process, the triggering events of the bill output are not limited to the above three types, and in order to better fit the needs of the user, the above multiple triggering modes can be provided for the user to select, and the user can set the mode of triggering the bill output needed by the user to select.
In the embodiment of the application, the current bill which is output to the user for confirmation can be set to be in an editable state, and the user can edit the needed information to the bill. After confirming the bill, the user may perform a confirmation operation to trigger the storing of the current bill.
In the implementation process, the type of the current bill can be determined according to the bill data, and the current bill is classified and stored. To facilitate subsequent searching of the bill and analysis of the bill data. The specific classified latitudes can be various, for example, the classified latitudes can be classified into 'income' and 'expenditure' according to the trend of funds, the classified latitudes can be classified into 'catering', 'transportation', 'entertainment', 'financial management' and the like according to the consumption types, and the classified latitudes can be classified into 'certain bank consumption', 'certain credit consumption', 'credit card repayment', 'bank withdrawal' and the like according to the consumption channels. Of course, different sort latitudes may also be nested, e.g., first sorted by fund trend, and then sorted by "type of consumption".
Assuming that the method of the embodiment is applied to the client, after the current bill is stored on the client, the current bill can be sent to the server for data synchronization, so as to ensure that the data of the server and the data of the client are consistent. Further, if the current bill needs to be modified, the data in the current bill of the client and the server are synchronized based on the operation result of the last end operating the current bill in the client and the server, so as to avoid inconsistent two ends.
Based on the same inventive concept, the embodiment of the invention also provides a device corresponding to the method in the first embodiment, which is shown in the second embodiment.
Example two
As shown in fig. 2, there is provided a bill generating apparatus including:
an obtaining module 201, configured to obtain, after receiving a short message, short message data of the short message;
the extracting module 202 is configured to extract bill data in the short message data according to a preset bill template, and generate a current bill according to the bill data;
and the output module 203 is configured to output the current bill to prompt a user, and store the current bill after receiving a confirmation operation of the user.
Further, the short message data includes any one or a combination of the following: the receiving time of the short message, the sender of the short message and the content data of the short message.
Further, the extracting module 202 is further configured to:
extracting bill data in the short message data according to keywords in a preset bill template; or,
and extracting bill data in the short message data according to an extraction algorithm in a preset bill template.
Further, the billing data includes a combination of any one or more of the following:
amount, transaction category, transaction own account, transaction time, transaction counterpart information, and transaction scenario.
Further, the extracting module 202 is further configured to:
extracting transaction time information in the content data of the short message data;
and if the transaction time information does not exist in the content data, taking the receiving time of the short message as the transaction time information.
Further, the device further comprises:
the duplicate checking module is used for comparing the current bill with the stored historical bill and determining whether the current bill and the historical bill have a duplicate relationship or not; if there is a repeat relationship, the bills for which there is a repeat relationship are combined.
Further, the duplicate checking module is further configured to:
if the difference value of the transaction time of the current bill and the historical bill is within a preset difference value range, and the bill data of the current bill is matched with the bill data of the historical bill, determining that a repeated relationship exists between the current bill and the historical bill;
And if the difference value of the transaction time of the current bill and the historical bill is not within the preset difference value range, or the bill data of the current bill and the bill data of the historical bill are not matched, determining that the current bill and the historical bill have no repeated relationship.
Further, the output module 203 is further configured to:
monitoring a short message receiving event, and generating and outputting the bill to prompt a user after each short message receiving event occurs; or,
outputting the bill according to preset time to prompt a user; or,
after a preset page of the bill application is opened, outputting the bill to prompt a user.
Further, the output module 203 is further configured to:
and determining the type of the current bill according to the bill data, and storing the current bill in a classified manner.
Further, the device is a client, and further includes:
and the sending module is used for sending the current bill to a server for data synchronization, wherein the data in the current bill of the client and the server are synchronized based on the operation result of the last end for operating the current bill in the client and the server.
Since the device described in the second embodiment of the present invention is a device for implementing the method described in the first embodiment of the present invention, based on the method described in the first embodiment of the present invention, a person skilled in the art can understand the specific structure and the deformation of the device, and thus the detailed description thereof is omitted herein. All devices used in the method according to the first embodiment of the present invention are within the scope of the present invention.
Based on the same inventive concept, the embodiment of the invention also provides equipment corresponding to the method in the first embodiment, and the third embodiment is seen.
Example III
As shown in fig. 3, the present embodiment provides an electronic device, including a memory 310, a processor 320, and a computer program 311 stored in the memory 310 and executable on the processor 320, wherein the processor 320 implements the following steps when executing the computer program 311:
after receiving the short message, acquiring short message data of the short message;
extracting bill data in the short message data according to a preset bill template, and generating a current bill according to the bill data;
and outputting the current bill to prompt a user, and storing the current bill after receiving the confirmation operation of the user.
In this embodiment, any implementation manner of the embodiment of the present application may be implemented when the processor 320 executes the computer program 311.
Since the apparatus described in the third embodiment of the present invention is an apparatus for implementing the method described in the first embodiment of the present invention, based on the method described in the first embodiment of the present invention, a person skilled in the art can understand the specific structure and the deformation of the apparatus, and therefore, the details are not repeated here. All equipment adopted by the method of the first embodiment of the invention belongs to the scope of protection of the invention.
Based on the same inventive concept, the embodiment of the invention also provides a storage medium corresponding to the method in the first embodiment, and the fourth embodiment is provided.
Example IV
The present embodiment provides a computer readable storage medium 400, as shown in fig. 4, having stored thereon a computer program 411, characterized in that the computer program 411, when executed by a processor, performs the steps of:
after receiving the short message, acquiring short message data of the short message;
extracting bill data in the short message data according to a preset bill template, and generating a current bill according to the bill data;
and outputting the current bill to prompt a user, and storing the current bill after receiving the confirmation operation of the user.
In a specific implementation, the computer program 411 may implement any one of the embodiments of the present application when executed by a processor.
The technical scheme provided in the embodiment of the application has at least the following technical effects or advantages:
according to the bill generation method, the bill generation device, the electronic equipment and the medium, after the short message is received, the bill data in the short message data is automatically extracted according to the preset bill template to generate the current bill. The key bill data is automatically extracted from the short message to generate and store the bill, so that the subsequent user can conveniently inquire the funds change record and obtain the concentrated consumption data according to the bill. And further outputting the current bill to prompt the user, storing the current bill after the user confirms, and improving the accuracy of the bill through the confirmation of the user.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general-purpose systems may also be used with the teachings herein. The required structure for a construction of such a system is apparent from the description above. In addition, the present invention is not directed to any particular programming language. It will be appreciated that the teachings of the present invention described herein may be implemented in a variety of programming languages, and the above description of specific languages is provided for disclosure of enablement and best mode of the present invention.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be construed as reflecting the intention that: i.e., the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the apparatus of the embodiments may be adaptively changed and disposed in one or more apparatuses different from the embodiments. The modules or units or components of the embodiments may be combined into one module or unit or component and, furthermore, they may be divided into a plurality of sub-modules or sub-units or sub-components. Any combination of all features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or units of any method or apparatus so disclosed, may be used in combination, except insofar as at least some of such features and/or processes or units are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings), may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments herein include some features but not others included in other embodiments, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments can be used in any combination.
Various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that some or all of the functions of some or all of the components in a gateway, proxy server, system according to embodiments of the present invention may be implemented in practice using a microprocessor or Digital Signal Processor (DSP). The present invention can also be implemented as an apparatus or device program (e.g., a computer program and a computer program product) for performing a portion or all of the methods described herein. Such a program embodying the present invention may be stored on a computer readable medium, or may have the form of one or more signals. Such signals may be downloaded from an internet website, provided on a carrier signal, or provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third, etc. do not denote any order. These words may be interpreted as names.
The invention discloses an A1 bill generation method, which comprises the following steps:
after receiving the short message, acquiring short message data of the short message;
extracting bill data in the short message data according to a preset bill template, and generating a current bill according to the bill data;
And outputting the current bill to prompt a user, and storing the current bill after receiving the confirmation operation of the user.
A2, the method according to A1, wherein the SMS data comprises any one or more of the following combinations:
the receiving time of the short message, the sender of the short message and the content data of the short message.
A3, the method according to A1 is characterized in that extracting bill data in the short message data according to a preset bill template comprises the following steps:
extracting bill data in the short message data according to keywords in a preset bill template; or,
and extracting bill data in the short message data according to an extraction algorithm in a preset bill template.
A4, the method of A1, wherein the billing data comprises any one or more of the following combinations:
amount, transaction category, transaction own account, transaction time, transaction counterpart information, and transaction scenario.
A5, the method according to A4, wherein the extracting bill data in the short message data comprises:
extracting transaction time information in the content data of the short message data;
and if the transaction time information does not exist in the content data, taking the receiving time of the short message as the transaction time information.
A6, the method according to A1, further comprising, after the generating the current bill:
comparing the current bill with the stored historical bill, and determining whether the current bill and the historical bill have a repetitive relationship or not;
if there is a repeat relationship, the bills for which there is a repeat relationship are combined.
A7, the method according to A6, wherein determining whether the current bill and the historical bill have a repetitive relationship comprises:
if the difference value of the transaction time of the current bill and the historical bill is within a preset difference value range, and the bill data of the current bill is matched with the bill data of the historical bill, determining that a repeated relationship exists between the current bill and the historical bill;
and if the difference value of the transaction time of the current bill and the historical bill is not within the preset difference value range, or the bill data of the current bill and the bill data of the historical bill are not matched, determining that the current bill and the historical bill have no repeated relationship.
A8, the method according to A1, wherein outputting the bill to prompt the user comprises:
Monitoring a short message receiving event, and generating and outputting the bill to prompt a user after each short message receiving event occurs; or,
outputting the bill according to preset time to prompt a user; or,
after a preset page of the bill application is opened, outputting the bill to prompt a user.
A9. the method according to A1, wherein storing the current bill comprises:
and determining the type of the current bill according to the bill data, and storing the current bill in a classified manner.
A10. the method according to A1, wherein the method is applied to a client, and after the storing the current bill, further comprising:
and sending the current bill to a server for data synchronization, wherein the data in the current bill of the client and the server are synchronized based on the operation result of the last end of the client and the server for operating the current bill.
B11, a bill generating apparatus, comprising:
the acquisition module is used for acquiring the short message data of the short message after receiving the short message;
the extracting module is used for extracting bill data in the short message data according to a preset bill template and generating a current bill according to the bill data;
And the output module is used for outputting the current bill to prompt a user, and storing the current bill after receiving the confirmation operation of the user.
B12, the apparatus according to B11, wherein the sms data includes any one or more of the following combinations:
the receiving time of the short message, the sender of the short message and the content data of the short message.
B13, the apparatus of B11, wherein the extraction module is further configured to:
extracting bill data in the short message data according to keywords in a preset bill template; or,
and extracting bill data in the short message data according to an extraction algorithm in a preset bill template.
B14, the apparatus of B11, wherein the billing data comprises any one or more of the following combinations:
amount, transaction category, transaction own account, transaction time, transaction counterpart information, and transaction scenario.
B15, the apparatus of B14, wherein the extraction module is further configured to:
extracting transaction time information in the content data of the short message data;
and if the transaction time information does not exist in the content data, taking the receiving time of the short message as the transaction time information.
B16, the apparatus according to B11, further comprising:
the duplicate checking module is used for comparing the current bill with the stored historical bill and determining whether the current bill and the historical bill have a duplicate relationship or not; if there is a repeat relationship, the bills for which there is a repeat relationship are combined.
The apparatus of B17, wherein the weight checking module is further configured to:
if the difference value of the transaction time of the current bill and the historical bill is within a preset difference value range, and the bill data of the current bill is matched with the bill data of the historical bill, determining that a repeated relationship exists between the current bill and the historical bill;
and if the difference value of the transaction time of the current bill and the historical bill is not within the preset difference value range, or the bill data of the current bill and the bill data of the historical bill are not matched, determining that the current bill and the historical bill have no repeated relationship.
B18, the apparatus of B11, wherein the output module is further configured to:
monitoring a short message receiving event, and generating and outputting the bill to prompt a user after each short message receiving event occurs; or,
Outputting the bill according to preset time to prompt a user; or,
after a preset page of the bill application is opened, outputting the bill to prompt a user.
B19, the apparatus of B11, wherein the output module is further configured to:
and determining the type of the current bill according to the bill data, and storing the current bill in a classified manner.
B20, the apparatus of B11, wherein the apparatus is a client, further comprising:
and the sending module is used for sending the current bill to a server for data synchronization, wherein the data in the current bill of the client and the server are synchronized based on the operation result of the last end for operating the current bill in the client and the server.
C21 an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method of any one of A1-a10 when executing the program.
D22, a computer readable storage medium having stored thereon a computer program which when executed by a processor implements the method of any of A1-a 10.
Claims (20)
1. A method of billing comprising:
after receiving the short message, acquiring short message data of the short message;
extracting bill data in the short message data according to a preset bill template, and generating a current bill according to the bill data;
outputting the current bill to prompt a user, and storing the current bill after receiving confirmation operation of the user;
after the generating the current bill, further comprising:
comparing the current bill with the stored historical bill, and determining whether the current bill and the historical bill have a repetitive relationship or not;
if there is a repeat relationship, the bills for which there is a repeat relationship are combined.
2. The method of claim 1, wherein the short message data comprises any one or a combination of:
the receiving time of the short message, the sender of the short message and the content data of the short message.
3. The method of claim 1, wherein extracting billing data from the sms data according to a preset billing template comprises:
extracting bill data in the short message data according to keywords in a preset bill template; or,
and extracting bill data in the short message data according to an extraction algorithm in a preset bill template.
4. The method of claim 1, wherein the billing data comprises a combination of any one or more of:
amount, transaction category, transaction own account, transaction time, transaction counterpart information, and transaction scenario.
5. The method of claim 4, wherein the extracting billing data in the sms data comprises:
extracting transaction time information in the content data of the short message data;
and if the transaction time information does not exist in the content data, taking the receiving time of the short message as the transaction time information.
6. The method of claim 1, wherein the determining whether the current bill has a recurring relationship with the historical bill comprises:
if the difference value of the transaction time of the current bill and the historical bill is within a preset difference value range, and the bill data of the current bill is matched with the bill data of the historical bill, determining that a repeated relationship exists between the current bill and the historical bill;
and if the difference value of the transaction time of the current bill and the historical bill is not within the preset difference value range, or the bill data of the current bill and the bill data of the historical bill are not matched, determining that the current bill and the historical bill have no repeated relationship.
7. The method of claim 1, wherein outputting the bill to prompt the user comprises:
monitoring a short message receiving event, and generating and outputting the bill to prompt a user after each short message receiving event occurs; or,
outputting the bill according to preset time to prompt a user; or,
after a preset page of the bill application is opened, outputting the bill to prompt a user.
8. The method of claim 1, wherein the storing the current bill comprises:
and determining the type of the current bill according to the bill data, and storing the current bill in a classified manner.
9. The method of claim 1, wherein the method is applied to a client, after the storing the current bill, further comprising:
and sending the current bill to a server for data synchronization, wherein the data in the current bill of the client and the server are synchronized based on the operation result of the last end of the client and the server for operating the current bill.
10. A bill generating apparatus, comprising:
the acquisition module is used for acquiring the short message data of the short message after receiving the short message;
The extracting module is used for extracting bill data in the short message data according to a preset bill template and generating a current bill according to the bill data;
the output module is used for outputting the current bill to prompt a user, and storing the current bill after receiving the confirmation operation of the user;
further comprises:
the duplicate checking module is used for comparing the current bill with the stored historical bill and determining whether the current bill and the historical bill have a duplicate relationship or not; if there is a repeat relationship, the bills for which there is a repeat relationship are combined.
11. The apparatus of claim 10, wherein the short message data comprises any one or a combination of:
the receiving time of the short message, the sender of the short message and the content data of the short message.
12. The apparatus of claim 10, wherein the extraction module is further to:
extracting bill data in the short message data according to keywords in a preset bill template; or,
and extracting bill data in the short message data according to an extraction algorithm in a preset bill template.
13. The apparatus of claim 10, wherein the billing data comprises a combination of any one or more of:
Amount, transaction category, transaction own account, transaction time, transaction counterpart information, and transaction scenario.
14. The apparatus of claim 13, wherein the extraction module is further to:
extracting transaction time information in the content data of the short message data;
and if the transaction time information does not exist in the content data, taking the receiving time of the short message as the transaction time information.
15. The apparatus of claim 10, wherein the weight checking module is further to:
if the difference value of the transaction time of the current bill and the historical bill is within a preset difference value range, and the bill data of the current bill is matched with the bill data of the historical bill, determining that a repeated relationship exists between the current bill and the historical bill;
and if the difference value of the transaction time of the current bill and the historical bill is not within the preset difference value range, or the bill data of the current bill and the bill data of the historical bill are not matched, determining that the current bill and the historical bill have no repeated relationship.
16. The apparatus of claim 10, wherein the output module is further to:
Monitoring a short message receiving event, and generating and outputting the bill to prompt a user after each short message receiving event occurs; or,
outputting the bill according to preset time to prompt a user; or,
after a preset page of the bill application is opened, outputting the bill to prompt a user.
17. The apparatus of claim 10, wherein the output module is further to:
and determining the type of the current bill according to the bill data, and storing the current bill in a classified manner.
18. The apparatus of claim 10, wherein the apparatus is a client, further comprising:
and the sending module is used for sending the current bill to a server for data synchronization, wherein the data in the current bill of the client and the server are synchronized based on the operation result of the last end for operating the current bill in the client and the server.
19. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of claims 1-9 when executing the program.
20. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method of any of claims 1-9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811253391.2A CN109598575B (en) | 2018-10-25 | 2018-10-25 | Bill generation method and device, electronic equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811253391.2A CN109598575B (en) | 2018-10-25 | 2018-10-25 | Bill generation method and device, electronic equipment and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109598575A CN109598575A (en) | 2019-04-09 |
CN109598575B true CN109598575B (en) | 2024-04-05 |
Family
ID=65957528
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811253391.2A Active CN109598575B (en) | 2018-10-25 | 2018-10-25 | Bill generation method and device, electronic equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109598575B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110267222A (en) * | 2019-05-24 | 2019-09-20 | 深圳壹账通智能科技有限公司 | The methods of exhibiting and device of short message bill |
CN110704470B (en) * | 2019-09-29 | 2022-02-15 | 厦门市美亚柏科信息股份有限公司 | Bill data duplication elimination method, terminal equipment and storage medium |
CN112307029B (en) * | 2020-11-03 | 2024-06-21 | 彩讯科技股份有限公司 | Bill data storage and bill generation methods, devices, server and storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101621562A (en) * | 2008-06-30 | 2010-01-06 | 深圳富泰宏精密工业有限公司 | Electronic accounting system and method therefor |
CN102142127A (en) * | 2010-07-30 | 2011-08-03 | 华为技术有限公司 | Method and device for managing consumption details of user |
KR20120089085A (en) * | 2011-02-01 | 2012-08-09 | 에스케이텔레콤 주식회사 | electronic bill system, electronic bill apparatus and method providing electronic bill serves thereof |
CN104700277A (en) * | 2013-12-05 | 2015-06-10 | 华为技术有限公司 | Electronic accounting method and device and terminal equipment |
CN104717342A (en) * | 2013-12-11 | 2015-06-17 | 阿里巴巴集团控股有限公司 | Method and device for awakening client application based on short message |
CN105405049A (en) * | 2015-10-23 | 2016-03-16 | 重庆蓝岸通讯技术有限公司 | Intelligent accounting method and intelligent accounting system |
CN107330777A (en) * | 2017-06-21 | 2017-11-07 | 深圳传音通讯有限公司 | Bill management method and device |
CN107545404A (en) * | 2016-06-29 | 2018-01-05 | 腾讯科技(深圳)有限公司 | Bill based reminding method and device |
CN107657039A (en) * | 2017-09-28 | 2018-02-02 | 努比亚技术有限公司 | Bill recording method, mobile terminal and computer-readable recording medium |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100106583A1 (en) * | 2007-04-17 | 2010-04-29 | American Express Travel Related Services Company, Inc. | System and method for rewarding positive consumer behavior using loyalty point advances |
US20120239553A1 (en) * | 2011-03-16 | 2012-09-20 | Metro Enterprises, Inc. | Method for processing and funding short-term loans to a consumer and a method for converting currency, both to a mobile credit storage facility account |
US10467709B2 (en) * | 2016-08-31 | 2019-11-05 | Paypal, Inc. | Preemptive data processing to mitigate against overdraft and declined transaction |
-
2018
- 2018-10-25 CN CN201811253391.2A patent/CN109598575B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101621562A (en) * | 2008-06-30 | 2010-01-06 | 深圳富泰宏精密工业有限公司 | Electronic accounting system and method therefor |
CN102142127A (en) * | 2010-07-30 | 2011-08-03 | 华为技术有限公司 | Method and device for managing consumption details of user |
KR20120089085A (en) * | 2011-02-01 | 2012-08-09 | 에스케이텔레콤 주식회사 | electronic bill system, electronic bill apparatus and method providing electronic bill serves thereof |
CN104700277A (en) * | 2013-12-05 | 2015-06-10 | 华为技术有限公司 | Electronic accounting method and device and terminal equipment |
CN104717342A (en) * | 2013-12-11 | 2015-06-17 | 阿里巴巴集团控股有限公司 | Method and device for awakening client application based on short message |
CN105405049A (en) * | 2015-10-23 | 2016-03-16 | 重庆蓝岸通讯技术有限公司 | Intelligent accounting method and intelligent accounting system |
CN107545404A (en) * | 2016-06-29 | 2018-01-05 | 腾讯科技(深圳)有限公司 | Bill based reminding method and device |
CN107330777A (en) * | 2017-06-21 | 2017-11-07 | 深圳传音通讯有限公司 | Bill management method and device |
CN107657039A (en) * | 2017-09-28 | 2018-02-02 | 努比亚技术有限公司 | Bill recording method, mobile terminal and computer-readable recording medium |
Non-Patent Citations (2)
Title |
---|
Citizen-Consumers Wanted: Revitalizing the American Dream in the Face of Economic Recessions, 1981–2012;Bill Clinton,;Journal of Consumer Research;47(3);327-349 * |
利用Kafka技术实现用户实时账单的短信提醒功能;杨洁;;数字通信世界(第11期);219-221219-221 * |
Also Published As
Publication number | Publication date |
---|---|
CN109598575A (en) | 2019-04-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109598575B (en) | Bill generation method and device, electronic equipment and medium | |
CN103136276A (en) | System, method and device of verification of data | |
CN107563881A (en) | Bookkeeping methods and device, server | |
CN108269135B (en) | Information transmission method and device and electronic equipment | |
WO2014159296A1 (en) | A method, system and program product for matching of transaction records | |
CN104572077B (en) | The processing method and operation system of db transaction | |
CN106341313A (en) | Method and apparatus for obtaining billing information | |
US20120173410A1 (en) | System and method for paying citations using sms text messaging | |
CN113222555B (en) | Data processing method, device, equipment and system | |
AU2018101686A4 (en) | A system and method for facilitating payments via mobile messaging | |
JP6721509B2 (en) | Method and device for displaying information | |
CN109670824A (en) | Generation method, device, equipment and the storage medium of electronics account book | |
CN113205402A (en) | Account checking method and device, electronic equipment and computer readable medium | |
US20140188716A1 (en) | Automated first party debt collection system | |
CN107798534A (en) | A kind of information recording method and device, terminal and readable storage medium storing program for executing | |
CN110738784B (en) | Invoice management method, device, server and system | |
CN114169885A (en) | Digital currency payment method, device, terminal and computer readable storage medium | |
CN109598479B (en) | Bill extraction method and device, electronic equipment and medium | |
CN109583448B (en) | Accounting method, device, electronic equipment and medium | |
CN111145031B (en) | Insurance business customization method, device and system | |
CN107563588A (en) | A kind of acquisition methods of personal credit and acquisition system | |
US20100082482A1 (en) | Systems and Methods for Aggregating and Donating Dormant Prepaid Card Amounts | |
US11838404B2 (en) | Block chain modification correlation | |
CN109583855B (en) | Funds payment method, device, computer equipment and storage medium | |
KR20170103907A (en) | Associated personal identification and account collection |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20240315 Address after: Room 03, 2nd Floor, Building A, No. 20 Haitai Avenue, Huayuan Industrial Zone (Huanwai), Binhai New Area, Tianjin, 300450 Applicant after: 3600 Technology Group Co.,Ltd. Country or region after: Zhong Guo Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Applicant before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Country or region before: Zhong Guo |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |