Meal fee supervision method, system and device, storage medium and program product
Through the freezing and recharge mechanism, the meal fee balance is frozen to the personal bank account, a virtual balance is generated and asynchronously deducted, which solves the problem of low fund security caused by judicial freezing of third-party accounts and improves the fund security and system stability of meal fee supervision.
Patent Information
- Application Number
- CN202510745853.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-05
- Publication Date
- 2025-09-05
AI Technical Summary
The existing method of meal expense supervision manages funds through third-party accounts, which carries the risk of judicial freezing, resulting in low fund security and difficulty in recovering recharged funds.
Through the freezing and recharging mechanism, the meal balance is frozen to the target meal card account based on the personal bank account, a virtual balance is generated, and the consumption amount is deducted from the meal balance to generate a record to be deducted. The funds are deducted asynchronously to avoid operations through third-party accounts.
It improves the financial security of meal expense supervision, prevents the unrecoverable funds due to judicial freezing of third-party accounts, simplifies financial management, and improves the stability and supervision efficiency of the system.
Smart Images

Figure CN120598549A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a meal fee supervision method, system, device, storage medium and program product. Background Art
[0002] In recent years, with the continuous advancement of campus canteen supervision policies, management and supervision of information flows such as open kitchens, food testing, and real-life photos of dishes have emerged one after another, but there are fewer management methods for parents' meal expenses.
[0003] The current method for monitoring meal expenses involves depositing funds into a third-party escrow account. However, due to the potential for judicial freezing of third-party accounts, it is difficult to recover the funds deposited by parents into third-party accounts, resulting in low financial security using this method. Summary of the Invention
[0004] The main purpose of this application is to provide a meal expense supervision method, system, device, storage medium and program product, aiming to solve the technical problem of low fund security in the current method of meal expense supervision.
[0005] To achieve the above objectives, the present application proposes a meal fee supervision method, which is applied to the supervision cloud module in the meal fee supervision system. The meal fee supervision system also includes an account supervision module. The account supervision module and the local share the same database. The method includes:
[0006] In response to a consumption request initiated by a user through a target meal card, obtaining a target meal card account corresponding to the target meal card;
[0007] Determining whether the consumption amount of the consumption request is not higher than the meal balance of the target meal card account and is not higher than the preset consumption limit of the target meal card account, wherein the meal balance is obtained by freezing and recharging the target meal card account based on the personal bank account corresponding to the target meal card account, wherein the freezing and recharging freezes an amount of a preset recharge amount in the personal bank account to obtain a frozen amount, and increases the meal balance of the preset recharge amount in the target meal card account;
[0008] If neither is higher than the above, the consumption amount will be deducted from the meal balance and a corresponding record to be deducted will be generated;
[0009] The records to be deducted are uploaded to the database so that the account supervision module can obtain the records to be deducted within the preset time period in the database every preset time period, set the deduction time for each record to be deducted respectively, summarize the consumption amount based on the deduction time and each record to be deducted, and deduct the frozen amount based on the summarized consumption amount.
[0010] In one embodiment, the step of uploading the record to be deducted to the database includes:
[0011] Determine whether the current network is connected;
[0012] If the connection is not in progress, the record to be deducted is saved locally;
[0013] When the network is reconnected, determine whether there are any unuploaded deduction records in the local area;
[0014] If so, the unuploaded record to be deducted will be uploaded to the database.
[0015] In one embodiment, the consumption limit includes a single consumption limit and a total consumption limit within a preset time period. The step of determining whether the consumption amount of the consumption request is not higher than the meal balance of the target meal card account and is not higher than the preset consumption limit of the target meal card account includes:
[0016] If the consumption amount is not higher than the meal balance, then determining whether the consumption amount is not higher than the single consumption limit;
[0017] If not, then calculate the amount consumed by the target meal card account within the preset time period;
[0018] Determine whether the sum of the consumed amount and the consumed amount is not higher than the total consumption limit.
[0019] To achieve the above objectives, the present application also proposes a meal fee supervision method, which is applied to the account supervision module in the meal fee supervision system. The meal fee supervision system also includes a supervision cloud module. The supervision cloud module and the local share the same database. The method includes:
[0020] At every preset time period, each record to be deducted within the preset time period is obtained from the database, wherein the record to be deducted is the target meal card account corresponding to the target meal card obtained by the supervision cloud module in response to the consumption request initiated by the user through the target meal card, and it is judged whether the consumption amount of the consumption request is not higher than the meal fee balance of the target meal card account and is not higher than the preset consumption limit of the target meal card account. If both are not higher, the consumption amount is deducted from the meal fee balance, and a corresponding record to be deducted is generated, and the record to be deducted is uploaded to the database. The meal fee balance is obtained by freezing and recharging the target meal card account based on the personal bank account corresponding to the target meal card account. The frozen recharge freezes the amount of the preset recharge amount in the personal bank account to obtain a frozen amount, and increases the meal fee balance of the preset recharge amount in the target meal card account;
[0021] The deduction time of each of the to-be-deducted records is set respectively, the consumption amount is summarized based on the deduction time and each of the to-be-deducted records, and the frozen amount is deducted based on the summarized consumption amount.
[0022] In one embodiment, the to-be-deducted record includes a consumption store, and the steps of setting a deduction time for each of the to-be-deducted record, aggregating the consumption amount based on the deduction time and each of the to-be-deducted record, and deducting the frozen amount based on the aggregated consumption amount include:
[0023] Based on each of the to-be-deducted records, a corresponding consumption record list is generated, wherein the consumption record list includes the consumption time, the consumption amount, and the consumption store;
[0024] Based on a preset parallel processing threshold, setting the deduction time for each consumption record in the consumption record list;
[0025] Based on the deduction time, the consumption amount and the consumption store, the consumption records are summarized to obtain the total consumption amount of each consumption store, and the total consumption amount is visually displayed;
[0026] The frozen amount is deducted based on the total consumption amount of each consumption store.
[0027] In one embodiment, before the step of obtaining each to-be-deducted record within the preset time period from the database at every preset time period, the step further includes:
[0028] In response to a request to recharge a meal fee balance of a target meal card account, obtaining a target bank account corresponding to the target meal card account;
[0029] Based on the recharge amount in the recharge request, freezing the amount of the recharge amount in the target bank account to obtain a frozen amount, and increasing the meal fee balance of the target meal card account by the amount of the recharge amount;
[0030] In response to the user's consumption limit setting operation, the consumption limit of the target meal card account is set, wherein the consumption limit includes a single consumption limit and a total consumption limit within a preset time.
[0031] In addition, to achieve the above objectives, the present application also proposes a meal fee supervision system, which includes a supervision cloud module and an account supervision module. The account supervision module and the supervision cloud module share the same database:
[0032] The supervision cloud module is used to respond to a consumption request initiated by a user through a target meal card, obtain a target meal card account corresponding to the target meal card, and determine whether the consumption amount of the consumption request is not higher than the meal balance of the target meal card account and is not higher than the consumption limit preset for the target meal card account, wherein the meal balance is obtained by freezing and recharging the target meal card account based on the personal bank account corresponding to the target meal card account, and the freezing and recharging freezes an amount of a preset recharge amount in the personal bank account to obtain a frozen amount, and increases the meal balance of the preset recharge amount in the target meal card account; if both are not higher than, deduct the consumption amount from the meal balance, generate a corresponding record to be deducted, and upload the record to be deducted to the database;
[0033] The account supervision module is used to obtain each record to be deducted within the preset time period from the database every preset time period, set the deduction time for each record to be deducted, summarize the consumption amount based on the deduction time and each record to be deducted, and deduct the frozen amount based on the summarized consumption amount.
[0034] In addition, to achieve the above-mentioned purpose, the present application also proposes a meal fee supervision device, which includes: a memory, a processor, and a computer program stored on the memory and runnable on the processor, and the computer program is configured to implement the steps of the meal fee supervision method as described above.
[0035] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium. A computer program is stored on the storage medium, and when the computer program is executed by the processor, the steps of the meal fee supervision method described above are implemented.
[0036] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the steps of the meal fee supervision method as described above.
[0037] One or more technical solutions proposed in this application have at least the following technical effects:
[0038] This application responds to a consumption request initiated by a user through a target meal card, obtains a target meal card account corresponding to the target meal card, and determines whether the consumption amount of the consumption request is not higher than the meal balance of the target meal card account and is not higher than the preset consumption limit of the target meal card account. If both are not higher, the consumption amount is deducted from the meal balance, and a corresponding record to be deducted is generated. The record to be deducted is uploaded to the database so that the account supervision module can obtain each record to be deducted within the preset time period in the database every preset time period, set the deduction time for each record to be deducted, summarize the consumption amount based on the deduction time and each record to be deducted, and deduct the frozen amount based on the summarized consumption amount.
[0039] Since the meal fee balance is based on the personal bank account corresponding to the target meal card account, the target meal card account is frozen and recharged, and the frozen recharge is to freeze the amount of the preset recharge amount in the personal bank account to obtain the frozen amount, and the meal fee balance of the preset recharge amount is added to the target meal card account, when recharging the meal fee, only the funds in the personal account need to be frozen, and when deducting the fee, only the frozen funds in the personal account need to be deducted. The recharge and deduction of meal fees do not need to be done through a third-party account. Therefore, this application does not need to go through a third-party account, and can complete the meal fee supervision only through a personal account, preventing the problem of funds being unable to be recovered due to judicial freezing of a third-party account, thereby improving the financial security of meal fee supervision. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0041] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0042] Figure 1 A flowchart of the first embodiment of the method for applying for meal fee supervision is provided;
[0043] Figure 2 A schematic diagram of a scenario provided for the first embodiment of the method for applying for meal fee supervision;
[0044] Figure 3 A flowchart of the second embodiment of the meal fee supervision method is provided;
[0045] Figure 4 A schematic diagram of the first scenario provided in Example 2 of the method for applying for meal fee supervision;
[0046] Figure 5 A schematic diagram of the second scenario provided for the second embodiment of the method for applying for meal fee supervision;
[0047] Figure 6 A schematic diagram of the third scenario provided in Example 2 of the method for applying for meal fee supervision;
[0048] Figure 7 This is a schematic diagram of the device structure of the hardware operating environment involved in the meal fee supervision method in the embodiment of this application.
[0049] The purpose, features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0050] It should be understood that the specific embodiments described herein are merely used to explain the technical solutions of the present application and are not intended to limit the present application.
[0051] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0052] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, mobile phone, etc., or an electronic device capable of implementing the above functions, a meal fee monitoring device, etc. The following uses the meal fee monitoring system as an example to illustrate this embodiment and the following embodiments.
[0053] In recent years, with the continuous advancement of campus canteen supervision policies, management and supervision of information flows such as open kitchens, food testing, and real-life photos of dishes have emerged one after another, but there are fewer management methods for parents' meal expenses.
[0054] The current method for monitoring meal expenses involves depositing funds into a third-party escrow account. However, due to the potential for judicial freezing of third-party accounts, it is difficult to recover the funds deposited by parents into third-party accounts, resulting in low financial security using this method.
[0055] Based on this, the embodiment of the present application provides a method for monitoring meal expenses, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the method for applying for meal fee supervision.
[0056] In this embodiment, the meal fee supervision method is applied to the supervision cloud module in the meal fee supervision system. The meal fee supervision system also includes an account supervision module. The account supervision module and the local share the same database. The meal fee supervision method includes steps S10 to S40:
[0057] Step S10, in response to a consumption request initiated by a user through a target meal card, obtaining a target meal card account corresponding to the target meal card;
[0058] It should be noted that the target meal card is a card used by students or parents to pay in the campus cafeteria. It can be a physical card or a virtual card in a mobile phone application. The target meal card account is an account associated with the target meal card. The target meal card account records relevant information of the card, including detailed data such as meal card balance and consumption recharge records.
[0059] It is understandable that to ensure the security of funds in meal fee supervision, meal fees cannot be topped up into third-party devices such as meal cards. Therefore, to ensure that the corresponding fees can be accurately deducted from the correct account, it is necessary to identify the target meal card account that initiated the consumption request through the target meal card, so that the meal fee can be deducted directly from the target meal card account, so that the meal fee can be deducted without having to top up the meal fee into a third-party account.
[0060] In one embodiment, NFC (Near Field Communication) can also be used to extend the functions of the target meal card to NFC-enabled devices such as smart watches, thereby increasing the flexibility of use.
[0061] Among them, the implementation method of extending the function of the target meal card to devices that support NFC function such as smart watches can be to convert the target meal card account information into digital form and store it in the smart watch that supports NFC function, so that payment can be completed when the smart watch is placed close to the card reader.
[0062] Step S20: Determine whether the consumption amount of the consumption request is not higher than the meal balance of the target meal card account and is not higher than the preset consumption limit of the target meal card account, wherein the meal balance is obtained by freezing and recharging the target meal card account based on the personal bank account corresponding to the target meal card account, and the freezing and recharging freezes the amount of the preset recharge amount in the personal bank account to obtain a frozen amount, and increases the meal balance of the preset recharge amount in the target meal card account;
[0063] It should be noted that the meal card balance represents the available funds pool calculated based on the freeze-recharge mechanism. This represents the virtual amount available for dining expenses in the target meal card account. The freeze operation freezes a portion of the balance in the user's personal bank account and adds a corresponding virtual meal fee balance to the meal card account. However, the funds remain in the original bank account; the actual balance in the bank account only decreases when the frozen amount is deducted from the bank account.
[0064] Understandably, monitoring meal expenses through third-party accounts carries the risk of the third-party account being frozen by the courts. Once a third-party account is frozen, the funds originally stored in the third-party account are difficult to recover. Therefore, this embodiment prevents premature transfer of funds to the third-party account by freezing recharges, preventing issues like judicial freezes that could render funds unrecoverable, and thus enhancing the security of funds used for meal expense monitoring.
[0065] In one embodiment, a preset amount of liquid funds may be set when performing a frozen recharge so that the liquid funds can be used for consumption when there are special consumption needs.
[0066] When a consumption request meets the preset consumption conditions, a small amount of funds can be automatically released from the frozen funds to the target account meal card as working capital, wherein the preset consumption conditions can be the time conditions, location conditions, amount conditions and purpose conditions set in advance by the user.
[0067] When recharging working capital, you can also analyze the usage records of meal cards within the past preset time, provide an analysis report, set working capital based on the analysis report, and terminate the transaction in time when abnormal consumption behavior is detected to ensure consumption safety.
[0068] Step S30: If neither is higher than the above, deduct the consumption amount from the meal balance and generate a corresponding record to be deducted;
[0069] It should be noted that the deduction reduces the virtual balance generated based on the frozen recharge mechanism. The amount in the personal bank account is not deducted before the frozen amount is deducted. The pending deduction record is a temporary transaction record generated by the system, which is used to indicate that the meal consumption has occurred but the actual bank funds transfer has not yet been completed. The pending deduction record generally includes: consumption time, consumption amount, user information, merchant information, deduction status, and upload status.
[0070] It is understandable that if both are not higher, it means that the target meal card account can complete the transaction. Therefore, the corresponding consumption amount can be deducted and the corresponding record to be deducted can be generated to indicate that the transaction has been carried out.
[0071] If the bank interface is called every time a transaction is made to deduct the frozen funds, the data processing burden on all parties will be increased and the transaction delay will be increased. Therefore, this embodiment only deducts the virtual amount in the target dining card account, eliminating the need to call the bank interface every time a transaction is made. Only the local account balance is updated to quickly complete the payment confirmation.
[0072] Moreover, asynchronous settlement that separates consumption from actual deductions simplifies financial management. The generated records of pending deductions can facilitate regulatory authorities, schools, and parents to view consumption details, thereby conducting effective supervision.
[0073] In one embodiment, when a problem occurs in the deduction of meal expenses, the amount to be deducted will be recorded, and a record of the amount to be deducted and an error message will be left so that the system can be repaired later or deducted through other means.
[0074] In a feasible implementation, the consumption limit includes a single consumption limit and a total consumption limit within a preset time period. The specific implementation of determining whether the consumption amount of the consumption request is not higher than the meal balance of the target meal card account and is not higher than the preset consumption limit of the target meal card account may also be:
[0075] If the consumption amount is not higher than the meal balance, determine whether the consumption amount is not higher than the single consumption limit. If it is not higher, calculate the amount consumed by the target meal card account within the preset time, and determine whether the sum of the consumed amount and the consumption amount is not higher than the total consumption limit.
[0076] It should be noted that the amount spent within the preset time period is the total amount of consumption incurred by the target meal card account within the set time period (such as the day or week). The total consumption limit is the maximum cumulative consumption amount allowed within a preset period of time (daily or weekly limit).
[0077] It's understandable that in order to effectively regulate meal expenses, it's necessary to be able to effectively restrict consumption that exceeds usage limits. This embodiment effectively prevents students from overspending through a triple verification mechanism: balance, single limit, and total limit. This controls consumption behavior from multiple dimensions, avoiding the risks and vulnerabilities associated with single judgments. Furthermore, the system automatically intercepts overspending, improving both the efficiency and effectiveness of supervision.
[0078] In one embodiment, the single consumption limit and the total consumption limit can be changed in real time, and the changed limits will be synchronized through the database, thereby realizing dynamic rule formulation and dynamic consumption interception.
[0079] The setting of the consumption limit also includes a temporary reminder setting, which can enable the system to initiate a reminder when over-limit consumption occurs. Parents can temporarily authorize the system so that the consumption can exceed the consumption limit.
[0080] Step S40, upload the records to be deducted to the database, so that the account supervision module can obtain each record to be deducted within the preset time period in the database every preset time period, set the deduction time for each record to be deducted respectively, summarize the consumption amount based on the deduction time and each record to be deducted, and deduct the frozen amount based on the summarized consumption amount.
[0081] It should be noted that the database to which the records to be deducted are uploaded is a database shared by the account supervision module and the supervision cloud module. By uploading the records to be deducted to the database, the consistency of meal fee deductions and frozen fund deductions is ensured. The supervision cloud module is used to process school, merchant and meal card information, and the account supervision module is used to process relevant information of personal bank accounts. The frozen fund deduction is an operation to release the corresponding amount of real funds from the frozen amount to the public account. The overall architecture of the meal fee supervision system, as well as the functions of the supervision cloud module and the account supervision module can be referred to. Figure 2 .
[0082] It is understandable that the deduction from the target meal card account is actually a virtual amount, and the actual amount in the corresponding personal bank account is not reduced. Therefore, it is necessary to summarize the consumption amount based on the deduction time and each pending deduction record, and then deduct the frozen amount based on the summarized consumption amount.
[0083] This embodiment improves system stability by setting a deduction time to avoid system crashes or delays caused by a large number of concurrent requests. Furthermore, by summarizing the information before deduction, the actual number of deductions is reduced, significantly reducing the number of bank interface calls and improving the efficiency of system fund deductions. Furthermore, the summarized information and the unsummarized pending deduction information make it easier for regulatory authorities to review historical consumption details and fund flows, enabling multi-dimensional supervision of dining expenses.
[0084] In a feasible implementation manner, the specific implementation manner of the step of uploading the record to be deducted to the database may also be:
[0085] Determine whether the current network is in a connected state. If not, save the record to be deducted locally. When the network is connected again, determine whether there are any unuploaded records to be deducted locally. If so, upload the unuploaded records to be deducted to the database.
[0086] It should be noted that the connection status is the connection status between the canteen merchant's equipment and the background server of the meal fee supervision system, and the connection status can be obtained based on heartbeat packet detection or interface detection. The method of saving the records to be deducted is to save the records to be deducted in a local database through a local log file. The network being reconnected refers to the state in which the network is restored after being interrupted.
[0087] It is understandable that school cafeterias often experience network interruptions. If students need to make purchases during the network outage, the meal fee cannot be deducted. Therefore, this application saves the records to be deducted locally so that even if the network is temporarily interrupted, services can continue to be provided without affecting students' meals, thereby improving system availability. The saved records to be deducted will be retained and uploaded after the network is restored, thus avoiding data loss.
[0088] In one embodiment, when the record to be deducted is saved locally, it will be accompanied by a unique identifier and timestamp generated by the system, thereby avoiding repeated uploading of the same consumption record and improving the accuracy of meal expense supervision.
[0089] When uploading records to be deducted, if a record to be deducted has not been uploaded successfully after the preset maximum number of retries, a message will be sent to remind the staff to intervene, and the upload will be attempted again after a preset delay time to prevent frequent requests in a short period of time from affecting system performance and improve the upload integrity of the records to be deducted.
[0090] In summary, this embodiment responds to a consumption request initiated by a user through a target meal card, obtains a target meal card account corresponding to the target meal card, and determines whether the consumption amount of the consumption request is not higher than the meal balance of the target meal card account, and is not higher than the preset consumption limit of the target meal card account. If it is not higher than, the consumption amount is deducted from the meal balance, and a corresponding record to be deducted is generated, and the record to be deducted is uploaded to the database, so that the account supervision module can obtain each record to be deducted within the preset time period in the database every preset time period, set the deduction time for each record to be deducted, summarize the consumption amount based on the deduction time and each record to be deducted, and deduct the frozen amount based on the summarized consumption amount.
[0091] Since the meal fee balance is obtained by freezing and recharging the target meal card account based on the personal bank account corresponding to the target meal card account, and the frozen recharge is to freeze the amount of the preset recharge amount in the personal bank account to obtain the frozen amount, and increase the meal fee balance of the preset recharge amount in the target meal card account, when recharging the meal fee, only the funds in the personal account need to be frozen, and when deducting the fee, only the frozen funds in the personal account need to be deducted. The recharge and deduction of the meal fee do not need to be carried out through a third-party account. Therefore, this embodiment does not need to go through a third-party account, and can complete the meal fee supervision only through the personal account, preventing the problem of funds being unable to be recovered due to judicial freezing of the third-party account, thereby improving the financial security of meal fee supervision.
[0092] Based on this, the embodiment of the present application provides a method for monitoring meal expenses, referring to Figure 3 , Figure 3 This is a flow chart of the first embodiment of the method for applying for meal fee supervision.
[0093] In this embodiment, the meal expense supervision method is applied to an account supervision module in a meal expense supervision system. The meal expense supervision system further includes a supervision cloud module. The supervision cloud module and the local system share the same database. The method includes steps A10 to A20:
[0094] Step A10, every preset time period, obtaining each record to be deducted within the preset time period in the database, wherein the record to be deducted is the supervision cloud module responding to the consumption request initiated by the user through the target meal card, obtaining the target meal card account corresponding to the target meal card, and judging whether the consumption amount of the consumption request is not higher than the meal balance of the target meal card account, and is not higher than the preset consumption limit of the target meal card account; if both are not higher, deducting the consumption amount from the meal balance, generating a corresponding record to be deducted, and uploading the record to be deducted to the database; the meal balance is obtained by freezing and recharging the target meal card account based on the personal bank account corresponding to the target meal card account; the frozen recharge freezes the amount of the preset recharge amount in the personal bank account to obtain a frozen amount, and increases the meal balance of the preset recharge amount in the target meal card account;
[0095] It should be noted that the preset time period is set by the user when opening a charging merchant. By setting the preset time period, the account management module can summarize and deduct the records to be deducted within the fixed time period at fixed time intervals according to the preset time period. The charging merchant is an account opened by the user for functions such as meal card binding, freezing recharge and fund deduction. After binding with the target meal card, the charging merchant is the target meal card account. The configuration page for charging merchant opening can be referred to Figure 4 .
[0096] It is understandable that the supervision cloud module uploads the pending deduction records generated when the meal card is consumed to the database. Since the meal fee deducted by the supervision cloud system is the virtual amount in the meal card, the amount frozen in the bank card is not actually deducted. Therefore, it is necessary to summarize the pending deduction records through the account supervision module. In order to avoid frequent calls to the bank's interface, it is necessary to obtain each pending deduction record within the preset time period in the database at every preset time period to perform the summary deduction of the pending deduction records.
[0097] In one embodiment, you can set a freezing time period for freezing recharges so that the frozen amount can be unfrozen after the preset freezing time period. You can also check the option of unfreezing the recharge order in the visual interface. Through the order unfreezing operation, the frozen amount will be unfrozen and the corresponding amount of meal card balance will be deducted to meet the refund demand of the meal card. The user's fund freezing recharge settings and fund unfreezing settings interface can refer to Figure 5 , users can refer to the freezing and recharging operation process Figure 6 .
[0098] In a feasible implementation manner, before the step of obtaining each to-be-deducted record within the preset time period from the database at every preset time period, the step further includes:
[0099] In response to a recharge request for the meal balance of a target meal card account, a target bank account corresponding to the target meal card account is obtained, and based on the recharge amount in the recharge request, the amount of the recharge amount in the target bank account is frozen to obtain a frozen amount, and the meal balance of the recharge amount is increased in the target meal card account, and in response to the user's consumption limit setting operation, the consumption limit of the target meal card account is set, wherein the consumption limit includes a single consumption limit and a total consumption limit within a preset time.
[0100] It should be noted that the recharge request is a request initiated by the user in the target meal card account to recharge the target meal card amount, and the consumption limit setting operation is an operation initiated by the user in the target meal card account to set the single limit and the total limit for the preset time for the target meal card.
[0101] It is understandable that in this embodiment, in order to prevent the problem of funds being unable to be recovered due to judicial freezing of a third-party account, the user needs to keep the funds in a personal account when recharging the meal card balance. In order to ensure that the merchant account can finally receive the funds consumed by the meal card, the corresponding recharge amount needs to be frozen in the user's personal account, thereby protecting the funds of both the user and the merchant at the same time.
[0102] Step A20, respectively set the deduction time of each of the records to be deducted, summarize the consumption amount based on the deduction time and each of the records to be deducted, and deduct the frozen amount based on the summarized consumption amount.
[0103] It should be noted that the deduction time is the actual operation time when the frozen funds are deducted, and the operation of summarizing the consumption amount is the operation of merging and counting the consumption amounts in multiple records to be deducted according to user, merchant or time dimensions.
[0104] It is understandable that since the frozen amount is deducted at preset time intervals, each deduction requires processing a large number of pending deduction records. Parallel processing of a large number of pending deduction records may cause system congestion. Therefore, to avoid system congestion caused by the simultaneous processing of a large number of pending deduction records, it is necessary to set a deduction time for each pending deduction record and aggregate the consumption amount based on the deduction time and each pending deduction record.
[0105] In a feasible implementation, the to-be-deducted record includes a consumption store, and the steps of setting a deduction time for each to-be-deducted record, aggregating the consumption amount based on the deduction time and each to-be-deducted record, and deducting the frozen amount based on the aggregated consumption amount include:
[0106] Based on each of the records to be deducted, a corresponding consumption record list is generated, wherein the consumption record list includes the consumption time, the consumption amount and the consumption store. Based on a preset parallel processing threshold, the deduction time of each consumption record in the consumption record list is set. Based on the deduction time, the consumption amount and the consumption store, each of the consumption records is summarized to obtain the total consumption amount of each consumption store, and the total consumption amount is visually displayed. Based on the total consumption amount of each consumption store, the frozen amount is deducted.
[0107] It should be noted that the consumption record list is a collection of information including consumption time, amount, store, etc. in the records to be deducted, and the parallel processing threshold is the maximum number of deduction tasks that can be executed concurrently by the preset control system.
[0108] It is understandable that when transferring funds, purchases made by different students at the same store are transferred to the same account. Therefore, the information in the consumption record list can be aggregated based on the consumption amount and the store where the purchase was made. Funds can then be transferred based on this aggregated information, improving the efficiency of transferring frozen amounts. Furthermore, by visually displaying the aggregated consumption amounts, regulatory transparency and visualization capabilities can be further enhanced.
[0109] In one embodiment, when processing deductions, the parallel processing threshold can be dynamically adjusted based on the load of the account supervision system. When the load of the account supervision system is low, the parallel processing threshold can be increased, and when the load of the account supervision system is high, the parallel processing threshold can be lowered, thereby maximizing the utilization of system resources.
[0110] In one embodiment, the processing system can also be expanded in stages based on the fund deduction cycle set by each user and obtained by the account supervision system. The peak load period of the account supervision system can be determined by the fund deduction cycle. Therefore, the account processing system can be expanded in a timed and quantitative manner based on the fund deduction cycle and the number of records to be deducted that need to be processed, so as to quickly process a large number of records to be deducted during the peak period. After the peak period is over, the expanded system is scaled down to save computing resources. Since the fund deduction cycle of each user is obtained by the system, the time and resource requirements for processing the peak period can be accurately judged, so as to accurately perform timed and quantitative expansion, thereby achieving accurate use of computing resources and rapid processing of orders to be deducted.
[0111] In one embodiment, the fund supervision system further includes a home-school recruitment module, and the home-school recruitment module, the supervision cloud module and the account supervision module share the same database.
[0112] It should be noted that the home-school recruitment module provides users with a cash flow viewing interface for relevant institutions, including schools, teaching institutions and other institutions that use the meal fee supervision system.
[0113] It is understandable that in order to monitor meal expenses, relevant institutions need to be able to view the transaction flow and records of meal expenses at any time to improve the effectiveness of supervision. Therefore, this embodiment provides a transaction flow viewing interface by setting up a home-school recruitment module. By sharing the same database and unified log for the home-school recruitment module, the supervision cloud module, and the account supervision module, meal expenses can be accurately monitored, improving the effectiveness of meal expense supervision.
[0114] In summary, this embodiment obtains each record to be deducted within the preset time period from the database every preset time period, sets the deduction time for each record to be deducted, summarizes the consumption amount based on the deduction time and each record to be deducted, and deducts the frozen amount based on the summarized consumption amount.
[0115] Since the amount deducted from the target meal card is a virtual amount, the actual amount in the personal bank account has not been deducted, and the frozen amount in the personal bank account needs to be deducted. By processing funds in personal accounts rather than third-party accounts, the security of meal fee supervision can be improved. And because large-scale concurrent processing can easily lead to system crashes and freezes, it is necessary to set a deduction time for each record to be deducted, and improve the efficiency of system processing through asynchronous parallel processing. Therefore, the embodiment can improve the security of meal fee supervision and the processing efficiency of the system through the processing of personal frozen funds and asynchronous parallel processing.
[0116] It should be noted that the above examples are only used to understand this application and do not constitute a limitation on the meal fee supervision method of this application. More simple transformations based on this technical concept are all within the scope of protection of this application.
[0117] The present application provides a meal expense supervision device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the meal expense supervision method in the above-mentioned embodiment one.
[0118] Reference below Figure 7, which shows a schematic diagram of the structure of a meal fee supervision device suitable for implementing the embodiments of the present application. The meal fee supervision device in the embodiments of the present application may include, but is not limited to, mobile terminals such as mobile phones, tablet computers, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 7 The meal expense supervision device shown is merely an example and should not limit the functions and scope of use of the embodiments of the present application.
[0119] like Figure 7 As shown, the meal fee monitoring device may include a processing device 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes based on programs stored in a read-only memory (ROM) 1002 or programs loaded from a storage device 1003 into a random access memory (RAM) 1004. RAM 1004 also stores various programs and data required for the operation of the meal fee monitoring device. Processing device 1001, ROM 1002, and RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems may be connected to I / O interface 1006: input device 1007 including, for example, a touchscreen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output device 1008 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage device 1003 including, for example, a magnetic tape, hard disk, etc.; and communication device 1009. Communication device 1009 can allow the meal expense monitoring device to communicate wirelessly or wired with other devices to exchange data. Although the figure shows a meal expense monitoring device with various systems, it should be understood that it is not required to implement or have all of the systems shown. More or fewer systems can be implemented or provided instead.
[0120] In particular, according to the embodiments disclosed in the present application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program comprising program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0121] The meal expense monitoring device provided in this application, which utilizes the meal expense monitoring method described in the aforementioned embodiment, can address the technical issue of low financial security associated with current methods for monitoring meal expenses. Compared to the prior art, the beneficial effects of the meal expense monitoring device provided in this application are the same as those of the meal expense monitoring method described in the aforementioned embodiment, and the other technical features of the meal expense monitoring device are the same as those disclosed in the aforementioned embodiment, and are not further elaborated upon here.
[0122] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0123] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
[0124] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the meal fee supervision method in the above-mentioned embodiment.
[0125] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0126] The computer-readable storage medium may be included in the meal expense monitoring device; or it may exist independently without being assembled into the meal expense monitoring device.
[0127] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the meal expense supervision device, the meal expense supervision device executes the meal expense supervision method.
[0128] Computer program code for performing the operations of the present application may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0129] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to the various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, program segment or a part of code, and the module, program segment or a part of code contains one or more executable instructions for realizing the prescribed logical functions. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented by a dedicated hardware-based system that performs the prescribed function or operation, or can be implemented by a combination of dedicated hardware and computer instructions.
[0130] The modules described in the embodiments of the present application may be implemented in software or hardware, wherein the name of a module does not necessarily limit the unit itself.
[0131] The computer-readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the aforementioned meal expense supervision method. This computer-readable storage medium can address the technical issue of low financial security associated with current methods for meal expense supervision. Compared to the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the meal expense supervision method provided in the aforementioned embodiments, and are not further elaborated here.
[0132] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned meal fee supervision method when executed by a processor.
[0133] The computer program product provided in this application can solve the technical problem of low financial security in current methods for monitoring meal expenses. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as those of the meal expense monitoring method provided in the above embodiment, and will not be elaborated here.
[0134] The above description is only part of the embodiments of the present application and does not limit the patent scope of the present application. All equivalent structural transformations made by using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect application in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A meal expense supervision method, characterized in that: A supervision cloud module is applied to a meal fee supervision system, wherein the meal fee supervision system further includes an account supervision module. The account supervision module and the local system share the same database. The method includes: In response to a consumption request initiated by a user through a target meal card, obtaining a target meal card account corresponding to the target meal card; Determining whether the consumption amount of the consumption request is not higher than the meal balance of the target meal card account and is not higher than the preset consumption limit of the target meal card account, wherein the meal balance is obtained by freezing and recharging the target meal card account based on the personal bank account corresponding to the target meal card account, wherein the freezing and recharging freezes an amount of a preset recharge amount in the personal bank account to obtain a frozen amount, and increases the meal balance of the preset recharge amount in the target meal card account; If neither is higher than the above, the consumption amount will be deducted from the meal balance and a corresponding record to be deducted will be generated; The records to be deducted are uploaded to the database so that the account supervision module can obtain the records to be deducted within the preset time period in the database every preset time period, set the deduction time for each record to be deducted respectively, summarize the consumption amount based on the deduction time and each record to be deducted, and deduct the frozen amount based on the summarized consumption amount.
2. The method according to claim 1, wherein The step of uploading the record to be deducted to the database includes: Determine whether the current network is connected; If the connection is not in progress, the record to be deducted is saved locally; When the network is reconnected, determine whether there are any unuploaded deduction records in the local area; If so, the unuploaded record to be deducted will be uploaded to the database.
3. The method according to claim 1, wherein The consumption limit includes a single consumption limit and a total consumption limit within a preset time. The step of determining whether the consumption amount of the consumption request is not higher than the meal balance of the target meal card account and is not higher than the preset consumption limit of the target meal card account includes: If the consumption amount is not higher than the meal balance, then determining whether the consumption amount is not higher than the single consumption limit; If not, then calculate the amount consumed by the target meal card account within the preset time period; Determine whether the sum of the consumed amount and the consumed amount is not higher than the total consumption limit.
4. A meal expense supervision method, characterized in that: An account supervision module is applied to a meal fee supervision system, wherein the meal fee supervision system further includes a supervision cloud module, and the supervision cloud module and the local system share the same database. The method includes: At every preset time period, each record to be deducted within the preset time period is obtained from the database, wherein the record to be deducted is the target meal card account corresponding to the target meal card obtained by the supervision cloud module in response to the consumption request initiated by the user through the target meal card, and it is judged whether the consumption amount of the consumption request is not higher than the meal fee balance of the target meal card account and is not higher than the preset consumption limit of the target meal card account. If both are not higher, the consumption amount is deducted from the meal fee balance, and a corresponding record to be deducted is generated, and the record to be deducted is uploaded to the database. The meal fee balance is obtained by freezing and recharging the target meal card account based on the personal bank account corresponding to the target meal card account. The frozen recharge freezes the amount of the preset recharge amount in the personal bank account to obtain a frozen amount, and increases the meal fee balance of the preset recharge amount in the target meal card account; The deduction time of each of the to-be-deducted records is set respectively, the consumption amount is summarized based on the deduction time and each of the to-be-deducted records, and the frozen amount is deducted based on the summarized consumption amount.
5. The method according to claim 4, wherein: The to-be-deducted record includes a consumption store, and the steps of setting a deduction time for each of the to-be-deducted record, aggregating the consumption amount based on the deduction time and each of the to-be-deducted record, and deducting the frozen amount based on the aggregated consumption amount include: Based on each of the to-be-deducted records, a corresponding consumption record list is generated, wherein the consumption record list includes the consumption time, the consumption amount, and the consumption store; Based on a preset parallel processing threshold, setting the deduction time for each consumption record in the consumption record list; Based on the deduction time, the consumption amount and the consumption store, the consumption records are summarized to obtain the total consumption amount of each consumption store, and the total consumption amount is visually displayed; The frozen amount is deducted based on the total amount of consumption at each of the consumption stores.
6. The method according to claim 4, wherein: Before the step of obtaining each to-be-deducted record within the preset time period from the database at every preset time period, the method further includes: In response to a request to recharge a meal fee balance of a target meal card account, obtaining a target bank account corresponding to the target meal card account; Based on the recharge amount in the recharge request, freezing the amount of the recharge amount in the target bank account to obtain a frozen amount, and increasing the meal fee balance of the target meal card account by the amount of the recharge amount; In response to the user's consumption limit setting operation, the consumption limit of the target meal card account is set, wherein the consumption limit includes a single consumption limit and a total consumption limit within a preset time.
7. A meal expense supervision system, characterized in that: The meal fee supervision system includes a supervision cloud module and an account supervision module, and the account supervision module and the supervision cloud module share the same database: The supervision cloud module is used to respond to a consumption request initiated by a user through a target meal card, obtain a target meal card account corresponding to the target meal card, and determine whether the consumption amount of the consumption request is not higher than the meal balance of the target meal card account and is not higher than the consumption limit preset for the target meal card account, wherein the meal balance is obtained by freezing and recharging the target meal card account based on the personal bank account corresponding to the target meal card account, and the freezing and recharging freezes an amount of a preset recharge amount in the personal bank account to obtain a frozen amount, and increases the meal balance of the preset recharge amount in the target meal card account; if both are not higher than, deduct the consumption amount from the meal balance, generate a corresponding record to be deducted, and upload the record to be deducted to the database; The account supervision module is used to obtain each record to be deducted within the preset time period from the database every preset time period, set the deduction time for each record to be deducted, summarize the consumption amount based on the deduction time and each record to be deducted, and deduct the frozen amount based on the summarized consumption amount.
8. A meal expense monitoring device, characterized in that: The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the meal fee supervision method according to any one of claims 1 to 6.
9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the meal fee supervision method according to any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The computer program product includes a computer program, and when the computer program is executed by a processor, the steps of the meal fee supervision method according to any one of claims 1 to 6 are implemented.