Grain purchase and sale supervision data reporting method and system, storage medium and electronic equipment

By preprocessing, verifying, encrypting, and compressing grain purchase and sales supervision data, the problem of data transmission security was solved, enabling secure, complete, and real-time data upload and constructing a complete data chain.

CN117914548BActive Publication Date: 2026-01-09AISINO CORPORATION
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311816154.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-27
Publication Date
2026-01-09
Estimated Expiration
2043-12-27

AI Technical Summary

Technical Problem

The existing grain purchase and sale supervision data lacks encryption protection during transmission, posing security risks and affecting information security.

Method used

Data security is ensured through preprocessing, verification, encryption, compression, and uploading steps, including preprocessing based on interface standards, verification according to verification rules, modification and supplementation, encryption according to encryption rules, compression according to compression rules, and uploading through a secure channel.

Benefits of technology

It ensures the security, integrity, and real-time performance of grain purchase and sale supervision data during transmission, reduces data transfers, and provides a complete data chain.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117914548B_ABST
    Figure CN117914548B_ABST
Patent Text Reader

Abstract

The application discloses a grain purchase and sale supervision data reporting method and system, a storage medium and electronic equipment, and relates to the technical field of data reporting. The method comprises the following steps: based on a preset interface standard, preprocessing grain purchase and sale supervision data to be reported in a database; according to a preset verification rule, verifying the preprocessed grain purchase and sale supervision data; according to a preset modification and supplementary recording rule, supplementally recording the grain purchase and sale supervision data that fails to pass the verification until the grain purchase and sale supervision data passes the verification; performing the next operation on the grain purchase and sale supervision data that passes the verification; according to a preset encryption rule, performing encryption processing on the grain purchase and sale supervision data that passes the verification; according to a preset compression rule, performing compression processing on the grain purchase and sale supervision data that is subjected to the encryption processing, and uploading the grain purchase and sale supervision data that is subjected to the compression processing to a superior supervision platform through a pre-built safe channel.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of data reporting, and more particularly, to a grain purchase and sale supervision data reporting method, system, storage medium and electronic device. BACKGROUND

[0002] Grain safety is related to the people's livelihood, and ensuring the safe supply of grain is always the top priority in building a powerful agricultural country. With the construction of information systems in grain depots across the country coming to an end, uploading business data generated by the grain depot system to provincial and national platforms in real time and completeness has become a new focus of work for grain depots. Relying on the grain purchase and sale supervision data reporting system, the business system in the depot area can be seamlessly connected, automatically checked, and grain purchase and sale supervision data can be uploaded to the superior supervision platform in real time, so as to build a good grain trading order and ensure grain safety.

[0003] In the existing grain purchase and sale supervision data reporting process, the plain text transmission method is usually used, that is, the grain purchase and sale supervision data is transmitted in its original form without any encryption protection measures. However, this transmission method has a high security risk, and once the information is intercepted or stolen, it will pose a serious threat to information security. Therefore, how to improve the security, integrity and confidentiality of grain purchase and sale supervision data during transmission has become a problem to be solved. SUMMARY

[0004] In order to solve at least one problem described in the background, the present application provides a grain purchase and sale supervision data reporting method, system, storage medium and electronic device.

[0005] According to one aspect of the present application, a grain purchase and sale supervision data reporting method is provided, comprising:

[0006] Based on the preset interface standard, the grain purchase and sale supervision data to be reported in the database is preprocessed;

[0007] According to the preset verification rule, the preprocessed grain purchase and sale supervision data is verified;

[0008] According to the preset modification and supplement rule, the grain purchase and sale supervision data that does not pass the verification is supplemented until it passes the verification; the grain purchase and sale supervision data that passes the verification is executed for the next operation;

[0009] According to the preset encryption rule, the grain purchase and sale supervision data that passes the verification is encrypted;

[0010] According to the preset compression rule, the encrypted grain purchase and sale supervision data is compressed, and the compressed grain purchase and sale supervision data is uploaded to the superior supervision platform through the pre-built secure channel.

[0011] Optionally, the pre-processing of the grain purchase and sale supervision data to be reported in the database based on the preset interface standard comprises:

[0012] The grain purchase and sale supervision data to be reported in the database is classified based on the preset interface standard, and the category of the grain purchase and sale supervision data is determined.

[0013] The grain purchase and sale supervision data to be reported is organized by view according to the category.

[0014] Optionally, the pre-processing of the grain purchase and sale supervision data to be reported in the database based on the preset interface standard comprises:

[0015] The pre-processed grain purchase and sale supervision data is subjected to integrity check to determine whether the grain purchase and sale supervision data meets the preset completeness threshold.

[0016] If the preset completeness threshold is met, the grain purchase and sale supervision data is subjected to validity check; if the preset completeness threshold is not met, the grain purchase and sale supervision data that fails the check is subjected to supplementary recording until the grain purchase and sale supervision data passes the integrity check and is subjected to validity check.

[0017] Optionally, the pre-processing of the grain purchase and sale supervision data to be reported in the database based on the preset interface standard comprises:

[0018] According to the type of the grain purchase and sale supervision data that passes the check, a corresponding encryption algorithm is selected from a plurality of preset encryption algorithms as a target encryption algorithm.

[0019] The grain purchase and sale supervision data that passes the check is subjected to encryption processing using the target encryption algorithm.

[0020] Optionally, the pre-processing of the grain purchase and sale supervision data to be reported in the database based on the preset interface standard comprises:

[0021] According to the type of the grain purchase and sale supervision data that passes the check, a corresponding encryption algorithm is selected from a plurality of preset encryption algorithms as a target encryption algorithm.

[0022] The grain purchase and sale supervision data that passes the check is subjected to encryption processing using the target encryption algorithm.

[0023] Optionally, before the compressed grain purchase and sale supervision data is uploaded to the upper-level supervision platform through the pre-built secure channel, the method further comprises:

[0024] The public key information of the upper-level supervision platform is obtained.

[0025] The compressed grain purchase and sale supervision data is subjected to secondary encryption using the public key information of the upper-level supervision platform to form a ciphertext file.

[0026] The ciphertext file is uploaded to the upper-level supervision platform through the pre-built secure channel.

[0027] Optionally, after the compressed grain purchase and sale supervision data is uploaded to the upper-level supervision platform through the pre-built secure channel, the method further comprises:

[0028] The grain purchase and sale supervision data uploaded to the upper-level supervision platform is subjected to hash calculation to obtain a corresponding first hash value;

[0029] The upload record data of the grain purchase and sale supervision data uploaded to the upper-level supervision platform is obtained, and the upload record data is subjected to hash calculation to obtain a corresponding second hash value;

[0030] The first hash value and the second hash value are subjected to fusion processing to obtain a third hash value;

[0031] The third hash value is uploaded to a block chain for traceability.

[0032] According to another aspect of the present application, a grain purchase and sale supervision data reporting system is provided, comprising:

[0033] A preprocessing module is configured to preprocess grain purchase and sale supervision data to be reported in a database based on a preset interface standard;

[0034] A verification module is configured to verify the preprocessed grain purchase and sale supervision data according to a preset verification rule;

[0035] A modification and supplement module is configured to supplement the grain purchase and sale supervision data that fails to pass the verification according to a preset modification and supplement rule until the grain purchase and sale supervision data passes the verification, and perform a next operation on the grain purchase and sale supervision data that passes the verification;

[0036] An encryption module is configured to encrypt the grain purchase and sale supervision data that passes the verification according to a preset encryption rule;

[0037] An upload module is configured to compress the encrypted grain purchase and sale supervision data according to a preset compression rule, and upload the compressed grain purchase and sale supervision data to an upper-level supervision platform through a pre-built secure channel.

[0038] The application firstly pre-processes the grain purchase and sale supervision data to be reported in the database based on a preset interface standard. Then, the pre-processed grain purchase and sale supervision data is checked according to a preset checking rule. Secondly, the grain purchase and sale supervision data that does not pass the checking is supplemented according to a preset modification and supplement rule until it passes the checking; the grain purchase and sale supervision data that passes the checking is subjected to next operation. Thirdly, the grain purchase and sale supervision data that passes the checking is subjected to encryption processing according to a preset encryption rule. Finally, the grain purchase and sale supervision data subjected to the encryption processing is subjected to compression processing according to a preset compression rule, and the grain purchase and sale supervision data subjected to the compression processing is uploaded to the superior supervision platform through the pre-built safe channel. Thus, the grain purchase and sale supervision data can be uploaded to the superior supervision platform in real time, the data integrity, real-time performance and safety are ensured, the data transfer is reduced, and complete data chain is provided for the subsequent provincial supervision department. BRIEF DESCRIPTION OF DRAWINGS

[0039] The exemplary embodiments of the present application can be more fully understood with reference to the following drawings:

[0040] Figure 1 FIG. 1 is a flowchart of a grain purchase and sale supervision data reporting method provided by an exemplary embodiment of the present application;

[0041] Figure 2 FIG. 2 is a structural diagram of a grain purchase and sale supervision data reporting system provided by an exemplary embodiment of the present application;

[0042] Figure 3 FIG. 3 is a structure of an electronic device provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0043] Hereinafter, exemplary embodiments according to the present application will be described in detail with reference to the accompanying drawings. It should be understood that the exemplary embodiments described herein are merely some of the embodiments of the present application, but not all of the embodiments of the present application. It should be understood that the present application is not limited by the exemplary embodiments described herein.

[0044] It should be noted that: the relative arrangement, numerical expression and values of the components and steps set forth in these embodiments do not limit the scope of the present application, unless otherwise specified.

[0045] Figure 1 FIG. 1 is a flowchart of a grain purchase and sale supervision data reporting method provided by an exemplary embodiment of the present application. As shown in FIG. 1, the grain purchase and sale supervision data reporting method comprises: Figure 1

[0046] Step S101: pre-processing the grain purchase and sale supervision data to be reported in the database based on a preset interface standard;

[0047] ​Optionally, the pre-processing of the grain purchase and sale supervision data to be reported in the database based on the preset interface standard comprises: classifying the grain purchase and sale supervision data to be reported in the database based on the preset interface standard, and determining the category of the grain purchase and sale supervision data; and organizing the grain purchase and sale supervision data to be reported through a view according to the category.

[0048] In the embodiment of the present application, the data is organized through a view in the database according to the preset interface standard. Specifically, the interface standard selects the standard of the national grain purchase and sale interface, and then classifies the data according to the different data types, so as to organize the data to be reported through a view for the user to view.

[0049] Step S102: verifying the pre-processed grain purchase and sale supervision data according to the preset verification rule;

[0050] Optionally, the verification of the pre-processed grain purchase and sale supervision data according to the preset verification rule comprises: performing integrity verification on the pre-processed grain purchase and sale supervision data, judging whether the grain purchase and sale supervision data meets the preset completeness threshold; if the preset completeness threshold is met, performing validity verification on the grain purchase and sale supervision data; if the preset completeness threshold is not met, supplementing the grain purchase and sale supervision data that fails to pass the verification until the grain purchase and sale supervision data passes the integrity verification and then the validity verification.

[0051] In the embodiment of the present application, in order to ensure the integrity of the data reported to the superior supervision platform, the data needs to be preliminarily intercepted and checked for completion, and if the verification rule is not met, the error data is returned. Specifically, the original data is subjected to integrity verification; it is judged whether the original data meets the preset completeness threshold; if the preset completeness threshold is met, the original data is subjected to validity verification, and the original data that passes the validity verification is stored, and the original data that fails to pass the completeness verification is transmitted to a modification and supplement module. When the next time the supplemented data is received, the supplemented data is subjected to integrity verification and validity verification again.

[0052] Step S103: supplementing the grain purchase and sale supervision data that fails to pass the verification according to the preset modification and supplement rule until the verification is passed; and performing the next operation on the grain purchase and sale supervision data that passes the verification;

