CN112184262A - Method and related device for aggregate tracing - Google Patents
Method and related device for aggregate tracing Download PDFInfo
- Publication number
- CN112184262A CN112184262A CN202011043776.3A CN202011043776A CN112184262A CN 112184262 A CN112184262 A CN 112184262A CN 202011043776 A CN202011043776 A CN 202011043776A CN 112184262 A CN112184262 A CN 112184262A
- Authority
- CN
- China
- Prior art keywords
- tracing
- target
- traceability
- service
- identifier
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 49
- 230000002776 aggregation Effects 0.000 claims abstract description 66
- 238000004220 aggregation Methods 0.000 claims abstract description 66
- 238000012423 maintenance Methods 0.000 claims description 7
- 230000008520 organization Effects 0.000 claims description 7
- 238000003860 storage Methods 0.000 claims description 4
- 230000008569 process Effects 0.000 description 6
- 230000009471 action Effects 0.000 description 5
- 230000004931 aggregating effect Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000011144 upstream manufacturing Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/018—Certifying business or products
- G06Q30/0185—Product, service or business identity fraud
Landscapes
- Business, Economics & Management (AREA)
- Entrepreneurship & Innovation (AREA)
- Accounting & Taxation (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Finance (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The application discloses a method for gathering traceability and a related device, wherein the method comprises the following steps: in the aggregation traceability platform, a traceability query request of a target user, which comprises a target traceability product identifier and a target traceability service type, is acquired through an aggregation traceability query interface; determining a corresponding target tracing service identifier based on the target tracing product identifier and the target tracing service type; if the target tracing service identifier belongs to an external tracing platform set, acquiring a first tracing result from the target external tracing platform according to the target tracing service identifier, the target tracing product identifier and the target tracing service type through an intelligent contract and a prediction machine; and returning a first tracing result corresponding to the tracing query request. The aggregation traceability platform provides an aggregation traceability query interface for uniformly receiving traceability query requests, and obtains traceability results from an external traceability platform through intelligent contracts and a prediction machine, so that different traceability platforms can be aggregated to provide more convenient product traceability services for users.
Description
Technical Field
The present application relates to the field of blockchain tracing technologies, and in particular, to a method and a related apparatus for aggregate tracing.
Background
With the wide application of the block chain technology, aiming at the phenomena of product counterfeiting, product quality improvement and the like which are continuously emerging at the present stage, in order to improve the trust degree of a user on the product and the trust degree of a downstream enterprise on the delivered product of an upstream enterprise, the block chain is utilized to realize product traceability service so as to avoid the phenomena of product counterfeiting, product quality improvement and the like.
In the prior art, generally, each large manufacturer provides a customized product tracing scheme for a specific product, links related information of product production, product processing, product transportation and the like in the specific product are linked, a specific product tracing block chain is formed and stored on a source tracing platform of the user, and the user obtains a product tracing result by scanning a code and the like for the product.
However, interconnection, intercommunication and sharing are difficult to realize among product traceability block chains of different traceability platforms, and traceability information islands are easy to form; the tracing operations of different tracing platforms are different, and the tracing standards and specifications are different, so that the user can log in different tracing platforms to perform product tracing experience extremely inconveniently.
Disclosure of Invention
In view of this, the embodiment of the present application provides a method and a related device for aggregating traceability, which can aggregate different traceability platforms, so as to effectively avoid a phenomenon that a user logs in different traceability platforms to perform product traceability, and provide a more convenient product traceability service for the user.
In a first aspect, an embodiment of the present application provides a method for syndication tracing, which is applied to a syndication tracing platform, and the method includes:
obtaining a source tracing query request of a target user through a source tracing query interface; the source tracing query request comprises a target source tracing product identifier and a target source tracing service type;
determining a corresponding target tracing service identifier based on the target tracing product identifier and the target tracing service type;
if the target tracing service identifier belongs to an external tracing platform set, acquiring a first tracing result from a target external tracing platform according to the target tracing service identifier, the target tracing product identifier and the target tracing service type through an intelligent contract and a prediction machine;
and returning the first tracing result corresponding to the tracing query request.
Optionally, the method further includes:
in the aggregation traceability platform, a traceability service identifier, a traceability product class and a traceability service type corresponding to each traceability service are registered in advance for each traceability service; the tracing service identifier belongs to the external tracing platform set or the internal tracing source block chain;
and establishing and storing the corresponding relation among the tracing service, the tracing service identifier, the tracing product category and the tracing service type.
Optionally, the tracing service type is a full life cycle tracing service, a product quality tracing service, a product maintenance tracing service or a channel management tracing service.
Optionally, the determining a corresponding target tracing service identifier based on the target tracing product identifier and the target tracing service type includes:
determining a corresponding target tracing product class based on the target tracing product identifier;
and determining the corresponding target tracing service identifier based on the target tracing product class and the target tracing service type.
Optionally, the obtaining, by the intelligent contract and the prediction machine, a first tracing result from a target external tracing platform according to the target tracing service identifier, the target tracing product identifier, and the target tracing service type includes:
triggering an intelligent contract of the corresponding target tracing service identifier, and determining a target external tracing platform from the external tracing platform set according to the target tracing service identifier;
and obtaining the first tracing result from a tracing block chain of the target external tracing platform by using the predicting machine according to the target tracing product identifier and the target tracing service type.
Optionally, the method further includes:
if the target tracing service identifier belongs to the internal tracing source block chain, obtaining a second tracing result from the internal tracing source block chain according to the target tracing service identifier, the target tracing source product identifier and the target tracing source service type;
and returning the second tracing result corresponding to the tracing query request.
Optionally, the target user is specifically a personal registered user, an enterprise registered user, an organization registered user, or a guest user.
In a second aspect, an embodiment of the present application provides an aggregation traceability device, which is applied to an aggregation traceability platform, and the device includes:
the obtaining unit is used for obtaining the source tracing query request of the target user through the aggregation source tracing query interface; the source tracing query request comprises a target source tracing product identifier and a target source tracing service type;
a determining unit, configured to determine a corresponding target tracing service identifier based on the target tracing product identifier and the target tracing service type;
a first obtaining unit, configured to obtain, through an intelligent contract and a prediction machine, a first tracing result from a target external tracing platform according to the target tracing service identifier, the target tracing product identifier, and the target tracing service type if the target tracing service identifier belongs to an external tracing platform set;
and the first returning unit is used for returning the first tracing result corresponding to the tracing query request.
Optionally, the apparatus further comprises:
a registering unit, configured to register, in the aggregation traceability platform, a traceability service identifier, a traceability product class, and a traceability service type corresponding to each traceability service in advance for each traceability service; the tracing service identifier belongs to the external tracing platform set or the internal tracing source block chain;
and the establishing unit is used for establishing and storing the corresponding relation among the tracing service, the tracing service identifier, the tracing product class and the tracing service type.
Optionally, the tracing service type is a full life cycle tracing service, a product quality tracing service, a product maintenance tracing service or a channel management tracing service.
Optionally, the determining unit includes:
the first determining subunit is used for determining the corresponding target tracing product class based on the target tracing product identifier;
and the second determining subunit is configured to determine the corresponding target tracing service identifier based on the target tracing product class and the target tracing service type.
Optionally, the first obtaining unit includes:
a third determining subunit, configured to trigger an intelligent contract of the corresponding target tracing service identifier, and determine a target external tracing platform from the external tracing platform set according to the target tracing service identifier;
an obtaining subunit, configured to obtain, by using the predicting machine, the first tracing result from the tracing block chain of the target external tracing platform according to the target tracing product identifier and the target tracing service type.
Optionally, the apparatus further comprises:
a second obtaining module, configured to obtain a second tracing result from the internal tracing block chain according to the target tracing service identifier, the target tracing product identifier, and the target tracing service type if the target tracing service identifier belongs to the internal tracing block chain;
and the second returning module is used for returning the second tracing result corresponding to the tracing query request.
Optionally, the target user is specifically a personal registered user, an enterprise registered user, an organization registered user, or a guest user.
In a third aspect, an embodiment of the present application provides a terminal device, where the terminal device includes a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to execute the method for aggregate tracing according to any one of the above first aspects according to instructions in the program code.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium for storing program codes, where the program codes are used to execute the method for syndication tracing according to any one of the above first aspects.
Compared with the prior art, the method has the advantages that:
by adopting the technical scheme of the embodiment of the application, in the aggregation traceability platform, the traceability query request of the target user, which comprises the target traceability product identification and the target traceability service type, is obtained through the aggregation traceability query interface; determining a corresponding target tracing service identifier based on the target tracing product identifier and the target tracing service type; if the target tracing service identifier belongs to an external tracing platform set, acquiring a first tracing result from the target external tracing platform according to the target tracing service identifier, the target tracing product identifier and the target tracing service type through an intelligent contract and a prediction machine; and returning a first tracing result corresponding to the tracing query request. Therefore, the aggregation traceability platform provides an aggregation traceability query interface for uniformly receiving traceability query requests, and can aggregate different traceability platforms by obtaining traceability results from an external traceability platform through intelligent contracts and a prediction machine, so that a phenomenon that a user logs in different traceability platforms to perform product traceability is effectively avoided, and more convenient product traceability services are provided for the user.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments of the present application will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments described in the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of a system framework related to an application scenario in an embodiment of the present application;
fig. 2 is a schematic flowchart of a method for syndication tracing according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of another method for syndication tracing according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an aggregation traceability device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
At the present stage, block chain product tracing means that each large manufacturer provides a customized product tracing scheme for a specific product, links related information of product production, product processing, product transportation and the like in the specific product are linked, a specific product tracing block chain is formed and stored on a tracing platform of the user, and the user obtains a product tracing result by means of code scanning and the like on the product. However, through research, the inventor finds that interconnection, intercommunication and sharing are difficult to realize among product traceability block chains of different traceability platforms, and a traceability information island is easy to form; the tracing operations of different tracing platforms are different, and the tracing standards and specifications are different, so that the user can log in different tracing platforms to perform product tracing experience extremely inconveniently.
In order to solve the problem, in the embodiment of the application, in the aggregation traceability platform, a traceability query request including a target traceability product identifier and a target traceability service type of a target user is acquired through an aggregation traceability query interface; determining a corresponding target tracing service identifier based on the target tracing product identifier and the target tracing service type; if the target tracing service identifier belongs to an external tracing platform set, acquiring a first tracing result from the target external tracing platform according to the target tracing service identifier, the target tracing product identifier and the target tracing service type through an intelligent contract and a prediction machine; and returning a first tracing result corresponding to the tracing query request. Therefore, the aggregation traceability platform provides an aggregation traceability query interface for uniformly receiving traceability query requests, and the traceability results are obtained from the external traceability platform through the intelligent contract and the prediction machine, so that different traceability platforms can be aggregated, the phenomenon that a user logs in different traceability platforms to conduct product traceability is effectively avoided, and more convenient product traceability services are provided for the user.
For example, one of the scenarios in the embodiment of the present application may be applied to the scenario shown in fig. 1. The scenario includes an aggregation traceability platform 101 and an external traceability platform set 102, wherein the external traceability platform set 102 includes a plurality of external traceability platforms. A user logs in the aggregation traceability platform 101 to initiate a traceability query request, and the aggregation traceability platform 101 interacts with the external traceability platform set 102 in the manner of the embodiment of the application to complete product traceability.
First, in the above application scenario, although the actions of the embodiment provided in the embodiment of the present application are described as being performed by the aggregation traceability platform 101; however, the embodiments of the present application are not limited in terms of executing subjects as long as the actions disclosed in the embodiments provided by the embodiments of the present application are executed.
Next, the above scenario is only one example of the scenario provided in the embodiment of the present application, and the embodiment of the present application is not limited to this scenario.
The following describes in detail a specific implementation manner of the method for aggregate tracing and the related apparatus in the embodiment of the present application by way of an embodiment with reference to the accompanying drawings.
Exemplary method
Referring to fig. 2, a schematic flow chart of a method for aggregating traceability is shown in an embodiment of the present application. In this embodiment, the method is applied to an aggregation traceability platform, and may include the following steps:
step 201: obtaining a source tracing query request of a target user through a source tracing query interface; the source tracing query request comprises a target source tracing product identifier and a target source tracing service type.
Due to the fact that interconnection, intercommunication and sharing are difficult to achieve among product traceability blockchains of different traceability platforms in the block chain product traceability at the present stage, traceability information islands are easy to form; the tracing operations of different tracing platforms are different, and the tracing standards and specifications are different, so that the user can log in different tracing platforms to perform product tracing experience extremely inconveniently. Therefore, in the embodiment of the present application, the aggregation tracing platform provides an aggregation tracing query interface for uniformly receiving the tracing query request, and the aggregation tracing query interface is obtained by uniformly standardizing the tracing query interfaces of different tracing platforms. The aggregation traceability query interface can receive various different traceability query requests so as to obtain traceability results from different traceability platforms, so that aggregation of the different traceability platforms is realized, and more convenient product traceability services are provided for users.
Firstly, in the embodiment of the application, tracing service identifiers corresponding to tracing services provided by different tracing platforms aggregated by the aggregation tracing platform need to be registered in advance in the aggregation tracing platform, wherein one tracing service identifier uniquely identifies one tracing service, and the tracing service can be divided into an internal tracing area block chain of the aggregation tracing platform or external tracing platforms outside the aggregation tracing platform, so that the tracing service identifier belongs to an external tracing area platform set or an internal tracing area block chain, and an aggregation tracing inquiry interface is connected with the internal tracing area block chain of the aggregation tracing platform and each external tracing platform outside the aggregation tracing platform; in addition, the tracing product categories and the tracing service types represented by different tracing services are different, and the tracing product categories and the tracing service types corresponding to the tracing services also need to be registered in advance; based on the method, the corresponding relation among the tracing service, the tracing service identifier, the tracing product category and the tracing service type is established and stored, so that the corresponding tracing service identifier can be searched through the tracing product category and the tracing service type in the follow-up process, and then the corresponding tracing service can be searched through the tracing service identifier. Therefore, in an optional implementation manner of the embodiment of the present application, the following steps may be further included:
step A: in the aggregation traceability platform, a traceability service identifier, a traceability product class and a traceability service type corresponding to each traceability service are registered in advance for each traceability service; the tracing service identifier belongs to the external tracing platform set or the internal tracing area block chain.
And B: and establishing and storing the corresponding relation among the tracing service, the tracing service identifier, the tracing product category and the tracing service type.
The source tracing service type actually represents the source tracing requirement of a user on a source tracing product, and is usually the source tracing requirement of the user on the source tracing product, such as the full life cycle, the product quality, the product maintenance and the channel management. Therefore, in an optional implementation manner of the embodiment of the present application, the tracing service type is specifically a full life cycle tracing service, a product quality tracing service, a product maintenance tracing service, or a channel management tracing service.
Then, in the embodiment of the application, any user is taken as a target user, and when product tracing is realized, the target user logs in the aggregation tracing platform and initiates a tracing query request through the aggregation tracing query interface. That is, the aggregate tracing query interface can obtain a tracing query request of a target user, where the tracing query request generally includes a target tracing product identifier for uniquely identifying a target tracing product and a target tracing service type for indicating a tracing requirement of the target user on the target tracing product. The target tracing product identifier may be a unique identifier of a target tracing product, or may be a unique identifier of a class of target tracing products.
The target user may be a user registered in the aggregation traceability platform in advance, for example, a personal registered user, an enterprise registered user, or an organization registered user; or guest users that have not yet registered with the aggregated traceability platform. Therefore, in an optional implementation manner of this embodiment of the present application, the target user is specifically a personal registered user, an enterprise registered user, an organization registered user, or a guest user.
Step 202: and determining a corresponding target tracing service identifier based on the target tracing product identifier and the target tracing service type.
In this embodiment of the application, since the tracing query request obtained in step 201 includes the target tracing product identifier and the target tracing service type, after step 201, the corresponding relationship between the tracing service, the tracing service identifier, the tracing product class, and the tracing service type stored in step B is searched through the target tracing product identifier and the target tracing service type, so that the corresponding target tracing service identifier can be determined.
In the specific implementation process of step 202, first, based on the characteristic that the target tracing product identifier represents the unique identifier of the target tracing product, the type of the target tracing product, that is, the type of the target tracing product, can be determined by the target tracing product identifier; and then, searching the corresponding relation among the tracing service, the tracing service identifier, the tracing product class and the tracing service type stored in the step B through the target tracing product class and the target tracing service type, and determining the corresponding target tracing service identifier so as to search the corresponding tracing service according to the target tracing service identifier. Therefore, in an alternative implementation manner of this embodiment of the present application, the step 202 may include the following steps:
and C: determining a corresponding target tracing product class based on the target tracing product identifier;
step D: and determining the corresponding target tracing service identifier based on the target tracing product class and the target tracing service type.
Step 203: and if the target tracing service identifier belongs to an external tracing platform set, acquiring a first tracing result from a target external tracing platform according to the target tracing service identifier, the target tracing product identifier and the target tracing service type through an intelligent contract and a prediction machine.
In this embodiment of the application, after the target tracing service identifier is determined in step 202, it needs to be determined whether the target tracing service identifier belongs to an external tracing platform set or an internal tracing block chain, and when the target tracing service identifier belongs to the external tracing platform set, it indicates that the tracing service corresponding to the target tracing service identifier is provided by a target external tracing platform outside the aggregation tracing platform. At this time, in order to obtain a tracing result from the target external tracing platform, the aggregation tracing platform needs to be docked with the target external tracing platform through an intelligent contract-forecast machine mechanism, and a first tracing result is retrieved from the target external tracing platform and returned to the aggregation tracing platform.
In the specific implementation process of step 203, first, a target external tracing platform corresponding to a target tracing service identifier needs to be searched from an external tracing platform set, that is, the target tracing service identifier triggers an intelligent contract corresponding to the target external tracing platform, and the external tracing platform corresponding to the target tracing service identifier is determined as the target external tracing platform in the external tracing platform set; then, obtaining a first tracing result from the determined target external tracing platform, namely, butting the target external tracing platform through a prediction machine, performing product tracing on a tracing block chain of the target external tracing platform according to the target tracing product identifier and the target tracing service type, and obtaining the first tracing result and returning the first tracing result to the aggregation tracing platform. Therefore, in an optional implementation manner of this embodiment of this application, the step 203 may include the following steps:
step E: triggering an intelligent contract of the corresponding target tracing service identifier, and determining a target external tracing platform from the external tracing platform set according to the target tracing service identifier;
step F: and obtaining the first tracing result from a tracing block chain of the target external tracing platform by using the predicting machine according to the target tracing product identifier and the target tracing service type.
Step 204: and returning the first tracing result corresponding to the tracing query request.
In this embodiment of the present application, after obtaining the first tracing result in step 203, the aggregation tracing platform further needs to return the first tracing result to the target user; that is, the first tracing result needs to be returned corresponding to the tracing query request.
Of course, after the determination in step 202, when it is determined that the target tracing service identifier belongs to the external tracing platform set or the internal tracing area block chain, as a result, the tracing service identifier belongs to the internal block chain, it indicates that the tracing service corresponding to the target tracing service identifier is provided by the internal tracing area block chain of the aggregation tracing platform itself. At this time, corresponding to steps 203-204, a second tracing result is obtained on the internal tracing block chain and returned to the aggregation tracing platform through the target tracing service identifier, the target tracing product identifier and the target tracing service type; returning the second source tracing result to the target user; that is, the second tracing result needs to be returned corresponding to the tracing query request. Therefore, in an optional implementation manner of this embodiment of the present application, after step 202, for example, the following steps may be further included:
step G: if the target tracing service identifier belongs to the internal tracing source block chain, obtaining a second tracing result from the internal tracing source block chain according to the target tracing service identifier, the target tracing source product identifier and the target tracing source service type;
step H: and returning the second tracing result corresponding to the tracing query request.
Through various implementation manners provided by this embodiment, in the aggregation traceability platform, a traceability query request including a target traceability product identifier and a target traceability service type of a target user is obtained through an aggregation traceability query interface; determining a corresponding target tracing service identifier based on the target tracing product identifier and the target tracing service type; if the target tracing service identifier belongs to an external tracing platform set, acquiring a first tracing result from the target external tracing platform according to the target tracing service identifier, the target tracing product identifier and the target tracing service type through an intelligent contract and a prediction machine; and returning a first tracing result corresponding to the tracing query request. Therefore, the aggregation traceability platform provides an aggregation traceability query interface for uniformly receiving traceability query requests, and can aggregate different traceability platforms by obtaining traceability results from an external traceability platform through intelligent contracts and a prediction machine, so that a phenomenon that a user logs in different traceability platforms to perform product traceability is effectively avoided, and more convenient product traceability services are provided for the user.
Referring to fig. 3, a schematic flow chart of another method for aggregating traceability is shown in the embodiment of the present application. In this embodiment, the method may include, for example, the steps of:
step 301: obtaining a source tracing query request of a target user through a source tracing query interface; the source tracing query request comprises a target source tracing product identifier and a target source tracing service type.
In an optional implementation manner of the embodiment of the present application, the method further includes:
in the aggregation traceability platform, a traceability service identifier, a traceability product class and a traceability service type corresponding to each traceability service are registered in advance for each traceability service; the tracing service identifier belongs to the external tracing platform set or the internal tracing source block chain;
and establishing and storing the corresponding relation among the tracing service, the tracing service identifier, the tracing product category and the tracing service type.
In an optional implementation manner of the embodiment of the present application, the tracing service type is specifically a full life cycle tracing service, a product quality tracing service, a product maintenance tracing service, or a channel management tracing service.
In an optional implementation manner of the embodiment of the present application, the target user is specifically a personal registered user, an enterprise registered user, an organization registered user, or a guest user.
Step 302: determining a corresponding target tracing service identifier based on the target tracing product identifier and the target tracing service type; if the target tracing service identifier belongs to an external tracing platform set, executing the step 303 to the step 304; if the target tracing service identifier belongs to the internal tracing block chain, executing step 305-step 306.
In an optional implementation manner of this embodiment of this application, the step 302 includes:
determining a corresponding target tracing product class based on the target tracing product identifier;
and determining the corresponding target tracing service identifier based on the target tracing product class and the target tracing service type.
Step 303: and obtaining a first tracing result from a target external tracing platform according to the target tracing service identifier, the target tracing product identifier and the target tracing service type through an intelligent contract and a prediction machine.
In an optional implementation manner of this embodiment of this application, the step 303 includes:
triggering an intelligent contract of the corresponding target tracing service identifier, and determining a target external tracing platform from the external tracing platform set according to the target tracing service identifier;
and obtaining the first tracing result from a tracing block chain of the target external tracing platform by using the predicting machine according to the target tracing product identifier and the target tracing service type.
Step 304: and returning the first tracing result corresponding to the tracing query request.
Step 305: and obtaining a second tracing result from the internal tracing source block chain according to the target tracing service identifier, the target tracing product identifier and the target tracing service type.
Step 306: and returning the second tracing result corresponding to the tracing query request.
Through various implementation manners provided by this embodiment, in the aggregation traceability platform, a traceability query request including a target traceability product identifier and a target traceability service type of a target user is obtained through an aggregation traceability query interface; determining a corresponding target tracing service identifier based on the target tracing product identifier and the target tracing service type; if the target tracing service identifier belongs to an external tracing platform set, acquiring a first tracing result from the target external tracing platform according to the target tracing service identifier, the target tracing product identifier and the target tracing service type through an intelligent contract and a prediction machine; and returning a first tracing result corresponding to the tracing query request. Therefore, the aggregation traceability platform provides an aggregation traceability query interface for uniformly receiving traceability query requests, and can aggregate different traceability platforms by obtaining traceability results from an external traceability platform through intelligent contracts and a prediction machine, so that a phenomenon that a user logs in different traceability platforms to perform product traceability is effectively avoided, and more convenient product traceability services are provided for the user.
Exemplary devices
Referring to fig. 4, a schematic structural diagram of an aggregation traceability device in an embodiment of the present application is shown. In this embodiment, the apparatus is applied to an aggregation traceability platform, and may specifically include:
an obtaining unit 401, configured to obtain a tracing query request of a target user through an aggregation tracing query interface; the source tracing query request comprises a target source tracing product identifier and a target source tracing service type;
a determining unit 402, configured to determine a corresponding target tracing service identifier based on the target tracing product identifier and the target tracing service type;
a first obtaining unit 403, configured to obtain, through an intelligent contract and a prediction machine, a first tracing result from a target external tracing platform according to the target tracing service identifier, the target tracing product identifier, and the target tracing service type if the target tracing service identifier belongs to an external tracing platform set;
a first returning unit 404, configured to return the first tracing result corresponding to the tracing query request.
In an optional implementation manner of the embodiment of the present application, the apparatus further includes:
a registering unit, configured to register, in the aggregation traceability platform, a traceability service identifier, a traceability product class, and a traceability service type corresponding to each traceability service in advance for each traceability service; the tracing service identifier belongs to the external tracing platform set or the internal tracing source block chain;
and the establishing unit is used for establishing and storing the corresponding relation among the tracing service, the tracing service identifier, the tracing product class and the tracing service type.
In an optional implementation manner of the embodiment of the present application, the tracing service type is specifically a full life cycle tracing service, a product quality tracing service, a product maintenance tracing service, or a channel management tracing service.
In an optional implementation manner of the embodiment of the present application, the determining unit 402 includes:
the first determining subunit is used for determining the corresponding target tracing product class based on the target tracing product identifier;
and the second determining subunit is configured to determine the corresponding target tracing service identifier based on the target tracing product class and the target tracing service type.
In an optional implementation manner of this embodiment of this application, the first obtaining unit 403 includes:
a third determining subunit, configured to trigger an intelligent contract of the corresponding target tracing service identifier, and determine a target external tracing platform from the external tracing platform set according to the target tracing service identifier;
an obtaining subunit, configured to obtain, by using the predicting machine, the first tracing result from the tracing block chain of the target external tracing platform according to the target tracing product identifier and the target tracing service type.
In an optional implementation manner of the embodiment of the present application, the apparatus further includes:
a second obtaining module, configured to obtain a second tracing result from the internal tracing block chain according to the target tracing service identifier, the target tracing product identifier, and the target tracing service type if the target tracing service identifier belongs to the internal tracing block chain;
and the second returning module is used for returning the second tracing result corresponding to the tracing query request.
In an optional implementation manner of the embodiment of the present application, the target user is specifically a personal registered user, an enterprise registered user, an organization registered user, or a guest user.
Through various implementation manners provided by this embodiment, in the aggregation traceability platform, a traceability query request including a target traceability product identifier and a target traceability service type of a target user is obtained through an aggregation traceability query interface; determining a corresponding target tracing service identifier based on the target tracing product identifier and the target tracing service type; if the target tracing service identifier belongs to an external tracing platform set, acquiring a first tracing result from the target external tracing platform according to the target tracing service identifier, the target tracing product identifier and the target tracing service type through an intelligent contract and a prediction machine; and returning a first tracing result corresponding to the tracing query request. Therefore, the aggregation traceability platform provides an aggregation traceability query interface for uniformly receiving traceability query requests, and can aggregate different traceability platforms by obtaining traceability results from an external traceability platform through intelligent contracts and a prediction machine, so that a phenomenon that a user logs in different traceability platforms to perform product traceability is effectively avoided, and more convenient product traceability services are provided for the user.
In addition, an embodiment of the present application further provides a terminal device, where the terminal device includes a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to execute the method for aggregating trace sources according to the above method embodiments according to the instructions in the program code.
The embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium is used to store a program code, and the program code is used to execute the method for aggregation traceability described in the above method embodiment.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing is merely a preferred embodiment of the present application and is not intended to limit the present application in any way. Although the present application has been described with reference to the preferred embodiments, it is not intended to limit the present application. Those skilled in the art can now make numerous possible variations and modifications to the disclosed embodiments, or modify equivalent embodiments, using the methods and techniques disclosed above, without departing from the scope of the claimed embodiments. Therefore, any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present application still fall within the protection scope of the technical solution of the present application without departing from the content of the technical solution of the present application.
Claims (10)
1. A method for syndication tracing is applied to a syndication tracing platform and comprises the following steps:
obtaining a source tracing query request of a target user through a source tracing query interface; the source tracing query request comprises a target source tracing product identifier and a target source tracing service type;
determining a corresponding target tracing service identifier based on the target tracing product identifier and the target tracing service type;
if the target tracing service identifier belongs to an external tracing platform set, acquiring a first tracing result from a target external tracing platform according to the target tracing service identifier, the target tracing product identifier and the target tracing service type through an intelligent contract and a prediction machine;
and returning the first tracing result corresponding to the tracing query request.
2. The method of claim 1, further comprising:
in the aggregation traceability platform, a traceability service identifier, a traceability product class and a traceability service type corresponding to each traceability service are registered in advance for each traceability service; the tracing service identifier belongs to the external tracing platform set or the internal tracing source block chain;
and establishing and storing the corresponding relation among the tracing service, the tracing service identifier, the tracing product category and the tracing service type.
3. The method of claim 2, wherein the tracing service type is a full life cycle tracing service, a product quality tracing service, a product maintenance tracing service, or a channel management tracing service.
4. The method of claim 2, wherein the determining a corresponding target tracing service identifier based on the target tracing product identifier and the target tracing service type comprises:
determining a corresponding target tracing product class based on the target tracing product identifier;
and determining the corresponding target tracing service identifier based on the target tracing product class and the target tracing service type.
5. The method of claim 1, wherein obtaining a first tracing result from a target external tracing platform according to the target tracing service identifier, the target tracing product identifier and the target tracing service type through an intelligent contract and a prediction machine comprises:
triggering an intelligent contract of the corresponding target tracing service identifier, and determining a target external tracing platform from the external tracing platform set according to the target tracing service identifier;
and obtaining the first tracing result from a tracing block chain of the target external tracing platform by using the predicting machine according to the target tracing product identifier and the target tracing service type.
6. The method of claim 2, further comprising:
if the target tracing service identifier belongs to the internal tracing source block chain, obtaining a second tracing result from the internal tracing source block chain according to the target tracing service identifier, the target tracing source product identifier and the target tracing source service type;
and returning the second tracing result corresponding to the tracing query request.
7. The method of claim 1, wherein the target user is specifically a personal registered user, a business registered user, an organization registered user, or a guest user.
8. The utility model provides a device that gathers traceability, its characterized in that is applied to the platform that gathers traceability, includes:
the obtaining unit is used for obtaining the source tracing query request of the target user through the aggregation source tracing query interface; the source tracing query request comprises a target source tracing product identifier and a target source tracing service type;
a determining unit, configured to determine a corresponding target tracing service identifier based on the target tracing product identifier and the target tracing service type;
a first obtaining unit, configured to obtain, through an intelligent contract and a prediction machine, a first tracing result from a target external tracing platform according to the target tracing service identifier, the target tracing product identifier, and the target tracing service type if the target tracing service identifier belongs to an external tracing platform set;
and the first returning unit is used for returning the first tracing result corresponding to the tracing query request.
9. A terminal device, comprising a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to execute the method for syndication tracing according to any one of claims 1 to 7 according to instructions in the program code.
10. A computer-readable storage medium for storing program code for performing the method of syndicating traceability according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011043776.3A CN112184262A (en) | 2020-09-28 | 2020-09-28 | Method and related device for aggregate tracing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011043776.3A CN112184262A (en) | 2020-09-28 | 2020-09-28 | Method and related device for aggregate tracing |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112184262A true CN112184262A (en) | 2021-01-05 |
Family
ID=73947264
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011043776.3A Pending CN112184262A (en) | 2020-09-28 | 2020-09-28 | Method and related device for aggregate tracing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112184262A (en) |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106355415A (en) * | 2016-08-18 | 2017-01-25 | 徐峰 | Processing method of product traceability identification and its device |
CN108305083A (en) * | 2018-02-11 | 2018-07-20 | 张国忠 | A kind of commodity source tracing method and system based on block chain |
CN109191146A (en) * | 2018-08-07 | 2019-01-11 | 广东蓝蜜蜂信息技术有限公司 | A kind of agricultural product traceability system and its working method based on block chain |
CN109493096A (en) * | 2018-11-22 | 2019-03-19 | 北京知道创宇信息技术有限公司 | A kind of product traceability method, apparatus and its storage medium |
CN109559136A (en) * | 2018-11-28 | 2019-04-02 | 中国医学科学院药用植物研究所 | Information management system and method |
CN110716988A (en) * | 2019-10-21 | 2020-01-21 | 安徽强晟物联信息科技有限公司 | Anti-counterfeiting traceability system based on block chain |
US20200043001A1 (en) * | 2018-08-01 | 2020-02-06 | Smart Brand Limited | Pet Food Traceability System and Method Therefor |
CN110866761A (en) * | 2019-11-07 | 2020-03-06 | 四川农链数科科技有限公司 | Anti-counterfeiting mark and tracing method and system for decentralized article |
CN111127042A (en) * | 2019-12-24 | 2020-05-08 | 杭州浙大恩氏网络科技有限公司 | Data traceability system and method based on block chain |
CN111160933A (en) * | 2019-12-31 | 2020-05-15 | 河北梵歌科技有限公司 | Meat and vegetable product traceability system and method based on GNSS (global navigation satellite system) space-time information |
CN111181946A (en) * | 2019-12-24 | 2020-05-19 | 浙江大学 | Credible traceability system and method based on block chain and Internet of things |
US20200242702A1 (en) * | 2019-05-24 | 2020-07-30 | Alibaba Group Holding Limited | Capital chain information traceability method, system, server and readable storage medium |
-
2020
- 2020-09-28 CN CN202011043776.3A patent/CN112184262A/en active Pending
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106355415A (en) * | 2016-08-18 | 2017-01-25 | 徐峰 | Processing method of product traceability identification and its device |
CN108305083A (en) * | 2018-02-11 | 2018-07-20 | 张国忠 | A kind of commodity source tracing method and system based on block chain |
US20200043001A1 (en) * | 2018-08-01 | 2020-02-06 | Smart Brand Limited | Pet Food Traceability System and Method Therefor |
CN109191146A (en) * | 2018-08-07 | 2019-01-11 | 广东蓝蜜蜂信息技术有限公司 | A kind of agricultural product traceability system and its working method based on block chain |
CN109493096A (en) * | 2018-11-22 | 2019-03-19 | 北京知道创宇信息技术有限公司 | A kind of product traceability method, apparatus and its storage medium |
CN109559136A (en) * | 2018-11-28 | 2019-04-02 | 中国医学科学院药用植物研究所 | Information management system and method |
US20200242702A1 (en) * | 2019-05-24 | 2020-07-30 | Alibaba Group Holding Limited | Capital chain information traceability method, system, server and readable storage medium |
CN110716988A (en) * | 2019-10-21 | 2020-01-21 | 安徽强晟物联信息科技有限公司 | Anti-counterfeiting traceability system based on block chain |
CN110866761A (en) * | 2019-11-07 | 2020-03-06 | 四川农链数科科技有限公司 | Anti-counterfeiting mark and tracing method and system for decentralized article |
CN111127042A (en) * | 2019-12-24 | 2020-05-08 | 杭州浙大恩氏网络科技有限公司 | Data traceability system and method based on block chain |
CN111181946A (en) * | 2019-12-24 | 2020-05-19 | 浙江大学 | Credible traceability system and method based on block chain and Internet of things |
CN111160933A (en) * | 2019-12-31 | 2020-05-15 | 河北梵歌科技有限公司 | Meat and vegetable product traceability system and method based on GNSS (global navigation satellite system) space-time information |
Non-Patent Citations (1)
Title |
---|
刘家稷: "基于区块链技术的溯源系统", 《中国优秀硕士学位论文全文数据库》, no. 2020, 15 January 2020 (2020-01-15), pages 138 - 1017 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10970641B1 (en) | Heuristic context prediction engine | |
US11676087B2 (en) | Systems and methods for vulnerability assessment and remedy identification | |
US20160171557A1 (en) | Customer Insight System Architecture | |
CN110807085B (en) | Fault information query method and device, storage medium and electronic device | |
CN111046237B (en) | User behavior data processing method and device, electronic equipment and readable medium | |
CN104579909B (en) | Method and equipment for classifying user information and acquiring user grouping information | |
CN109543891B (en) | Method and apparatus for establishing capacity prediction model, and computer-readable storage medium | |
US20150220975A1 (en) | Client online account minimum advertised price (map) policy management application system, method and computer program product | |
CN112579898A (en) | Enterprise information management method and device and server | |
CN115238062A (en) | Technical property right matching method and system | |
CN111177481B (en) | User identifier mapping method and device | |
CN106257520A (en) | Resolve answer method and system | |
CN110046235B (en) | Knowledge base assessment method, device and equipment | |
CN111311381A (en) | Commodity recommendation method and system | |
CN112184262A (en) | Method and related device for aggregate tracing | |
CN110825609B (en) | Service testing method, device and system | |
CN110765100A (en) | Label generation method and device, computer readable storage medium and server | |
CN110704498A (en) | Data extraction method, device, equipment and computer readable storage medium | |
CN105320738A (en) | Information recommendation method and device | |
CN115731013A (en) | Intelligent registration method, electronic equipment and related products | |
US8949787B2 (en) | Locating isolation points in an application under multi-tenant environment | |
CN107578297B (en) | Member information aggregation method and device | |
CN110737675A (en) | Association ID query method and device, electronic equipment and storage medium | |
CN110969421A (en) | Monitoring method and device | |
CN116862620B (en) | Comment query method and related device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |