CN-114399186-B - Reclaimed water management method, device, equipment and storage medium based on blockchain
Abstract
The embodiment of the invention discloses a reclaimed water management method, device, equipment and storage medium based on a blockchain. The method comprises the steps of responding to a reclaimed water obtaining instruction of a reclaimed water user, determining a reclaimed water obtaining requirement of the reclaimed water user, storing the reclaimed water obtaining requirement in a chain, obtaining sewage treatment capability information of a preset credit provider, determining a target provider from the credit provider according to the reclaimed water obtaining requirement and the sewage treatment capability information, and determining a sewage treatment task of the target provider so as to enable the target provider to provide reclaimed water to the reclaimed water user according to the sewage treatment task. Realizing the high-efficiency regeneration management of sewage and improving the use efficiency of reclaimed water.
Inventors
- PENG HE
- HAO JIANLI
- TANG XIAONAN
- SUN YAO
- MA WENTING
- YU SHIWANG
- CHEN LIN
Assignees
- 西交利物浦大学
Dates
- Publication Date
- 20260505
- Application Date
- 20220107
Claims (8)
- 1. A blockchain-based reclaimed water management method, the method performed by a blockchain link point, the method comprising: Responding to a reclaimed water acquisition instruction of a reclaimed water user, determining a reclaimed water acquisition demand of the reclaimed water user, and storing the reclaimed water acquisition demand in a chain; acquiring sewage treatment capacity information of a preset credit provider; Determining a target provider from the credit providers according to the reclaimed water acquisition requirement and the sewage treatment capability information, and determining a sewage treatment task of the target provider so as to realize that the target provider provides reclaimed water to the reclaimed water user according to the sewage treatment task; After the target provider is determined from the credit providers according to the reclaimed water acquisition requirement and the sewage treatment capability information, and the sewage treatment task of the target provider is determined, the method further comprises: Acquiring the actual reclaimed water supply quantity of the target provider in a reclaimed water demand time period; Determining whether the target provider finishes a sewage treatment task according to the actual reclaimed water supply amount and the target reclaimed water supply amount; If yes, carrying out transaction settlement on the actual water supply of the target provider according to a preset blockchain intelligent contract, and storing transaction settlement information in a uplink manner; And determining whether the target provider finishes the sewage treatment task according to the actual reclaimed water supply amount and the target reclaimed water supply amount, and further comprising: Presetting an error threshold; calculating a difference between the actual water supply amount and the target water supply amount according to the error threshold; if the difference exceeds the error threshold, notifying the reclaimed water provider to carry out self-detection on the sewage treatment unit; If the self-checking result is a mechanical failure, notifying a worker to overhaul; if the self-checking result shows that unknown data tampering behavior exists, suspending the data uplink of the reclaimed water provider; if the self-checking result shows that the reclaimed water amount does not reach the standard, reducing the preset sewage treatment capacity information of the reclaimed water provider, wherein the credit provider is a credit family; the sewage treatment capability information comprises the number, the geographic position, the sewage generation amount in a preset time unit and the reclaimed water generation amount in the preset time unit of the credit provider.
- 2. The method of claim 1, wherein storing the reclaimed water acquisition requirement in a chain comprises: encrypting the reclaimed water acquisition demand according to a preset encryption algorithm, and uploading the encrypted reclaimed water acquisition demand to a blockchain for storage.
- 3. The method of claim 1, wherein the reclaimed water acquisition demand includes a geographic location of a reclaimed water user and a reclaimed water demand; Accordingly, determining a target provider from the credit providers according to the reclaimed water acquisition requirement and the sewage treatment capacity information, including: Determining at least one candidate provider from the credit providers based on preset geographic position screening conditions according to the geographic position of the reclaimed water user and the geographic position of the credit providers; And determining at least one target provider from the candidate providers based on a preset reclaimed water demand distribution rule according to the reclaimed water demand and the reclaimed water generation amount of the candidate providers in a preset time unit.
- 4. The method of claim 3, wherein the reclaimed water demand requirement further comprises a reclaimed water demand period; Accordingly, determining the sewage treatment task of the target provider includes: Determining a target reclaimed water supply amount of the target provider in a reclaimed water demand time period according to the reclaimed water demand and the reclaimed water generation amount of the target provider in a preset time unit; and distributing the sewage treatment task to the target provider according to the target water supply amount.
- 5. The method of claim 1, further comprising, after determining whether the target provider has completed a sewage treatment task: if the target provider does not complete the sewage treatment task, marking warning information on the reclaimed water acquisition requirement of the reclaimed water user, and broadcasting nodes.
- 6. A blockchain-based reclaimed water management device, the device configured at a blockchain node, the device comprising: The reclaimed water acquisition demand determining module is used for responding to a reclaimed water acquisition instruction of a reclaimed water user, determining a reclaimed water acquisition demand of the reclaimed water user and storing the reclaimed water acquisition demand in a chain; The sewage treatment capacity information acquisition module is used for acquiring sewage treatment capacity information of a preset credit provider; The reclaimed water providing module is used for determining a target provider from the credit providers according to the reclaimed water acquisition requirement and the sewage treatment capability information and determining a sewage treatment task of the target provider so as to realize that the target provider provides reclaimed water to the reclaimed water user according to the sewage treatment task; The actual water supply amount determining module is used for obtaining the actual water supply amount of the target provider in the reclaimed water demand time period after determining a target provider from the credit providers according to the reclaimed water obtaining requirement and the sewage treatment capability information and determining the sewage treatment task of the target provider; the sewage treatment task completion module is used for determining whether the target provider completes a sewage treatment task according to the actual reclaimed water supply amount and the target reclaimed water supply amount; the transaction settlement module is used for performing transaction settlement on the actual water supply of the target provider according to a preset blockchain intelligent contract if yes, and storing transaction settlement information in a uplink manner; The sewage treatment task completion module is also used for presetting an error threshold value, calculating a difference value between the actual reclaimed water supply amount and the target reclaimed water supply amount according to the error threshold value, notifying the reclaimed water supply unit to carry out self-checking on a sewage treatment unit if the difference value exceeds the error threshold value, notifying a worker to overhaul if a self-checking result is a mechanical failure, suspending the data uplink of the reclaimed water supply unit if the self-checking result is that unknown data tampering behavior exists, and reducing preset sewage treatment capability information of the reclaimed water supply unit if the self-checking result is that the reclaimed water amount does not reach the standard; wherein the credit provider is a credit family; the sewage treatment capability information comprises the number, the geographic position, the sewage generation amount in a preset time unit and the reclaimed water generation amount in the preset time unit of the credit provider.
- 7. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the blockchain-based reclaimed water management method of any one of claims 1-5 when the program is executed by the processor.
- 8. A storage medium containing computer executable instructions which, when executed by a computer processor, are for performing the blockchain-based reclaimed water management method of any of claims 1-5.
Description
Reclaimed water management method, device, equipment and storage medium based on blockchain Technical Field The embodiment of the invention relates to a computer technology, in particular to a reclaimed water management method, device, equipment and storage medium based on a blockchain. Background The lack of fresh water resources is one of the problems that hinder the social development, and the sustainable recovery treatment of the sewage of the provider is beneficial to solving the problem of lack of fresh water. The user family can be the reclaimed water provider, and the current treatment mode to user family domestic sewage is, the domestic sewage who will provide the side output is concentrated and is transported to sewage treatment plant, is handled domestic sewage into reclaimed water by sewage treatment plant, and the reclaimed water after the processing can be used for aspects such as city public service. However, the centralized sewage treatment plant has higher requirements on implementation and management of sewage treatment, and needs to apply a large amount of sewage after centralized treatment, so that the efficiency of reclaimed water management is lower, the use efficiency of reclaimed water is lower, and the use requirement of reclaimed water users cannot be met. Disclosure of Invention The embodiment of the invention provides a reclaimed water management method, device, equipment and storage medium based on a blockchain, so as to improve the efficiency of reclaimed water management and the use efficiency of reclaimed water. In a first aspect, embodiments of the present invention provide a blockchain-based reclaimed water management method performed by blockchain link points, the method comprising: Responding to a reclaimed water acquisition instruction of a reclaimed water user, determining a reclaimed water acquisition demand of the reclaimed water user, and storing the reclaimed water acquisition demand in a chain; acquiring sewage treatment capacity information of a preset credit provider; and determining a target provider from the credit providers according to the reclaimed water acquisition requirement and the sewage treatment capability information, and determining a sewage treatment task of the target provider so as to realize that the target provider provides reclaimed water to a reclaimed water user according to the sewage treatment task. In a second aspect, an embodiment of the present invention further provides a reclaimed water management apparatus based on a blockchain, the apparatus being configured at a blockchain node, the apparatus comprising: The reclaimed water acquisition demand determining module is used for responding to a reclaimed water acquisition instruction of a reclaimed water user, determining a reclaimed water acquisition demand of the reclaimed water user and storing the reclaimed water acquisition demand in a chain; The sewage treatment capacity information acquisition module is used for acquiring sewage treatment capacity information of a preset credit provider; And the reclaimed water providing module is used for determining a target provider from the credit providers according to the reclaimed water acquisition requirement and the sewage treatment capability information and determining a sewage treatment task of the target provider so as to realize that the target provider provides reclaimed water for a reclaimed water user according to the sewage treatment task. In a third aspect, an embodiment of the present invention further provides an electronic device, including a memory, a processor, and a computer program stored on the memory and capable of running on the processor, where the processor implements the blockchain-based reclaimed water management method according to any embodiment of the present invention when the processor executes the program. In a fourth aspect, embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are for performing a blockchain-based reclaimed water management method according to any embodiment of the present invention. According to the embodiment of the invention, the reclaimed water acquisition demand is determined and the sewage treatment capacity information of each preset credit provider is acquired by responding to the reclaimed water acquisition instruction of the reclaimed water user. According to the reclaimed water acquisition requirements and the sewage treatment capacity information of each credit provider, a target provider capable of providing reclaimed water is selected from the credit providers, and a sewage treatment task is distributed to the target provider, so that the target provider can treat the sewage produced by the target provider into reclaimed water, and the reclaimed water is provided for reclaimed water users. And the information of sewage treatment and reclaimed water use is stored in a uplink m