[0053] Step S104: performing encryption processing on the grain purchase and sale supervision data that passes the verification according to the preset encryption rule;

[0054] Optionally, the encrypting the grain purchase and sale supervision data that passes the check according to the preset encryption rule comprises: selecting a corresponding encryption algorithm as a target encryption algorithm from a plurality of preset encryption algorithms according to a type of the grain purchase and sale supervision data that passes the check; and encrypting the grain purchase and sale supervision data that passes the check by using the target encryption algorithm.

[0055] In the embodiment of the present application, the record upload log is added to the data that passes the interception check. Specifically, the data that passes the interception check is encrypted. The type of the data that passes the interception check is determined first, and then an encryption algorithm is selected as a target encryption algorithm from a plurality of preset encryption algorithms according to the type, and the data that passes the interception check is encrypted by using the target encryption algorithm. The plurality of preset encryption algorithms comprise a symmetric encryption algorithm or an asymmetric encryption algorithm. The symmetric encryption algorithm can use AES, DES, 3DES, etc., and the asymmetric encryption algorithm can use RSA, ECC, etc.

[0056] Step S105: compressing the grain purchase and sale supervision data after the encryption according to a preset compression rule, and uploading the grain purchase and sale supervision data after the compression to the upper supervision platform through the pre-built secure channel.

[0057] Optionally, the compressing the grain purchase and sale supervision data after the encryption according to the preset compression rule comprises: selecting a corresponding compression algorithm as a target compression algorithm from a plurality of preset compression algorithms according to a type of the grain purchase and sale supervision data after the encryption; and compressing the grain purchase and sale supervision data after the encryption by using the target compression algorithm.

[0058] In the embodiment of the present application, the data after the encryption is compressed to form a compressed file. Meanwhile, in order to prevent the information from being intercepted or stolen, the public key information of the upper supervision platform can also be used to encrypt the compressed file again to form a ciphertext file. In addition, when the ciphertext file is sent, a secure channel can be established by using SSL / TLS, etc., to ensure the safety of the information transmission.

[0059] Optionally, before the grain purchase and sale supervision data after the compression is uploaded to the upper supervision platform through the pre-built secure channel, the method further comprises: obtaining the public key information of the upper supervision platform; encrypting the grain purchase and sale supervision data after the compression again by using the public key information of the upper supervision platform to form a ciphertext file; and uploading the ciphertext file to the upper supervision platform through the pre-built secure channel.

[0060] In the embodiment of the present application, in order to prevent the information from being intercepted or stolen, the public key information of the upper supervision platform can also be used to encrypt the compressed file again to form a ciphertext file.

[0061] Optionally, after the compressed grain purchase and sale supervision data is uploaded to the upper supervision platform through the pre-built secure channel, the method further comprises: performing hash calculation on the grain purchase and sale supervision data uploaded to the upper supervision platform to obtain a corresponding first hash value; obtaining upload record data of the grain purchase and sale supervision data uploaded to the upper supervision platform, and performing hash calculation on the upload record data to obtain a corresponding second hash value; performing fusion processing on the first hash value and the second hash value to obtain a third hash value; and uploading the third hash value to the blockchain for tracing.

[0062] In the embodiment of the application, after the compressed grain purchase and sale supervision data is uploaded to the upper supervision platform through the pre-built secure channel, the complete upload record of the data needs to be formed for tracing. Then, the data to be reported is subjected to hash calculation to obtain the hash value corresponding to the data. The upload record is also subjected to hash calculation to obtain the hash value corresponding to the upload record. The hash values of the two are fused to obtain a new hash value, and the hash value is uploaded to the blockchain.

[0063] The application organizes upload immediately when data occurs, reduces data upload delay, uniformly collects data that fails to be uploaded, and performs secondary modification and supplementary recording and uploading. After the uploading is completed, the complete upload chain record of the data is formed and stored in the blockchain, facilitating tracing.

