CN109598575B - A bill generation method, device, electronic device and medium - Google Patents
A bill generation method, device, electronic device 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
- sms
- current
- current bill
- 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 79
- 238000012790 confirmation Methods 0.000 claims abstract description 17
- 238000000605 extraction Methods 0.000 claims description 27
- 238000004590 computer program Methods 0.000 claims description 14
- 230000001360 synchronised effect Effects 0.000 claims description 8
- 230000000694 effects Effects 0.000 abstract description 5
- 238000001514 detection method Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 2
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 2
- 238000010276 construction Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000010801 machine learning Methods 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 1
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 1
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 1
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000001960 triggered effect Effects 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
Description
技术领域Technical Field
本发明涉及计算机技术领域,尤其涉及一种账单生成方法、装置、电子设备及介质。The present invention relates to the field of computer technology, and in particular to a bill generation method, device, electronic equipment and medium.
背景技术Background technique
随着科技的进步,智能手机已经普及,大众的生活、消费、娱乐等活动都离不开各类移动设备。智能手机的应用带来了便利,尤其是在各种消费活动中,采用手机来进行支付也更加普遍。With the advancement of technology, smart phones have become popular, and people's life, consumption, entertainment and other activities are inseparable from various mobile devices. The application of smart phones has brought convenience, especially in various consumption activities, using mobile phones to make payments has become more common.
银行端、网络支付平台或商家为了方便用户能了解和查询自己的消费情况,往往会将采用手机或银行卡进行的消费和资金转移生成资金变动短信,并发送资金变动短信给用户,以保留消费记录供用户查询。In order to make it easier for users to understand and check their consumption, banks, online payment platforms or merchants often generate funds change text messages for consumption and fund transfers made using mobile phones or bank cards, and send the funds change text messages to users to keep consumption records for users to query.
然而,用户每次想了解自己的消费情况或查询某一笔消费时,都需要逐条的去翻阅历史短信,需要消耗大量的时间,效率也较低。However, every time a user wants to know his/her consumption situation or inquire about a certain consumption, he/she needs to read the historical text messages one by one, which consumes a lot of time and is inefficient.
发明内容Summary of the invention
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的账单生成方法、装置、电子设备及介质。In view of the above problems, the present invention is proposed to provide a bill generation method, device, electronic device and medium that overcome the above problems or at least partially solve the above problems.
第一方面,提供一种账单生成方法,包括:In a first aspect, a bill generation method is provided, comprising:
在接收到短信后,获取所述短信的短信数据;After receiving the text message, obtaining text message data of the text message;
按照预设的账单模板,提取所述短信数据中的账单数据,并根据所述账单数据,生成当前账单;Extracting bill data from the SMS data according to a preset bill template, and generating a current bill based on the bill data;
输出所述当前账单以提示用户,并在接收到用户的确认操作后,存储所述当前账单。The current bill is output to prompt the user, and after receiving the user's confirmation operation, the current bill is stored.
可选的,所述短信数据包括以下任一种或多种的组合:短信的接收时间、短信的发送方和短信的内容数据。Optionally, the SMS data includes any one or more combinations of the following: the receiving time of the SMS, the sender of the SMS and the content data of the SMS.
可选的,按照预设的账单模板,提取所述短信数据中的账单数据,包括:按照预设的账单模板中的关键字,提取所述短信数据中的账单数据;或者,按照预设的账单模板中的提取算法,提取所述短信数据中的账单数据。Optionally, extracting bill data from the SMS data according to a preset bill template, including: extracting bill data from the SMS data according to keywords in the preset bill template; or extracting bill data from the SMS data according to an extraction algorithm in a preset bill template.
可选的,所述账单数据包括以下任一种或多种的组合:金额、交易类别、交易己方账户、交易时间、交易对方信息和交易情景。Optionally, the billing data includes any one or more combinations of the following: amount, transaction category, transaction account, transaction time, transaction counterparty information and transaction scenario.
可选的,所述提取所述短信数据中的账单数据,包括:提取所述短信数据的内容数据中的交易时间信息;如果所述内容数据中不存在所述交易时间信息,则以所述短信的接收时间作为所述交易时间信息。Optionally, extracting the billing data from the SMS data includes: extracting transaction time information from content data of the SMS data; if the transaction time information does not exist in the content data, using the reception time of the SMS as the transaction time information.
可选的,在所述生成当前账单之后还包括:比对所述当前账单与已经存储的历史账单,确定所述当前账单与所述历史账单是否存在重复关系;如果存在重复关系,则合并存在重复关系的账单。Optionally, after generating the current bill, the method further includes: comparing the current bill with stored historical bills to determine whether there is a duplication relationship between the current bill and the historical bills; if there is a duplication relationship, merging the bills with the duplication relationship.
可选的,所述确定所述当前账单与所述历史账单是否存在重复关系,包括:如果所述当前账单与所述历史账单的交易时间的差值在预设差值范围内,且所述当前账单的账单数据与所述历史账单的账单数据匹配,则确定所述当前账单与所述历史账单存在重复关系;如果所述当前账单与所述历史账单的交易时间的差值不在所述预设差值范围内,或者,所述当前账单的账单数据与所述历史账单的账单数据不匹配,则确定所述当前账单与所述历史账单不存在重复关系。Optionally, determining whether there is a duplicate relationship between the current bill and the historical bill includes: if the difference in transaction time between the current bill and the historical bill is within a preset difference range, and the billing data of the current bill matches the billing data of the historical bill, then determining that there is a duplicate relationship between the current bill and the historical bill; if the difference in transaction time between the current bill and the historical bill is not within the preset difference range, or the billing data of the current bill does not match the billing data of the historical bill, then determining that there is no duplicate relationship between the current bill and the historical bill.
可选的,输出所述账单以提示用户,包括:监听短信接收事件,并在每次发生短信接收事件后,生成并输出所述账单以提示用户;或者,按预设时间,输出所述账单以提示用户;或者,在开启账单应用的预设页面后,输出所述账单以提示用户。Optionally, outputting the bill to prompt the user includes: monitoring SMS reception events, and generating and outputting the bill to prompt the user after each SMS reception event occurs; or, outputting the bill to prompt the user at a preset time; or, outputting the bill to prompt the user after opening a preset page of the bill application.
可选的,所述存储所述当前账单,包括:根据所述账单数据,确定所述当前账单的类型,并分类存储所述当前账单。Optionally, storing the current bill includes: 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 storing the current bill, further includes: sending the current bill to the 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 that operates the current bill.
第二方面,提供一种账单生成装置,包括:In a second aspect, a bill generating device is provided, comprising:
获取模块,用于在接收到短信后,获取所述短信的短信数据;An acquisition module, used for acquiring the SMS data of the SMS after receiving the SMS;
提取模块,用于按照预设的账单模板,提取所述短信数据中的账单数据,并根据所述账单数据,生成当前账单;An extraction module, used to extract bill data from the SMS data according to a preset bill template, and generate a current bill based on the bill data;
输出模块,用于输出所述当前账单以提示用户,并在接收到用户的确认操作后,存储所述当前账单。The output module is used to output the current bill to prompt the user, and store the current bill after receiving the user's confirmation operation.
可选的,所述短信数据包括以下任一种或多种的组合:短信的接收时间、短信的发送方和短信的内容数据。Optionally, the SMS data includes any one or more combinations of the following: the receiving time of the SMS, the sender of the SMS and the content data of the SMS.
可选的,所述提取模块还用于:按照预设的账单模板中的关键字,提取所述短信数据中的账单数据;或者,按照预设的账单模板中的提取算法,提取所述短信数据中的账单数据。Optionally, the extraction module is further used to: extract the billing data in the SMS data according to keywords in a preset billing template; or extract the billing data in the SMS data according to an extraction algorithm in a preset billing template.
可选的,所述账单数据包括以下任一种或多种的组合:金额、交易类别、交易己方账户、交易时间、交易对方信息和交易情景。Optionally, the billing data includes any one or more combinations of the following: amount, transaction category, transaction account, transaction time, transaction counterparty information and transaction scenario.
可选的,所述提取模块还用于:提取所述短信数据的内容数据中的交易时间信息;如果所述内容数据中不存在所述交易时间信息,则以所述短信的接收时间作为所述交易时间信息。Optionally, the extraction module is further used to: extract transaction time information from content data of the SMS data; if the transaction time information does not exist in the content data, use the reception time of the SMS as the transaction time information.
可选的,所述装置还包括:查重模块,用于比对所述当前账单与已经存储的历史账单,确定所述当前账单与所述历史账单是否存在重复关系;如果存在重复关系,则合并存在重复关系的账单。Optionally, the device also includes: a duplication checking module, used to compare the current bill with the stored historical bills to determine whether there is a duplication relationship between the current bill and the historical bills; if there is a duplication relationship, merging the bills with the duplication relationship.
可选的,所述查重模块还用于:如果所述当前账单与所述历史账单的交易时间的差值在预设差值范围内,且所述当前账单的账单数据与所述历史账单的账单数据匹配,则确定所述当前账单与所述历史账单存在重复关系;如果所述当前账单与所述历史账单的交易时间的差值不在所述预设差值范围内,或者,所述当前账单的账单数据与所述历史账单的账单数据不匹配,则确定所述当前账单与所述历史账单不存在重复关系。Optionally, the duplication checking module is also used to: if the difference in transaction time between the current bill and the historical bill is within a preset difference range, and the bill data of the current bill matches the bill data of the historical bill, then determine that there is a duplication relationship between the current bill and the historical bill; if the difference in transaction time between the current bill and the historical bill is not within the preset difference range, or the bill data of the current bill does not match the bill data of the historical bill, then determine that there is no duplication relationship between the current bill and the historical bill.
可选的,所述输出模块还用于:监听短信接收事件,并在每次发生短信接收事件后,生成并输出所述账单以提示用户;或者,按预设时间,输出所述账单以提示用户;或者,在开启账单应用的预设页面后,输出所述账单以提示用户。Optionally, the output module is also used to: monitor SMS reception events, and generate and output the bill to prompt the user after each SMS reception event occurs; or, output the bill to prompt the user at a preset time; or, output the bill to prompt the user after opening the preset page of the bill application.
可选的,所述输出模块还用于:根据所述账单数据,确定所述当前账单的类型,并分类存储所述当前账单。Optionally, the output module is further used to: determine the type of the current bill based on the bill data, and store the current bill in a classified manner.
可选的,所述装置为客户端,还包括:发送模块,用于发送所述当前账单至服务端进行数据同步,其中,以所述客户端和所述服务端中最后一个操作所述当前账单的那端的操作结果为准,同步所述客户端和所述服务端的所述当前账单中的数据。Optionally, the device is a client and further includes: a sending module, used to send the current bill to the server for data synchronization, wherein the data in the current bill of the client and the server is synchronized based on the operation result of the last end of the client and the server that operates the current bill.
第三方面,提供一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现第一方面任一所述的方法。According to a third aspect, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any method described in the first aspect is implemented.
第四方面,提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现第一方面任一所述的方法。According to a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, any method described in the first aspect is implemented.
本申请实施例中提供的技术方案,至少具有如下技术效果或优点:The technical solution provided in the embodiments of the present application has at least the following technical effects or advantages:
本申请实施例提供的账单生成方法、装置、电子设备及介质,在接收到短信后,自动按照预设的账单模板,提取短信数据中的账单数据,来生成当前账单。即自动的从短信中提取出关键的账单数据来生成账单进行存储,以便于后续用户查询资金变动记录和根据账单来获得集中的消费数据。进一步输出当前账单对用户进行提示,在用户确认后再存储当前账单,通过用户的确认提高账单的准确度。The bill generation method, device, electronic device and medium provided in the embodiment of the present application automatically extract the bill data in the SMS data according to the preset bill template after receiving the SMS to generate the current bill. That is, the key bill data is automatically extracted from the SMS to generate the bill for storage, so that the subsequent user can query the fund change record and obtain the centralized consumption data according to the bill. The current bill is further output to prompt the user, and the current bill is stored after the user confirms, so as to improve the accuracy of the bill through the user's confirmation.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
图1为本发明实施例中账单生成方法的流程图;FIG1 is a flow chart of a bill generation method according to an embodiment of the present invention;
图2为本发明实施例中账单生成装置的结构示意图;FIG2 is a schematic diagram of the structure of a bill generating device according to an embodiment of the present invention;
图3为本发明实施例中电子设备的结构示意图;FIG3 is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention;
图4为本发明实施例中存储介质的结构示意图。FIG. 4 is a schematic diagram of the structure of a storage medium in an embodiment of the present invention.
具体实施方式Detailed ways
本申请实施例中的技术方案,总体思路如下:The technical solution in the embodiment of the present application has the following general idea:
根据账单模板,从短信中自动提取出账单数据,来生成当前账单进行存储,能提高用户查询资金数据的效率。在存储当前账单之前,先输出当前账单对用户进行提示,通过用户的确认提高账单的准确度。According to the bill template, the bill data is automatically extracted from the SMS to generate the current bill for storage, which can improve the efficiency of users' query of financial data. Before storing the current bill, the current bill is output to prompt the user, and the accuracy of the bill is improved through the user's confirmation.
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
实施例一Embodiment 1
本实施例提供了一种账单生成方法,请参考图1,图1为本申请实施例中账单生成方法的流程图,包括:This embodiment provides a bill generation method. Please refer to FIG. 1 . FIG. 1 is a flow chart of the bill generation method in the embodiment of the present application, including:
步骤S101,在接收到短信后,获取所述短信的短信数据;Step S101, after receiving the text message, obtaining the text message data of the text message;
步骤S102,按照预设的账单模板,提取所述短信数据中的账单数据,并根据所述账单数据,生成当前账单;Step S102, extracting bill data from the SMS data according to a preset bill template, and generating a current bill based on the bill data;
步骤S103,输出所述当前账单以提示用户,并在接收到用户的确认操作后,存储所述当前账单。Step S103, outputting the current bill to prompt the user, and storing the current bill after receiving the user's confirmation operation.
需要说明的是,本实施例提供的方法即可以应用于客户端,例如,智能手机、智能手表、计算机等;也可以应用于服务端,例如:服务器、云端等,在此不作限制。It should be noted that the method provided in this embodiment can be applied to the client, such as a smart phone, a smart watch, a computer, etc.; it can also be applied to the service end, such as a server, a cloud, etc., without limitation here.
本实施例中的短信,是智能手机、智能手表、平板电脑、计算机或专门记账设备等电子设备接收到的文字或图片信息,其发送方可以是支付平台、银行服务器或商家等。The text message in this embodiment is text or picture information received by electronic devices such as smart phones, smart watches, tablet computers, or special accounting devices, and its sender can be a payment platform, a bank server, or a merchant.
下面,结合图1详细介绍本申请实施例提供的方法的具体实施步骤:The specific implementation steps of the method provided in the embodiment of the present application are described in detail below in conjunction with FIG. 1 :
步骤S101,在接收到短信后,获取所述短信的短信数据。Step S101, after receiving a text message, obtaining text message data of the text message.
在本申请实施例中,可以监控短信接收事件,在每次接收到短信时,即获取短信数据;也可以按预设时长对预设时长范围内接收到的短信进行批量的短信数据获取;还可以在开启专用的账单应用后,打开应用首页时,激发获取批量的短信数据,在此不作限制。In an embodiment of the present application, the SMS reception event can be monitored to obtain SMS data each time a text message is received; the SMS data can also be obtained in batches for text messages received within a preset time range according to a preset time; and the acquisition of batch SMS data can also be triggered when a dedicated billing application is opened and the application homepage is opened, without any limitation here.
该短信数据包括以下任一种或多种的组合:短信的接收时间、短信的发送方和短信的内容数据。举例来讲,于“18年9月10日的12:00”接收到“某单车”发送的“您2018-09-0911:12发起的某单车退押金申请,已于2018-09-10将299元成功转到您的微信零钱账户,请您查收。”其中,“18年9月10日的12:00”、“某单车”及“您2018-09-09 11:12发起的某单车退押金申请,已于2018-09-10将299元成功转到您的微信零钱账户,请您查收。”均为短信数据。The SMS data includes any one or more combinations of the following: the time the SMS is received, the sender of the SMS, and the content data of the SMS. For example, at "12:00 on September 10, 2018", a message was received from "a certain bicycle" saying "You initiated a deposit refund application for a certain bicycle at 11:12 on September 9, 2018, and 299 yuan was successfully transferred to your WeChat change account on September 10, 2018. Please check." Among them, "12:00 on September 10, 2018", "a certain bicycle" and "You initiated a deposit refund application for a certain bicycle at 11:12 on September 9, 2018, and 299 yuan was successfully transferred to your WeChat change account on September 10, 2018. Please check." are all SMS data.
具体来讲,会先根据短信数据判断该则短信是否是资金变动相关的短信,如果是则进行后续的步骤,如果不是则直接忽略不作处理。判断的方法可以是根据短信的发送方是否属于预设的账单发送方名单来判断,也可以是根据短信的内容中是否有“元”、“账户”、“支出”或“转入”等关键字来判断,还可以采用及其学习算法来判断,在此不作限制。Specifically, it will first determine whether the SMS is related to fund changes based on the SMS data. If it is, it will proceed to the subsequent steps. If not, it will be ignored. The judgment method can be based on whether the sender of the SMS belongs to the preset bill sender list, or based on whether there are keywords such as "yuan", "account", "expenditure" or "transfer" in the content of the SMS, or it can be judged by using its learning algorithm, which is not limited here.
步骤S102,按照预设的账单模板,提取所述短信数据中的账单数据,并根据所述账单数据,生成当前账单。Step S102, extracting the bill data in the SMS data according to a preset bill template, and generating a current bill based on the bill data.
账单数据包括以下任一种或多种的组合:金额、交易类别、交易己方账户、交易时间、交易对方信息和交易情景等。其中,交易类别可以为“支出”、“收入”,交易场景可以为“信用卡还款”、“餐饮”或“话费”等。The bill data includes any one or more combinations of the following: amount, transaction category, transaction account, transaction time, transaction counterparty information, transaction scenario, etc. Among them, the transaction category can be "expenditure" or "income", and the transaction scenario can be "credit card repayment", "catering" or "phone bill", etc.
在本申请实施例中,预设的账单模板中设置有需要提取的账单数据的具体项目(例如,金额、交易时间、交易场景等),该项目的显示格式及该项目的提取方式。其中,具体的提取方式可以有多种,下面列举两种为例:In the embodiment of the present application, the preset bill template is provided with specific items of bill data to be extracted (for example, amount, transaction time, transaction scenario, etc.), the display format of the item and the extraction method of the item. There are multiple specific extraction methods, two of which are listed below as examples:
第一种,关键字。The first one is keywords.
即按照预设的账单模板中的关键字,提取短信数据中的账单数据。That is, according to the keywords in the preset bill template, the bill data in the SMS data is extracted.
举例来讲,可以设置“元”、“人民币”前后的数字信息提取为账单数据中的金额;设置“某某银行”、“某宝”、“某信”等属于预设已方账户名单的信息提取为交易己方账户;设置“某东”、“淘某”或“某哪儿”等商户账户名单的信息提取为交易对方信息;设置“:”“年、月、日”等前后的数字信息提取为交易时间,等等。For example, you can set the digital information before and after "yuan" or "RMB" to be extracted as the amount in the bill data; set the information of "such and such bank", "such and such treasure", "such and such credit card" and other preset accounts to be extracted as the transaction account; set the information of the merchant account list such as "such and such east", "such and such Taobao" or "such and such ... such and such and such and such such and such and such such and such and such such and such and such such and such and such such and such such and such such and such such and such such and such such and such such and such such and such such and such such and such such and such such and such such and such such and such such and such such and such such and such such and such such and such such and such such and such such and such such and such such and such such and such such and such such such and such such and such such such and such such such and such such such and such such such and such such such and such such such and such such such such and such such such such and such such such such such and such such such such such such such such such such such such such such such such such such such such such such such such such such such such such such such such such such such such such such such such such such such such such such such such such such such such such such such such such such such such such such such such such such such such such such such such such such
例如,账单模板要求提取金额、交易时间、交易场景、交易乙方账户等账单数据。对于短信“您账户9414于03月27日22:51信用卡还款人民币529。【招商银行】”,根据账单模板中预设的关键字“月、日”可以提取出交易时间“03月27日22:51”;根据关键字“账户”、“银行”可以提取出交易己方账户“招商银行,账户9414”;根据关键字“信用卡”,可以提取出交易场景“信用卡还款”;根据关键字“人民币”,可以提取出金额“529”。For example, the bill template requires the extraction of bill data such as amount, transaction time, transaction scenario, and transaction party B's account. For the text message "Your account 9414 repaid RMB 529 on March 27 at 22:51. [China Merchants Bank]", the transaction time "March 27 at 22:51" can be extracted based on the keywords "month, day" preset in the bill template; the transaction party account "China Merchants Bank, account 9414" can be extracted based on the keywords "account" and "bank"; the transaction scenario "credit card repayment" can be extracted based on the keyword "credit card"; the amount "529" can be extracted based on the keyword "RMB".
再例如,对于短信“您2018-10-23,通过建设银行(3675)向某超市付款6元,微信支付凭证”,根据账单模板中预设的关键字“-”可以提取出交易时间“2018-10-23”;根据关键字“银行”可以提取出交易己方账户“建设银行,账户3675”;根据关键字“超市”,可以提取出交易场景“购物”;根据关键字“元”,可以提取出金额“6”。For another example, for the text message "You paid 6 yuan to a supermarket through China Construction Bank (3675) on October 23, 2018, with a WeChat payment receipt", the transaction time "2018-10-23" can be extracted based on the preset keyword "-" in the bill template; the transaction account "China Construction Bank, account 3675" can be extracted based on the keyword "bank"; the transaction scene "shopping" can be extracted based on the keyword "supermarket"; and the amount "6" can be extracted based on the keyword "yuan".
第二种,提取算法。The second one is the extraction algorithm.
按照预设的账单模板中的提取算法,提取所述短信数据中的账单数据。The billing data in the SMS data is extracted according to the extraction algorithm in the preset billing template.
具体来讲,可以预先通过机器学习、大数据等技术手段,训练出能用于从短信中提取账单数据的算法模型,再通过该算法模型来提取账单数据。当然,也可以是研发人员通过收集各类提取数据后,根据研发经验开发编辑出提取算法来从短信中提取出账单数据。Specifically, an algorithm model that can be used to extract bill data from text messages can be trained in advance through machine learning, big data and other technical means, and then the bill data can be extracted through the algorithm model. Of course, R&D personnel can also collect various types of extraction data and develop and edit extraction algorithms based on R&D experience to extract bill data from text messages.
当然,在具体实施过程中,该账单数据可以在客户端本地提取,也可以将短信数据发送给服务端来进行账单数据的提取,在此不作限制。Of course, in the specific implementation process, the bill data can be extracted locally on the client, or the SMS data can be sent to the server to extract the bill data, which is not limited here.
在具体实施过程中,优先从短信数据的内容数据中提取交易时间信息,如果所述内容数据中不存在交易时间信息,则可以以短信的接收时间作为该交易时间信息。进一步,优先从短信数据的内容数据中提取交易对方信息,如果所述内容数据中不存在交易对方信息,则可以以短信的发送方号码或该发送方号码对应登记的名称作为该交易对方信息,以保证能最大限度的提取出完整的账单数据。In the specific implementation process, the transaction time information is preferentially extracted from the content data of the SMS data. If the transaction time information does not exist in the content data, the SMS receiving time can be used as the transaction time information. Furthermore, the transaction counterparty information is preferentially extracted from the content data of the SMS data. If the transaction counterparty information does not exist in the content data, the SMS sender number or the name registered corresponding to the sender number can be used as the transaction counterparty information to ensure that the complete bill data can be extracted to the maximum extent.
在提取出账单数据后,按照账单模板预设的格式排布账单数据,来生成当前账单,然后执行后续步骤。After extracting the bill data, arrange the bill data according to the preset format of the bill template to generate the current bill, and then execute the subsequent steps.
在本申请实施例中,在生成当前账单后,还可以进行查重,即比对当前账单与已经存储的历史账单,确定所述当前账单与所述历史账单是否存在重复关系,以避免重复账单干扰用户查询,也不利于后续进行账单统计和分析。该查重步骤可以在步骤S102之后执行,也可以在步骤S103之后执行,在此不作限制。In the embodiment of the present application, after the current bill is generated, a duplicate check can also be performed, that is, the current bill is compared with the stored historical bills to determine whether there is a duplicate relationship between the current bill and the historical bill, so as to avoid duplicate bills interfering with user queries and not being conducive to subsequent bill statistics and analysis. The duplicate check step can be performed after step S102 or after step S103, and is not limited here.
具体的查重方法可以根据需要设置,下面列举两种为例:The specific duplicate checking method can be set as needed. The following two are listed as examples:
第一种,机器学习算法查重。The first one is to use machine learning algorithm to check for plagiarism.
即输入大量的账单来训练查重模型,使用训练好的查重模型来进行查重,比对当前账单与已经存储的历史账单,确定是否存在重复关系。That is, input a large number of bills to train the duplicate detection model, use the trained duplicate detection model to perform duplicate detection, compare the current bill with the stored historical bills, and determine whether there is a duplication relationship.
第二种,设置条件查重。The second method is to set conditions for duplicate checking.
即按照分析历史数据的经验设置出查重的条件来进行查重。可以设置为:That is, according to the experience of analyzing historical data, set the conditions for checking for duplicate content. It can be set as:
如果当前账单与历史账单的交易时间的差值在预设差值范围内,且当前账单的账单数据与历史账单的账单数据匹配,则确定当前账单与历史账单存在重复关系;If the difference between the transaction time of the current bill and the historical bill is within the preset difference range, and the billing data of the current bill matches the billing data of the historical bill, it is determined that there is a duplication relationship between the current bill and the historical bill;
如果当前账单与历史账单的交易时间的差值不在预设差值范围内,或者,当前账单的账单数据与历史账单的账单数据不匹配,则确定当前账单与历史账单不存在重复关系。If the difference in transaction time between the current bill and the historical bill is not within the preset difference range, or the billing data of the current bill does not match the billing data of the historical bill, it is determined that there is no duplication between the current bill and the historical bill.
其中,预设差值范围可以为24h或10h等,在此不作限制。其中,当前账单的账单数据与历史账单的账单数据匹配可以是交易对方信息、交易乙方账号、金额、交易场景或均相同。The preset difference range may be 24h or 10h, etc., and is not limited here. The billing data of the current bill and the billing data of the historical bill may match the transaction counterparty information, transaction party B account number, amount, transaction scenario, or all of them.
如果查重后,确认当前账单与历史账单存在重复关系,则合并存在重复关系的账单。具体合并方法可以是删除其中任一账单,或者合并两者的数据,形成更完整的账单。If after checking for duplicates, it is confirmed that the current bill has a duplicate relationship with the historical bill, the duplicate bills will be merged. The specific merging method can be to delete any of the bills, or merge the data of the two to form a more complete bill.
步骤S103,输出当前账单以提示用户,并在接收到用户的确认操作后,存储所述当前账单。Step S103, outputting the current bill to prompt the user, and storing the current bill after receiving the user's confirmation operation.
具体来讲,输出当前账单,可以是弹出账单卡片供用户观看,也可以是输出语音账单供用户收听等,在此不作限制。其中,输出当前账单的触发事件可以有多种设置,下面列举三种为例:Specifically, outputting the current bill can be a pop-up bill card for the user to view, or outputting a voice bill for the user to listen to, etc., without limitation. Among them, the triggering event for outputting the current bill can be set in a variety of ways, and the following three are listed as examples:
第一种,随短信输出。The first one is output along with the text message.
即监听短信接收事件,并在每次发生短信接收事件后,生成并输出当前账单以提示用户。以智能手机为例,当每次接收到短信后,就会触发提取短信中的账单数据来生成当前账单,并触发输出当前账单提示用户确认。即每次接收短信事件即为当前账单输出的触发事件。That is, it monitors the SMS reception event, and generates and outputs the current bill to prompt the user each time the SMS reception event occurs. Taking a smartphone as an example, each time a SMS is received, it will trigger the extraction of the bill data in the SMS to generate the current bill, and trigger the output of the current bill to prompt the user to confirm. That is, each SMS reception event is a trigger event for the current bill output.
第二种,设置预设时间来输出。The second method is to set a preset time for output.
即按预设时间,输出账单以提示用户。具体来讲,用户可以预先在账单应用中设置预设时间,该预设时间可以是具体的时间点,也可以是时长。如果为具体的时间点,则在到达预设时间时,批量输出预设时间之前没有输出过的所有账单,以提示用户批量确认;如果为时长,则按该时长周期性的输出该周期内的所有账单,以提示用户批量确认。That is, the bill is output at the preset time to prompt the user. Specifically, the user can set the preset time in the bill application in advance, and the preset time can be a specific time point or a duration. If it is a specific time point, when the preset time is reached, all bills that have not been output before the preset time are batch-output to prompt the user to confirm the batch; if it is a duration, all bills within the period are periodically output according to the duration to prompt the user to confirm the batch.
通过设置预设时间能避免每次接收到短信时均进行账单提示,干扰用户。By setting a preset time, you can avoid bill reminders every time you receive a text message, which would disturb the user.
第三种,开启应用APP来输出。The third method is to open the application APP to output.
即在开启账单应用的预设页面后,输出账单以提示用户。具体来讲,用户每次开启账单应用时,会将该次开启和上一次开启之间所有账单输出进行批量提示。That is, after opening the preset page of the bill application, the bill is output to prompt the user. Specifically, each time the user opens the bill application, all bill outputs between the current opening and the last opening will be batch prompted.
进一步,还可以精确设置在开启账单应用并弹出应用首页的时候,输出账单以提示用户,或者用户可以开启账单应用后,点击页面上的未确认账单标识,来触发输出所有到当前为止未确认的账单。Furthermore, it can be precisely set to output the bill to prompt the user when the bill application is opened and the application homepage pops up, or the user can open the bill application and click the unconfirmed bill icon on the page to trigger the output of all bills that have not been confirmed so far.
当然,在具体实施过程中,输出账单的触发事件不限于上述三种,为了更贴合用户需求,进一步,还可以将上述多种触发方式均提供给用户选择,由用户设置选择需要的触发输出账单的方式。Of course, in the specific implementation process, the triggering events for outputting bills are not limited to the above three. In order to better meet user needs, the above multiple triggering methods can be further provided to users for selection, and users can set and select the required triggering method for outputting bills.
在本申请实施例中,还可以设置输出给用户确认的当前账单为可编辑状态,用户可以编辑需要的信息至该账单。用户在确认了账单后,可以执行确认操作来触发存储该当前账单。In the embodiment of the present application, the current bill output to the user for confirmation can also be set to an editable state, and the user can edit the required information to the bill. After the user confirms the bill, the confirmation operation can be performed to trigger the storage of the current bill.
在具体实施过程中,可以根据账单数据,确定当前账单的类型,并分类存储当前账单。以便于后续查找账单,和分析账单数据。具体的分类纬度可以有多种,例如,可以按资金走向分为“收入”和“支出”,还可以按消费类型分为“餐饮”、“交通”、“娱乐”、“理财”等,还可以按消费渠道分为“某宝消费”、“某信消费”、“信用卡还款”、“银行取款”等。当然,不同的分类纬度还可以套叠,例如,先按资金走向分大类,再按“消费类型”分小类。In the specific implementation process, the type of the current bill can be determined based on the bill data, and the current bill can be stored in categories. This facilitates subsequent search for bills and analysis of bill data. There can be many specific classification dimensions. For example, it can be divided into "income" and "expenditure" according to the direction of funds, and can also be divided into "catering", "transportation", "entertainment", "financial management", etc. according to consumption types. It can also be divided into "Taobao consumption", "Xinxin consumption", "credit card repayment", "bank withdrawal", etc. according to consumption channels. Of course, different classification dimensions can also be overlapped. For example, first divide into major categories according to the direction of funds, and then divide into minor categories according to "consumption type".
假设本实施例的方法应用于客户端,在客户端上存储当前账单后,可以发送当前账单至服务端进行数据同步,以保证服务端和客户端的数据一致。进一步,如果需要对当前账单进行修改,以客户端和服务端中最后一个操作该当前账单的那端的操作结果为准,同步所述客户端和所述服务端的当前账单中的数据,以避免两端不一致。Assuming that the method of this 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 to ensure that the data on the server and 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 is synchronized based on the operation result of the last operation on the current bill, so as to avoid inconsistency between the two ends.
基于同一发明构思,本发明实施例还提供了实施例一中方法对应的装置,见实施例二。Based on the same inventive concept, the embodiment of the present invention further provides a device corresponding to the method in embodiment one, see embodiment two.
实施例二Embodiment 2
如图2所示,提供一种账单生成装置,包括:As shown in FIG2 , a bill generating device is provided, including:
获取模块201,用于在接收到短信后,获取所述短信的短信数据;The acquisition module 201 is used to acquire the SMS data of the SMS after receiving the SMS;
提取模块202,用于按照预设的账单模板,提取所述短信数据中的账单数据,并根据所述账单数据,生成当前账单;Extraction module 202, used to extract billing data in the SMS data according to a preset billing template, and generate a current bill based on the billing data;
输出模块203,用于输出所述当前账单以提示用户,并在接收到用户的确认操作后,存储所述当前账单。The output module 203 is used to output the current bill to prompt the user, and store the current bill after receiving the user's confirmation operation.
进一步,所述短信数据包括以下任一种或多种的组合:短信的接收时间、短信的发送方和短信的内容数据。Furthermore, the SMS data includes any one or more combinations of the following: the receiving time of the SMS, the sender of the SMS and the content data of the SMS.
进一步,所述提取模块202还用于:Furthermore, the extraction module 202 is also used for:
按照预设的账单模板中的关键字,提取所述短信数据中的账单数据;或者,Extracting billing data from the SMS data according to keywords in a preset billing template; or,
按照预设的账单模板中的提取算法,提取所述短信数据中的账单数据。The billing data in the SMS data is extracted according to the extraction algorithm in the preset billing template.
进一步,所述账单数据包括以下任一种或多种的组合:Furthermore, the billing data includes any one or more combinations of the following:
金额、交易类别、交易己方账户、交易时间、交易对方信息和交易情景。Amount, transaction type, transaction account, transaction time, transaction counterparty information and transaction scenario.
进一步,所述提取模块202还用于:Furthermore, the extraction module 202 is also used for:
提取所述短信数据的内容数据中的交易时间信息;Extracting transaction time information from content data of the SMS data;
如果所述内容数据中不存在所述交易时间信息,则以所述短信的接收时间作为所述交易时间信息。If the transaction time information does not exist in the content data, the receiving time of the short message is used as the transaction time information.
进一步,所述的装置还包括:Furthermore, the device also includes:
查重模块,用于比对所述当前账单与已经存储的历史账单,确定所述当前账单与所述历史账单是否存在重复关系;如果存在重复关系,则合并存在重复关系的账单。The duplicate checking module is used to compare the current bill with the stored historical bills to determine whether there is a duplicate relationship between the current bill and the historical bills; if there is a duplicate relationship, the bills with the duplicate relationship are merged.
进一步,所述查重模块还用于:Furthermore, the duplicate checking module is also used for:
如果所述当前账单与所述历史账单的交易时间的差值在预设差值范围内,且所述当前账单的账单数据与所述历史账单的账单数据匹配,则确定所述当前账单与所述历史账单存在重复关系;If the difference between the transaction time of the current bill and the historical bill is within a preset difference range, and the billing data of the current bill matches the billing data of the historical bill, it is determined that there is a duplication relationship between the current bill and the historical bill;
如果所述当前账单与所述历史账单的交易时间的差值不在所述预设差值范围内,或者,所述当前账单的账单数据与所述历史账单的账单数据不匹配,则确定所述当前账单与所述历史账单不存在重复关系。If the difference in transaction time between the current bill and the historical bill is not within the preset difference range, or the billing data of the current bill does not match the billing data of the historical bill, it is determined that there is no duplication between the current bill and the historical bill.
进一步,所述输出模块203还用于:Furthermore, the output module 203 is also used for:
监听短信接收事件,并在每次发生短信接收事件后,生成并输出所述账单以提示用户;或者,Monitor SMS reception events, and after each SMS reception event occurs, generate and output the bill to prompt the user; or,
按预设时间,输出所述账单以提示用户;或者,Output the bill at a preset time to remind the user; or,
在开启账单应用的预设页面后,输出所述账单以提示用户。After opening the preset page of the bill application, the bill is output to prompt the user.
进一步,所述输出模块203还用于:Furthermore, the output module 203 is also used for:
根据所述账单数据,确定所述当前账单的类型,并分类存储所述当前账单。The type of the current bill is determined according to the bill data, and the current bill is stored in a classified manner.
进一步,所述装置为客户端,还包括:Furthermore, the device is a client, and further comprises:
发送模块,用于发送所述当前账单至服务端进行数据同步,其中,以所述客户端和所述服务端中最后一个操作所述当前账单的那端的操作结果为准,同步所述客户端和所述服务端的所述当前账单中的数据。The sending module is used to send the current bill to the 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 that operates the current bill.
由于本发明实施例二所介绍的装置,为实施本发明实施例一的方法所采用的装置,故而基于本发明实施例一所介绍的方法,本领域所属人员能够了解该装置的具体结构及变形,故而在此不再赘述。凡是本发明实施例一的方法所采用的装置都属于本发明所欲保护的范围。Since the device introduced in the second embodiment of the present invention is a device used to implement the method of the first embodiment of the present invention, those skilled in the art can understand the specific structure and deformation of the device based on the method introduced in the first embodiment of the present invention, so it is not described in detail here. All devices used in the method of the first embodiment of the present invention belong to the scope of protection of the present invention.
基于同一发明构思,本发明实施例还提供了实施例一中方法对应的设备,见实施例三。Based on the same inventive concept, the embodiment of the present invention also provides a device corresponding to the method in embodiment one, see embodiment three.
实施例三Embodiment 3
如图3所示,本实施例提供一种电子设备,包括存储器310、处理器320及存储在存储器310上并可在处理器320上运行的计算机程序311,所述处理器320执行所述计算机程序311时实现以下步骤:As shown in FIG3 , this 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. When the processor 320 executes the computer program 311, the following steps are implemented:
在接收到短信后,获取所述短信的短信数据;After receiving the text message, obtaining text message data of the text message;
按照预设的账单模板,提取所述短信数据中的账单数据,并根据所述账单数据,生成当前账单;Extracting bill data from the SMS data according to a preset bill template, and generating a current bill based on the bill data;
输出所述当前账单以提示用户,并在接收到用户的确认操作后,存储所述当前账单。The current bill is output to prompt the user, and after receiving the user's confirmation operation, the current bill is stored.
在本申请实施例中,所述处理器320执行所述计算机程序311时可以实现本申请实施例一中任一实施方式。In the embodiment of the present application, when the processor 320 executes the computer program 311, any implementation method in the first embodiment of the present application can be implemented.
由于本发明实施例三所介绍的设备,为实施本发明实施例一的方法所采用的设备,故而基于本发明实施例一所介绍的方法,本领域所属人员能够了解该设备的具体结构及变形,故而在此不再赘述。凡是本发明实施例一的方法所采用的设备都属于本发明所欲保护的范围。Since the device introduced in the third embodiment of the present invention is the device used to implement the method of the first embodiment of the present invention, based on the method introduced in the first embodiment of the present invention, the person skilled in the art can understand the specific structure and deformation of the device, so it is not described here. All devices used in the method of the first embodiment of the present invention belong to the scope of protection of the present invention.
基于同一发明构思,本发明实施例还提供了实施例一中方法对应的存储介质,见实施例四。Based on the same inventive concept, the embodiment of the present invention further provides a storage medium corresponding to the method in embodiment one, see embodiment four.
实施例四Embodiment 4
本实施例提供一种计算机可读存储介质400,如图4所示,其上存储有计算机程序411,其特征在于,该计算机程序411被处理器执行时实现以下步骤:This embodiment provides a computer-readable storage medium 400, as shown in FIG4 , on which a computer program 411 is stored, wherein the computer program 411 implements the following steps when executed by a processor:
在接收到短信后,获取所述短信的短信数据;After receiving the text message, obtaining text message data of the text message;
按照预设的账单模板,提取所述短信数据中的账单数据,并根据所述账单数据,生成当前账单;Extracting bill data from the SMS data according to a preset bill template, and generating a current bill based on the bill data;
输出所述当前账单以提示用户,并在接收到用户的确认操作后,存储所述当前账单。The current bill is output to prompt the user, and after receiving the user's confirmation operation, the current bill is stored.
在具体实施过程中,该计算机程序411被处理器执行时,可以实现本申请实施例一中任一实施方式。During the specific implementation process, when the computer program 411 is executed by the processor, any implementation method in Example 1 of the present application can be implemented.
本申请实施例中提供的技术方案,至少具有如下技术效果或优点:The technical solution provided in the embodiments of the present application has at least the following technical effects or advantages:
本申请实施例提供的账单生成方法、装置、电子设备及介质,在接收到短信后,自动按照预设的账单模板,提取短信数据中的账单数据,来生成当前账单。即自动的从短信中提取出关键的账单数据来生成账单进行存储,以便于后续用户查询资金变动记录和根据账单来获得集中的消费数据。进一步输出当前账单对用户进行提示,在用户确认后再存储当前账单,通过用户的确认提高账单的准确度。The bill generation method, device, electronic device and medium provided in the embodiment of the present application automatically extract the bill data in the SMS data according to the preset bill template after receiving the SMS to generate the current bill. That is, the key bill data is automatically extracted from the SMS to generate the bill for storage, so that the subsequent user can query the fund change record and obtain the centralized consumption data according to the bill. The current bill is further output to prompt the user, and the current bill is stored after the user confirms, so as to improve the accuracy of the bill through the user's confirmation.
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithm and display provided herein are not inherently related to any particular computer, virtual system or other device. Various general purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious that the structure required for constructing such systems. In addition, the present invention is not directed to any specific programming language either. It should be understood that various programming languages can be utilized to realize the content of the present invention described herein, and the description of the above specific languages is for disclosing the best mode of the present invention.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be understood that in order to streamline the present disclosure and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, the various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the intention that the claimed invention requires more features than those explicitly recited in each claim. More specifically, as reflected in the claims below, inventive aspects lie in less than all the features of the individual embodiments disclosed above. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, with each claim itself serving as a separate embodiment of the present invention.
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and/or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
此外,本领域的技术人员能够理解,尽管在此的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。In addition, those skilled in the art will appreciate that, although some embodiments herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the following claims, any one of the claimed embodiments may be used in any combination.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的网关、代理服务器、系统中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) can be used in practice to implement some or all functions of some or all components in a gateway, proxy server, or system according to an embodiment of the present invention. The present invention can also be implemented as a device or apparatus program (e.g., a computer program and a computer program product) for executing part or all of the methods described herein. Such a program implementing the present invention can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的部件或步骤。位于部件之前的单词“一”或“一个”不排除存在多个这样的部件。本发明可以借助于包括有若干不同部件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets should not be constructed as a limitation to the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claims. The word "one" or "an" preceding a component does not exclude the presence of multiple such components. The present invention may be implemented by means of hardware comprising several different components and by means of appropriately programmed computers. In a unit claim that lists several devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names.
本发明公开了,A1、一种账单生成方法,包括:The present invention discloses, A1, a bill generation method, comprising:
在接收到短信后,获取所述短信的短信数据;After receiving the text message, obtaining text message data of the text message;
按照预设的账单模板,提取所述短信数据中的账单数据,并根据所述账单数据,生成当前账单;Extracting bill data from the SMS data according to a preset bill template, and generating a current bill based on the bill data;
输出所述当前账单以提示用户,并在接收到用户的确认操作后,存储所述当前账单。The current bill is output to prompt the user, and after receiving the user's confirmation operation, the current bill is stored.
A2、根据A1所述的方法,其特征在于,所述短信数据包括以下任一种或多种的组合:A2. The method according to A1, characterized in that the SMS data includes any one or more combinations of the following:
短信的接收时间、短信的发送方和短信的内容数据。The time the SMS was received, the sender of the SMS and the content data of the SMS.
A3、根据A1所述的方法,其特征在于,按照预设的账单模板,提取所述短信数据中的账单数据,包括:A3. The method according to A1, characterized in that the billing data in the SMS data is extracted according to a preset billing template, comprising:
按照预设的账单模板中的关键字,提取所述短信数据中的账单数据;或者,Extracting billing data from the SMS data according to keywords in a preset billing template; or,
按照预设的账单模板中的提取算法,提取所述短信数据中的账单数据。The billing data in the SMS data is extracted according to the extraction algorithm in the preset billing template.
A4、根据A1所述的方法,其特征在于,所述账单数据包括以下任一种或多种的组合:A4. The method according to A1, characterized in that the billing data includes any one or more combinations of the following:
金额、交易类别、交易己方账户、交易时间、交易对方信息和交易情景。Amount, transaction type, transaction account, transaction time, transaction counterparty information and transaction scenario.
A5、根据A4所述的方法,其特征在于,所述提取所述短信数据中的账单数据,包括:A5. The method according to A4, characterized in that extracting the billing data from the SMS data comprises:
提取所述短信数据的内容数据中的交易时间信息;Extracting transaction time information from the content data of the SMS data;
如果所述内容数据中不存在所述交易时间信息,则以所述短信的接收时间作为所述交易时间信息。If the transaction time information does not exist in the content data, the receiving time of the short message is used as the transaction time information.
A6、根据A1所述的方法,其特征在于,在所述生成当前账单之后还包括:A6. The method according to A1, characterized in that after generating the current bill, the method further comprises:
比对所述当前账单与已经存储的历史账单,确定所述当前账单与所述历史账单是否存在重复关系;Compare the current bill with the stored historical bills to determine whether there is a duplication between the current bill and the historical bill;
如果存在重复关系,则合并存在重复关系的账单。If there are duplicate invoices, the duplicate invoices are merged.
A7、根据A6所述的方法,其特征在于,所述确定所述当前账单与所述历史账单是否存在重复关系,包括:A7. The method according to A6, characterized in that the determining whether the current bill has a duplicate relationship with the historical bill comprises:
如果所述当前账单与所述历史账单的交易时间的差值在预设差值范围内,且所述当前账单的账单数据与所述历史账单的账单数据匹配,则确定所述当前账单与所述历史账单存在重复关系;If the difference between the transaction time of the current bill and the historical bill is within a preset difference range, and the billing data of the current bill matches the billing data of the historical bill, it is determined that there is a duplication relationship between the current bill and the historical bill;
如果所述当前账单与所述历史账单的交易时间的差值不在所述预设差值范围内,或者,所述当前账单的账单数据与所述历史账单的账单数据不匹配,则确定所述当前账单与所述历史账单不存在重复关系。If the difference in transaction time between the current bill and the historical bill is not within the preset difference range, or the billing data of the current bill does not match the billing data of the historical bill, it is determined that there is no duplication between the current bill and the historical bill.
A8、根据A1所述的方法,其特征在于,输出所述账单以提示用户,包括:A8. The method according to A1, characterized in that outputting the bill to prompt the user comprises:
监听短信接收事件,并在每次发生短信接收事件后,生成并输出所述账单以提示用户;或者,Monitor SMS reception events, and after each SMS reception event occurs, generate and output the bill to prompt the user; or,
按预设时间,输出所述账单以提示用户;或者,Output the bill to remind the user at a preset time; or,
在开启账单应用的预设页面后,输出所述账单以提示用户。After opening the preset page of the bill application, the bill is output to prompt the user.
A9、根据A1所述的方法,其特征在于,所述存储所述当前账单,包括:A9. The method according to A1, characterized in that storing the current bill comprises:
根据所述账单数据,确定所述当前账单的类型,并分类存储所述当前账单。The type of the current bill is determined according to the bill data, and the current bill is stored in a classified manner.
A10、根据A1所述的方法,其特征在于,所述方法应用于客户端,在所述存储所述当前账单之后,还包括:A10. The method according to A1, characterized in that the method is applied to a client, and after storing the current bill, further comprises:
发送所述当前账单至服务端进行数据同步,其中,以所述客户端和所述服务端中最后一个操作所述当前账单的那端的操作结果为准,同步所述客户端和所述服务端的所述当前账单中的数据。The current bill is sent to the 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 that operates the current bill.
B11、一种账单生成装置,包括:B11. A bill generating device, comprising:
获取模块,用于在接收到短信后,获取所述短信的短信数据;An acquisition module, used for acquiring the SMS data of the SMS after receiving the SMS;
提取模块,用于按照预设的账单模板,提取所述短信数据中的账单数据,并根据所述账单数据,生成当前账单;An extraction module, used to extract bill data from the SMS data according to a preset bill template, and generate a current bill based on the bill data;
输出模块,用于输出所述当前账单以提示用户,并在接收到用户的确认操作后,存储所述当前账单。The output module is used to output the current bill to prompt the user, and store the current bill after receiving the user's confirmation operation.
B12、根据B11所述的装置,其特征在于,所述短信数据包括以下任一种或多种的组合:B12. The device according to B11, wherein the SMS data includes any one or more combinations of the following:
短信的接收时间、短信的发送方和短信的内容数据。The time the SMS was received, the sender of the SMS and the content data of the SMS.
B13、根据B11所述的装置,其特征在于,所述提取模块还用于:B13. The device according to B11, characterized in that the extraction module is further used for:
按照预设的账单模板中的关键字,提取所述短信数据中的账单数据;或者,Extracting billing data from the SMS data according to keywords in a preset billing template; or,
按照预设的账单模板中的提取算法,提取所述短信数据中的账单数据。The billing data in the SMS data is extracted according to the extraction algorithm in the preset billing template.
B14、根据B11所述的装置,其特征在于,所述账单数据包括以下任一种或多种的组合:B14. The device according to B11, characterized in that the billing data includes any one or more combinations of the following:
金额、交易类别、交易己方账户、交易时间、交易对方信息和交易情景。Amount, transaction type, transaction account, transaction time, transaction counterparty information and transaction scenario.
B15、根据B14所述的装置,其特征在于,所述提取模块还用于:B15. The device according to B14, characterized in that the extraction module is also used for:
提取所述短信数据的内容数据中的交易时间信息;Extracting transaction time information from the content data of the SMS data;
如果所述内容数据中不存在所述交易时间信息,则以所述短信的接收时间作为所述交易时间信息。If the transaction time information does not exist in the content data, the receiving time of the short message is used as the transaction time information.
B16、根据B11所述的装置,其特征在于,还包括:B16. The device according to B11, further comprising:
查重模块,用于比对所述当前账单与已经存储的历史账单,确定所述当前账单与所述历史账单是否存在重复关系;如果存在重复关系,则合并存在重复关系的账单。The duplicate checking module is used to compare the current bill with the stored historical bills to determine whether there is a duplicate relationship between the current bill and the historical bills; if there is a duplicate relationship, the bills with the duplicate relationship are merged.
B17、根据B16所述的装置,其特征在于,所述查重模块还用于:B17. The device according to B16, characterized in that the duplicate checking module is further used for:
如果所述当前账单与所述历史账单的交易时间的差值在预设差值范围内,且所述当前账单的账单数据与所述历史账单的账单数据匹配,则确定所述当前账单与所述历史账单存在重复关系;If the difference between the transaction time of the current bill and the historical bill is within a preset difference range, and the billing data of the current bill matches the billing data of the historical bill, it is determined that there is a duplication relationship between the current bill and the historical bill;
如果所述当前账单与所述历史账单的交易时间的差值不在所述预设差值范围内,或者,所述当前账单的账单数据与所述历史账单的账单数据不匹配,则确定所述当前账单与所述历史账单不存在重复关系。If the difference in transaction time between the current bill and the historical bill is not within the preset difference range, or the billing data of the current bill does not match the billing data of the historical bill, it is determined that there is no duplication between the current bill and the historical bill.
B18、根据B11所述的装置,其特征在于,所述输出模块还用于:B18. The device according to B11, characterized in that the output module is also used for:
监听短信接收事件,并在每次发生短信接收事件后,生成并输出所述账单以提示用户;或者,Monitor SMS reception events, and after each SMS reception event occurs, generate and output the bill to prompt the user; or,
按预设时间,输出所述账单以提示用户;或者,Output the bill to remind the user at a preset time; or,
在开启账单应用的预设页面后,输出所述账单以提示用户。After opening the preset page of the bill application, the bill is output to prompt the user.
B19、根据B11所述的装置,其特征在于,所述输出模块还用于:B19. The device according to B11, characterized in that the output module is also used for:
根据所述账单数据,确定所述当前账单的类型,并分类存储所述当前账单。The type of the current bill is determined according to the bill data, and the current bill is stored in a classified manner.
B20、根据B11所述的装置,其特征在于,所述装置为客户端,还包括:B20. The device according to B11, wherein the device is a client and further comprises:
发送模块,用于发送所述当前账单至服务端进行数据同步,其中,以所述客户端和所述服务端中最后一个操作所述当前账单的那端的操作结果为准,同步所述客户端和所述服务端的所述当前账单中的数据。The sending module is used to send the current bill to the 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 that operates the current bill.
C21、一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现A1-A10任一所述的方法。C21. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any one of the methods described in A1-A10 is implemented.
D22、一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现A1-A10任一所述的方法。D22. A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the methods described in A1-A10.
Claims (20)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811253391.2A CN109598575B (en) | 2018-10-25 | 2018-10-25 | A bill generation method, device, electronic device and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811253391.2A CN109598575B (en) | 2018-10-25 | 2018-10-25 | A bill generation method, device, electronic device 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 | A bill generation method, device, electronic device and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109598575B (en) |
Families Citing this family (4)
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 |
CN118569804A (en) * | 2024-06-03 | 2024-08-30 | 诚泰信息科技(天津)有限公司 | Short message text processing method and short message text receiving method |
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 |
---|---|---|
CA2980881C (en) | Devices, systems and methods for determining suggested action initiation times for interactions | |
CN109598575B (en) | A bill generation method, device, electronic device and medium | |
CN107408247B (en) | System and method for sending and receiving payments using message and payment queues | |
KR101805383B1 (en) | Launching a client application based on a message | |
US20240428238A1 (en) | Performing entity actions using email interfaces | |
US20180181928A1 (en) | Physical sensor data enablement of application functionality using real-world device contexts | |
JP7086137B2 (en) | How and equipment to display information | |
CN103578030B (en) | A kind of web business data processing methods and web service data processing apparatus | |
WO2019144004A2 (en) | Fund flow report generation method and apparatus, and electronic device | |
US20190087786A1 (en) | System and method for automated lead retrieval and attendance tracking | |
CN114971572A (en) | Data processing method, device, equipment and system | |
CN116802668A (en) | Method and apparatus for automated inter-account interactions | |
WO2019223381A1 (en) | Transaction dispute handling method and apparatus, and electronic device | |
CN109598479B (en) | Bill extraction method and device, electronic equipment and medium | |
CN109583855B (en) | Funds payment method, device, computer equipment and storage medium | |
CN110807636A (en) | Data processing method and device, electronic equipment and readable storage medium | |
TW202027000A (en) | Instant messenger-based account transaction history providing method, system and computer readable recording medium | |
CN109583448B (en) | Accounting method, device, electronic equipment and medium | |
US11488164B2 (en) | Computerized methods and computer systems for verification of transactions | |
US10652356B1 (en) | System and method to deliver an electronic document over a data network | |
KR20170103907A (en) | Associated personal identification and account collection | |
US20250053939A1 (en) | Transacting systems and methods for nil collectives | |
CN103530771A (en) | Method and device for prompting financial card information | |
TWM661389U (en) | Inward remittance processing system | |
CN114116873A (en) | Cross-bank account data processing method and device |
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 | ||
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 |
|
GR01 | Patent grant | ||
GR01 | Patent grant |