A blockchain-driven transparent management method for the supply chain of traditional Chinese medicine
Through blockchain technology, the query data of the Chinese medicinal materials supply chain is analyzed, the overlapping query sequence is selected and reliable storage nodes is identified, which solves the problem of inconsistent information circulation in the Chinese medicinal materials supply chain and improves query efficiency and stability.
Patent Information
- Application Number
- CN202510111543.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-23
- Publication Date
- 2025-08-12
- Estimated Expiration
- 2045-01-23
AI Technical Summary
In the traditional Chinese medicinal materials supply chain, there are differences in information circulation between suppliers and buyers, resulting in inaccurate business decision-making and increased communication costs. It is difficult for existing technology to solve the problem of inconsistent information acquisition.
Through blockchain technology, query data of suppliers and buyers is analyzed, overlapping query sequences are selected, reliable storage nodes are identified, data storage architecture is established, and information transmission is ensured.
It improves the query efficiency and stability of suppliers and buyers, avoids poor business connection caused by inconsistent information acquisition, and realizes synchronization of information acquisition.
Smart Images

Figure CN119988397B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information management technology, and in particular to a blockchain-driven transparent management method for the supply chain of traditional Chinese medicine. Background Art
[0002] In the traditional Chinese medicine supply chain, suppliers and buyers often face numerous challenges when accessing information related to goods logistics. Due to differences in information systems, delayed data updates, and a lack of effective collaboration mechanisms, the information obtained by both parties is often inconsistent. This not only increases communication costs but also potentially impacts 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 medicinal materials 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. Blockchain technology is now 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 the storage node is detected, and the information errors in the information transmission process are identified from multiple storage nodes. Relatively reliable nodes with low and dispersed information difference frequency are quantified through node screening sequences to ensure that relatively reliable storage nodes and important supply and procurement re-check data can be reasonably matched, thereby improving the subsequent query efficiency and stability of both 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 information logs, and the push time is calculated after comparison is made. This avoids poor business connection caused by inconsistent information acquisition rhythms between the supply and procurement parties, solves the problem of inconsistent time and deviation when the supply and procurement parties query the same supply and procurement re-check data, and synchronizes the information acquisition of both parties. Summary of the Invention
[0004] The purpose of the present invention is to provide a blockchain-driven transparent management method for the supply chain of traditional Chinese medicine to solve at least one of the above-mentioned problems of the prior art.
[0005] First, the blockchain-driven transparent management method for the supply chain of traditional Chinese medicine includes the following steps:
[0006] Step 1: Obtain query data of Chinese medicine suppliers and Chinese medicine buyers in previous query cycles through query information logs, analyze and filter to obtain supply query tables and purchase query tables, and perform comparison processing based on the supply query tables and purchase query tables to output a coincidence query sequence;
[0007] Step 2: Based on the query information log, analyze the storage nodes for the re-check data in the overlapping query sequence to obtain storage node information, where the storage node information includes the delay count value and the delay degree value. Analyze the storage node information and output a node screening sequence;
[0008] Step 3: Process the node screening sequence and the coincidence query sequence to obtain the data storage sequence;
[0009] Step 4: In the data storage sequence, obtain the time when Chinese medicine suppliers and buyers query the supply and procurement data by querying the information log, compare the query time, and calculate the push time.
[0010] Beneficial effects of the present invention:
[0011] The present invention obtains query data of traditional Chinese medicine suppliers and query data of traditional 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 with the purchase query tables for overlap to obtain an overlap query sequence, thereby presenting query data that suppliers and buyers have paid common attention to in previous query cycles according to the overlap query sequence, and reflects the stability of the 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;
[0012] The present invention analyzes and processes the storage nodes of the supply and procurement recheck data in the overlapping 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 frequency and more dispersed information differences in the information transmission process from multiple storage nodes. Based on the delay matching value, the multiple storage nodes are sorted to obtain a node screening sequence. The node screening sequence is used to quantify the advantages and disadvantages of the multiple storage nodes in terms of information transmission stability compared with 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, thereby establishing an organized data storage architecture. This correspondence ensures that relatively reliable storage nodes can be reasonably matched with important supply and procurement recheck data, thereby improving the subsequent query efficiency and stability of both supply and procurement parties.
[0013] In the traditional Chinese medicine supply chain, the present invention solves the problem of inconsistent and deviated time when suppliers and buyers inquire about supply and purchase recheck data in the past due to the time difference between the two parties in obtaining information. Therefore, the time when the traditional Chinese medicine supplier inquires about the supply and purchase recheck data and the time when the traditional Chinese medicine buyer inquires about the supply and purchase recheck data are obtained by querying the information log, and the push time is calculated by comparing them, thereby avoiding poor business connection caused by inconsistent information acquisition rhythms between the two parties, solving the problem of inconsistent time and deviation when the two parties inquire about the same supply and purchase recheck data, and synchronizing the information acquisition of the two parties. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] 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.
[0015] Figure 1 This is a flowchart of the blockchain-driven transparent management method for the supply chain of traditional Chinese medicines of the present invention;
[0016] Figure 2 This is a schematic diagram of the structure of the blockchain-driven transparent management system for the supply chain of traditional Chinese medicines of the present invention;
[0017] Figure 3 This is a schematic diagram of the structure of the blockchain-driven transparent management device for the Chinese medicinal materials supply chain of the present invention. DETAILED DESCRIPTION
[0018] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions 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 embodiments described 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 making creative efforts should fall within the scope of protection of the present invention.
[0019] Example 1
[0020] Figure 1The flowchart of the blockchain-driven Chinese medicinal materials supply chain transparency management method provided in the first embodiment of the present invention is applicable to identifying the common links of concern to both the supply and procurement parties in the supply chain. The blockchain-driven Chinese medicinal materials supply chain transparency management method can be executed by a blockchain-driven Chinese medicinal materials supply chain transparency management system. The blockchain-driven Chinese medicinal materials supply chain transparency management system can be implemented by software and / or hardware. The blockchain-driven Chinese medicinal materials supply chain transparency management system can be configured in a blockchain-driven Chinese medicinal materials supply chain transparency management device. Optionally, the blockchain-driven Chinese medicinal materials supply chain transparency management device can be an electronic device, which can be a notebook, desktop computer, smart tablet, etc., and the embodiment of the present invention does not limit this.
[0021] like Figure 1 As shown, the blockchain-driven transparent management method for the Chinese medicinal materials supply chain provided by the embodiment of the present invention specifically includes the following steps:
[0022] Step 1: Obtain query data of Chinese medicine suppliers and Chinese medicine buyers in previous query cycles through query information logs, analyze and filter to obtain supply query tables and purchase query tables, and perform comparison processing based on the supply query tables and purchase query tables to output a coincidence query sequence;
[0023] In some embodiments, the previous query period is divided into a plurality of previous query periods, query data of Chinese medicine suppliers in the previous query periods are obtained, and query data of Chinese medicine buyers in the previous query periods are obtained;
[0024] It should be noted that the division of the previous query period is to divide the previous query period into equal time intervals, and the duration of each previous query period is equal;
[0025] Select any previous query period;
[0026] Obtain the query data of traditional Chinese medicine suppliers in the previous query period, count the number of queries in the previous query period, and calculate the ratio with the total number of queries of all query data in the previous query period to obtain the number of unit queries, compare the numbers, extract the query data corresponding to the maximum number of unit queries, and mark it as the query data for the period;
[0027] The time period supply query data corresponding to all previous query periods are compared based on the number of unit supply queries, and sorted from large to small to obtain a supply query table;
[0028] Obtain query data from traditional Chinese medicine buyers in previous query periods, count the number of queries in the query data in the previous query period, and calculate the ratio with the total number of queries in the previous query period to obtain the unit query number, compare the numbers, extract the query data corresponding to the maximum unit query number, and mark it as the period query data;
[0029] Compare the period inspection data corresponding to all previous query periods based on the number of unit inspections, and sort them from large to small to obtain a procurement query table;
[0030] It should be noted that at least one query data in the supply query table overlaps with the query data in the purchase query table;
[0031] 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 parties in the same previous query period, and mark them as supply and purchase re-check data;
[0032] 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 in the previous query period of the supply and procurement re-check data is substituted into the two-dimensional coordinate system to obtain a periodic query change curve.
[0033] In the periodic query change curve, obtain the coordinates of 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 expressed as the coordinates of the trough point;
[0034] Add up all the peak-to-valley change values and take the average to get the supply and production recheck stability value;
[0035] 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 compared and sorted in descending order to obtain the overlap query sequence;
[0036] The specific implementation scheme of the embodiment of the present invention is as follows: query data of traditional Chinese medicine suppliers and query data of traditional Chinese medicine buyers in previous query cycles are obtained by storing information logs, 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 an overlap query sequence, thereby presenting query data that suppliers and buyers have paid common attention to in previous query cycles based on the overlap query sequence, 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 helps to accurately identify the links of concern to both supply and purchase parties in the supply chain;
[0037] Example 2
[0038] like Figure 1 As shown, the blockchain-driven transparent management method for the Chinese medicinal materials supply chain provided by the embodiment of the present invention specifically includes the following steps:
[0039] Step 2: Based on the query information log, analyze the storage nodes for the re-check data in the overlapping query sequence to obtain storage node information, where the storage node information includes the delay count value and the delay degree value. Analyze the storage node information and output a node screening sequence;
[0040] In some embodiments, the storage nodes for duplicate query data in the overlap query sequence are obtained, and one storage node is randomly selected for analysis. The process is as follows:
[0041] 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 query time point and query status respectively;
[0042] 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;
[0043] Sort all query time points in the query information log according to the time sequence, and get Q={ 、 、 、......、 }, where t represents the total number of query time points in the query information log;
[0044] Sort all the query status in the query information log by the query time point to obtain P={ 、 、 、......、 };
[0045] 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;
[0046] 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;
[0047] 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;
[0048] 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;
[0049] Sort all the query status in the query information log by the time point of query, and get O={ 、 、 、......、 };
[0050] 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;
[0051] It should be noted that one time point for inspection corresponds to one state for inspection. Similarly, one time point for collection corresponds to one state for collection. The number of collection time points is the same as that of time points for inspection.
[0052] In the previous query cycle, the time point of the supply and inspection is compared with the time point of the collection and inspection, and the time point close to the time point of the supply and inspection is selected to obtain the time point of the supply and inspection;
[0053] 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;
[0054] Obtain the inspection status and the inspection status corresponding to the inspection time point and compare the two. The process is as follows:
[0055] 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;
[0056] 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;
[0057] For example, at the time point set R={ 、 、 、......、 }middle, Corresponding inspection status and survey status 、 Corresponding inspection status and survey status 、 Corresponding inspection status and survey status 、...... Corresponding inspection status and survey status ;
[0058] Will Corresponding inspection status and survey status For comparison, the process is as follows:
[0059] like Corresponding inspection status and survey status If they are the same, a supply and purchase query no difference signal is generated;
[0060] like Corresponding inspection status and survey status If they are different, a supply and purchase query delay signal is generated;
[0061] 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 count value;
[0062] It should be noted that the total number of supply and procurement query signals is calculated by summing the number of supply and procurement query delayed signals and the number of supply and procurement query unchanged signals;
[0063] Obtaining the time intervals between adjacent supply and purchase query delay signals, and summing and averaging the time intervals between all adjacent supply and purchase query delay signals to obtain a delay degree value;
[0064] Calculate the ratio of the delay times value to the delay degree value to obtain the delay matching value;
[0065] It can be understood that the delay matching value represents the evaluation of the storage node's delay during information transmission. Specifically, the delay count value reflects the frequency of information inconsistencies (i.e., different states) at the time point when both the supplier and the buyer make inquiries (the supply and purchase inquiry time point), and the delay degree value reflects the concentration of information inconsistencies at the time point when both the supplier and the buyer make inquiries (the supply and purchase inquiry time point). Therefore, the delay matching value is helpful in evaluating the storage node's delay during information transmission and helps identify which storage nodes are prone to information delay issues.
[0066] The delay match value is compared to the delay match threshold as follows:
[0067] 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 relatively concentrated, generating a large supply and purchase query difference signal;
[0068] 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;
[0069] The storage node corresponding to the generated small difference signal for query is marked as the target storage node, and the delay matching values corresponding to the target storage node are compared and sorted in ascending order to obtain a node screening sequence;
[0070] Step 3: Process the node screening sequence and the coincidence query sequence to obtain the data storage sequence;
[0071] In some embodiments, the supply and recheck data ranked first in the overlapped query sequence is stored in the storage node ranked first in the node screening sequence, the supply and recheck data ranked second in the overlapped query sequence is stored in the storage node ranked second in the node screening sequence, the supply and recheck data ranked third in the overlapped query sequence is stored in the storage node ranked third in the node screening sequence, and so on until the supply and recheck data ranked last in the overlapped query sequence is stored in the storage node ranked last in the node screening sequence;
[0072] It should be noted that the supply and purchase re-check data ranked first in the overlap query sequence represents data with a high query frequency and is relatively stable for both the supply and purchase sides. The storage node ranked first in the node screening sequence represents a storage node with a short latency and is relatively stable on the blockchain.
[0073] 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 order to obtain the data storage sequence;
[0074] It should be noted that the storage nodes sorted in the node screening sequence correspond to the storage data sorted in the coincidence query sequence for sampling and rechecking;
[0075] 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 frequency and more dispersed information differences in the information transmission process from multiple storage nodes, and based on the delay matching value, the 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, thereby establishing an organized data storage architecture. This correspondence ensures that relatively reliable storage nodes can be reasonably matched with important supply and procurement recheck data, thereby improving the subsequent query efficiency and stability of both supply and procurement parties.
[0076] Example 3
[0077] like Figure 1 As shown, the blockchain-driven transparent management method for the Chinese medicinal materials supply chain provided by the embodiment of the present invention specifically includes the following steps:
[0078] Step 4: Within the data storage sequence, obtain the time when Chinese medicine suppliers and buyers query the supply and procurement data by querying the information log, compare the query time, and calculate the push time, thereby improving the efficiency of buyers' use of blockchain to query information and solving the problem of information deviation between buyers and suppliers;
[0079] For example, 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. The process is as follows:
[0080] The query time difference is obtained by subtracting the query time of the supply and purchase recheck data corresponding to the first storage node in the query sorting of the Chinese medicine buyers 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 suppliers.
[0081] Add up all the supply and procurement time differences in the previous query cycle and take the average to calculate the supply and procurement re-check data push time corresponding to the first ranked storage node;
[0082] Traverse the supply and procurement re-check data corresponding to all storage nodes in the data storage sequence, calculate the average of the query time difference, and push the supply and procurement re-check 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;
[0083] The specific implementation plan of the embodiment of the present invention is as follows: In the traditional Chinese medicine supply chain, in the past, when suppliers and buyers inquired about supply and procurement recheck data, there was a time difference between the supply and procurement parties in 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, as well as the time when the traditional Chinese medicine buyer 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 poor business connection caused by inconsistent information acquisition rhythms between 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 information acquisition of the two parties.
[0084] Example 3
[0085] Reference Figure 2 The blockchain-driven transparent management system for the supply chain of Chinese medicinal materials provided by the embodiment of the present invention includes:
[0086] Supply and procurement query summary module: This module obtains query data of Chinese medicine suppliers and Chinese medicine buyers in previous query cycles through query information logs, analyzes them, and filters them to obtain supply query tables and procurement query tables. It then compares the supply query tables and procurement query tables to output a coincidence query sequence.
[0087] Storage node screening module: Based on the query information log, the storage nodes for the re-query data in the overlapping query sequence are analyzed to obtain storage node information, where the storage node information includes the delay number value and the delay degree value. The storage node information is analyzed and output to obtain a node screening sequence;
[0088] Data storage optimization module: processes the node screening sequence and the coincidence query sequence to obtain the data storage sequence;
[0089] Supply and procurement query adjustment module: Within the data storage sequence, the time when Chinese medicine suppliers and buyers query the supply and procurement re-check data is obtained by querying the information log, and the query time is compared to calculate the push time.
[0090] Example 4
[0091] Reference Figure 3 An embodiment of the present invention further provides a computer device 3, comprising: a memory 302, a processor 301, and a computer program 303 stored on the memory 302. When the computer program 303 is executed on the processor 301, the blockchain-driven transparent management method for the Chinese medicinal materials supply chain as described in any one of the above methods is implemented.
[0092] The computer device 3 may be a desktop computer, a notebook computer, a PDA, a cloud server or other computing devices. The computer device 3 may include, but is not limited to, a processor 301 and a memory 302. Those skilled in the art will understand that
[0093] Figure 3 This is merely an example of the computer device 3 and does not constitute a limitation on the computer device 3 . The computer device 3 may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the computer device 3 may also include input and output devices, network access devices, etc.
[0094] 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, or discrete hardware components. A general-purpose processor may be a microprocessor or any conventional processor.
[0095] In some embodiments, the memory 302 may be an internal storage unit of the computer device 3, such as a hard drive 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 drive, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card, etc. equipped on the computer device 3. Furthermore, the memory 302 may include both an internal storage unit of the computer device 3 and an external storage device. The memory 302 is used to store an operating system, application programs, a boot loader, 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 about to be output.
[0096] Example 5
[0097] 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 Chinese medicinal material supply chain driven by blockchain as described in any one of the above methods is implemented.
[0098] In this embodiment, if the integrated unit is implemented as a software functional unit and sold or used as a standalone product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the process steps in the above-mentioned method embodiments by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When executed by a processor, the computer program can implement the steps of each of the above-mentioned method embodiments. The computer program includes computer program code, which can be in source code form, object code form, executable file, or some intermediate form. The computer-readable medium can include at least: any entity or device capable of carrying computer program code to a camera / terminal device, recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signals, telecommunication signals, and software distribution media. Examples include USB flash drives, removable hard drives, magnetic disks, or optical disks. In some jurisdictions, based on legislation and patent practice, computer-readable media cannot be electric carrier signals or telecommunication signals.
[0099] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.
[0100] Those skilled 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 beyond the scope of this application.
[0101] In the embodiments disclosed in this application, it should be understood that the disclosed apparatus / terminal equipment and methods 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 merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some data can be ignored or not executed.
[0102] One point is that the coupling or direct coupling or communication connection between each other shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or units, which may be electrical, mechanical or other forms.
[0103] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0104] The above formulas are all dimensionless and numerical calculations. The formulas are obtained by collecting a large amount of data and performing software simulation to obtain the most recent real situation. The preset parameters in the formulas are set by technicians in this field according to actual conditions.
[0105] The above is a detailed description of an embodiment of the present invention. However, the content described is only a preferred embodiment of the present invention and should not be considered to limit the scope 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 by: The following steps are involved: Step 1: By querying the information log, the query data of traditional Chinese medicine suppliers and buyers 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 re-checked data in the overlapped query sequence, perform a delay analysis on the time and data status to obtain storage node information, where the storage node information includes a delay count value and a delay degree value. The storage node information is sorted according to the delay matching value and output as 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 Chinese medicine suppliers and buyers query the supply and procurement data by querying the information log, compare the query time, and calculate the push time.
2. The blockchain-driven transparent management method for Chinese herbal medicine supply chain 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 previous query period; Obtain the query data of traditional Chinese medicine suppliers in the previous query period, count the number of queries 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 number, extract the query data corresponding to the maximum unit query number, and mark it as the period query data; The time period supply query data corresponding to all previous query periods are sorted based on the number of unit supply queries and in descending order to obtain a supply query table.
3. The blockchain-driven transparent management method for the supply chain of Chinese medicinal materials according to claim 1, characterized in that: The method to obtain the purchase inquiry form is: Obtain query data from traditional Chinese medicine buyers in previous query periods, count the number of queries in the query data in the previous query period, and calculate the ratio with the total number of queries in the previous query period to obtain the unit query number. Extract the query data corresponding to the maximum unit query number 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 blockchain-driven transparent management method for the supply chain of Chinese medicinal materials according to claim 1, 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 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 blockchain-driven transparent management method for the supply chain of Chinese medicinal materials 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 adjacent peak point coordinates and the trough point coordinates is calculated by Euclidean distance, and recorded as the peak-to-valley 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 descending order to obtain the overlap query sequence.
6. The blockchain-driven transparent management method for Chinese herbal medicine supply chain according to claim 1, characterized in that: The storage nodes of the supply and acquisition recheck data in the overlapped query sequence are analyzed as follows: Obtain the time when the supplier inquires about the supply and procurement review data, as well as the data status, and mark them as the supply review time point and supply review status respectively; Sort all query time points in the query information log according to the time sequence, and get 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 to obtain 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 by the time point of query, and get O={ 、 、 、......、 }; In the previous query cycle, the time point of the supply and inspection is compared with the time point of the collection and inspection, and the time point close to the time point of the supply and inspection is selected to obtain the time point of the supply and 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; Obtaining the supply and inspection status corresponding to the supply and inspection time point and the inspection status, and comparing the two. If the supply and inspection status corresponding to the supply and inspection time point and the inspection status are different, generating 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 blockchain-driven transparent management method for Chinese herbal medicine supply chain 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 count 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 no difference signals; The time intervals between the generation of adjacent supply and procurement query delay signals are obtained, and the time intervals between the generation of all adjacent supply and procurement query delay signals are averaged to obtain a delay degree value.
8. The blockchain-driven transparent management method for Chinese herbal medicine supply chain according to claim 1, characterized in that: The process of obtaining the node screening sequence is as follows: Calculate the ratio of the delay times to the delay degree to obtain the delay matching value; If the delay matching value is greater than or equal to the delay matching threshold, a large supply and purchase query discrepancy signal is generated; If the delay matching value is less than the delay matching threshold, a small supply and purchase query difference signal 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 ascending order to obtain a node screening sequence.
9. The blockchain-driven transparent management method for Chinese herbal medicine supply chain 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 overlapped 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 overlapped 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 overlapped query sequence is stored in the storage node ranked third in the node screening sequence, and so on until the supply and procurement recheck data ranked last in the overlapped query sequence is stored in the storage node ranked last in the node screening sequence; Traverse the supply and recheck data in the overlapping query sequence, store all the supply and recheck data in the overlapping 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 overlapping query sequence, and summarize and integrate them according to the data storage sorting to obtain the data storage sequence.
10. The blockchain-driven transparent management method for Chinese herbal medicine supply chain according to claim 1, characterized in that: The method for obtaining the push time is: 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 traditional Chinese medicine buyers is subtracted from the query time of the supply and purchase recheck data corresponding to the first storage node in the query sorting of traditional Chinese medicine suppliers, and the absolute value is taken to obtain the query time difference; Add up all the supply and procurement time differences in the previous query cycle and take the average to calculate the supply and procurement re-check data push time corresponding to the first ranked storage node; Traverse the supply and procurement re-check data corresponding to all storage nodes in the data storage sequence, calculate the average of the query time difference, and push the supply and procurement re-check data corresponding to all storage nodes in the data storage sequence to the traditional Chinese medicine purchasers according to the corresponding push time after querying the traditional Chinese medicine suppliers.
Citation Information
Patent Citations
Supply chain data collaboration method based on block chain
CN115271603A
Supply chain management platform based on digital service
CN117635021A