[0064] To sum up, the application first pre-processes the grain purchase and sale supervision data to be reported in the database based on the preset interface standard. Then, the pre-processed grain purchase and sale supervision data is verified according to the preset verification rule. Secondly, the grain purchase and sale supervision data that fails to pass the verification is supplemented according to the preset modification and supplementary recording rule until it passes the verification; the grain purchase and sale supervision data that passes the verification is subjected to the next operation. Thirdly, the grain purchase and sale supervision data that passes the verification is subjected to encryption processing according to the preset encryption rule. Finally, the encrypted grain purchase and sale supervision data is subjected to compression processing according to the preset compression rule, and the compressed grain purchase and sale supervision data is uploaded to the upper supervision platform through the pre-built secure channel. Thus, the grain purchase and sale supervision data can be uploaded to the upper supervision platform in real time, the data integrity, real-time performance and security are ensured, data transfer is reduced, and complete data chain is provided for subsequent provincial supervision departments.

[0065] Exemplary system

[0066] Figure 2 is a structural schematic diagram of a grain purchase and sale supervision data reporting system provided by an exemplary embodiment of the application. As shown in Figure 2 , the system 200 comprises:

[0067] The preprocessing module 210 is configured to preprocess the grain purchase and sale supervision data to be reported in the database based on a preset interface standard;

[0068] The checking module 220 is configured to check the preprocessed grain purchase and sale supervision data according to a preset checking rule;

[0069] The modification and supplement module 230 is configured to supplement the grain purchase and sale supervision data that fails to pass the checking according to a preset modification and supplement rule until the grain purchase and sale supervision data passes the checking, and perform a next operation on the grain purchase and sale supervision data that passes the checking;

[0070] The encryption module 240 is configured to perform encryption processing on the grain purchase and sale supervision data that passes the checking according to a preset encryption rule;

[0071] The uploading module 250 is configured to perform compression processing on the grain purchase and sale supervision data that is subjected to the encryption processing according to a preset compression rule, and upload the grain purchase and sale supervision data that is subjected to the compression processing to a superior supervision platform through a pre-built secure channel.

[0072] The grain purchase and sale supervision data reporting system of the embodiment of the present application corresponds to the grain purchase and sale supervision data reporting method of another embodiment of the present application, and will not be described here.

[0073] Exemplary electronic device

[0074] Figure 3 is a structure of an electronic device provided by an exemplary embodiment of the present application. As shown in Figure 3 The electronic device 30 includes one or more processors 31 and a memory 32.

[0075] The processor 31 can be a central processing unit (CPU) or other forms of processing units having data processing capability and / or instruction execution capability, and can control other components in the electronic device to perform desired functions.

[0076] The memory 32 can include one or more computer program products that can include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory, for example, can include random access memory (RAM), cache memory, and / or the like. The non-volatile memory, for example, can include read only memory (ROM), hard disk, flash memory, and / or the like. One or more computer program instructions can be stored on the computer-readable storage media, and the processor 31 can execute the program instructions to implement the method of information mining on the history change record of the software program of the various embodiments of the present application and / or other desired functions described above. In one example, the electronic device can further include an input device 33 and an output device 34, which are interconnected through a bus system and / or other forms of connection mechanism (not shown).

[0077] In addition, the input device 33 can include, for example, a keyboard, a mouse, and / or the like.

[0078] The output device 34 can output various information to the outside. The output device 34 can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, and / or the like.

[0079] Of course, in order to simplify, Figure 3 Only some of the components of the electronic device related to the present application are shown in FIG. 1, and components such as a bus, an input / output interface, and / or the like are omitted. In addition, the electronic device can include any other appropriate components according to the specific application.

[0080] Exemplary computer program product and computer readable storage medium

[0081] In addition to the above-mentioned method and device, embodiments of the present application can be a computer program product including computer program instructions that, when executed by a processor, cause the processor to perform the steps of the method according to various embodiments of the present application described in the above "Exemplary Method" section of the specification.

[0082] The computer program product can be written in any combination of one or more programming languages, including an object-oriented programming language such as Java, C++, and / or the like, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, as a stand-alone software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0083] In addition, an embodiment of the present application can also be a computer-readable storage medium, having stored thereon computer program instructions, which, when executed by a processor, cause the processor to perform the steps of the method described in the above “Exemplary Method” section of the specification for information mining on historical change records according to various embodiments of the present application.

[0084] The computer-readable storage medium can take the form of one or more combinations of any type of readable media. The readable media can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, system, or device, or any suitable combination thereof. More specific examples (a non-exhaustive list) of the readable storage medium include an electrical connection having one or more wires, a portable disc, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.

[0085] The above describes the basic principles of the present application in combination with specific embodiments, but it should be noted that the advantages, benefits, effects, etc. mentioned in the present application are only examples and are not limiting, and these advantages, benefits, effects, etc. cannot be considered as necessary for each embodiment of the present application. In addition, the above specific details are only for the purpose of example and for the purpose of understanding, and the above details do not limit the present application to the above specific details.

[0086] Each embodiment in the specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between each embodiment can be understood by mutual reference. For system embodiments, since they basically correspond to method embodiments, the description is relatively simple, and the relevant parts can be understood by referring to the part of the method embodiment.

[0087] The block diagrams of the devices, systems, apparatuses, systems involved in the present application are only illustrative examples and are not intended to require or imply that the connections, arrangements, configurations must be as shown in the block diagrams. As those skilled in the art will recognize, these devices, systems, apparatuses, systems can be connected, arranged, configured in any manner. Words such as “include”, “contain”, “have”, etc. are open-ended words, mean “include but not limited to”, and can be used interchangeably. The words “or” and “and” used herein mean the word “and / or”, and can be used interchangeably unless the context clearly indicates otherwise. The word “such as” used herein means the phrase “such as but not limited to”, and can be used interchangeably.

[0088] The methods and systems of the present application can be implemented in a number of ways. For example, the methods and systems of the present application can be implemented via software, hardware, firmware, or any combination of software, hardware, and firmware. The above described order of steps for the methods is merely illustrative, and the steps of the methods of the present application are not limited to the order specifically described above unless otherwise specifically stated. Furthermore, in some embodiments, the present application can also be implemented as a program recorded on a recording medium, which includes machine readable instructions for implementing the methods according to the present application. Thus, the present application also covers recording media storing programs for executing the methods according to the present application.

[0089] It is also important to note that the systems, devices and methods of the present application can be embodied in a variety of forms without departing from the spirit of the application. Specifically, the systems, devices and methods of the present application can be implemented using hardware, software, firmware, or any combination thereof. In some embodiments, the systems, devices and methods of the present application can be implemented as computer programs or program code containing instructions for implementing the methods of the present application. It will be appreciated that such computer programs or program code can be implemented in a plurality of forms, including, but not limited to, a prior art programming language, such as assembly language, a higher level procedural language such as C, or higher level object oriented language such as C++. Additionally, it will be appreciated that the present application can be implemented as a program or programs stored on a recording medium, which includes machine readable instructions for implementing the methods according to the present application.

[0090] The above description is given for the purpose of illustration and description. It is not intended to limit the embodiments of the present application to the form described. Although various example aspects and embodiments have been discussed, those skilled in the art will recognize that certain modifications, substitutions, changes, additions and rearrangements are possible, without departing from the scope and spirit of the application.

Claims

1. A grain purchase and sale supervision data reporting method, characterized in that, The method comprises the following steps: Based on the preset interface standard, the grain purchase and sale supervision data to be reported in the database is preprocessed; According to the preset verification rule, the preprocessed grain purchase and sale supervision data is verified; According to the preset modification and supplement rule, the grain purchase and sale supervision data that does not pass the verification is supplemented until the grain purchase and sale supervision data passes the verification; The grain purchase and sale supervision data that passes the verification is executed for the next operation; According to the preset encryption rule, the grain purchase and sale supervision data that passes the verification is encrypted; According to the preset compression rule, the encrypted grain purchase and sale supervision data is compressed, and the compressed grain purchase and sale supervision data is uploaded to the upper supervision platform through the pre-built security channel; After the compressed grain purchase and sale supervision data is uploaded to the upper supervision platform through the pre-built security channel, the method further comprises the following steps: The grain purchase and sale supervision data uploaded to the upper supervision platform is subjected to hash calculation to obtain a corresponding first hash value; The upload record data of the grain purchase and sale supervision data uploaded to the upper supervision platform is obtained, and the upload record data is subjected to hash calculation to obtain a corresponding second hash value; The first hash value and the second hash value are fused to obtain a third hash value; The third hash value is uploaded to the block chain for tracing.

2. The method of claim 1, wherein, The method comprises the following steps: Based on the preset interface standard, the grain purchase and sale supervision data to be reported in the database is preprocessed, which comprises the following steps: Based on the preset interface standard, the grain purchase and sale supervision data to be reported in the database is classified to determine the category of the grain purchase and sale supervision data; 3. The method of claim 1, wherein, The grain purchase and sale supervision data to be reported is organized by view according to the category. The method comprises the following steps: The preprocessed grain purchase and sale supervision data is subjected to integrity verification to determine whether the grain purchase and sale supervision data meets the preset completeness threshold; 4. The method of claim 1, wherein, If the preset completeness threshold is met, the grain purchase and sale supervision data is subjected to validity verification; if the preset completeness threshold is not met, the grain purchase and sale supervision data that does not pass the verification is supplemented until the grain purchase and sale supervision data passes the integrity verification and is subjected to validity verification. The method comprises the following steps: According to the type of the grain purchase and sale supervision data that passes the verification, a corresponding encryption algorithm is selected from the preset multiple encryption algorithms as a target encryption algorithm; 5. The method of claim 1, wherein, The grain purchase and sale supervision data that passes the verification is encrypted by using the target encryption algorithm. The method comprises the following steps: According to the type of the grain purchase and sale supervision data that passes the encryption processing, a corresponding compression algorithm is selected from the preset multiple compression algorithms as a target compression algorithm; 6. The method of claim 1, wherein, The grain purchase and sale supervision data that passes the encryption processing is compressed by using the target compression algorithm. The method further comprises the following steps before the compressed grain purchase and sale supervision data is uploaded to the upper supervision platform through the pre-built security channel: The public key information of the upper supervision platform is obtained; The compressed grain purchase and sale supervision data is secondarily encrypted using the public key information of the upper supervision platform to form a ciphertext file; The ciphertext file is uploaded to the upper supervision platform through the pre-built secure channel.

7. A grain marketing regulatory data reporting system characterized by, The method comprises the following steps: A preprocessing module is configured to preprocess the grain purchase and sale supervision data to be reported in the database based on a preset interface standard; A verification module is configured to verify the preprocessed grain purchase and sale supervision data according to a preset verification rule; A modification and supplement module is configured to supplement the grain purchase and sale supervision data that fails to pass the verification according to a preset modification and supplement rule until the data passes the verification; The grain purchase and sale supervision data that passes the verification is subjected to the next operation; An encryption module is configured to encrypt the grain purchase and sale supervision data that passes the verification according to a preset encryption rule; An uploading module is configured to compress the encrypted grain purchase and sale supervision data according to a preset compression rule, and upload the compressed grain purchase and sale supervision data to the upper supervision platform through the pre-built secure channel; The grain purchase and sale supervision data uploaded to the upper supervision platform is subjected to hash calculation to obtain a corresponding first hash value; The uploading record data of the grain purchase and sale supervision data uploaded to the upper supervision platform is obtained, and the uploading record data is subjected to hash calculation to obtain a corresponding second hash value; The first hash value and the second hash value are fused to obtain a third hash value; The third hash value is uploaded to a block chain for traceability.

8. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, and the computer program is used to execute the method in any one of claims 1-6.

9. An electronic device, comprising: The electronic device comprises: a processor; a memory for storing executable instructions of the processor; the processor is configured to read the executable instructions from the memory and execute the instructions to implement the method in any one of claims 1-6.

Citation Information

Patent Citations

  • Method and device for long-term safe lossless storage and restoration of digital resources

    CN116738450A

  • Power generation field-oriented data standardization treatment method and system

    CN117076863A