Article flow information tracing method, device, medium and equipment
By hosting the storage and access permission configuration of circulation information in the traceability platform, the issues of data security and privacy in the process of tracing the circulation information of goods are solved, and efficient and secure traceability and access management of circulation information are achieved.
Patent Information
- Application Number
- CN202111648304.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-29
- Publication Date
- 2025-11-04
- Estimated Expiration
- 2041-12-29
AI Technical Summary
In the existing process of tracing the flow of goods, effectively ensuring the security and privacy of data at each node is a key challenge.
By hosting the storage of circulation information and configuring access permissions in the traceability platform, and utilizing the storage address of permission files and auxiliary traceability relationships, access control and privacy protection of the circulation information storage unit of the node can be achieved.
It simplifies the information traceability process, improves the standardization and ease of access control for transferred information, and supports the systematic and standardized management of transferred information while protecting the privacy of information transferred between nodes.
Smart Images

Figure CN114329560B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present specification relates to the technical field of data processing, and in particular to an article flow information tracing method and device, medium and equipment. BACKGROUND
[0002] With the increasing of people's material living standards, more and more articles are manufactured and sold. The articles from manufacturing to sales to consumption nodes usually involve multiple nodes, such as production nodes, sales nodes, logistics nodes, consumption nodes, etc., and the flow cycle may be long, making the overall flow information tracing of the articles more complex and tedious. At present, the article flow information tracing is mainly coordinated by a tracing platform, and how to ensure the security and privacy of the data of each node in the tracing process is a key factor that needs to be considered in the construction of the tracing platform. SUMMARY
[0003] The embodiments of the present specification provide an article flow information tracing method, device, medium and equipment, which can more effectively realize the security and privacy protection of the flow information of the node party in the information tracing process.
[0004] The embodiments of the present specification provide an article flow information tracing method applied to a tracing platform, which comprises: receiving a tracing request for a specified article sent by a tracing end, wherein the tracing request at least comprises a tracing party identifier and a specified article identifier of the specified article; extracting a permission file storage address of a target node party associated with the specified article identifier; wherein the permission file storage address is pre-configured in the tracing platform; accessing a flow information permission file of the target node party according to the extracted permission file storage address; wherein the flow information permission file is at least used to configure the access permission of a flow information storage unit; the flow information storage unit refers to a storage unit corresponding to a node party and used to store the article flow information of the corresponding node party; in the case that the tracing party identifier has access permission to the flow information storage unit of the target node party based on the flow information permission file, feeding back the position information of the flow information storage unit of the target node party to the tracing end, so as to enable the tracing end to obtain the article flow information of the specified article.
[0005] In other embodiments, the flow information permission file further comprises an association relationship among the article identifier, the flow information storage address, and the access permission of the flow information storage address; wherein the flow information storage address refers to the storage address of the article flow information in the flow information storage unit of the node party.
[0006] In some other embodiments, the method further comprises: receiving an information uploading request; the information uploading request comprises at least a node party's permission file storage address, article circulation information, article identification, and access permission of the article circulation information; storing the article circulation information to a circulation information storage unit of the node party; and accessing the permission file storage address, and associating and configuring the storage location of the circulation information storage unit, the article identification, and the access permission to a circulation information permission file of the node party.
[0007] In some other embodiments, the extracting the permission file storage address of the target node party associated with the specified article identification comprises: extracting the permission file storage address of the target node party associated with the specified article identification based on an auxiliary traceability relationship; and the auxiliary traceability relationship comprises at least an association relationship among article identification, node type, and permission file storage address.
[0008] In some other embodiments, the auxiliary traceability relationship comprises at least an association relationship among article identification, node type, and permission file storage address; the node type refers to a type of a circulation node to which the article circulation information belongs; the traceability request further comprises at least a specified node type; and correspondingly, the extracting the permission file storage address of the target node party associated with the specified article identification comprises: extracting the permission file storage address of the target node party associated with the specified article identification under the specified node type.
[0009] In some other embodiments, the method further comprises: receiving an information uploading request; the information uploading request comprises at least a node party's permission file storage address, article circulation information, article identification, and access permission of the article circulation information; storing the article circulation information to a circulation information storage unit of the node party; and accessing the permission file storage address, and associating and configuring the storage location of the circulation information storage unit, the article identification, and the access permission to a circulation information permission file of the node party.
[0010] In some other embodiments, the method further comprises: obtaining a storage address of the article circulation information in a circulation information storage unit; and correspondingly, associating and configuring the storage address of the article circulation information in the circulation information storage unit, the article identification, and the access permission to a circulation information permission file of the node party.
[0011] In some other embodiments, the article circulation information is represented by a third-party information storage address storing article circulation information details.
[0012] In some other embodiments, the article circulation information is represented by article circulation information details.
[0013] In some other embodiments, the method further comprises: processing the article circulation information to obtain processed circulation information; and storing the processed circulation information to a circulation information storage unit of the node party.
[0014] In some other embodiments, the method further comprises: in the case that it is confirmed that the trace party identifier has no access right based on the flow information permission file, sending an access authorization request to the node terminal corresponding to the target node party; the access authorization request at least comprises the trace party identifier; and in the case that the trace party identifier is open to access as fed back by the node terminal corresponding to the target node party, feeding back the location information of the flow information storage unit of the target node party to the trace terminal.
[0015] The embodiments of the present disclosure provide an article flow information tracing device applied to a tracing platform, the device comprising: a receiving module configured to receive a tracing request for a specified article sent by a trace terminal, the tracing request at least comprising a trace party identifier and a specified article identifier of the specified article; an obtaining module configured to extract a permission file storage address of a target node party associated with the specified article identifier; wherein the permission file storage address is pre-configured in the tracing platform; an accessing module configured to access a flow information permission file of the target node party according to the extracted permission file storage address; wherein the flow information permission file is used at least for configuring access right of a flow information storage unit; the flow information storage unit refers to a storage unit corresponding to a node party and used for storing article flow information of the corresponding node party; and a feeding back module configured to feed back location information of the flow information storage unit of the target node party to the trace terminal in the case that it is confirmed that the trace party identifier has access right based on the flow information permission file, so that the trace terminal obtains article flow information of the specified article.
[0016] The embodiments of the present disclosure provide an article flow information processing method applied to a tracing platform, the method comprising: receiving an information upload request; the information upload request at least comprising a permission file storage address of a node party, article flow information, an article identifier, and access right of the article flow information; storing the article flow information to a flow information storage unit of the node party; and according to the permission file storage address, associating and configuring the location information of the flow information storage unit where the article flow information is stored, the article identifier, and the access right into a flow information permission file of the node party.
[0017] The embodiments of the present disclosure provide an article flow information processing device applied to a tracing platform, the device comprising: a receiving module configured to receive an information upload request; the information upload request at least comprising a permission file storage address of a node party, article flow information, an article identifier, and access right of the article flow information; a storage module configured to store the article flow information to a flow information storage unit of the node party; and a configuration module configured to, according to the permission file storage address, associate and configure the location information of the flow information storage unit where the article flow information is stored, the article identifier, and the access right into a flow information permission file of the node party.
[0018] The embodiments of the present specification provide a computer readable storage medium, which stores computer instructions, and the instructions are executed by a processor to implement the steps of the method according to any one or more embodiments.
[0019] The embodiments of the present specification provide a computer device, which comprises a memory, a processor and computer instructions stored in the memory, and the processor executes the instructions to implement the steps of the method according to any one or more embodiments.
[0020] The embodiments of the present specification provide an article flow information tracing method, device, medium and equipment, the article flow information of the node party and the access right can be stored in the storage unit corresponding to the node party, and the flow information in the storage unit can be accessed only with the access authorization of the node party. The node party can only entrust the judgment of the access right in the tracing platform to realize the tracing of the flow information and the right control. Only the authorized tracing party can access the storage unit of the node to obtain the flow information, thereby realizing information tracing on the basis of protecting the privacy of the flow information of the node party. BRIEF DESCRIPTION OF DRAWINGS
[0021] The accompanying drawings included to provide a further understanding of the embodiments of the present specification and constitute a part of the specification, which illustrate the embodiments of the present specification and together with the text description explain the principles of the present specification. Obviously, the drawings in the following description are only some embodiments of the present specification, and other drawings can be obtained by those skilled in the art without creative labor under the premise of the drawings. In the drawings:
[0022] Figure 1 The article flow information tracing interaction schematic diagram provided by the embodiments of the present specification;
[0023] Figure 2 The flowchart of the article flow information processing method provided by the embodiments of the present specification;
[0024] Figure 3 The flowchart of the article flow information tracing method provided by the embodiments of the present specification;
[0025] Figure 4 The module structure schematic diagram of the article flow information processing device provided by the embodiments of the present specification;
[0026] Figure 5 The module structure schematic diagram of the article flow information tracing device provided by the embodiments of the present specification;
[0027] Figure 6A module structure schematic diagram of a computer device provided in an embodiment of the present specification is shown. DETAILED DESCRIPTION
[0028] In order for those skilled in the art to better understand the technical solutions in the present specification, the technical solutions in the present specification will be clearly and completely described in conjunction with the drawings in the embodiments of the present specification. Obviously, the described embodiments are only part of the embodiments of the present specification, not all the embodiments. Based on the embodiments in the present specification, all other embodiments obtained by those skilled in the art without creative labor should belong to the scope of protection of the present specification.
[0029] Drug data security has always been the focus of social attention. In a scene example provided in the present specification, the scheme provided in the embodiments of the present specification is illustrated by taking drug traceability as an example. The drug circulation information traceability method of the scene example can be applied to a traceability platform.
[0030] As shown in Figure 1 , the drug may involve multiple nodes in the circulation process from production to sales, such as production nodes, sales nodes, logistics nodes, and consumption nodes. For example, production node A produces drug W, which is sold by sales node B. Consumption node D purchases drug W from sales node B, and logistics node C transports drug W to consumption node D. The nodes involved in the circulation information of the drug W are production node A, sales node B, logistics node C, and consumption node D. Correspondingly, the drug circulation information can include at least production information generated by the production node, sales information generated by the sales node, logistics information generated by the logistics node, and consumption information generated by the consumption node, and so on.
[0031] The drug circulation information generated by the node party can be stored in the circulation information storage unit of the node party. As shown in Figure 1 , the circulation information storage unit is an information storage interval corresponding to the node party, used to store the circulation information of the node party. Each node party can have at least one circulation information storage unit. The circulation information storage unit of the node party can be distributed in any accessible data storage device. For example, the drug production data generated by production node A can be stored in the storage device owned by production node A itself, or in the cloud storage device allocated by a third party for production node A. The same is true for other node parties, which will not be described here.
[0032] The node party can host the access right of the circulation information on the traceability platform. The access right of the circulation information can include the access right of different circulation information in the storage unit. For example, the access right can be configured directly for the storage unit, which access right parties can access the storage unit of the node party, which access right parties cannot access the storage unit of the node party, and the like. Alternatively, the access right can also be configured for different circulation information in the storage unit, for example, the storage address of the circulation information in the storage unit, which access right parties can access, which access right parties cannot access, and the like.
[0033] The specific information of the storage unit access right can be configured in the circulation information right file. The file type of the circulation information right file is not limited. The circulation information right file of the node party can also be stored in the circulation information storage unit of the node party. The storage address of the circulation information right file can be stored in the traceability platform, so as to facilitate the traceability platform to read the circulation information right file to perform access right control of the circulation information of the corresponding node party. For convenience of description, the storage address of the circulation information right file can be described as a right file storage address.
[0034] The circulation information right file can be edited as a page file that can be displayed in a browser or an application. The node party can access the right file storage address through the browser or the application on the node end. When the node end of the node party receives the circulation information right file fed back by the database server, the node end can parse the circulation information right file and display a right management interface. The node party can view the configured circulation information access right on the right management interface and change the access right configuration information and the like, so that the node party can more intuitively and flexibly manage the circulation information held by the node party.
[0035] In the scene example, the node party can only host the access right in the traceability platform, and the storage and right configuration of the circulation information are isolated from the traceability platform, realizing decoupling of the circulation information and the circulation information traceability, and realizing information traceability on the basis of protecting the privacy of the circulation information of the node party. Correspondingly, after receiving the circulation information traceability request of the traceability party for the specified drug, the traceability platform can read the circulation information right file of the node party based on the right file storage address of the node party associated with the specified drug, and determine whether the traceability party has the circulation information acquisition right based on the circulation information right file. If it is confirmed that the traceability party has the circulation information acquisition right, the location information of the storage unit where the circulation information is stored or the storage address in the storage unit can be fed back to the traceability party, so that the traceability party acquires the circulation information stored in the circulation information storage unit of the node party.
[0036] Of course, node providers can also host the storage of circulation information and permission configuration on the traceability platform. For example, node providers can upload drug circulation information, the location information of the circulation information storage unit, and access permissions for that drug circulation information through the permission management interface. The node can then send the information uploaded by the node to the traceability platform. The traceability platform then interacts with the database via MySQL and stores the received drug circulation information in the node's circulation information storage unit. Furthermore, the traceability platform can also associate the storage address of the drug circulation information within the circulation information storage unit, along with the access permissions for the drug circulation information, in a circulation information permission file.
[0037] Correspondingly, the traceability platform can also be configured with processing logic for the circulation information to process the drug circulation information uploaded by the nodes. This processing logic may include information splitting, information recombination, and statistical analysis. The traceability platform can also store the processed circulation information in the node's circulation information storage unit. Furthermore, the traceability platform can associate the storage address of the processed circulation information in the circulation information storage unit, its access permissions to the drug circulation information, etc., in a circulation information permission file.
[0038] By having the traceability platform uniformly manage the storage and permission configuration of flow information, the simplicity and consistency of these processes can be further improved. Simultaneously, it facilitates secondary processing of the flow information and allows for easier permission control of the processed information, thus enhancing the comprehensiveness of flow information permission control.
[0039] Based on the above scenario examples, such as Figure 2 As shown in the embodiments of this specification, an item circulation information processing method is also provided, which is applied to a traceability platform. The method may include the following steps.
[0040] S20: Receive information upload request; the information upload request includes at least the node's permission file storage address, item flow information, item identifier, and access permissions for the item flow information.
[0041] The items can refer to physical items, such as medicines, food, electronic devices, etc.; or they can refer to virtual items.
[0042] The article flow information can at least include article information generated by each node party. As described in the above scenario example, the article flow process can involve production nodes, sales nodes, logistics nodes, and consumption nodes. Any node involved in the article flow process can be described as a node party. Of course, the flow information tracing can also involve more detailed information tracing. For example, a production node can include multiple production sub-nodes to trace production information in more detail. A sales node can also include multiple sales sub-nodes, and a logistics node can also include multiple logistics sub-nodes, and so on. Accordingly, each sub-node involved in the article flow information tracing can also be a node party. The type and division of nodes involved in the article flow are not limited in the present specification. Of course, the article flow information can also include article information obtained by the node party from other node parties or open source platforms.
[0043] The node party can host the storage and permission configuration of the flow information on the tracing platform. For example, the node party can upload the article flow information, the storage address of the permission file, the location information of the flow information storage unit, and the access permission for the article flow information through the permission management interface of the node terminal. The node terminal sends the information uploaded by the node party to the tracing platform. The tracing platform can store the received article flow information in the flow information storage unit of the node party by interacting with the database through mySQL. The tracing platform can also store the storage address of the article flow information in the flow information storage unit and the access permission of the article flow information in the flow information permission file.
[0044] The node party can also upload article flow information and permission configuration information with the assistance of a third-party platform. For example, for online sales, the online sales platform is a third-party platform, and the sales store and the consumption node are node parties that actually hold the permission of the article flow information. The sales store can pre-configure general permissions for each article it sells, such as article flow information involved in a transaction order being authorized only to regulatory authorities and the consumption node of the transaction order, and other node parties having no access. The general permissions can be pre-configured by the online sales platform or the tracing platform, and the sales store does not need to configure additional permissions. The sales store can view its access permissions through the permission management interface, and if there are other permission configuration requirements, it can also flexibly perform other permission configurations through its node terminal, which is not limited here. The online sales platform can send the article flow information, the storage address of the permission file, the location information of the flow information storage unit, and the access permission for the article flow information to the tracing platform, which stores them in the flow information storage unit of the node party, and stores the storage address of the article flow information in the flow information storage unit and the access permission of the article flow information in the flow information permission file. Through the above method, the tracing platform and the third-party platform can be effectively connected.
[0045] In the above embodiments, the location information of the node-side flow information storage unit can also be pre-configured in the node-side flow information permission file, and the tracking platform obtains the location information of the node-side flow information storage unit by accessing the node-side flow information permission file. Of course, the above processing mode is only a preferred example, and other modified embodiments can also be implemented in specific implementation, but as long as the functions and effects are the same or similar, they should be covered within the protection scope of the present specification.
[0046] In the above embodiments, when the node end or the third party platform uploads the article flow information, the article flow information can be represented by an article flow information detail table. The article flow information involved in a transaction order usually includes transaction order number, article basic information, sales shop identification, consumer shop identification, and other flow information details.
[0047] Alternatively, the article flow information can also be represented by a third party information storage address. For example, the article is sold on an online sales platform, the online sales platform is a third party, and the sales shop and the consumer node are node parties that actually hold the right to the article flow information, but the transaction order information generated by the article exchange is stored in the database of the online sales platform. At this time, the article flow information can be represented by the information storage address of the transaction order information on the online sales platform. Representing the article flow information by a third party information storage address and uploading it to the tracking platform can effectively reduce the amount of information transmission and avoid repeated storage of information.
[0048] In the above embodiments, if the article flow information uploaded by the node end or the third party platform is represented by a third party information storage address, the node party or the third party platform can also send the article identification, information identification, and other identification information corresponding to the article flow information. The article identification can be information that uniquely identifies the article. The article identification can be a traceability code. Of course, the article identification can also be other types of information that uniquely identify the article. The information identification can be a production batch number, a transaction order number, a logistics order number, etc., to identify production information, transaction order information, logistics information, etc., respectively, to identify the article flow information in more detail.
[0049] In the case where the article flow information uploaded by the node end or the third party platform is represented by an article flow information detail table, the article flow information detail table usually contains article identification, information identification, and other identification information. At this time, the article flow information sent by the node party or the third party platform is associated with the article identification and other identification information. Of course, the node party or the third party platform can also send the article identification, information identification, and other identification information corresponding to the article flow information.
[0050] S22: store the article flow information to the node-side flow information storage unit.
[0051] As described in the above embodiments, when the location information of the node party's certain flow information storage unit is specified in the information uploading request, the traceability platform can store the article flow information into the specified flow information storage unit based on the location information contained in the request. When the location information of the flow information storage unit is not specified in the information uploading request, the traceability platform can also access the permission file storage address, extract the location information of the node party's flow information storage unit from the node party's flow information permission file, and then store the article flow information into the node party's flow information storage unit based on the extracted location information.
[0052] The traceability platform can also store the article identifier and information identifier of the article flow information, etc., associated with the article flow information into the node party's flow information storage unit.
[0053] S24: According to the permission file storage address, the location information of the flow information storage unit to be stored is associated with the article identifier and access permission, and is configured into the node party's flow information permission file.
[0054] The node party can configure the permission for the entire flow information storage unit where the article flow information is stored. The traceability platform can configure the location information of the flow information storage unit where the article flow information is stored into the node party's flow information permission file in association with the article identifier and access permission. At this time, if the traceability party has a traceability demand for a certain article, the traceability platform can extract the location information of the flow information storage unit where the article flow information of the article is stored from the flow information permission file based on the article identifier of the article; and determine whether the traceability party has access permission to the flow information storage unit associated with the article identifier based on the flow information permission file. If it is confirmed that the traceability party has access permission, the traceability platform can feed back the extracted location information of the flow information storage unit to the traceability end, so that the traceability end accesses the flow information storage unit and extracts the required article flow information from the flow information storage unit based on the article identifier.
[0055] In some other embodiments, the node side or the third party platform can specify a storage address of the item flow information in the flow information storage unit when uploading the item flow information. After receiving the item flow information uploaded by the node side or the third party platform, the traceability platform can store the item flow information in the specified storage address based on the storage address specified by the node side or the third party platform. The traceability platform takes the specified storage address as the storage address of the item flow information in the flow information storage unit. Alternatively, the traceability platform can also store the storage addresses pre-configured for different item identifiers. The traceability platform can store the item flow information in the corresponding storage address based on the item identifier. Of course, the above processing manner is only a preferred example, and other modified embodiments can also be implemented in specific implementation, as long as the functions and effects are the same or similar, which should be covered in the protection scope of the present specification. It should be noted that, in order to simplify the description, the storage address of the item flow information in the flow information storage unit in part of the description of the embodiments of the present specification can be simplified as the flow information storage address.
[0056] The traceability platform can access the permission file storage address, and associate the storage address of the item flow information in the flow information storage unit with the item identifier and the access permission, and configure them into the flow information permission file of the node side. Of course, the traceability platform can further associate the information identifier and the like into the flow information permission file of the node side. By associating the storage address of the specified item or the flow information of the specified item under the specified information identifier in the flow information permission file, the access permission of the flow information can be controlled more granularly, and the privacy of the flow information of the node side can be further protected. At the same time, the traceability platform can also directly feed back the storage address of the flow information of the specified item or the specified item under the specified information identifier to the traceability end, so that the traceability end can more quickly obtain the flow information of the specified item in the flow information storage unit of the target node side, and improve the traceability convenience of the flow information.
[0057] The scheme provided by the above embodiments can further improve the standardization and convenience of the flow information permission control by hosting the flow information storage and access permission configuration on the traceability platform. At the same time, the processing of the flow information can be more conveniently realized, so that the item flow information is more systematic and standardized; and the permission control of the processed item flow information can be realized, further improving the comprehensiveness of the flow information permission control.
[0058] For example, when the received item flow information is in the form of an item flow information table, the traceability platform can further analyze and process the received drug flow information to obtain processed flow information. For example, the sales platform can upload a transaction order, and the traceability platform can analyze the transaction order to extract the traceability codes, sellers, consumer nodes, logistics nodes, and other drug flow information of the drugs involved in the transaction order. For example, a transaction order can involve multiple drugs, and after the traceability platform processes the transaction order, it can obtain drug flow information corresponding to each drug, making the storage of flow information more granular and more standardized. Alternatively, the traceability platform can also perform statistical analysis on the received flow information based on pre-configured statistical analysis logic to generate statistical analysis results as processed flow information, making the display of item flow information more flexible and intuitive. Of course, other types of processing logic can also be configured as needed. Subsequently, the traceability platform can interact with the database through mySQL to store the processed flow information in the flow information storage unit of the node party, and also associate the access rights of the processed flow information to the flow information rights file, realizing the rights management and control of the processed flow information.
[0059] The traceability platform can also feed back the processed flow information to the node end, so that the node party can further configure the rights of the processed flow information in the rights management interface. For example, a transaction order can involve multiple drugs, and after the traceability platform processes the transaction order, it can obtain drug flow information corresponding to each drug. The traceability platform can feed back the drug flow information corresponding to each drug to the node party, so that the node party can configure the rights of the drug flow information of each drug in the rights management interface, further improving the flexibility and comprehensiveness of rights management and control.
[0060] Of course, the storage of item flow information and the configuration of rights can also not be hosted on the traceability platform, but can be handled by the node party or a third party entrusted by the node party. If the flow information is stored in the flow information storage unit of the node party by the node party or the third party, the node party or the third party can store the flow information in the flow information storage unit and configure the access rights in the flow information rights file by referring to the above-mentioned manner.
[0061] Based on the above-mentioned embodiments, as shown in the following table, the present specification also provides an item flow information traceability method applied to a traceability platform, which can include the following steps. Figure 3
[0062] S30: receiving a traceability request for a specified item sent by a traceability end, the traceability request at least including a traceability party identifier and a specified item identifier of the specified item.
[0063] The trace end can refer to the device of the trace party with the trace request of the flow information. For example, the trace party can be a regulatory department, a consumption node, and other enterprises with the trace request of the flow information, and the like. The trace party identifier can refer to information uniquely identifying the trace party. The trace party identifier can be the identification information of the trace party, or the device identifier of the trace end. Of course, the trace party identifier can also be other types of information uniquely identifying the trace party. It should be noted that in the embodiments of the present specification, in order to facilitate the description, the institutions, enterprises, individuals, and the like through which the goods flow are described as node parties, and the institutions, enterprises, individuals, and the like that send the trace request to the trace platform are described as trace parties. In fact, the trace party and the node party can be coincident. For example, the consumption node that uploads the flow information of the specified goods and the seller that purchases the specified goods can be coincident.
[0064] When the trace party has the trace demand of the flow information of the goods, the trace party can send the trace request to the trace platform through the trace end. The trace request can at least include the trace party identifier and the specified goods identifier of the specified goods. For example, when checking whether there is a problem in each flow link of the specified medicine, the regulatory department can send the trace request to the trace platform. The trace request can at least include the institution identifier and the specified medicine identifier of the specified medicine. Of course, the regulatory department can also send the trace request for multiple goods to the trace platform at a time. Correspondingly, in the case where the trace party sends the trace request for multiple goods to the trace platform at a time through the trace end, the specified goods can refer to any of the multiple goods.
[0065] S32: Extract the permission file storage address of the target node party associated with the specified goods identifier; wherein the permission file storage address is pre-configured in the trace platform.
[0066] As described in the above scenario example, the permission file storage address is the storage address of the flow information permission file of the node party. The flow information permission file can be configured with specific information of the access permission of the flow information storage unit of the node party. For example, the access permission can be directly configured for the storage unit, which access parties can access the storage unit of the node party, which access parties cannot access the storage unit of the node party, and the like. Alternatively, the access permission can also be configured for different flow information in the storage unit, for example, the storage address of the flow information in the storage unit, which access parties can access, which access parties cannot access, and the like.
[0067] The permission file storage address can be pre-configured in the trace platform, so that the trace platform can control the access permission of the flow information of the node party based on the flow information permission file of the node party.
[0068] The permission file storage address can be stored in association with the enterprise name and the like, so that when the traceability party sends a traceability request, the node party can be directly specified. For example, when the traceability party sends a traceability request, the traceability party can specify the enterprise name associated with the goods. Correspondingly, the traceability platform can extract the permission file storage address associated with the enterprise name specified in the traceability request as the permission file storage address of the target node party associated with the specified goods identifier.
[0069] In most requests, the traceability party may not know the node party involved in the specified goods. At this time, the traceability platform needs to find the node party associated with the specified goods in order to determine the storage location of the circulation information and the access permission.
[0070] The auxiliary traceability relationship can be pre-constructed in the traceability platform. The auxiliary traceability relationship can be stored in the form of a knowledge graph or in the form of a relational data table, which is not limited here.
[0071] The auxiliary traceability relationship can at least include the association relationship between the goods identifier and the permission file storage address. In the case that the circulation information storage and access permission configuration are hosted in the traceability platform, after receiving the information upload request, the traceability platform can store the association between the goods identifier of the goods circulation information and the permission file storage address of the node party in the traceability platform. The goods identifier can be sent in association when the node end or the third party platform uploads the goods circulation information; or the traceability platform can extract the goods identifier from the goods circulation information details when the traceability platform receives the goods circulation information details. In the case that the circulation information storage and access permission configuration are handled by the node party or a third party entrusted by the node party, the association relationship between the goods identifier and the permission file storage address can be sent to the traceability platform by the node party or the third party.
[0072] After receiving the traceability request sent by the traceability end, the traceability platform can filter out the permission file storage address associated with the specified goods identifier based on the association relationship between the specified goods identifier and the permission file storage address. For example, the traceability end can scan the traceability code on the medicine and send a traceability request to the traceability platform. Correspondingly, the traceability request can include the traceability code. After receiving the traceability request sent by the traceability end, the traceability platform can filter out the permission file storage address associated with the traceability code based on the association relationship between the traceability code and the permission file storage address.
[0073] The tracing platform can also store the association between the article identifier and the information identifier and the permission file storage address. The association between the article identifier, the information identifier, and the permission file storage address can be determined in the same manner as the association between the article identifier and the permission file storage address, which will not be described here. Correspondingly, the tracing terminal can also include a specified information identifier in the tracing request sent to the tracing platform to extract the article flow information of the specified article under the specified information identifier. The sales information of the same specified article can correspond to multiple sales sub-nodes, and by further associating the transaction number, the article flow information required by the tracing party can be more quickly located to the node party.
[0074] For example, after the tracing terminal scans the tracing code on the article, the tracing information filtering interface can be displayed on the tracing terminal to collect the tracing requirements of the tracing terminal. For example, the operator corresponding to the tracing terminal can input the transaction number on the tracing information filtering interface and trigger the tracing request sending control. The tracing terminal can send a tracing request to the tracing platform. The tracing request can include the tracing code and the transaction number. After receiving the tracing request sent by the tracing terminal, the tracing platform can filter the permission file storage address associated with the tracing code and the transaction number based on the association between the tracing code, the transaction number, and the permission file storage address.
[0075] The tracing platform can also store the association between the article identifier and the information identifier and the permission file storage address. The association between the article identifier, the information identifier, and the permission file storage address can be determined in the same manner as the association between the article identifier and the permission file storage address, which will not be described here. Correspondingly, the tracing terminal can also include a specified information identifier in the tracing request sent to the tracing platform to extract the article flow information of the specified article under the specified information identifier. The sales information of the same specified article can correspond to multiple sales sub-nodes, and by further associating the transaction number, the article flow information required by the tracing party can be more quickly located to the node party.
[0076] For example, the operator corresponding to the tracing terminal can input the production node on the tracing information filtering interface and trigger the tracing request sending control. The tracing terminal can send a tracing request to the tracing platform. The tracing request can include the tracing code and the production node. After receiving the tracing request sent by the tracing terminal, the tracing platform can filter the permission file storage address associated with the tracing code and the production node based on the association between the tracing code, the production node, and the permission file storage address.
[0077] Of course, the above processing mode is only a preferred example, and other modified embodiments can also be implemented during implementation, but as long as the functions and effects are the same or similar, they should be covered within the protection scope of the present specification.
[0078] S34: Access the flow information permission file of the target node party according to the extracted permission file storage address; wherein the flow information permission file is used at least for configuring the access permission of the flow information storage unit; the flow information storage unit refers to the storage unit corresponding to the node party and used for storing the flow information of the corresponding node party.
[0079] S36: In the case where it is confirmed based on the flow information permission file that the trace party identifier has access permission to the flow information storage unit of the target node party, feedback the location information of the flow information storage unit of the target node party to the trace end, so that the trace end obtains the flow information of the specified goods.
[0080] The trace platform can access the flow information permission file of the target node party according to the extracted permission file storage address. The flow information permission file can be configured at least with the access permission of the flow information storage unit of the node party, such as which trace party can access and which cannot access. For example, the trace platform can extract the corresponding flow information permission file from the database based on the access permission file storage address, and then determine whether the trace party identifier has access permission to the flow information storage unit of the target node party based on the flow information permission file. In the case where it is determined that access is allowed, the trace platform can feedback the location information of the flow information storage unit of the target node party to the trace end, so that the trace end obtains the flow information of the specified goods, thereby obtaining the flow information of the specified goods in the flow information storage unit of the target node party. For example, the trace end can send a flow information acquisition request for the specified goods to the database server corresponding to the flow information storage unit based on the location information of the flow information storage unit, so as to obtain the flow information of the specified goods in the flow information storage unit of the target node party.
[0081] As described in the above scenario examples and embodiments, the flow information permission file can further store the association relationship between the article identifier, the location information of the flow information storage unit, and the access permission for the location information. After receiving the traceability request, the traceability platform can further extract the access permission of the location information of the flow information storage unit associated with the specified article identifier to determine whether the traceability party identifier has access permission to the flow information storage unit storing the specified article. If it is confirmed that the access permission exists, the location information of the flow information storage unit associated with the specified article identifier can be fed back to the traceability end. The flow information storage unit held by the node party can be more than one. By further configuring the permission for the flow information storage unit where the article flow information is specifically stored, the flexibility of the permission configuration can be further improved, and the efficiency of the flow information traceability can be further improved.
[0082] Further, the flow information permission file can further be configured with the association relationship among the article identifier, the flow information storage address, and the access permission of the flow information storage address. The traceability platform can extract the corresponding flow information permission file from the database based on the access permission file storage address, and determine whether the traceability party identifier has access permission to the flow information storage address of the specified article identifier based on the access permission associated with the specified article identifier in the flow information permission file. In other embodiments, the traceability platform can also send the specified article identifier and the permission file storage address to the database server corresponding to the flow information permission file, so that the database server filters the access permission associated with the specified article identifier from the corresponding flow information permission file and feeds it back to the traceability platform. The traceability platform determines whether the traceability party identifier has access permission to the flow information storage address of the specified article identifier based on the access permission fed back by the database server.
[0083] In the case where it is confirmed based on the flow information permission file that the traceability party identifier has access permission to the flow information storage address associated with the specified article identifier, the traceability platform can feed back the flow information storage address associated with the specified article identifier to the traceability end. For example, if it is confirmed that the traceability party identifier has access permission, the traceability platform can extract the flow information storage address associated with the specified article identifier from the flow information permission file and feed it back to the traceability end. Alternatively, the database server filters the flow information storage address associated with the specified article identifier from the corresponding flow information permission file and feeds it back to the traceability platform; the traceability platform feeds back the flow information storage address associated with the specified article identifier to the traceability end based on the access permission confirming that the traceability party has permission.
[0084] After receiving the flow information storage address, the traceability end can obtain the article flow information of the specified article based on the storage address of the article flow information, so as to obtain the flow information of the specified article in the flow information storage unit of the target node party.
[0085] The above-mentioned permission association manners are only preferred examples, and other modified manners can also be implemented in specific implementation, as long as the functions and effects are the same or similar, which should be covered in the protection scope of the present specification. For example, the information identifier can be further associated in the flow information permission file. The specified information identifier can be included in the traceability request, and the traceability platform can determine whether the traceability party identifier has access permission to the flow information storage address of the specified article identifier and the specified information identifier based on the access permission associated with the specified article identifier and the specified information identifier in the flow information permission file.
[0086] By further associating the storage article identifier, information identifier, access permission and the like in the flow information permission file, the traceability platform can more finely control the access permission of the traceability party. In addition, by further associating the storage article identifier, information identifier, flow information storage address in the flow information permission file, the traceability platform can directly feed back the specified article and the flow information storage address of the specified article under the specified information identifier to the traceability end, so that the traceability end can more quickly obtain the flow information of the specified article in the flow information storage unit of the target node party, and improve the traceability convenience of the flow information.
[0087] In some other embodiments, in the case that it is confirmed based on the flow information permission file that the traceability party identifier does not have access permission, the traceability platform can also send an access authorization request to the node end corresponding to the target node party. The access authorization request can at least include the traceability party identifier. In the case that the node end corresponding to the target node party feeds back that the traceability party identifier is open to permission, the traceability platform feeds back the location information of the flow information storage unit of the target node party to the traceability end.
[0088] Of course, in the case of more fine-grained authorized access control, the access authorization request can also include the location information of the flow information storage unit associated with the specified article identifier, or the flow information storage address, etc. Correspondingly, in the case that the node end corresponding to the target node party feeds back that the traceability party identifier is open to permission, the traceability platform feeds back the location information of the corresponding flow information storage unit, or the flow information storage address, etc. to the traceability end.
[0089] The traceability platform can send the traceability request to the node end in two ways: after confirming that the traceability party identifier does not have access permission, it can send the traceability request to the traceability end by itself; or after receiving the request authorization instruction sent by the traceability end, it can send the traceability request to the traceability end. Whether the traceability platform adopts which way to send the traceability request to the node end can be pre-configured in the flow information permission file by the node party.
[0090] The authorization of the node party based on the traceability request can be single-time valid, valid within a specified time interval, or unlimited in time. The node party can send the authorization valid mode in feedback of the authorization indication. In the case that the authorization of the traceability request is valid within a specified time interval or unlimited in time, the authorization valid mode can also be stored in the flow information permission file of the target node party. For example, the traceability platform can associate the traceability party identifier and the specified article identifier involved in the traceability request with the authorization valid interval, and store them in the flow information permission file of the target node party, so as to improve the flexibility of authorization control.
[0091] In the case that the traceability platform receives the rejection authorization instruction feedback by the target node party, the traceability platform can also feedback a notification of the rejection of the access of the node party to the traceability end.
[0092] The scheme provided by the above embodiment can store the article flow information and the access permission of the node party in the storage unit corresponding to the node party, and the flow information in the storage unit can be accessed only with the access authorization of the node party. The node party can only entrust the traceability platform with the judgment of the access permission, so as to realize the traceability of the flow information and the permission control. Only the traceability party authorized can access the storage unit of the node and obtain the flow information, so as to realize the information traceability on the basis of protecting the privacy of the flow information of the node party, and make the information traceability safer as a whole.
[0093] Based on the method provided in the above embodiment, the present specification embodiment further provides an article flow information processing device applied to the traceability platform. As shown in Figure 4 The article flow information processing device includes the following modules: a receiving module 402 configured to receive an information upload request; the information upload request includes at least a permission file storage address of a node party, article flow information, an article identifier, and an access permission of the article flow information; a storage module 404 configured to store the article flow information in a flow information storage unit of the node party; and a configuration module 406 configured to associate the position information of the flow information storage unit where the article flow information is stored with the article identifier and the access permission, and configure them in a flow information permission file of the node party according to the permission file storage address. The functions and effects realized by the function modules involved in the device provided in the present embodiment can be explained in comparison with other embodiments, and will not be described herein.
[0094] Based on the method provided in the above embodiment, the present specification embodiment further provides an article flow information processing device applied to the traceability platform. As shown in Figure 5As shown, the item circulation information traceability device includes the following modules: a receiving module 502, used to receive a traceability request for a specified item sent by the traceability terminal, the traceability request including at least a traceability party identifier and a specified item identifier of the specified item; an acquisition module 504, used to extract the permission file storage address of the target node associated with the specified item identifier; wherein, the permission file storage address is pre-configured in the traceability platform; an access module 506, used to access the circulation information permission file of the target node according to the extracted permission file storage address; wherein, the circulation information permission file is at least used to configure the access permissions of the circulation information storage unit; the circulation information storage unit refers to the storage unit corresponding to the node and used to store the item circulation information of the corresponding node; and a feedback module 508, used to feed back the location information of the circulation information storage unit of the target node to the traceability terminal when it is confirmed that the traceability party identifier has access permissions based on the circulation information permission file, so that the traceability terminal can obtain the item circulation information of the specified item. The functions and effects implemented by the functional modules in the device provided in this embodiment can be explained in comparison with other embodiments, and will not be repeated here.
[0095] like Figure 6 As shown, this specification also provides a computer device, including a memory, a processor, and computer instructions stored in the memory. The processor executes the instructions to implement the steps of the methods described in any one or more of the above embodiments. The processor may take the form of, for example, a microprocessor or processor, and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, logic gates, switches, application-specific integrated circuits (ASICs), programmable logic controllers, and embedded microcontrollers, etc. The memory includes, but is not limited to, random access memory (RAM), read-only memory (ROM), cache, hard disk drive (HDD), or memory card. The computer device may be a server, etc., as described in the above embodiments. Of course, the computer device may also include input devices, transmission modules, and other modular structures. In this embodiment, the specific functions and effects implemented by the computer device can be explained in comparison with other embodiments, and will not be repeated here.
[0096] Also, the embodiments of the present specification further provide a computer readable storage medium, which stores computer instructions, and the instructions are executed by a processor to implement the steps of the method described in any one or more embodiments of the present specification. The storage medium can include a physical device for storing information, and is usually to store information after digitizing the information by using media of electric, magnetic or optical, etc. The storage medium can include: a device for storing information by using electric energy, such as various memories, such as RAM, ROM, etc.; a device for storing information by using magnetic energy, such as hard disk, floppy disk, magnetic tape, magnetic core memory, bubble memory, U disk; a device for storing information by using optical energy, such as CD or DVD. Of course, there are other ways of readable storage medium, for example, quantum memory, graphene memory, etc.
[0097] The above description of various embodiments of the present specification is provided to those skilled in the art for the purpose of description. It is not intended to be exhaustive or to limit the present application to a single disclosure. As described above, various alternatives and variations to the above described embodiments will be apparent to those skilled in the art. Therefore, although some alternative embodiments have been specifically discussed, other embodiments will be apparent to those skilled in the art from this disclosure. The present specification is intended to include all alternatives, modifications, and variations of the present application discussed herein, and other embodiments falling within the spirit and scope of the above-described application.
[0098] The present specification can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer computing devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. Although the present specification is depicted by embodiments, those skilled in the art know that there are many variations and changes of the present specification without departing from the spirit of the present specification, and it is intended that the appended claims include these variations and changes without departing from the spirit of the present specification.
Claims
1. An article flow information tracing method characterized by comprising: The application is applied to a tracing platform, the tracing platform is configured with permission file storage addresses of multiple node parties, each node party has a flow information storage unit, and the flow information storage unit is used for storing flow information of the node party and a flow information permission file; the method comprises the following steps: receiving a tracing request for a specified article sent by a tracing end, the tracing request at least comprising a tracing party identifier and a specified article identifier of the specified article; extracting a permission file storage address of a target node party associated with the specified article identifier; wherein the permission file storage address is pre-configured in the tracing platform; extracting a flow information permission file according to the extracted permission file storage address, and determining whether the tracing party identifier has access permission to the flow information storage unit of the target node party based on the flow information permission file of the target node party; wherein the flow information permission file is at least used for configuring access permission of the flow information storage unit; in the case where it is confirmed based on the flow information permission file that the tracing party identifier has access permission to the flow information storage unit of the target node party, extracting position information of the flow information storage unit of the target node party from the flow information permission file, and feeding back the position information of the flow information storage unit of the target node party to the tracing end, so that the tracing end obtains flow information of the specified article in the flow information storage unit of the target node party; in the case where the tracing party identifier does not have access permission to the flow information storage unit of the target node party, sending an access authorization request comprising the tracing party identifier to a node end corresponding to the target node party; in the case where it is fed back that the tracing party identifier is open to permission and the authorization effective mode, feeding back the position information of the flow information storage unit of the target node party to the tracing end, and in the case where the authorization effective mode is within a time interval or unlimited time, storing the authorization effective mode, the tracing party identifier and the specified article identifier in association with the flow information permission file of the target node party.
2. The method of claim 1, wherein, The flow information permission file is configured with an association relationship among an article identifier, a flow information storage address and access permission of the flow information storage address; wherein the flow information storage address refers to a storage address of article flow information in a flow information storage unit of a node party.
3. The method of claim 2, wherein, in the case where it is confirmed based on the flow information permission file that the tracing party identifier has access permission to the flow information storage address associated with the specified article identifier, feeding back the flow information storage address associated with the specified article identifier to the tracing end.
4. The method of claim 1, wherein, The extraction of the permission file storage address of the target node party associated with the specified article identifier comprises the following steps: extracting the permission file storage address of the target node party associated with the specified article identifier based on an auxiliary tracing relationship; wherein the auxiliary tracing relationship at least comprises an association relationship among an article identifier and a permission file storage address.
5. The method of claim 4, wherein, The auxiliary traceability relationship comprises at least an association relationship of an article identifier, a node type, and a permission file storage address; the node type refers to a type of a flow node to which the article flow information belongs; the traceability request further comprises at least a specified node type; Correspondingly, the extracting of the permission file storage address of the target node party associated with the specified article identifier comprises: extracting the permission file storage address of the target node party associated with the specified article identifier under the specified node type.
6. The method of claim 1, wherein, The method further comprises: receiving an information upload request; the information upload request comprises at least a permission file storage address of a node party, article flow information, an article identifier, and an access permission of the article flow information; storing the article flow information to a flow information storage unit of the node party; accessing the permission file storage address, and associating the position information of the flow information storage unit to be stored, the article identifier, and the access permission to a flow information permission file of the node party.
7. The method of claim 6, wherein, The method further comprises: obtaining a storage address of the article flow information in the flow information storage unit; Correspondingly, the storage address of the article flow information in the flow information storage unit and the article identifier and the access permission are associated and configured to the flow information permission file of the node party.
8. The method of claim 6, wherein, The article flow information is represented by a third-party information storage address storing article flow information details.
9. The method of claim 6, wherein, The article flow information is represented by article flow information details.
10. The method of claim 9, wherein, The method further comprises: processing the article flow information to obtain processed flow information; storing the processed flow information to the flow information storage unit of the node party.
11. A device for tracing the flow of goods, characterized in that, The device is applied to a traceability platform, the traceability platform is configured with permission file storage addresses of a plurality of node parties, each node party has a flow information storage unit, and the flow information storage unit is used to store article flow information and a flow information permission file of the node party; the device comprises: a receiving module configured to receive a traceability request for a specified article sent by a traceability end, the traceability request comprising at least a traceability party identifier and a specified article identifier of the specified article; an obtaining module configured to extract a permission file storage address of a target node party associated with the specified article identifier; wherein the permission file storage address is pre-configured in the traceability platform; an accessing module configured to extract a flow information permission file according to the extracted permission file storage address, and determine whether the traceability party identifier has access permission to a flow information storage unit of the target node party based on the flow information permission file of the target node party; wherein the flow information permission file is used at least to configure access permission of the flow information storage unit; a feedback module configured to, in a case where it is confirmed that the traceability party identifier has access permission based on the flow information permission file, extract position information of the flow information storage unit of the target node party from the flow information permission file, and feed back the position information of the flow information storage unit of the target node party to the traceability end, so that the traceability end obtains article flow information of the specified article in the flow information storage unit of the target node party. The device is also used to send an access authorization request including the trace party identification to the node end corresponding to the target node party in the case that the trace party identification does not have access permission for the flow transfer information storage unit of the target node party; in the case that the feedback is that the trace party identification is open to permission and the authorized effective mode is received, the location information of the flow transfer information storage unit of the target node party is fed back to the trace end, and in the case that the authorized effective mode is time interval or unlimited time effective, the authorized effective mode, the trace party identification and the specified article identification are stored in the flow transfer information permission file of the target node party.
12. An article flow information processing method characterized by comprising: The application is applied to a trace platform, the trace platform is configured with permission file storage addresses of multiple node parties, each node party has a flow transfer information storage unit, and the flow transfer information storage unit is used for storing article flow transfer information and a flow transfer information permission file of the node party; the method comprises the following steps: receiving an information upload request; the information upload request at least comprises a permission file storage address of a node party, article flow transfer information, an article identification and access permission of the article flow transfer information; storing the article flow transfer information into the flow transfer information storage unit of the node party; according to the permission file storage address, the location information of the flow transfer information storage unit where the article flow transfer information is stored is associated with the article identification and the access permission, and is configured into the flow transfer information permission file of the node party; so that the trace platform traces the article flow transfer information of a specified article according to the method in any one of claims 1-10.
13. An article flow information processing apparatus characterized by comprising: The application is applied to a trace platform, the trace platform is configured with permission file storage addresses of multiple node parties, each node party has a flow transfer information storage unit, and the flow transfer information storage unit is used for storing article flow transfer information and a flow transfer information permission file of the node party; the device comprises: a receiving module, which is used for receiving an information upload request; the information upload request at least comprises a permission file storage address of a node party, article flow transfer information, an article identification and access permission of the article flow transfer information; a storage module, which is used for storing the article flow transfer information into the flow transfer information storage unit of the node party; a configuration module, which is used for, according to the permission file storage address, associating the location information of the flow transfer information storage unit where the article flow transfer information is stored with the article identification and the access permission, and configuring them into the flow transfer information permission file of the node party; so that the trace platform traces the article flow transfer information of a specified article according to the method in any one of claims 1-10.
14. A computer readable storage medium having stored thereon computer instructions, wherein, The instructions are executed by the processor to implement the steps of the method in any one of claims 1-10 and 12.
15. A computer device comprising a memory, a processor, and computer instructions stored on the memory, wherein the computer instructions, when executed by the processor, cause the processor to perform operations comprising: The processor executes the computer instructions to implement the steps of the method in any one of claims 1-10 and 12.
Citation Information
Patent Citations
Article anti-counterfeiting tracing method
CN112598426A
Traceability system, traceability method and traceability program
US20080148365A1
Cited By
Continuous production line sampling, sealing and tracing method
CN122089343A