CN117829929A - Resource interaction method, device, computer equipment and storage medium - Google Patents

Resource interaction method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN117829929A
CN117829929A CN202311816652.8A CN202311816652A CN117829929A CN 117829929 A CN117829929 A CN 117829929A CN 202311816652 A CN202311816652 A CN 202311816652A CN 117829929 A CN117829929 A CN 117829929A
Authority
CN
China
Prior art keywords
resource
account
module
target
data
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.)
Pending
Application number
CN202311816652.8A
Other languages
Chinese (zh)
Inventor
吴栩峰
陈敏
谭波
黄媚
庄婉铃
齐绩
罗家栋
林磊
黄公跃
吴瑞婷
陈超
张广辉
武晋楠
陈晓伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Power Supply Bureau Co Ltd
Original Assignee
Shenzhen Power Supply Bureau Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Power Supply Bureau Co Ltd filed Critical Shenzhen Power Supply Bureau Co Ltd
Priority to CN202311816652.8A priority Critical patent/CN117829929A/en
Publication of CN117829929A publication Critical patent/CN117829929A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present application relates to a resource interaction method, apparatus, computer device, storage medium and computer program product. The method is applied to a resource interaction module and comprises the following steps: in response to receiving a resource refund instruction, determining a target account that matches the resource refund instruction; acquiring the target resource remaining amount from a power supply management module according to a target account identifier corresponding to the target account, wherein the power supply management module is used for determining the resource remaining amount corresponding to the account according to the total resource amount and the electric quantity consumption data of the account; and transferring the resources corresponding to the target resource residual quantity into the target account. The method can simplify the resource refund flow and improve the efficiency.

Description

Resource interaction method, device, computer equipment and storage medium
Technical Field
The present invention relates to the field of resource management technologies, and in particular, to a resource interaction method, a device, a computer device, a storage medium, and a computer program product.
Background
A public house is a policy that governments use to assist low or medium income households in providing housing. Because most of the renting period of the public renting rooms is aperiodic renting, the current public renting room management mode mostly adopts a pre-payment electric charge mode, and the management mode records one day and receives one day; and when renting, rapidly paying the surplus fee of the pre-paid electricity.
However, in the conventional technology, when the excessive fee of the pre-paid electricity fee is withdrawn, the excessive fee is required to be executed through the financial management system of the power supply mechanism, the power supply mechanism is difficult to quickly withdraw the excessive fee of the tenant to the tenant account, the withdrawal flow is complicated, the efficiency is low, and the user experience is poor.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a resource interaction method, apparatus, computer device, computer readable storage medium, and computer program product that can simplify the resource refund process and improve the efficiency.
In a first aspect, the present application provides a resource interaction method, where the method is applied to a resource interaction module, and includes:
in response to receiving a resource refund instruction, determining a target account that matches the resource refund instruction;
acquiring the target resource remaining amount from a power supply management module according to a target account identifier corresponding to the target account, wherein the power supply management module is used for determining the resource remaining amount corresponding to the account according to the total resource amount and the electric quantity consumption data of the account;
and transferring the resources corresponding to the target resource residual quantity into the target account.
In one embodiment, the resource interaction module includes a plurality of resource interaction units, and transferring the resource corresponding to the target resource remaining amount to the target account includes:
Sequentially determining the unit resource quantity corresponding to each resource interaction unit according to a preset sequence until the unit resource quantity is greater than or equal to the target resource residual quantity, and determining the resource interaction unit with the unit resource quantity greater than or equal to the target resource residual quantity as a target resource interaction unit;
and transferring the resources corresponding to the target resource residual quantity in the target resource interaction unit into the target account.
In one embodiment, the preset sequence of the plurality of resource interaction units is determined based on organization data of an organization to which the resource interaction units belong, where the organization data includes resource data, credit data, and quality of service data.
In one embodiment, the preset sequence of the plurality of resource interaction units is obtained by periodically obtaining organization data in a current period of an organization to which the resource interaction units belong, and updating the preset sequence according to the organization data in the current period.
In one embodiment, the method further comprises:
periodically determining the total quantity of resource transfer-out in the current period;
and acquiring the resources corresponding to the total quantity of the resource transfer-out from the power supply management module.
In one embodiment, the power supply management module is configured to determine a resource remaining amount corresponding to an account according to a total resource amount and power consumption data of the account, and includes:
the power supply management module periodically acquires the current resource remaining amount of the account and the electric quantity consumption in the current period;
the power supply management module determines the resource consumption in the current period according to the electric quantity consumption;
the power supply management module updates the resource remaining amount of the account according to the difference between the current resource remaining amount and the resource consumption amount.
In a second aspect, the present application further provides a resource interaction device, where the device is applied to a resource interaction module, and includes:
the response module is used for responding to the received resource refund instruction and determining a target account matched with the resource refund instruction;
the power supply management module is used for determining the resource remaining amount corresponding to the account according to the total resource amount and the electric quantity consumption data of the account;
and the transfer-in module is used for transferring the resources corresponding to the target resource residual quantity into the target account.
In one embodiment, the resource interaction module includes a plurality of resource interaction units, and the transfer-in module includes:
a first determining submodule, configured to sequentially determine a unit resource amount corresponding to each resource interaction unit according to a preset sequence, until the unit resource amount is greater than or equal to the target resource remaining amount, and determine that a resource interaction unit with the unit resource amount greater than or equal to the target resource remaining amount is a target resource interaction unit;
and the transfer sub-module is used for transferring the resource corresponding to the target resource residual quantity in the target resource interaction unit into the target account.
In one embodiment, the preset sequence of the plurality of resource interaction units is determined based on organization data of an organization to which the resource interaction units belong, where the organization data includes resource data, credit data, and quality of service data.
In one embodiment, the preset sequence of the plurality of resource interaction units is obtained by periodically obtaining organization data in a current period of an organization to which the resource interaction units belong, and updating the preset sequence according to the organization data in the current period.
In one embodiment, the apparatus further comprises:
the second determining submodule is used for periodically determining the total quantity of resource transfer-out in the current period;
and the transferring-out sub-module is used for acquiring the resources corresponding to the total transferring-out amount of the resources from the power supply management module.
In one embodiment, the power management module includes:
the first acquisition sub-module is used for periodically acquiring the current resource remaining quantity of the account and the electric quantity consumption in the current period;
a third determining submodule, configured to determine a resource consumption amount in the current period according to the electric quantity consumption amount;
and the updating module is used for updating the resource remaining amount of the account according to the difference between the current resource remaining amount and the resource consumption amount.
In a third aspect, embodiments of the present disclosure also provide a computer device. The computer device comprises a memory storing a computer program and a processor implementing the steps of the method of any of the embodiments of the present disclosure when the computer program is executed.
In a fourth aspect, embodiments of the present disclosure also provide a computer-readable storage medium. The computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the method of any of the embodiments of the present disclosure.
In a fifth aspect, embodiments of the present disclosure also provide a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the steps of the method according to any of the embodiments of the present disclosure.
According to the embodiment of the disclosure, the resource interaction module is introduced, when the account needs to be refunded, the resource interaction module determines the target account according to the resource refund instruction, acquires the corresponding target resource residual quantity from the power supply management module, and transfers the resource corresponding to the target resource residual quantity into the target account, so that when the account applies for the resource refund, the resource refund process can be simplified, complicated calculation and verification and other processes are not needed through the power supply management module, the efficiency of the resource refund is greatly improved, and the experience of a user is improved; in the embodiment, the resource refund between the account and the resource interaction module is performed, so that the independent setting of the resource refund process is realized, the user complaint amount caused by complicated flow is reduced through the setting of a new resource refund mode, the satisfaction degree and the trust degree of the user are improved, and the method is suitable for more application scenes.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the related art, the drawings that are required to be used in the embodiments or the related technical descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to the drawings without inventive effort for a person having ordinary skill in the art.
FIG. 1 is a flow diagram of a resource interaction method in one embodiment;
FIG. 2 is a flow diagram of a resource interaction method in one embodiment;
FIG. 3 is a flow diagram of a resource interaction method in one embodiment;
FIG. 4 is a flow diagram of a resource interaction method in one embodiment;
FIG. 5 is a schematic architecture diagram of a tenant management system in one embodiment;
FIG. 6 is a block diagram of a resource interaction device in one embodiment;
fig. 7 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
In one embodiment, as shown in fig. 1, there is provided a resource interaction method, where the method may be applied to a server, and the method is applied to a resource interaction module, and includes:
step S110, in response to receiving a resource refund instruction, determining a target account matched with the resource refund instruction;
in an embodiment of the present disclosure, a resource interaction method applied to a resource interaction module is provided, and a target account matched with a resource refund instruction is determined in response to receiving the resource refund instruction, where the target account can be determined according to information of a corresponding instruction sender in the resource refund instruction, and the target account matched with the resource refund instruction is an account for sending the resource refund instruction. In one example, the resource refund instruction may be sent for the user through an account module; in another example, the resource refund instruction may also be triggered automatically after the user has turned off the resource interaction with the power management module. Taking the method described in the embodiment as an example applied to a house renting management scene, in one example, after a user sends a house renting application, a resource refund instruction is automatically triggered; in another example, the user directly sends a surcharge refund instruction, i.e., a resource refund instruction, through the account module.
Step S120, obtaining the target resource remaining amount from a power supply management module according to a target account identifier corresponding to the target account, wherein the power supply management module is used for determining the resource remaining amount corresponding to the account according to the total resource amount and the electric quantity consumption data of the account;
in the embodiment of the disclosure, after determining the target account, determining the target account identifier corresponding to the target account according to the association relationship between the account and the account identifier, in an example, the account module stores the correspondence relationship between the account and the account identifier, and the account identifier may include, but is not limited to, a login account, a payment account, an electric quantity collection device number, an account number, and the like, and may be specifically set according to an actual application scenario. And acquiring target resource residual quantity corresponding to the target account from the power supply management module according to the target account identifier corresponding to the target account, wherein the power supply management module can determine the resource residual quantity corresponding to the account according to the total resource quantity and the electric quantity consumption data of the account, in one example, the electric quantity consumption quantity of the account can be determined according to the electric quantity consumption data, so that the corresponding resource consumption quantity is determined, and the resource residual quantity of the account is determined according to the difference between the total resource quantity and the resource consumption quantity of the account. In one example, the power management module may periodically obtain power consumption data of the account and update the resource remaining amount corresponding to the account. In one example, the electricity consumption data of the account may be determined by data of the electricity collection device corresponding to the account, for example, the electricity consumption in the preset period may be determined according to a data difference value of the electricity collection device in the preset period.
And step S130, transferring the resources corresponding to the target resource remaining amount into the target account.
In the embodiment of the disclosure, after the target resource remaining amount is determined, a resource refund operation may be performed to transfer the resource corresponding to the target resource remaining amount to the target account, so as to refund the target resource remaining amount to the target account. In one example, the resource corresponding to the initial total resource amount of the account is stored in the power supply management module, a certain amount of resource is stored in the resource interaction module, and after the target resource remaining amount is determined, the resource interaction module can make a payment in advance, and transfer the resource of the target resource remaining amount from the stored resource to the target account. In one example, the resource interaction module and the power management module may also perform a settlement process, where the settlement is performed with the power management module according to the amount of resources that the resource interaction module fills up.
Taking the method described in this embodiment as an example applied in a house renting electric charge management scenario, when a tenant rents a house, the pre-paid electric charge is in the power supply management module, and after the tenant is rented, the remaining pre-paid electric charge can be applied to be refunded. The resource interaction module comprises an acquisition module, a payment filling module and a settlement module, wherein the acquisition module is used for traversing the user data in the power supply management module according to the house number corresponding to the tenant (account), namely the account identifier, so as to obtain the target resource remaining amount corresponding to the tenant, namely the redundant electricity charge; the payment module is used for initiating transfer to a payment account of the tenant according to the residual pre-paid electric charge and returning the corresponding resource to the tenant; the settlement module is used for carrying out settlement of the redundant electricity charge with the power supply management module. According to the embodiment, the resource interaction module is introduced, the electricity charge insurance is used as a new mode of third party charging, after the resource interaction module obtains the extra electricity charge after aperiodic charging, the extra electricity charge is charged to the tenant in advance, so that the tenant can take refund rapidly when renting, and the subsequent resource interaction unit can be independently settled with the power supply management module.
According to the embodiment of the disclosure, the resource interaction module is introduced, when the account needs to be refunded, the resource interaction module determines the target account according to the resource refund instruction, acquires the corresponding target resource residual quantity from the power supply management module, and transfers the resource corresponding to the target resource residual quantity into the target account, so that when the account applies for the resource refund, the resource refund process can be simplified, complicated calculation and verification and other processes are not needed through the power supply management module, the efficiency of the resource refund is greatly improved, and the experience of a user is improved; in the embodiment, the resource refund between the account and the resource interaction module is performed, so that the independent setting of the resource refund process is realized, the user complaint amount caused by complicated flow is reduced through the setting of a new resource refund mode, the satisfaction degree and the trust degree of the user are improved, and the method is suitable for more application scenes.
In one embodiment, as shown in fig. 2, the resource interaction module includes a plurality of resource interaction units, and transferring the resource corresponding to the target resource remaining amount to the target account includes:
step S131, determining the unit resource quantity corresponding to each resource interaction unit in turn according to a preset sequence until the unit resource quantity is greater than or equal to the target resource residual quantity, and determining the resource interaction unit with the unit resource quantity greater than or equal to the target resource residual quantity as a target resource interaction unit;
Step S132, transferring the resource corresponding to the target resource remaining amount in the target resource interaction unit to the target account.
In the embodiment of the disclosure, the resource interaction module includes a plurality of resource interaction units, and each resource interaction unit stores a certain amount of resources. Considering that the resource amounts of the resources corresponding to different resource interaction units may have a difference, when the target resource remaining amount is greater than the resource amount corresponding to the resource interaction unit, the resource interaction unit at this time cannot execute the pad payment operation and needs to execute the pad payment operation through other resource interaction units. And transferring the resources corresponding to the target resource remaining amount from the target resource interaction unit to a target account.
According to the embodiment of the disclosure, the resource interaction module comprises a plurality of resource interaction units, when the resource is returned, the target resource interaction units can be determined according to the unit resource amounts of different resource interaction units and the resource is transferred out according to the preset sequence, so that when the resource amount of the current resource interaction unit does not meet the resource return condition, other resource interaction units can be rapidly switched to return the resource, the resource return efficiency is further improved, the reliability and the safety of the resource return are improved through the arrangement of the multi-resource interaction units, and the resource interaction module is suitable for more application scenes.
In one embodiment, the preset sequence of the plurality of resource interaction units is determined based on organization data of an organization to which the resource interaction units belong, where the organization data includes resource data, credit data, and quality of service data.
In the embodiment of the present disclosure, the preset sequence of the plurality of resource interaction units is determined based on organization data of an organization to which the resource interaction units belong, where different resource interaction units may correspond to different organizations, and the organization includes, but is not limited to, a resource interaction structure, and the like. In this embodiment, the organization data includes resource data, credit data, and service quality data, and the resource data, the credit data, and the service quality data may be classified into multiple dimensions according to the resource data, the credit data, and the service quality data, where different classes correspond to different scores, and finally a preset sequence of multiple resource interaction units is obtained according to the size of the scores. In one example, the preset sequence may be determined by a ranking module, where the ranking module is configured to obtain and evaluate, in real time, data of an organization to which the plurality of resource interaction units belong, thereby determining priorities of the plurality of resource interaction units, and obtaining the preset sequence; further, the sorting module includes a data acquisition unit, a scoring unit, and a priority unit, where the data acquisition unit acquires organization data of an organization to which the plurality of resource interaction units belong through a preset data acquisition technology, the preset data acquisition technology may include, but is not limited to, technical means such as data mining, a crawler, an API interface, and the like, the scoring unit is configured to score priority scores of the resource interaction units according to the acquired data, and the priority unit is configured to perform priority sorting according to the priority scores, so as to obtain a preset order.
In one example, the organization corresponds to a company, and the resource data includes company qualification, company financial status, and the like; credit data includes corporate reputation evaluation data and the like; the quality of service data includes corporate quality of service data. When the scoring unit performs scoring, the corporate qualification is classified into three grades of high, medium and low, the financial condition is classified into three grades of high, medium and low, the reputation evaluation is classified into three grades of high, medium and low, and the service quality is classified into three grades of high, medium and low; the priority score is incremented by one when the data of the resource interaction unit is rated high, is decremented by one when the data of the resource interaction unit is rated medium, and is decremented by one when the data of the resource interaction unit is rated low. The priority unit performs priority ranking according to a plurality of priority scores, the resource interaction unit with the highest priority score is determined to be the highest level, and the resource interaction unit with the lowest priority score is determined to be the lowest level; and obtaining a preset sequence of a plurality of resource interaction units according to the priority score from high to low.
According to the method and the device for processing the resource interaction units, the preset sequence of the resource interaction units is determined and obtained based on the organization data of the organization to which the resource interaction units belong, and the preset sequence of the resource interaction units is determined and obtained according to the information such as the resource data, the credit data and the service quality data, so that the rationality of the preset sequence is guaranteed, the resource transfer-out operation can be executed more efficiently and accurately when the resource is returned, the efficiency and the reliability of the follow-up settlement process can be guaranteed, and the method and the device are suitable for more application scenes.
In one embodiment, the preset sequence of the plurality of resource interaction units is obtained by periodically obtaining organization data in a current period of an organization to which the resource interaction units belong, and updating the preset sequence according to the organization data in the current period.
In the embodiment of the disclosure, when determining the preset sequence of the resource interaction units, the corresponding organization data is changed in consideration of the change of the operation status of the organization to which the resource interaction units belong, so in this embodiment, the organization data is periodically acquired and the preset sequence is updated. Specifically, organization data in a current period of an organization to which the resource interaction unit belongs is periodically acquired, a preset sequence of a plurality of resource interaction units corresponding to the current period is determined according to the organization data in the current period, and a pad operation is executed according to the preset sequence in a next period of the current period. The period for acquiring the organization data and determining the preset sequence can be obtained according to the actual application scene setting. In one example, priority scores of a plurality of resource interaction units corresponding to a current period are determined according to organization data in the current period, and a preset sequence of the plurality of resource interaction units is determined from high to low according to the priority scores of the plurality of resource interaction units.
According to the method and the device for updating the resource interaction units, the preset sequence of the resource interaction units is obtained through periodical real-time updating, the preset sequence of the resource interaction units is updated through periodical acquisition of organization data, the preset sequence of the resource interaction units is guaranteed to be adjusted according to actual conditions, and further the rationality and reliability of the preset sequence of the resource interaction units are further improved, so that when the resource is returned, the resource transfer-out operation can be efficiently and accurately executed, and the method and the device are suitable for more application scenes.
In one embodiment, as shown in fig. 3, the method further comprises:
step S310, periodically determining the total amount of resource transfer-out in the current period;
step S320, obtaining, from the power supply management module, a resource corresponding to the total amount of resource transfer.
In the embodiment of the disclosure, settlement is periodically performed between the resource interaction module and the power supply management module. Specifically, the total resource transfer amount of the resource interaction module in the current period is periodically determined, and the resource corresponding to the total resource transfer amount is obtained from the power supply management module, wherein the period of periodically determining the total resource transfer amount is set according to an actual application scene, for example, the period can be set to be one day, one week or the like. The power supply management module stores initial resources of a user, so that corresponding residual resources are also stored in the power supply management module, and the total amount of resource transfer-out in the current period is the same as the account resource remaining amount of a refund account corresponding to the current period in the power supply management module. In one possible implementation manner, when the total amount of resource transfer in the current period is periodically determined, the total amount of resource transfer may be divided according to different accounts corresponding to the total amount of resource transfer, for example, when the total amount of resource transfer corresponds to N accounts, it is determined whether the sum of the resource remaining amounts of the N accounts in the power supply management module is equal to the total amount of resource transfer, and if so, the remaining resources of the N accounts are transferred to the resource interaction module; further, when the resource interaction module includes a plurality of resource interaction units, according to the resource interaction units when the N accounts are respectively corresponding to the payment, the remaining resources of the N accounts are respectively transferred to the corresponding resource interaction units.
According to the embodiment of the disclosure, after the resource interaction module returns the resource, the resource interaction module can carry out periodic settlement with the power supply management module, so that the work load of the power supply management module is reduced while the resource return efficiency is improved, the target resource surplus can be returned to the target account rapidly and accurately through a new resource return mode, the work load of the power supply management module can be reduced by utilizing a periodic settlement mode, the method is suitable for more application scenes, and the experience and the trust degree of users are improved.
In one embodiment, as shown in fig. 4, the power supply management module is configured to determine, according to the total resource amount and the power consumption data of the account, a resource remaining amount corresponding to the account, including:
step S410, the power supply management module periodically obtains the current resource remaining amount of the account and the power consumption in the current period;
step S420, the power supply management module determines the resource consumption in the current period according to the electric quantity consumption;
in step S430, the power management module updates the resource remaining amount of the account according to the difference between the current resource remaining amount and the resource consumption amount.
In the embodiment of the disclosure, the power supply management module determines the resource remaining amount corresponding to the account according to the total resource amount and the electric quantity consumption data of the account. Specifically, the power supply management module periodically obtains the current resource remaining amount of the account and the electric quantity consumption in the current period, wherein the period for obtaining the data can be set according to the actual application scene, for example, the period for obtaining the data can be set to be one day, and the power supply management module obtains the electric quantity consumption of the day before the current moment. And determining the resource consumption in the current period according to the electric quantity consumption, wherein the resource consumption can be determined by combining the electric quantity consumption and the resource quantity corresponding to the unit electric quantity. After the resource consumption is determined, the power supply management module obtains new resource residual quantity according to the difference between the current resource residual quantity and the resource consumption, and updates the resource residual quantity of the account.
Taking the mode described in this embodiment as an example, the power supply management module includes a binding module, a resetting module, a filing module, an electricity fee calculation module, and a financial management module. The binding module is used for binding the house numbers and the ammeter numbers, wherein each house number corresponds to one ammeter, and each ammeter corresponds to one ammeter number; the reset module is used for resetting the ammeter so that the ammeter reading is zero; the filing module is used for establishing files of the tenants for electric charge settlement according to the personal information, the house number and the ammeter number, and naming the files by the house number; the electricity charge calculation module is used for calculating the daily electricity charge of the tenant according to the daily electricity consumption; and the financial management module is used for storing and managing the pre-paid electric charge, deducting the pre-paid electric charge according to the daily electric charge, determining that the pre-paid electric charge is redundant after a plurality of daily electric charges are deducted, and inputting the redundant electric charge into the file.
According to the embodiment of the disclosure, the power supply management module determines the resource consumption according to the electric quantity consumption in the current period of the account, and updates the resource remaining quantity of the account, so that the aperiodic resource interaction mode under different scenes can be realized, resources are prestored through the account, and the resources are periodically calculated and interacted according to the resource consumption in the period, thereby reducing the workload of the power supply management module, reducing the management cost and improving the experience of users.
Taking the application of the method described in this embodiment in a house renting management application scenario as an example, a house renting management system is provided, fig. 5 is a schematic architecture diagram of a house renting management system according to an exemplary embodiment, and referring to fig. 5, the system includes an account management module, a power supply management module, a resource interaction module, a sorting module, an encryption module, and a storage module. Specifically, the account management module is used for managing the electricity charge of the tenant, and comprises the functions of collecting the electricity consumption, pre-paying the electricity charge, settling the electricity charge and providing inquiry for the electricity consumption condition; the power supply management module is used for managing the binding relation between the ammeter and the house, recording the electricity consumption condition, calculating the electricity fee, and managing the pre-payment electricity fee and settlement condition of the tenant; the resource interaction module is used for processing the excessive cost refund transaction of the tenant, and comprises the steps of obtaining the excessive cost, initiating transfer to the tenant and settling with the power supply management module; the sorting module is used for acquiring and evaluating the data of the resource interaction units in real time, and determining the priority levels of the resource interaction units according to the scores so as to ensure that when one resource interaction unit cannot be paid to the tenant, the rest resource interaction units can be quickly switched to carry out payment and refund processing; the encryption module is used for protecting the privacy of information generated by the house renting management system and encrypting the information through an encryption algorithm; the encryption algorithm comprises a hash algorithm and an asymmetric encryption algorithm; the storage module is used for storing the information generated by the house renting management system, wherein the information comprises a hash value which is encrypted by the encryption algorithm, so that the safety and privacy protection of the data are ensured.
Wherein the account management module comprises: the interaction module is used for inputting personal information by the tenant, binding the personal information with a house number and initiating a renting application (resource refund instruction) by the tenant; each piece of personal information corresponds to one house number; the personal information comprises a login account and a payment account, wherein the login account is used for the tenant to settle the electric charge and the payment account is used for paying the electric charge; the electricity meter module is used for collecting the electricity consumption of the tenant and determining the daily electricity consumption as daily electricity consumption; the pre-payment module is used for paying pre-payment electricity fees to the power supply management module by the tenant; and the query module is used for querying the electricity consumption condition of the tenant, wherein the electricity consumption condition comprises the electricity consumption amount, daily electricity charge and residual pre-paid electricity charge.
The power supply management module includes: the binding module is used for binding the house numbers and the ammeter numbers, wherein each house number corresponds to one ammeter, and each ammeter corresponds to one ammeter number; the reset module is used for resetting the ammeter so that the ammeter reading is zero; the filing module is used for establishing files of the tenants for electric charge settlement according to the personal information, the house number and the ammeter number, and naming the files by the house number; the electricity charge calculation module is used for calculating the daily electricity charge of the tenant according to the daily electricity consumption; and the financial management module is used for storing and managing the pre-paid electric charge, deducting the pre-paid electric charge according to the daily electric charge, determining that the pre-paid electric charge is redundant after a plurality of daily electric charges are deducted, and inputting the redundant electric charge into the file.
The resource interaction module comprises: the acquisition module is used for traversing a plurality of files according to the house numbers corresponding to the tenants, acquiring the corresponding files of the tenants and acquiring the redundant fees from the corresponding files; the payment module is used for replacing the power supply management module, initiating transfer to the payment account of the tenant according to the redundant expense, and returning the redundant expense to the tenant; and the settlement module is used for settling the redundant expense with the financial management module of the power supply management module.
The ordering module comprises: the data acquisition unit is used for acquiring the organization data of the organizations to which the resource interaction units belong on the network in real time through an acquisition technology, wherein the acquisition technology comprises but is not limited to data mining, crawlers and API interfaces, and the data comprises but is not limited to corporate qualification, financial condition, reputation evaluation and service quality; the scoring unit is used for scoring the priority scores of the plurality of resource interaction units according to the data; in one example, the corporate resources are classified into three levels, high, medium, and low, the financial status is classified into three levels, high, medium, and low, the reputation evaluation is classified into three levels, high, medium, and low, and the quality of service is classified into three levels, high, medium, and low; when the organization data of the resource interaction unit is rated as high-grade, the priority grade score is increased by one score, when the organization data of the resource interaction unit is rated as medium-grade, the priority grade score is not increased by one score, and when the organization data of the resource interaction unit is rated as low-grade, the priority grade score is decreased by one score; and the priority unit is used for carrying out priority ranking according to the priority scores, determining the resource interaction unit with the highest priority score as the highest level, and determining the resource interaction unit with the lowest priority score as the lowest level. The organization data has real-time property, namely, the priority order of the resource interaction units has real-time property.
The memory module includes: the information storage module is used for storing the personal information, the house number and a plurality of hash values corresponding to the ammeter number which are input by the tenant; the electricity consumption storage module is used for storing a plurality of hash values corresponding to the daily electricity consumption of the account management module; the electricity charge storage module is used for storing a plurality of hash values corresponding to the pre-paid electricity charge, the daily electricity charge, the residual pre-paid electricity charge and the excessive charge of the tenant; and the archive storage module is used for storing the archive of the tenant.
The encryption module is used for protecting the privacy of information generated by the house renting management system, and the information is encrypted through an encryption algorithm so as to ensure the safety and privacy protection. Wherein the encryption algorithm comprises a hash algorithm and an asymmetric encryption algorithm. The hash algorithm is an algorithm for mapping a binary string with any length into a binary string with a fixed length, wherein the binary string with the fixed length is a hash value. The asymmetric encryption algorithm generates a public key (public key) and a private key (private key) for the data, the public key and the private key being a pair, and if the data is encrypted with the public key, only the corresponding private key can be used to decrypt the data, and if the data is encrypted with the private key, only the corresponding public key can be used to decrypt the data. The encryption module encrypts the personal information, the house number, the ammeter number, the daily electricity consumption and the amount of the pre-paid electricity fee, the daily electricity fee, the residual pre-paid electricity fee and the redundant fee through the hash algorithm to generate a plurality of hash values. And generating a plurality of pairs of public keys and private keys for the personal information, the house number, the ammeter number, the daily electricity consumption, the pre-paid electricity fee, the daily electricity fee, the residual pre-paid electricity fee and the hash value of the excessive fee through the asymmetric encryption algorithm, and encrypting a plurality of hash values by using the public keys. And when the hash value is acquired, decrypting and acquiring by using the private key corresponding to the public key for encryption.
In one example, the tenant needs to be preconfigured before entering, and the preconfiguration specifically includes the following steps: step S1.1: the binding module binds the house number and the ammeter number, encrypts the house number and the ammeter number through the encryption module and sends the house number and the ammeter number to the information storage module for storage. Step S1.2: the reset module resets the ammeter to enable the reading of the ammeter to be zero, thereby ensuring fair charging and accurately recording the consumption of the electric charge. Step S1.3: and the tenant inputs the personal information on the interaction module, binds the personal information with the house number, namely, each tenant corresponds to one house number, encrypts the personal information through the encryption module, and sends the personal information to the information storage module for storage. The personal information comprises the login account and the payment account, the login account is used for the tenant to settle the electric charge and the payment account is used for paying the electric charge. Step S1.4: the profiling module retrieves the personal information, the house number and the electric meter number from the information storage module, and decrypts the personal information, the house number and the electric meter number by using the corresponding private key. And the filing module establishes the file according to the personal information, the house number and the ammeter number, names the file by the house number and sends the file to the file storage module for storage. Step S1.5: the tenant pays the pre-paid electricity fee through the pre-paid module. Step S1.6: the pre-paid electric charge enters the power supply management module through the storage module, the financial management module stores and manages the pre-paid electric charge, and the amount of the pre-paid electric charge is input into the file.
In one example, the calculating the spare fee required to return when the pre-paid electricity fee is returned to the rental, specifically includes the following steps: step S2.1: the electricity meter module collects the electricity consumption of the tenant, and sends the daily electricity consumption to the electricity fee calculation module at a zero point of each day through the storage module. Step S2.2: and the electricity charge calculation module calculates the daily electricity charge according to the daily electricity consumption. Step S2.3: and the financial management module deducts the pre-paid electricity fee according to the daily electricity fee. Step S2.4: and determining the remaining prepaid electric charge as the balance of the prepaid electric charge minus the daily electric charge. Step S2.5: and circularly executing the steps S2.1 to S2.4 until the tenant initiates a renting application. Step S2.6: and determining the residual pre-paid electricity charge as the redundant charge, and inputting the redundant charge into the file, wherein the redundant charge is the charge obtained by subtracting a plurality of daily electricity charges from the pre-paid electricity charge.
In this embodiment, when the tenant is rented, the method specifically includes the following steps: step S3.1: and the tenant initiates the renting application on the interaction module. Step S3.2: the obtaining module invokes a plurality of the archives in the archive storage module, and the obtaining module 301 traverses a plurality of the archives according to the house number corresponding to the tenant, so as to obtain the corresponding archives of the tenant. Step S3.3: the obtaining module 301 obtains the spare cost from the corresponding file. Step S3.4: and the resource interaction module initiates transfer to the payment account of the tenant according to the redundant expense through the payment module, and returns the redundant expense to the tenant. And realizing that the redundant expense is paid to the tenant in advance instead of the power supply management module. Step S3.5: and the settlement module of the resource interaction module and the financial management module of the power supply management module settle the redundant cost.
Taking the example that the method of the embodiment is applied to the tenant management system, in the use process of the tenant management system, the binding module binds the house number and the ammeter number. And the reset module resets the ammeter so that the ammeter reading is zero. When the tenant inputs the personal information through the interaction module, the profiling module establishes the archive according to the personal information, the house number and the ammeter number, and names the archive by the house number. When the tenant pays the pre-paid electricity to the power supply management module through the pre-paid module, the pre-paid electricity enters the power supply management module through the storage module, the pre-paid electricity is stored and managed by the financial management module, and the pre-paid electricity is input into the file. And during the period of the resident of the tenant, the electricity meter module collects the electricity consumption of the tenant and sends the daily electricity consumption to the electricity fee calculation module at a zero point of each day through the storage module. And the electricity charge calculation module calculates the daily electricity charge according to the daily electricity consumption. And the financial management module deducts the pre-paid electricity fee according to the daily electricity fee. When the tenant initiates the renting application on the interaction module, the financial management module inputs the redundant fees obtained by deducting the pre-paid electric fees from a plurality of daily electric fees into the archive. And the acquisition module traverses a plurality of files according to the house numbers corresponding to the tenants to acquire the corresponding files of the tenants. And the acquisition module acquires the redundant expense from the corresponding file. And the resource interaction module initiates transfer to the payment account of the tenant according to the redundant expense through the payment module, and returns the redundant expense to the tenant. And the settlement module of the resource interaction module and the financial management module of the power supply management module settle the redundant cost. The inquiry module is used for calling the electricity consumption storage module and the electricity charge storage module, and the tenant can inquire the pre-paid electricity charge, the daily electricity consumption, the daily electricity charge and the residual pre-paid electricity charge in the entering period through the inquiry module, and can inquire the pre-paid electricity charge, the daily electricity consumption, the daily electricity charge and the residual charge in the returning period.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a resource interaction device for realizing the above related resource interaction method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in the embodiments of one or more resource interaction devices provided below may refer to the limitation of the resource interaction method hereinabove, and will not be repeated herein.
In an exemplary embodiment, as shown in fig. 6, there is provided a resource interaction device 600, which is applied to a resource interaction module, including:
a response module 610, configured to determine, in response to receiving a resource refund instruction, a target account that matches the resource refund instruction;
the obtaining module 620 is configured to obtain the target resource remaining amount from a power supply management module according to a target account identifier corresponding to the target account, where the power supply management module is configured to determine a resource remaining amount corresponding to the account according to a total resource amount and electric quantity consumption data of the account;
and a transfer module 630, configured to transfer the resource corresponding to the target resource remaining amount into the target account.
In one embodiment, the resource interaction module includes a plurality of resource interaction units, and the transfer-in module includes:
a first determining submodule, configured to sequentially determine a unit resource amount corresponding to each resource interaction unit according to a preset sequence, until the unit resource amount is greater than or equal to the target resource remaining amount, and determine that a resource interaction unit with the unit resource amount greater than or equal to the target resource remaining amount is a target resource interaction unit;
And the transfer sub-module is used for transferring the resource corresponding to the target resource residual quantity in the target resource interaction unit into the target account.
In one embodiment, the preset sequence of the plurality of resource interaction units is determined based on organization data of an organization to which the resource interaction units belong, where the organization data includes resource data, credit data, and quality of service data.
In one embodiment, the preset sequence of the plurality of resource interaction units is obtained by periodically obtaining organization data in a current period of an organization to which the resource interaction units belong, and updating the preset sequence according to the organization data in the current period.
In one embodiment, the apparatus further comprises:
the second determining submodule is used for periodically determining the total quantity of resource transfer-out in the current period;
and the transferring-out sub-module is used for acquiring the resources corresponding to the total transferring-out amount of the resources from the power supply management module.
In one embodiment, the power management module includes:
the first acquisition sub-module is used for periodically acquiring the current resource remaining quantity of the account and the electric quantity consumption in the current period;
a third determining submodule, configured to determine a resource consumption amount in the current period according to the electric quantity consumption amount;
And the updating module is used for updating the resource remaining amount of the account according to the difference between the current resource remaining amount and the resource consumption amount.
The modules in the resource interaction device may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one exemplary embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, an Input/Output interface (I/O) and a communication interface. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface is connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing data involved in the method described in this embodiment, such as resource amount data. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a resource interaction method.
It will be appreciated by those skilled in the art that the structure shown in fig. 7 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In an embodiment, there is also provided a computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the method embodiments described above when the computer program is executed.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, carries out the steps of the method embodiments described above.
In an embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the steps of the method embodiments described above.
It should be noted that, the user information (including, but not limited to, user equipment information, user personal information, etc.) and the data (including, but not limited to, data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party, and the collection, use, and processing of the related data are required to meet the related regulations.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the various embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.

Claims (10)

1. A resource interaction method, wherein the method is applied to a resource interaction module and comprises the following steps: in response to receiving a resource refund instruction, determining a target account that matches the resource refund instruction;
acquiring the target resource remaining amount from a power supply management module according to a target account identifier corresponding to the target account, wherein the power supply management module is used for determining the resource remaining amount corresponding to the account according to the total resource amount and the electric quantity consumption data of the account;
And transferring the resources corresponding to the target resource residual quantity into the target account.
2. The method of claim 1, wherein the resource interaction module comprises a plurality of resource interaction units, and wherein transferring the resource corresponding to the target resource remaining amount to the target account comprises:
sequentially determining the unit resource quantity corresponding to each resource interaction unit according to a preset sequence until the unit resource quantity is greater than or equal to the target resource residual quantity, and determining the resource interaction unit with the unit resource quantity greater than or equal to the target resource residual quantity as a target resource interaction unit;
and transferring the resources corresponding to the target resource residual quantity in the target resource interaction unit into the target account.
3. The method of claim 2, wherein the predetermined order of the plurality of resource interaction units is determined based on organization data of an organization to which the resource interaction units belong, wherein the organization data includes resource data, credit data, and quality of service data.
4. The method of claim 3, wherein the preset order of the plurality of resource interaction units is obtained by periodically acquiring organization data in a current period of an organization to which the resource interaction units belong, and updating the preset order according to the organization data in the current period.
5. The method according to claim 1, wherein the method further comprises:
periodically determining the total quantity of resource transfer-out in the current period;
and acquiring the resources corresponding to the total quantity of the resource transfer-out from the power supply management module.
6. The method of claim 1, wherein the power management module is configured to determine the remaining amount of resources corresponding to the account according to the total amount of resources and the power consumption data of the account, and comprises:
the power supply management module periodically acquires the current resource remaining amount of the account and the electric quantity consumption in the current period;
the power supply management module determines the resource consumption in the current period according to the electric quantity consumption;
the power supply management module updates the resource remaining amount of the account according to the difference between the current resource remaining amount and the resource consumption amount.
7. A resource interaction device, wherein the device is applied to a resource interaction module, and comprises:
the response module is used for responding to the received resource refund instruction and determining a target account matched with the resource refund instruction;
the power supply management module is used for determining the resource remaining amount corresponding to the account according to the total resource amount and the electric quantity consumption data of the account;
And the transfer-in module is used for transferring the resources corresponding to the target resource residual quantity into the target account.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN202311816652.8A 2023-12-27 2023-12-27 Resource interaction method, device, computer equipment and storage medium Pending CN117829929A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311816652.8A CN117829929A (en) 2023-12-27 2023-12-27 Resource interaction method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311816652.8A CN117829929A (en) 2023-12-27 2023-12-27 Resource interaction method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117829929A true CN117829929A (en) 2024-04-05

Family

ID=90516468

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311816652.8A Pending CN117829929A (en) 2023-12-27 2023-12-27 Resource interaction method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117829929A (en)

Similar Documents

Publication Publication Date Title
JP6948949B2 (en) Energy resource network
US20210240858A1 (en) System for protecting integrity of transaction data
US20170206522A1 (en) Device, method and system for autonomous selection of a commodity supplier through a blockchain distributed database
CN110599323B (en) Resource processing method and processing equipment
US20200042998A1 (en) System and method for autonomous sustenance of digital assets
TW200917084A (en) Metered pay-as-you-go computing experience
CN112561510A (en) Payment system, method, device, equipment and storage medium
CN113706312A (en) Photovoltaic electricity transaction method and device based on block chain
US10944874B2 (en) Telecommunication system for monitoring and controlling of a network providing resource to a user
KR101933134B1 (en) Apparatus for paying electricity charge using crypto-currency and operating method thereof
CN111861611B (en) Resource processing method and device based on block chain, electronic equipment and storage medium
CN111401873A (en) Task creation method and device, storage medium and electronic equipment
CN109492847B (en) Multi-resource platform based on block chain and multi-resource allocation method
CN117829929A (en) Resource interaction method, device, computer equipment and storage medium
CN110599146B (en) Data processing method, device, terminal, node equipment and storage medium
EP3331196B1 (en) Telecommunication system for monitoring and controlling of a network providing resource to a user
CN114240416A (en) Data processing method, data processing device, computer equipment and storage medium
US11062364B1 (en) Pricing usage of software products
KR20190143445A (en) Server for Managing Systematic License Agreement, Systematic License Agreement Managing System and Method Using The Same
US20230124657A1 (en) EGR Powered System and Energy Provider Billing Entity, Billing Management Using Blockchain
WO2024067672A1 (en) Cloud resource charging method, cloud management platform, computing device, and storage medium
GB2572339A (en) System and method for data processing using tokens
US20240177147A1 (en) Smart contract for inbound transactions
TW202215353A (en) Information processing apparatus, information processing system, information processing method, program, and storage medium
Lodetti et al. Blockchain-based Model for Trading Smart Contracts for Shared Energy Generation in Brazil

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