CN109697188B - Engineering cost data management method and system - Google Patents
Engineering cost data management method and system Download PDFInfo
- Publication number
- CN109697188B CN109697188B CN201811459985.9A CN201811459985A CN109697188B CN 109697188 B CN109697188 B CN 109697188B CN 201811459985 A CN201811459985 A CN 201811459985A CN 109697188 B CN109697188 B CN 109697188B
- Authority
- CN
- China
- Prior art keywords
- data
- cost data
- block
- block chain
- engineering cost
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Storage Device Security (AREA)
Abstract
The invention relates to a method and a system for managing construction cost data, wherein the method for managing the construction cost data comprises the following steps: acquiring project cost data, wherein each project cost data comprises data content and corresponding adding time; sequencing each part of the engineering cost data according to the sequence of the adding time from front to back; processing each piece of the sorted engineering cost data through a block chain technology to obtain a data block chain; and if the data checking message triggered by the user is acquired, the construction cost data is called from the data block chain. The invention has the effects of simplifying the engineering data management process and improving the safety of the engineering cost data.
Description
Technical Field
The invention relates to the technical field of information technology, in particular to a method and a system for managing construction cost data.
Background
At present, in the management of engineering cost data, each engineering cost data is stored in a corresponding database, and is marked by using a corresponding identifier, and when the engineering cost data needs to be checked, the engineering cost data is called and checked in the database through the mark. The method is troublesome to repeatedly modify, file, retrieve and the like, and the risk of tampering the engineering cost data is possible.
Disclosure of Invention
The invention aims to provide a project cost data management method and a project cost data management system which simplify project cost data management processes and improve the safety of project cost data.
The above object of the present invention is achieved by the following technical solutions:
a project cost data management method is characterized in that the project cost data management method comprises the following steps:
acquiring construction cost data, wherein each piece of the construction cost data comprises data content and corresponding adding time;
sequencing each part of the engineering cost data according to the sequence of the adding time from front to back;
processing each piece of the sorted engineering cost data through a block chain technology to obtain a data block chain;
and if the data checking message triggered by the user is acquired, the construction cost data is called from the data block chain.
By adopting the technical scheme, the characteristic that the block chain technology cannot be tampered is utilized, and the complete engineering cost data is stored in the block chain, so that the safety of the engineering cost data is improved; meanwhile, the characteristic of distributed storage in the block chain is utilized, so that the project cost data storage structure is more reasonable, the project cost data is convenient to call, and the project data management process is simplified.
The invention is further configured to: processing each piece of the sorted engineering cost data through a block chain technology to obtain a data block chain comprises the following steps:
generating a corresponding block from each piece of the engineering cost data by a block chain technology;
acquiring the first part of the engineering cost data according to the sequence of each part of the engineering cost data;
taking the most previous piece of the engineering cost data as a created block of the data block chain;
and sequencing the blocks according to the sequence of the adding time from front to back, and connecting each block by adding the adding time of the last block in each block to obtain the data block chain.
Further, the generating of the corresponding block from each piece of the engineering cost data by the block chaining technique includes:
calculating the hash value corresponding to the data content of each engineering cost data one by one through a hash algorithm;
and encrypting the hash values one by one through a private key in an asymmetric encryption algorithm to obtain the corresponding blocks.
By adopting the technical scheme, the blocks corresponding to each piece of engineering cost data are obtained by combining the Hash algorithm and the asymmetric encryption algorithm, and the blocks form a chain structure according to the time sequence to obtain the data block chain, so that the engineering data storage structure is more reasonable, and the safety of the engineering data is also ensured.
The invention is further configured to: the engineering cost data further comprises corresponding data identification, and if the data checking message triggered by the user is obtained, the step of calling the engineering cost data from the data block chain comprises the following steps:
the data viewing message comprises the data identification, and if the data viewing message is obtained, the user identification of the user is obtained;
verifying the authority of the user identifier, and if the user identifier passes the verification, acquiring a data identifier in the data viewing message;
acquiring a corresponding block from the data block chain according to the data identification;
and decrypting the block by using a public key of an asymmetric encryption algorithm to obtain the engineering cost data.
By adopting the technical scheme, before the engineering cost data is called from the data block chain, the authority of the user identification is checked, so that the safety of the engineering cost data can be further ensured; secondly, the public key of the asymmetric encryption algorithm is used for decrypting the engineering cost data, so that the safety of the engineering cost data is ensured.
The invention is further configured to: after the step of processing each piece of the sorted engineering cost data by using a block chain technology to obtain a data block chain, the engineering cost data management method further comprises the following steps:
if the project cost data adding message is obtained, obtaining the data adding content in the project cost data adding message;
calculating an adding hash value of the data adding content through a hash algorithm;
encrypting the added hash value by using a private key of an asymmetric encryption algorithm to obtain an added block;
and adding the adding block into the data block chain in a mode of adding the adding time of the last block in the data block chain into the adding block.
Through the technical scheme, when new construction cost data exist, the newly added construction cost data are processed by adopting a Hash algorithm and an asymmetric encryption algorithm and are written into the data block chain, so that the integrity of the data block chain is ensured.
The second aim of the invention is realized by the following technical scheme:
a project cost data management system, the project cost data management system comprising:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring construction cost data, and each piece of construction cost data comprises data content and corresponding adding time;
the sorting module is used for sorting each piece of the engineering cost data according to the sequence from front to back of the adding time;
the block chain processing module is used for processing each piece of the sorted engineering cost data through a block chain technology to obtain a data block chain;
and the second acquisition module is used for calling the engineering cost data from the data block chain if acquiring the data viewing message triggered by the user.
In summary, the beneficial technical effects of the invention are as follows:
the characteristic that the block chain technology cannot be tampered is utilized, and complete engineering cost data are stored in the block chain, so that the safety of the engineering cost data is improved; meanwhile, the characteristic of distributed storage in the block chain is utilized, so that the project cost data storage structure is more reasonable, the project cost data is convenient to call, and the project data management process is simplified.
Drawings
FIG. 1 is a flow chart of a method for managing engineering cost data according to an embodiment of the present invention.
Fig. 2 is a flowchart of the implementation of step S30 in the method for managing engineering cost data according to an embodiment of the present invention.
FIG. 3 is a flowchart illustrating the implementation of step S31 in the method for managing engineering cost data according to an embodiment of the present invention.
Fig. 4 is a flowchart of the implementation of step S40 in the method for managing engineering cost data according to an embodiment of the present invention.
FIG. 5 is another flowchart of a method for managing construction cost data according to an embodiment of the present invention.
FIG. 6 is a schematic block diagram of a construction cost data management system according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings.
The first embodiment is as follows:
in one embodiment, as shown in fig. 1, a method for managing construction cost data is provided, which comprises the following steps:
s10: and acquiring construction cost data, wherein each piece of construction cost data comprises data content and corresponding adding time.
In this embodiment, the construction cost data refers to the price related to the construction cost, such as the construction estimation result, the construction drawing, etc. Each of the construction cost materials includes its specific contents and a generated time, and the generated time is taken as an added time.
S20: and sequencing the construction cost data of each project according to the sequence of the adding time from front to back.
Specifically, each piece of engineering cost data is sorted according to the sequence of the adding time from front to back, namely the adding time corresponding to the first piece of engineering cost data is sorted until the time corresponding to the last piece of current engineering cost data is sorted.
S30: and processing each piece of sorted engineering cost data through a block chain technology to obtain a data block chain.
In this embodiment, the blockchain refers to a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm. It can be used to store data according to the properties of decentralization and non-tampering in the blockchain technique.
Specifically, the block chain technology is used to process each piece of sorted engineering cost data one by one to obtain the data block chain.
S40: and if the data checking message triggered by the user is acquired, the construction cost data is called from the data block chain.
In this embodiment, the material viewing message is a message triggered by the user to request to view the construction cost material.
Specifically, after the data viewing message triggered by the user is acquired, the corresponding engineering cost data is called from the data block chain.
In an embodiment, as shown in fig. 2, in step S30, each piece of sorted engineering cost data is processed by a block chain technique to obtain a data block chain, which specifically includes the following steps:
s31: and generating a corresponding block from each piece of engineering cost data by a block chain technology.
Specifically, each piece of engineering cost data is processed by adopting a corresponding block chain technology one by one to generate and obtain a corresponding block.
S32: and acquiring the first engineering cost data according to the sequence of each engineering cost data.
Specifically, the first project cost data, which is the first project cost data generated, is obtained according to the result of sorting each project cost data in step S20.
S33: the first piece of engineering cost data is used as the created block of the data block chain.
In this embodiment, the created block is a block corresponding to the first sub-cost data in the data block chain, and is also the first block in the data block chain.
S34: and sequencing the blocks according to the sequence of the adding time from front to back, and connecting each block by adding the adding time of the last block in each block to obtain a data block chain.
Specifically, after the blocks corresponding to each piece of engineering cost data are sorted according to the method of step S20, a chain structure is formed between the blocks by adding the adding time corresponding to the previous block to each block, and finally the data block chain is obtained.
In one embodiment, as shown in fig. 3, the step S31 of generating a corresponding block from each engineering cost data by using a block chain technique specifically includes the following steps:
s311: and calculating the hash value corresponding to the data content of each engineering cost data one by one through a hash algorithm.
In this embodiment, the hash algorithm is to convert an input (also called pre-mapped pre-image) of arbitrary length into an output of fixed length by a hash algorithm, and the output is a hash value.
Specifically, the data content of each project cost data is used as the input of the hash algorithm one by one. And obtaining the hash value corresponding to each piece of engineering cost data by the technology of the hash algorithm.
S312: and encrypting the hash values one by one through a private key in an asymmetric encryption algorithm to obtain corresponding blocks.
In this embodiment, the asymmetric encryption algorithm includes a private key and a public key, where the private key is different from the public key.
Specifically, the hash values obtained in step S321 are encrypted one by one using a private key of an asymmetric encryption algorithm to obtain corresponding blocks.
In an embodiment, as shown in fig. 4, in step S40, if a data viewing message triggered by a user is obtained, the method calls the engineering cost data from the data block chain, and specifically includes the following steps:
s41: the data viewing message comprises a data identifier, and if the data viewing message is obtained, the user identifier of the user is obtained.
In this embodiment, the data mark refers to a mark for distinguishing each piece of construction cost data.
Specifically, after the material viewing message is acquired, the user identifier of the user who triggered the material viewing message is acquired.
S42: and checking the authority of the user identifier, and if the user identifier passes the checking, acquiring the data identifier in the data checking message.
Specifically, the authority of the user identifier is checked, and whether the user identifier has the authority for checking the engineering cost data is checked. If the user identification has the authority of checking the engineering cost data, the user identification is judged to be checked to pass.
Further, the material identification in the material viewing message is obtained.
S43: and acquiring the corresponding block from the data block chain according to the data identifier.
Specifically, according to the data identifier, a block of the engineering cost data corresponding to the data identifier is obtained in a data block chain.
S44: and decrypting the block by using the public key of the asymmetric encryption algorithm to obtain the engineering cost data.
Specifically, the public key of the asymmetric encryption algorithm is used for decrypting the acquired block to obtain a hash value corresponding to the engineering cost data, and the corresponding engineering cost data is acquired through the hash value.
In one embodiment, as shown in fig. 5, after step S40, the method for managing construction cost data further includes the following steps:
s50: and if the project cost data adding message is obtained, obtaining the data adding content in the project cost data adding message.
In this embodiment, the information for adding the engineering cost data refers to the information that the new engineering cost data needs to be added to the data block chain.
Specifically, after the project cost data adding message is obtained, the added content of the new project cost data in the project cost data adding message is obtained.
S60: and calculating the adding hash value of the data adding content through a hash algorithm.
Specifically, the method in step S311 is adopted to calculate the added hash value of the material boundary content.
S70: and encrypting the added hash value by using a private key of an asymmetric encryption algorithm to obtain an added block.
Specifically, the method in step S312 is adopted, and the added hash value is encrypted by using the private key of the asymmetric encryption algorithm, so as to obtain the added block.
S80: the adding block is added to the data block chain by adding the adding time of the last block in the data block chain to the adding block.
Specifically, in the adding block, adding the adding block into the data block chain, forming a chain structure by the adding block and the data block chain at the corresponding adding time in the last block, and adding the adding block into the data block chain, namely updating the data adding content in the data block chain.
In one embodiment, a construction cost data management system is provided, which is in one-to-one correspondence with the construction cost data management method in the above embodiment. As shown in fig. 6, the project cost data management system includes a first obtaining module 10, a sorting module 20, a block chain processing module 30 and a second obtaining module 40. The functional modules are explained in detail as follows:
the first acquisition module 10 is used for acquiring the construction cost data, and each piece of construction cost data comprises data content and corresponding adding time;
the sorting module 20 is used for sorting each piece of engineering cost data according to the sequence of adding time from front to back;
a block chain processing module 30, configured to process each sorted engineering cost data by a block chain technology to obtain a data block chain;
and the second obtaining module 40 is configured to, if a data viewing message triggered by a user is obtained, retrieve the engineering cost data from the data block chain.
Preferably, the block chain processing module 30 includes:
the block generation submodule 31 is used for generating a corresponding block from each piece of engineering cost data through a block chain technology;
a first obtaining submodule 32, configured to obtain a first piece of engineering cost data according to an order of each piece of engineering cost data;
a created block generation sub-module 33 for using the first engineering cost data as a created block of the data block chain;
the sorting submodule 34 is configured to sort the blocks according to the order from the front to the back of the adding time, and connect each block by adding the adding time of the previous block to each block, so as to obtain a data block chain.
Preferably, the block generation submodule 31 includes:
a calculating unit 311, configured to calculate hash values corresponding to the data contents of each engineering cost data one by one through a hash algorithm;
the encryption unit 312 is configured to encrypt the hash values one by one through a private key in the asymmetric encryption algorithm to obtain corresponding blocks.
Preferably, the second obtaining module 40 includes:
the second obtaining sub-module 41 is configured to obtain a user identifier of the user when the data viewing message includes the data identifier;
the checking submodule 42 is used for checking the authority of the user identifier, and acquiring the data identifier in the data checking message if the user identifier passes the checking;
a third obtaining sub-module 43, configured to obtain a corresponding block from the data block chain according to the data identifier;
and a decryption submodule 44, configured to decrypt the block using the public key of the asymmetric encryption algorithm to obtain the engineering cost data.
Preferably, the construction cost data management system further comprises:
a third obtaining module 50, configured to obtain the data addition content in the project cost data addition message if the project cost data addition message is obtained;
a calculating module 60, configured to calculate an adding hash value of the data adding content through a hash algorithm;
the encryption module 70 is configured to encrypt the added hash value by using a private key of an asymmetric encryption algorithm to obtain an added block;
the adding module 80 is configured to add the adding block to the data block chain by adding the adding time of the last block in the data block chain to the adding block.
For the specific limitations of the construction cost data management system, reference may be made to the above limitations of the construction cost data management method, which will not be described herein again. All the modules in the engineering cost data management system can be completely or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
The embodiments of the present invention are all preferred embodiments of the present invention, and the scope of the present invention is not limited thereby, so: all equivalent changes made according to the structure, shape and principle of the invention are covered by the protection scope of the invention.
Claims (4)
1. A project cost data management method is characterized in that the project cost data management method comprises the following steps:
acquiring project cost data, wherein each project cost data comprises data content, corresponding adding time and a data identifier;
sequencing each part of the engineering cost data according to the sequence of the adding time from front to back;
calculating the hash value corresponding to the data content of each piece of the construction cost data one by one through a hash algorithm for each piece of the construction cost data after being sorted;
encrypting the hash values one by one through a private key in an asymmetric encryption algorithm to obtain corresponding blocks;
acquiring the first part of the engineering cost data according to the sequence of each part of the engineering cost data; using the first part of the engineering cost data as a created block of the data block chain; sequencing the blocks according to the sequence of the adding time from front to back, and connecting each block by adding the adding time of the last block in each block to obtain a data block chain;
if a data viewing message triggered by a user is acquired, the data viewing message comprises the data identifier;
acquiring a user identifier of the user when the data viewing message is acquired;
verifying the authority of the user identifier, and if the user identifier passes the verification, acquiring the data identifier in the data viewing message;
acquiring a corresponding block from the data block chain according to the data identification;
and decrypting the block by using a public key of an asymmetric encryption algorithm to obtain the engineering cost data.
2. The project cost data management method according to claim 1, wherein the project cost data management method further comprises:
if the project cost data adding message is obtained, obtaining the data adding content in the project cost data adding message;
calculating an adding hash value of the data adding content through a hash algorithm;
encrypting the added hash value by using a private key of an asymmetric encryption algorithm to obtain an added block;
and adding the adding block into the data block chain in a mode of adding the adding time of the last block in the data block chain into the adding block.
3. A project cost data management system, characterized in that the project cost data management system comprises:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring construction cost data, and each piece of construction cost data comprises data content and corresponding adding time;
the sorting module is used for sorting each piece of the engineering cost data according to the sequence of the adding time from front to back;
a blockchain processing module comprising:
the block generation submodule is used for generating a corresponding block from each piece of the engineering cost data through a block chain technology;
the block generation submodule includes:
the calculation unit is used for calculating the hash value corresponding to the data content of each engineering cost data one by one through a hash algorithm;
the encryption unit is used for encrypting the hash values one by one through a private key in an asymmetric encryption algorithm to obtain the corresponding blocks;
the first acquisition submodule is used for acquiring the foremost part of the engineering cost data according to the sequence of each part of the engineering cost data;
the created block generation submodule is used for taking the most previous piece of the engineering cost data as a created block of the data block chain;
the sorting submodule is used for sorting the blocks according to the sequence from the front to the back of the adding time, and connecting each block in a mode of adding the adding time of the previous block in each block to obtain the data block chain;
the second acquisition module is used for acquiring the project cost data from the data block chain if acquiring a data viewing message triggered by a user;
the second acquisition module includes:
the second obtaining sub-module is used for obtaining the user identification of the user if the data viewing message is obtained;
the verification submodule is used for verifying the authority of the user identifier, and if the user identifier passes the verification, the data identifier in the data checking message is acquired;
a third obtaining sub-module, configured to obtain a corresponding block from the data block chain according to the data identifier;
and the decryption submodule is used for decrypting the block by using a public key of an asymmetric encryption algorithm to obtain the engineering cost data.
4. The construction cost data management system according to claim 3, wherein the construction cost data management system further comprises:
the third acquisition module is used for acquiring the data addition content in the project cost data addition message if the project cost data addition message is acquired;
the calculation module is used for calculating an adding hash value of the data adding content through a hash algorithm;
the encryption module is used for encrypting the added hash value by using a private key of an asymmetric encryption algorithm to obtain an added block;
and the adding module is used for adding the adding block into the data block chain in a mode of adding the adding time of the last block in the data block chain into the adding block.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811459985.9A CN109697188B (en) | 2018-11-30 | 2018-11-30 | Engineering cost data management method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811459985.9A CN109697188B (en) | 2018-11-30 | 2018-11-30 | Engineering cost data management method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109697188A CN109697188A (en) | 2019-04-30 |
CN109697188B true CN109697188B (en) | 2023-02-10 |
Family
ID=66230356
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811459985.9A Active CN109697188B (en) | 2018-11-30 | 2018-11-30 | Engineering cost data management method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109697188B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110335020A (en) * | 2019-07-03 | 2019-10-15 | 广东至衡工程管理有限公司 | Cost Data management method and system |
CN110610318B (en) * | 2019-09-18 | 2020-09-22 | 金润方舟科技股份有限公司 | Engineering cost management system based on big data |
CN110880069A (en) * | 2019-11-12 | 2020-03-13 | 深圳市建筑科学研究院股份有限公司 | Engineering settlement traceability method and device based on block chain technology |
CN111476425A (en) * | 2020-04-15 | 2020-07-31 | 中道明华建设工程项目咨询有限责任公司 | Engineering project cost progress supervision system and method |
CN111553633A (en) * | 2020-04-25 | 2020-08-18 | 达信建设发展有限公司 | Engineering cost management system and method |
CN112699182A (en) * | 2020-12-30 | 2021-04-23 | 广西信达友邦工程造价咨询有限责任公司 | Engineering cost data management system |
CN112669082B (en) * | 2020-12-31 | 2023-07-18 | 大为国际工程咨询有限公司 | Construction cost analysis method and system for reducing repeated workload |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11138827B2 (en) * | 2016-09-15 | 2021-10-05 | Simpsx Technologies Llc | Implementations of a computerized business transaction exchange for various users |
CN107785073A (en) * | 2017-01-22 | 2018-03-09 | 平安医疗健康管理股份有限公司 | Medical examination result-sharing methods, devices and systems based on block chain |
US10135607B1 (en) * | 2017-08-11 | 2018-11-20 | Dragonchain, Inc. | Distributed ledger interaction systems and methods |
CN107870996A (en) * | 2017-11-02 | 2018-04-03 | 国家电网公司 | Electricity transaction management-control method and device based on block chain |
-
2018
- 2018-11-30 CN CN201811459985.9A patent/CN109697188B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN109697188A (en) | 2019-04-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109697188B (en) | Engineering cost data management method and system | |
CN111080295B (en) | Electronic contract processing method and device based on blockchain | |
WO2019237570A1 (en) | Electronic contract signing method, device and server | |
US10992481B2 (en) | Two-dimensional code generation method, apparatus, data processing method, apparatus, and server | |
JP3281881B2 (en) | A way to reliably stamp timestamps on numeric documents. | |
CN109726571B (en) | Electronic signature method and device for document, storage medium and electronic equipment | |
US11509483B2 (en) | Generating electronic signatures | |
CN108989339B (en) | Ciphertext encryption method, system and storage medium with strategy hiding function | |
CN110597836B (en) | Information inquiry request response method and device based on block chain network | |
CN110851843A (en) | Data management method and device based on block chain | |
CN113610526A (en) | Data trust method and device, electronic equipment and storage medium | |
CN113420049B (en) | Data circulation method, device, electronic equipment and storage medium | |
CN111404892B (en) | Data supervision method and device and server | |
CN113704357A (en) | Smart city data sharing method and system based on block chain | |
CN112800477A (en) | Data encryption and decryption system and method based on biological characteristic value | |
US20150286843A1 (en) | Method and system for modular digital watermarking of electronic files | |
CA2986828C (en) | Data recording method, device and system, and computer storage medium | |
CN114386058A (en) | Model file encryption and decryption method and device | |
CN107133517B (en) | Data recovery method based on data encryption and calculation in memory | |
JP2008035019A (en) | Digital signature device | |
CN116204903A (en) | Financial data security management method and device, electronic equipment and storage medium | |
CN110830252B (en) | Data encryption method, device, equipment and storage medium | |
CN114117388A (en) | Device registration method, device registration apparatus, electronic device, and storage medium | |
JP2013157777A (en) | Information processing system and information processing method | |
WO2016172986A1 (en) | Data authentication method, device and system, and computer storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |