Traditional Chinese medicinal material supply chain transparent management method based on block chain driving

Through blockchain technology, information logs are queried and data comparison is performed in the supply chain of traditional medicinal materials, reliable storage nodes are selected, which solves the problem of inconsistency in information in the traditional supply chain, and realizes synchronization of information acquisition and improvement of query efficiency.

CN119988397AActive Publication Date: 2025-05-13BEIJING ZHONGKENDAODI TRADITIONAL CHINESE MEDICINE TECHNOLOGY CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510111543.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-23
Publication Date
2025-05-13
Estimated Expiration
2045-01-23

AI Technical Summary

Technical Problem

In the traditional Chinese medicinal materials supply chain, suppliers and buyers have inconsistent information when querying cargo logistics and other related information, which affects the increase in communication costs and the accuracy and timeliness of business decisions.

Method used

Through blockchain technology, query information logs to obtain query data from traditional Chinese medicine suppliers and buyers, filter out the supply query table and procurement query table, and perform overlapping comparisons to obtain the overlapping query sequence. At the same time, analyze the delay of the storage nodes and filter out relatively reliable nodes to ensure the stability and consistency of data storage.

Benefits of technology

It realizes synchronization of suppliers and buyers in information acquisition, improves query efficiency and stability, reduces information differences, and ensures the accuracy and timeliness of business decisions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119988397A_ABST
    Figure CN119988397A_ABST
Patent Text Reader

Abstract

The invention discloses a traditional Chinese medicine supply chain transparent management method based on block chain driving, and the method comprises the steps: carrying out the analysis and processing of storage nodes of supply and collection rechecking data in a coincident query sequence based on a query information log, and obtaining a delay matching value, according to the method, relatively reliable nodes which are relatively low in information difference frequency and relatively dispersed in an information transmission process can be identified from a plurality of storage nodes through the delay matching values, and the plurality of storage nodes are sorted based on the delay matching values to obtain a node screening sequence; the advantages and disadvantages of a plurality of storage nodes in the aspect of information transmission stability of previous storage nodes are quantified through a node screening sequence, the node screening sequence and a coincident query sequence are processed in a one-to-one correspondence manner according to a sequence to obtain a data storage sequence, and an organized data storage architecture is established. The corresponding relation ensures that relatively reliable storage nodes can be reasonably matched with important supply and collection rechecking data, and the query efficiency and stability of subsequent supply and collection parties are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information management technology, and in particular to a transparent management method for a Chinese herbal medicine supply chain driven by blockchain. Background Art

[0002] In the traditional Chinese medicine supply chain, suppliers and buyers often face many problems when inquiring about goods logistics and other related information. Due to differences in information systems, untimely data updates and the lack of an effective coordination mechanism, the information obtained by both parties is often inconsistent, which not only increases communication costs, but also may affect the accuracy and timeliness of business decisions.

[0003] In the existing technology, there are many obstacles to the information flow between suppliers and buyers in the traditional Chinese herbal medicine supply chain. For example, there are differences in the logistics status information queried between suppliers and buyers, which will lead to deviations in the business decisions of both parties. Now, blockchain technology is used to obtain the query data of Chinese medicine suppliers and Chinese medicine buyers in the previous query cycle, screen out the supply query table and the purchase query table, and perform overlap screening and comparison to obtain the overlap query sequence, which is helpful to accurately identify the focus links of both parties in the supply chain. At the same time, the delay degree of storage nodes is detected, and information errors that occur during information transmission are identified from multiple storage nodes. Relatively reliable nodes with low and scattered information difference frequency are quantified through node screening sequence, ensuring that relatively reliable storage nodes and important supply and procurement re-check data can be reasonably matched, thereby improving the query efficiency and stability of subsequent supply and procurement parties. The time when Chinese medicine suppliers query the supply and procurement re-check data, as well as the time when Chinese medicine buyers query the supply and procurement re-check data, are obtained by querying the information log, and the push time is calculated by comparison, so as to avoid poor business connection caused by inconsistent information acquisition rhythms between the supply and procurement parties, solve the problem of inconsistent time and deviation when the supply and procurement parties query the same supply and procurement re-check data, and synchronize the information acquisition of the two parties. Summary of the invention

[0004] The purpose of the present invention is to provide a transparent management method for the supply chain of Chinese medicinal materials driven by blockchain to solve at least one of the above-mentioned prior art problems.

[0005] First, the blockchain-driven transparent management method for the supply chain of traditional Chinese medicine includes the following steps: Step 1: Obtain the query data of Chinese medicine suppliers and Chinese medicine buyers in the previous query cycle through query information logs, analyze and screen to obtain the supply query table and the purchase query table, and compare and process the supply query table and the purchase query table to output the overlap query sequence; Step 2: Based on the query information log, the storage nodes for the data in the overlapping query sequence are analyzed to obtain the storage node information, wherein the storage node information includes the delay number value and the delay degree value, and the storage node information is analyzed to output a node screening sequence; Step 3: Process the node screening sequence and the coincidence query sequence accordingly to obtain a data storage sequence; Step 4: In the data storage sequence, obtain the time when the Chinese medicine suppliers and buyers query the supply and procurement recheck data by querying the information log, compare the query time, and calculate the push time.

[0006] Beneficial effects of the present invention: The present invention obtains query data of Chinese medicine suppliers and query data of Chinese medicine buyers in previous query cycles by storing information logs, screens out supply query tables and purchase query tables, and compares the supply query tables and purchase query tables for overlap to obtain overlap query sequences, thereby presenting query data that suppliers and buyers are jointly concerned about in previous query cycles according to the overlap query sequences, and reflects the stability of supply and purchase recheck data in the overlap query sequence through the supply and purchase recheck stability value, which helps to accurately identify the links of concern to both supply and purchase parties in the supply chain; The present invention analyzes and processes the storage nodes of the supply and procurement recheck data in the overlapped query sequence based on the query information log to obtain a delay matching value. The delay matching value can be used to identify relatively reliable nodes with low and dispersed information differences in the information transmission process from multiple storage nodes, and based on the delay matching value, multiple storage nodes are sorted to obtain a node screening sequence. The node screening sequence is used to quantify the advantages and disadvantages of multiple storage nodes in terms of information transmission stability compared with previous storage nodes. The node screening sequence and the overlapped query sequence are processed one-to-one according to the sorting to obtain a data storage sequence, and an orderly data storage architecture is established. This correspondence ensures that relatively reliable storage nodes can be reasonably matched with important supply and procurement recheck data, thereby improving the query efficiency and stability of the subsequent supply and procurement parties. In the supply chain of traditional Chinese medicine, the present invention, in the past, when suppliers and purchasers inquired about the supply and purchase recheck data, there was a time difference in obtaining information between the supply and purchase parties, resulting in deviations in the information obtained by the supply and purchase parties. Therefore, the time when the traditional Chinese medicine supplier inquired about the supply and purchase recheck data, and the time when the traditional Chinese medicine purchaser inquired about the supply and purchase recheck data are obtained by querying the information log, and the push time is calculated by comparing and calculating, thereby avoiding poor business connection caused by inconsistent information acquisition rhythms between the supply and purchase parties, solving the problem of inconsistent time and deviation when the supply and purchase parties inquire about the same supply and purchase recheck data, and synchronizing the supply and purchase parties in information acquisition. BRIEF DESCRIPTION OF THE DRAWINGS

[0007] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0008] Figure 1 It is a flow chart of the transparent management method of the Chinese herbal medicine supply chain driven by blockchain of the present invention; Figure 2 It is a schematic diagram of the structure of the transparent management system of the Chinese herbal medicine supply chain driven by the blockchain of the present invention; Figure 3 It is a structural schematic diagram of the blockchain-driven transparent management device for the supply chain of traditional Chinese medicine of the present invention. DETAILED DESCRIPTION

[0009] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0010] Embodiment 1 Figure 1 The flowchart of the method for transparent management of the supply chain of Chinese medicinal materials driven by blockchain provided in the first embodiment of the present invention, the embodiment of the present invention can be applied to identify the common links of concern to both parties in the supply chain, the method for transparent management of the supply chain of Chinese medicinal materials driven by blockchain can be executed by a transparent management system for the supply chain of Chinese medicinal materials driven by blockchain, the transparent management system for the supply chain of Chinese medicinal materials driven by blockchain can be implemented by software and / or hardware, and the transparent management system for the supply chain of Chinese medicinal materials driven by blockchain can be configured in a transparent management device for the supply chain of Chinese medicinal materials driven by blockchain. Optionally, the transparent management device for the supply chain of Chinese medicinal materials driven by blockchain can be an electronic device, which can be a notebook, a desktop computer, a smart tablet, etc., and the embodiment of the present invention does not limit this.

[0011] like Figure 1 As shown, the blockchain-driven transparent management method for the supply chain of traditional Chinese medicine provided by the embodiment of the present invention specifically includes the following steps: Step 1: Obtain the query data of Chinese medicine suppliers and Chinese medicine buyers in the previous query cycle through query information logs, analyze and screen to obtain the supply query table and the purchase query table, and compare and process the supply query table and the purchase query table to output the overlap query sequence; In some embodiments, the previous query cycle is divided into a plurality of previous query periods, query data of the Chinese medicine supplier in the previous query period is obtained, and query data of the Chinese medicine purchaser in the previous query period is obtained; It should be noted that the previous query period division is to divide the previous query period into equal time intervals, and the duration of each previous query period is equal; Select any past query period; Obtain the query data of traditional Chinese medicine suppliers in the previous query period, count the query times of the query data in the previous query period, and calculate the ratio with the total number of all query data in the previous query period to obtain the unit query times, and compare the size, extract the query data corresponding to the maximum unit query times, and mark it as the time period query data; The time period supply query data corresponding to all previous query periods are compared based on the number of unit supply queries, and are sorted from large to small to obtain a supply query table; Obtain the query data of Chinese medicine buyers in the previous query period, count the query times of the query data in the previous query period, and calculate the ratio with the total number of all query data in the previous query period to obtain the unit query times, and compare the size, extract the query data corresponding to the maximum unit query times, and mark it as the period query data; The period inspection data corresponding to all previous query periods are compared based on the number of unit inspections, and sorted from large to small to obtain a procurement query table; It should be noted that at least one of the query data in the supply query table overlaps with the query data in the purchase query table; Compare the query data in the supply query table with the query data in the purchase query table, extract the overlapping data queried by both the supply and purchase parties in the same previous query period, and mark them as supply and purchase re-check data; Based on the supply and procurement re-check data, a two-dimensional coordinate system is established, with the X-axis representing time and the Y-axis representing the number of queries. The number of queries of the supply and procurement re-check data in the previous query period is substituted into the two-dimensional coordinate system to obtain a periodic query change curve. In the periodic query change curve, obtain the coordinates of the adjacent peak points and trough points and substitute them into the formula: , calculate the peak-to-valley change value L, where ( , ) is expressed as the peak point coordinates, ( , ) is represented as the coordinates of the trough point; Add up all the peak-to-valley change values ​​and take the average to get the supply-production-recheck stability value; Based on the supply-purchase-recheck stability value, the supply-purchase-recheck stability values ​​corresponding to the supply-purchase-recheck data are compared and sorted in descending order to obtain a coincidence query sequence; The specific implementation scheme of the embodiment of the present invention is: by storing information logs, query data of Chinese medicine suppliers and query data of Chinese medicine buyers in previous query cycles are obtained, supply query tables and purchase query tables are screened out, and the supply query tables and purchase query tables are compared for overlap to obtain overlap query sequences, thereby presenting query data that suppliers and buyers are jointly concerned about in previous query cycles according to the overlap query sequences, and reflecting the stability of the supply and purchase recheck data in the overlap query sequence through the supply and purchase recheck stability value, which is helpful to accurately identify the links of concern to both supply and purchase parties in the supply chain; Embodiment 2 like Figure 1 As shown, the blockchain-driven transparent management method for the supply chain of traditional Chinese medicine provided by the embodiment of the present invention specifically includes the following steps: Step 2: Based on the query information log, the storage nodes for the data in the overlapping query sequence are analyzed to obtain the storage node information, wherein the storage node information includes the delay number value and the delay degree value, and the storage node information is analyzed to output a node screening sequence; In some embodiments, the storage nodes for collecting duplicate query data in the overlap query sequence are obtained, and one storage node is randomly selected for analysis, and the process is as follows: In the query information log, obtain the time when the supplier queries the supply and procurement re-check data, as well as the data status, and mark them as the supply query time point and supply query status respectively; It should be noted that the data status may include logistics status, such as logistics outbound shipment status, logistics outbound shipment status, logistics transit status and logistics distribution status, etc.; Sort all the query time points in the query information log in chronological order, and obtain Q={ , , ,......, }, where t represents the total number of query time points in the query information log; Sort all the query status in the query information log by the query time point, and get P={ , , ,......, }; It should be noted that the total number of the time point for inspection and the status for inspection are the same, where the status for inspection can include the logistics status; Obtain the time when the buyer inquires about the data for procurement and re-check, as well as the data status, and mark them as the procurement time point and procurement status respectively; It should be noted that the data status may include logistics status, such as logistics outbound shipment status, logistics outbound shipment status, logistics transit status and logistics distribution status, etc.; Sort all the query time points in the query information log according to the time sequence, and get U={ , , ,......, }, where i represents the total number of query time points in the query information log; Sort all the query status in the query information log according to the query time point, and get O={ , , ,......, }; It should be noted that the total number of inspection time points and inspection status is the same, where the inspection status can include logistics status; It should be noted that one time point for inspection corresponds to one state for inspection, and similarly, one time point for collection corresponds to one state for collection, and the number of time points for collection is the same as that of time points for inspection; In the previous query cycle, the time point for inspection and the time point for collection are compared and the time point close to the time point for inspection is selected to obtain the time point for inspection; And sort them according to the time sequence, integrate and summarize to get the time point set R={ , , ,......, }, where n represents the total number of time points for sampling; Obtain the inspection status and the inspection status corresponding to the inspection time point, and compare the two. The process is as follows: If the supply and inspection status corresponding to the supply and inspection time point is the same as the inspection status, a supply and inspection query no difference signal is generated; If the supply and inspection status corresponding to the supply and inspection time point is different from the inspection status, a supply and inspection query delay signal is generated; For example, at the time point set R={ , , ,......, }middle, Corresponding status for inspection and the status of the survey , Corresponding status for inspection and the status of the survey , Corresponding status for inspection and the status of the survey ,...... Corresponding status for inspection and the status of the survey ; Will Corresponding status for inspection and the status of the survey For comparison, the process is as follows: like Corresponding status for inspection and the status of the survey If they are the same, a supply and purchase query no difference signal is generated; like Corresponding status for inspection and the status of the survey If they are different, a supply and purchase query delay signal is generated; Count the number of supply and purchase query delay signals generated, and calculate the ratio with the total number of supply and purchase query signals to obtain the delay times value; It should be noted that the total number of supply and purchase query signals is calculated by summing the number of supply and purchase query delayed signals and the number of supply and purchase query unchanged signals; Obtain the time intervals for generating adjacent supply and purchase query delay signals, and add and average the time intervals for generating adjacent supply and purchase query delay signals to obtain a delay degree value; Calculate the ratio of the delay times value to the delay degree value to obtain the delay matching value; It can be understood that the meaning of the delay matching value is to evaluate the delay of the storage node in the process of information transmission. Specifically, the delay number value reflects the frequency of information inconsistency (i.e. different status) at the time point of joint inquiry by the supply and purchase parties (the supply and purchase inquiry time point), and the delay degree value reflects the time point of joint inquiry by the supply and purchase parties (the supply and purchase inquiry time point), the information inconsistency is more concentrated. Therefore, the delay matching value is conducive to evaluating the delay of the storage node in the process of information transmission, and helps to identify which storage nodes are prone to information delay problems; The delay match value is compared to the delay match threshold as follows: If the delayed matching value is greater than or equal to the delayed matching threshold, it means that when the supply and purchase parties jointly query, the frequency of information differences is high and concentrated, generating a signal of large supply and purchase query differences; If the delay matching value is less than the delay matching threshold, it means that when the supply and purchase parties jointly query, the frequency of information differences is low and relatively scattered, generating a small signal of supply and purchase query difference; The storage node corresponding to the generated small difference signal for query is marked as the target storage node, and the delay matching value corresponding to the target storage node is compared and sorted in order from small to large to obtain a node screening sequence; Step 3: Process the node screening sequence and the coincidence query sequence accordingly to obtain a data storage sequence; In some embodiments, the supply and recheck data ranked first in the overlap query sequence is stored in the storage node ranked first in the node screening sequence, the supply and recheck data ranked second in the overlap query sequence is stored in the storage node ranked second in the node screening sequence, the supply and recheck data ranked third in the overlap query sequence is stored in the storage node ranked third in the node screening sequence, until the supply and recheck data ranked last in the overlap query sequence is stored in the storage node ranked last in the node screening sequence; It should be noted that the supply and purchase recheck data ranked first in the overlap query sequence represents data with a higher query frequency and more stable data for both the supply and purchase parties, and the storage node ranked first in the node screening sequence represents a storage node with a shorter delay and more stable storage node on the blockchain; Traverse the supply and recheck data in the coincidence query sequence, store all the supply and recheck data in the coincidence query sequence in the storage nodes in the node screening sequence in a one-to-one correspondence manner, and summarize and integrate them according to the data storage sequence to obtain the data storage sequence; It should be noted that the storage nodes sorted in the node screening sequence correspond to the storage nodes sorted in the coincidence query sequence for sampling and rechecking data; The specific implementation method of the embodiment of the present invention is as follows: Based on the query information log, the storage nodes of the supply and procurement recheck data in the overlapping query sequence are analyzed and processed to obtain a delay matching value. The delay matching value can be used to identify relatively reliable nodes with low and dispersed information differences in the information transmission process from multiple storage nodes, and based on the delay matching value, multiple storage nodes are sorted to obtain a node screening sequence. The node screening sequence is used to quantify the advantages and disadvantages of multiple storage nodes in terms of information transmission stability compared to previous storage nodes. The node screening sequence and the overlapping query sequence are processed one-to-one according to the sorting to obtain a data storage sequence, and an organized data storage architecture is established. This correspondence ensures that relatively reliable storage nodes can be reasonably matched with important supply and procurement recheck data, thereby improving the query efficiency and stability of subsequent supply and procurement parties; Example 3 like Figure 1As shown, the blockchain-driven transparent management method for the supply chain of traditional Chinese medicine provided by the embodiment of the present invention specifically includes the following steps: Step 4: In the data storage sequence, the time when the Chinese medicine supplier and the buyer queried the supply and purchase recheck data is obtained by querying the information log, and the query time is compared to calculate the push time, which improves the efficiency of buyers using blockchain to query information and solves the problem of deviation in the query information between buyers and suppliers; Exemplarily, based on the data storage sequence, the supply and recheck data corresponding to the first storage node in the sorting order is selected for analysis, and the process is as follows: Subtract the query time of the supply and purchase recheck data corresponding to the first storage node in the query sorting of the Chinese medicine purchaser from the query time of the supply and purchase recheck data corresponding to the first storage node in the query sorting of the Chinese medicine supplier, and take the absolute value to obtain the query time difference; All supply and procurement time differences in previous query cycles are added and averaged to calculate the supply and procurement re-check data push time corresponding to the first ranked storage node; Traverse the supply and purchase recheck data corresponding to all storage nodes in the data storage sequence, calculate the average of the query time difference, and push the supply and purchase recheck data corresponding to all storage nodes in the data storage sequence to the Chinese medicine purchasers according to the corresponding push time after querying the Chinese medicine suppliers; The specific implementation scheme of the embodiment of the present invention is as follows: In the supply chain of traditional Chinese medicine, in the past, when suppliers and purchasers inquired about the supply and procurement recheck data, there was a time difference in the supply and procurement parties obtaining information, resulting in deviations in the information obtained by the supply and procurement parties. Therefore, the time when the traditional Chinese medicine supplier inquired about the supply and procurement recheck data, and the time when the traditional Chinese medicine purchaser inquired about the supply and procurement recheck data are obtained by querying the information log, and the comparison is performed to calculate the push time, thereby avoiding the poor business connection caused by the inconsistent information acquisition rhythm of the supply and procurement parties, solving the problem of inconsistent time and deviation when the supply and procurement parties inquire about the same supply and procurement recheck data, and synchronizing the supply and procurement parties in information acquisition.

[0012] Embodiment 3 Reference Figure 2 The blockchain-driven transparent management system for the supply chain of traditional Chinese medicine provided by the embodiment of the present invention includes: Supply and procurement query summary module: obtain the query data of Chinese medicine suppliers and Chinese medicine buyers in the previous query cycle through query information logs, analyze and filter to obtain the supply query table and the procurement query table, and compare and process the supply query table and the procurement query table to output the overlapping query sequence; Storage node screening module: Based on the query information log, the storage nodes for the data in the overlapping query sequence are analyzed to obtain the storage node information, wherein the storage node information includes the delay number value and the delay degree value. The storage node information is analyzed and output to obtain the node screening sequence; Data storage optimization module: performs corresponding processing on the node screening sequence and the coincidence query sequence to obtain the data storage sequence; Supply and procurement query adjustment module: within the data storage sequence, obtain the time when Chinese medicine suppliers and buyers query the supply and procurement recheck data by querying the information log, compare the query time, and calculate the push time.

[0013] Embodiment 4 Reference Figure 3 The embodiment of the present invention further provides a computer device 3, comprising: a memory 302 and a processor 301 and a computer program 303 stored in the memory 302. When the computer program 303 is executed on the processor 301, a transparent management method for the supply chain of Chinese medicinal materials driven by blockchain as described in any one of the above methods is implemented.

[0014] The computer device 3 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The computer device 3 may include, but is not limited to, a processor 301 and a memory 302. Those skilled in the art will appreciate that Figure 3 It is only an example of computer device 3 and does not constitute a limitation on computer device 3. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components, for example, it may also include input and output devices, network access devices, etc.

[0015] The processor 301 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0016] In some embodiments, the memory 302 may be an internal storage unit of the computer device 3, such as a hard disk or memory of the computer device 3. In other embodiments, the memory 302 may also be an external storage device of the computer device 3, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card (FlashCard), etc. equipped on the computer device 3. Further, the memory 302 may also include both an internal storage unit and an external storage device of the computer device 3. The memory 302 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program. The memory 302 may also be used to temporarily store data that has been output or is to be output.

[0017] Embodiment 5 An embodiment of the present invention also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for transparent management of a supply chain of Chinese medicinal materials driven by blockchain as described in any one of the above methods is implemented.

[0018] In this embodiment, if the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the camera / terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, USB flash drive, mobile hard disk, disk or optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0019] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0020] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0021] In the embodiments disclosed in the present application, it should be understood that the disclosed apparatus / terminal equipment and method can be implemented in other ways. For example, the apparatus / terminal equipment embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some data can be ignored or not executed. One point, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, which may be electrical, mechanical or other forms.

[0022] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0023] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters in the formula are set by technicians in this field according to actual conditions.

[0024] The above is a detailed description of an embodiment of the present invention, but the content is only a preferred embodiment of the present invention and cannot be considered to limit the scope of implementation of the present invention. All equivalent changes and improvements made within the scope of the present invention should still fall within the scope of the patent coverage of the present invention.

Claims

1. A blockchain-driven transparent management method for the supply chain of traditional Chinese medicine, characterized in that: The following steps are involved: Step 1: By querying the information log, the query data of the traditional Chinese medicine suppliers and purchasers in the previous query cycle are screened to obtain the supply query table and the purchase query table, and the supply query table and the purchase query table are compared and processed to output the overlapping query sequence; Step 2: Based on the storage nodes for the data in the overlap query sequence, perform delay analysis on the time and data status to obtain storage node information, wherein the storage node information includes a delay number value and a delay degree value, sort the storage node information according to the delay matching value, and output a node screening sequence; Step 3: Sort the node screening sequence and the coincidence query sequence in the table, perform data storage processing, and obtain a data storage sequence; Step 4: In the data storage sequence, obtain the time when the Chinese medicine suppliers and buyers query the supply and procurement recheck data by querying the information log, compare the query time, and calculate the push time.

2. The method for transparent management of the supply chain of Chinese medicinal materials driven by blockchain according to claim 1 is characterized in that: The supply query table is obtained as follows: Divide the previous query cycle into multiple previous query periods, and obtain the query data of traditional Chinese medicine suppliers and medicine buyers in the previous query periods respectively; Select any past query period; Obtain the query data of traditional Chinese medicine suppliers in the previous query period, count the query times of the query data in the previous query period, and calculate the ratio with the total number of all query data in the previous query period to obtain the unit query times, extract the query data corresponding to the maximum unit query times, and mark it as the time period query data; The time period supply query data corresponding to all previous query periods are sorted from large to small based on the number of unit supply queries to obtain a supply query table.

3. The method for transparent management of the supply chain of Chinese medicinal materials driven by blockchain according to claim 1 is characterized in that: The way to obtain the purchase inquiry form is: Obtain the query data of Chinese medicine buyers in the previous query period, count the query times of the query data in the previous query period, and calculate the ratio with the total number of all query data in the previous query period to obtain the unit query times, extract the query data corresponding to the maximum unit query times, and mark it as the period query data; The period inspection data corresponding to all previous query periods are sorted from large to small based on the number of unit inspections to obtain a procurement query table.

4. The method for transparent management of the supply chain of Chinese medicinal materials driven by blockchain according to claim 1 is characterized in that: Compare and process the supply query table and the purchase query table as follows: Extract the same query data from the supply query table and the purchase query table, and mark them as the supply and purchase duplicate query data; Based on each supply and procurement re-check data, the query times are fitted to obtain the periodic query change curve.

5. The method for transparent management of the supply chain of Chinese medicinal materials driven by blockchain according to claim 4 is characterized in that: The process of obtaining the coincidence query sequence is as follows: In the periodic query change curve, the distance between the coordinates of the adjacent peak points and the coordinates of the trough points is calculated by Euclidean distance, and recorded as the peak-to-trough change value; All peak-to-valley change values ​​are averaged to obtain the stable value for supply, mining and rechecking; Based on the supply and procurement recheck stability value, the supply and procurement recheck stability values ​​corresponding to the supply and procurement recheck data are sorted in order from large to small to obtain the overlap query sequence.

6. The method for transparent management of the supply chain of Chinese medicinal materials driven by blockchain according to claim 1 is characterized in that: The storage nodes for the data of the overlapped query sequence are analyzed. The process is as follows: Obtain the time when the supplier inquires about the supply and procurement recheck data, as well as the data status, and mark them as the supply check time point and supply check status respectively; Sort all the query time points in the query information log in chronological order, and obtain Q={ , , ,......, }, where t represents the total number of query time points in the query information log; Sort all the query status in the query information log by the query time point, and get P={ , , ,......, }; Obtain the time when the buyer inquires about the data for procurement and re-check, as well as the data status, and mark them as the procurement time point and procurement status respectively; Sort all the query time points in the query information log according to the time sequence, and get U={ , , ,......, }, where i represents the total number of query time points in the query information log; Sort all the query status in the query information log according to the query time point, and get O={ , , ,......, }; In the previous query cycle, the time point for inspection and the time point for collection are compared and the time point close to the time point for inspection is selected to obtain the time point for inspection; And sort them according to the time sequence, integrate and summarize to get the time point set R={ , , ,......, }, where n represents the total number of time points for sampling; Obtain the supply and inspection status and the inspection status corresponding to the supply and inspection time point, and compare the two. If the supply and inspection status and the inspection status corresponding to the supply and inspection time point are different, generate a supply and inspection query delay signal; If the supply and inspection status corresponding to the supply and inspection time point is the same as the inspection status, a supply and inspection query no difference signal is generated.

7. The method for transparent management of the supply chain of Chinese medicinal materials driven by blockchain according to claim 6 is characterized in that: The method for obtaining storage node information is: Count the number of supply and purchase query delay signals generated, and calculate the ratio with the total number of supply and purchase query signals to obtain the delay times value; The total number of supply and purchase query signals is calculated by summing the number of supply and purchase query delayed signals and the number of supply and purchase query unchanged signals; The time intervals between the generation of adjacent supply and purchase query delay signals are obtained, and the time intervals between the generation of all adjacent supply and purchase query delay signals are averaged to obtain a delay degree value.

8. The method for transparent management of the supply chain of Chinese medicinal materials driven by blockchain according to claim 1 is characterized in that: The process of obtaining the node screening sequence is as follows: Calculate the ratio of the delay times value to the delay degree value to obtain the delay matching value; If the delay match value is greater than or equal to the delay match threshold, a large supply and purchase query difference signal is generated; If the delay match value is less than the delay match threshold, a small signal of supply and purchase query difference is generated; The storage node corresponding to the small difference signal generated for query is marked as the target storage node, and the delay matching values ​​corresponding to the target storage node are sorted in order from small to large to obtain a node screening sequence.

9. The method for transparent management of the supply chain of Chinese medicinal materials driven by blockchain according to claim 1, characterized in that: The data storage sequence is obtained as follows: The supply and procurement recheck data ranked first in the overlap query sequence is stored in the storage node ranked first in the node screening sequence, the supply and procurement recheck data ranked second in the overlap query sequence is stored in the storage node ranked second in the node screening sequence, the supply and procurement recheck data ranked third in the overlap query sequence is stored in the storage node ranked third in the node screening sequence, until the supply and procurement recheck data ranked last in the overlap query sequence is stored in the storage node ranked last in the node screening sequence; Traverse the supply and recheck data in the overlapped query sequence, store all the supply and recheck data in the overlapped query sequence in the storage nodes in the node screening sequence in a one-to-one correspondence between the sorting in the node screening sequence and the sorting in the overlapped query sequence, and summarize and integrate them according to the data storage sorting to obtain the data storage sequence.

10. The method for transparent management of Chinese herbal medicine supply chain driven by blockchain according to claim 1, characterized in that: The push time is obtained as follows: Based on the data storage sequence, the query time of the supply and purchase recheck data corresponding to the first storage node in the query sorting of the Chinese medicine purchaser is subtracted from the query time of the supply and purchase recheck data corresponding to the first storage node in the query sorting of the Chinese medicine supplier, and the absolute value is taken to obtain the query time difference; All supply and procurement time differences in previous query cycles are added and averaged to calculate the supply and procurement re-check data push time corresponding to the first ranked storage node; The supply and procurement re-check data corresponding to all storage nodes in the data storage sequence are traversed, and the supply and procurement re-check data corresponding to all storage nodes in the data storage sequence are queried by the traditional Chinese medicine supplier in accordance with the method of calculating the average of the query time difference, and then pushed to the traditional Chinese medicine purchaser according to the corresponding push time.

Citation Information

Patent Citations

  • Tin handicraft supplier evaluation method and device based on block chain, and medium

    CN111861085A

  • Supply chain data collaboration method based on block chain

    CN115271603A

  • Supply chain management platform based on digital service

    CN117635021A

  • Cargo management system

    CN117992499A

  • A drying machine for waste water and sludge

    KR102401066B1