CN116228257A - Method and device for acquiring article traceability data, computer equipment and storage medium - Google Patents

Method and device for acquiring article traceability data, computer equipment and storage medium Download PDF

Info

Publication number
CN116228257A
CN116228257A CN202211643841.5A CN202211643841A CN116228257A CN 116228257 A CN116228257 A CN 116228257A CN 202211643841 A CN202211643841 A CN 202211643841A CN 116228257 A CN116228257 A CN 116228257A
Authority
CN
China
Prior art keywords
data
tracing
traceability
information
terminal
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
Application number
CN202211643841.5A
Other languages
Chinese (zh)
Inventor
谢大新
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Huifang Ruizhan Computer Technology Service Co ltd
Original Assignee
Guangzhou Huifang Ruizhan Computer Technology Service Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangzhou Huifang Ruizhan Computer Technology Service Co ltd filed Critical Guangzhou Huifang Ruizhan Computer Technology Service Co ltd
Priority to CN202211643841.5A priority Critical patent/CN116228257A/en
Publication of CN116228257A publication Critical patent/CN116228257A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Commerce
    • G06Q30/018Certifying business or products
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

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)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application relates to a method and a device for acquiring article traceability data, a computer device and a computer readable storage medium, wherein the method comprises the following steps: receiving an access request of a terminal, and analyzing a tracing code of an article from the access request, wherein the tracing code is used for determining a tracing information display interface returned to the terminal; acquiring access information of an access request; acquiring tracing data of the object according to the access information, wherein the tracing data of the object comprises address data of a terminal, time data of an access request and user type data of the terminal; and storing the tracing data of the object and the tracing code in a correlated way. The method can dynamically acquire the traceability data of the commodity circulation link, so that the problem of data collection in the use process of the traceability codes is solved.

Description

Method and device for acquiring article traceability data, computer equipment and storage medium
Technical Field
The present disclosure relates to the field of article tracing technologies, and in particular, to a method and an apparatus for acquiring article tracing data, a computer device, and a computer readable storage medium.
Background
During circulation of an item, a traceability code is generally used to inquire the source data of the item. However, the source data of the article depends on the data input of the management information system, so that the use condition of the traceability code in the circulation process can not be dynamically obtained through the traceability code in the circulation process of the article. Particularly, for the data recorded in the management information system by using the traceability code, the data only collect the data in the upstream information system, and the data for circulation of subsequent articles cannot be obtained, so that the integrated processing analysis cannot be performed.
Disclosure of Invention
Based on the foregoing, it is necessary to provide a method, an apparatus, a computer device and a computer readable storage medium for acquiring the traceability data of the article, so as to dynamically acquire the traceability data of the article circulation link, thereby solving the data collection problem in the use process of the traceability codes.
A method for acquiring article traceability data comprises the following steps: receiving an access request of a terminal, and analyzing a tracing code of an article from the access request, wherein the tracing code is used for determining a tracing information display interface returned to the terminal; acquiring access information of an access request; acquiring tracing data of the object according to the access information, wherein the tracing data of the object comprises address data of a terminal, time data of an access request and user type data of the terminal; and storing the tracing data of the object and the tracing code in a correlated way.
In one embodiment, acquiring traceability data of an item according to access information includes: acquiring IP addresses and/or position information of terminals in the access information; and acquiring address data of the traceability data according to the IP address and/or the position information.
In one embodiment, the method for acquiring the article tracing data further includes: if the IP address and the position information do not exist in the access information, acquiring historical data of the same category, the same batch and/or the same inventory of the articles of the terminal; and determining the address data of the traceability data according to the historical data of the same category, the same batch and/or the same inventory of the articles.
In one embodiment, acquiring traceability data of an item according to access information includes: acquiring equipment information, software system information and/or browser information in the access information; and acquiring user type data of the traceability data according to the equipment information, the software system information and/or the browser information.
In one embodiment, the method for acquiring the article tracing data further includes: if the equipment information, the software system information and the browser information do not exist in the access information, acquiring historical data of the same category, the same batch and/or the same inventory of the articles of the terminal; user type data of the traceability data is determined according to historical data of the same category, the same batch and/or the same inventory of the articles.
In one embodiment, storing the traceability data of the item in association with the traceability code includes: data desensitization is carried out on the traceability data of the article, and privacy data and query data in the traceability data are obtained; binding and storing the privacy data with the user of the access request; and storing the query data into a query record table of the source tracing codes, wherein the query record table is used for displaying one or more query records of the source tracing codes.
In one embodiment, the method for acquiring the article tracing data further includes: the tracing database is used for providing tracing display data for the tracing information display interface, and the tracing report format is used for providing a display format for the tracing information display interface; generating a traceability information display interface according to the traceability database and the traceability report format; and returning the traceability information display interface to the terminal.
An acquisition device of article traceability data, comprising: the receiving module is used for receiving an access request of the terminal, wherein the access request is encapsulated with a tracing code of the article, and the tracing code is used for determining a tracing information display interface returned to the terminal; the first acquisition module is used for acquiring the access information of the access request; the second acquisition module is used for acquiring the traceability data of the object according to the access information, wherein the traceability data of the object comprises the address data of the terminal, the time data of the access request and the user type data of the terminal; and the storage module is used for storing the tracing data of the article and the tracing code in a correlated way.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of any of the methods of the embodiments described above when the computer program is executed by the processor.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the method of any of the embodiments described above.
According to the method, the device, the computer equipment and the computer readable storage medium for acquiring the article traceability data, the access request of the terminal is received, the traceability code of the article is analyzed from the access request, and the traceability code is used for determining a traceability information display interface returned to the terminal; acquiring access information of an access request; acquiring tracing data of the object according to the access information, wherein the tracing data of the object comprises address data of a terminal, time data of an access request and user type data of the terminal; and storing the tracing data of the object and the tracing code in a correlated way.
Therefore, the tracing data of the object of the access request can be obtained based on the tracing code of the object. Further, the tracing data of the object comprise address data of the terminal, time data of the access request and user type data of the terminal, so that the time, place and user type of the access request can be determined based on the tracing data of the object, and further details of the access request can be traced. In each link of the article circulation, the article tracing data of each link of the article circulation can be recorded by the method for acquiring the article tracing data, and the article tracing data of any article circulation link can be later retrieved by tracing codes.
Drawings
Fig. 1 is an application environment schematic diagram of a method for acquiring article tracing data in an embodiment of the present application;
fig. 2 is a flow chart of a method for acquiring article tracing data according to an embodiment of the present application;
FIG. 3 is a block diagram of an apparatus for acquiring article traceability data according to an embodiment of the present application;
fig. 4 is an internal structural diagram of a computer device in one embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The method for acquiring the article traceability data can be applied to an application environment shown in fig. 1. As shown in fig. 1, the outer package of the article is adhered with a two-dimensional code, and the two-dimensional code is packaged with the tracing code of the article. The terminal 1021 scans the two-dimensional code of the object to obtain the tracing code of the object. The terminal 1021 encapsulates the traceability code in the access request 1, and sends the access request 1 to the traceability query system 104. The traceability query system 104 receives the access request 1 of the terminal, determines a traceability information display interface returned to the terminal 1021 based on the traceability code of the access request 1, and returns the traceability information display interface to the terminal 1021. In addition, the traceability query system 104 obtains the access information 1 of the access request 1, obtains the traceability data 1 of the article according to the access information 1, and stores the traceability data 1 of the article and the traceability code in the database 106 in a correlated manner. The terminal 1021 may be a terminal used in any one of the item circulation links.
In addition, after the article circulates to another link, the terminal 1022 scans the two-dimensional code of the outer package of the article to obtain the tracing code of the article. Further, the terminal 1022 encapsulates the traceability code in the access request 2, and transmits the access request 2 to the traceability inquiry system 104. The tracing inquiry system 104 receives the access request 2 of the terminal, determines a tracing information display interface returned to the terminal 1022 based on the tracing code of the access request 2, and returns the tracing information display interface to the terminal 1022. In addition, the traceability query system 104 obtains the access information 2 of the access request 2, obtains the traceability data 2 of the article according to the access information 2, and stores the traceability data 2 of the article and the traceability code in the database 106 in a correlated manner.
Similarly, the tracing inquiry system can collect tracing data of tracing codes in all links of the circulation of the articles, so that the use condition of the tracing codes in all links of the circulation process of the articles is obtained.
In one embodiment, the present application provides a method for acquiring article tracing data, as shown in fig. 2, the method for acquiring article tracing data includes the following steps:
s202, receiving an access request of the terminal, and analyzing a tracing code of the object from the access request, wherein the tracing code is used for determining a tracing information display interface returned to the terminal.
In this embodiment, the source tracing code is a character string generated by a certain rule, and the source tracing code corresponds to the article one by one. Specifically, the traceability code is generated by a time stamp, a random number and a random code. The random code is a random string code that generates random never repeated from the time stamp. And managing and maintaining the generated tracing codes through a tracing code management information system.
The tracing code is presented in a two-dimensional code (QRCode) mode and can be printed on the outer package of the article or attached to the outer package. The item may be a commodity of a circulation process. In the process of article circulation, a user uses a handheld terminal, such as a mobile phone, to scan the two-dimensional code and obtain the tracing code of the article. The terminal obtains the tracing code and encapsulates the tracing code in the access request, and sends the access request to the tracing inquiry system.
And after resolving the tracing codes from the access request, the tracing inquiry system determines a tracing information display interface corresponding to the tracing codes returned to the terminal. The tracing information display interface is used for displaying tracing information of the article.
S204, access information of the access request is acquired.
In this implementation, when the terminal sends an access request to the traceability query system, the traceability query system obtains access information of the access request. The access information contains information associated with the current access request. For example, the access information includes an IP address of the terminal of the current access request, location information of the terminal, time information of the current access request, user information of the current access request, and the like. Specifically, the terminal is a user terminal, and the traceability query system is a server terminal. The client requests a certain address, and the server can collect various metadata. Various metadata such as IP address, GPS information, operating system type, etc. The server can further analyze user information such as the mobile phone number of the user by combining some specific scenes. The access information here is a plurality of metadata collected.
And if the terminal adopts a certain applet to send an access request to the traceability query system, acquiring user information by first accessing the page by the user. If other modes are used for accessing the traceability query system, the user is required to manually input the user information which cannot be acquired by one-key authorization. Further, when the terminal transmits an access request, the acquired user information is used as access information of a part of the access request.
S206, acquiring tracing data of the object according to the access information, wherein the tracing data of the object comprises address data of a terminal, time data of an access request and user type data of the terminal.
In this embodiment, the access information includes a plurality of data, and the traceability query system obtains traceability data of the article from the access information. The traceability data of the article comprises address data of the terminal, time data of the access request and user type data of the terminal. The address data of the terminal is used for showing the geographic position of the terminal, the time data of the access request is used for showing the time point of the current access request, and the user type data of the terminal is used for showing the user type of the terminal.
The traceability data of the article comprises data representing the address, the time and the user type, so that when the traceability data of the access request is read through the traceability code, the address, the time and the user type of the access request can be obtained, and the traceability service condition of each link of the article circulation process can be obtained.
And S208, the traceability data of the object and the traceability code are stored in a correlated mode.
In this embodiment, the tracing data of the article is stored after being associated with the tracing code, so that when the relevant tracing data of the article is read, the tracing data of the article can be obtained through the tracing code, and further the tracing data of each link of the article circulation can be obtained.
Specifically, the traceability query system stores traceability data of the object in a metadata mode, and the traceability data is stored in the non-relational database. In addition, the traceability query system forms a data tag for each traceability data, gives a weight vector to the data tag, and carries out secondary processing on the traceability data. The secondary processing mode comprises data aggregation and similarity analysis. Therefore, after the terminal inquires through the tracing code, the tracing inquiry system deposits trace data, and the trace data is used as a newly added tag value to be mapped and bound with the tracing code. Trace data includes trace data of the item.
According to the method for acquiring the article traceability data, the article traceability data of the access request can be acquired based on the article traceability code. Further, the tracing data of the object comprise address data of the terminal, time data of the access request and user type data of the terminal, so that the time, place and user type of the access request can be determined based on the tracing data of the object, and further details of the access request can be traced. In each link of the article circulation, the article tracing data of each link of the article circulation can be recorded by the method for acquiring the article tracing data, and the article tracing data of any article circulation link can be later retrieved by tracing codes.
In one embodiment, after the resolving the traceability code of the object from the access request, the method further includes: the tracing database is used for providing tracing display data for the tracing information display interface, and the tracing report format is used for providing a display format for the tracing information display interface; generating a traceability information display interface according to the traceability database and the traceability report format; and returning the traceability information display interface to the terminal.
In this embodiment, the traceability information display interface is used to display traceability information of the article. Specifically, the tracing code is used as a query link parameter, and the tracing database and the tracing report format corresponding to the background are matched through the character string of the tracing code so as to access the tracing query system. The traceability query system generates a traceability information display interface based on the traceability database and the traceability report format. Different tracing codes inquire tracing information of different tracing databases and also match different tracing report formats. For example, the access request is: https// sample. Com/ccs/traceCode = tracesource code & traceGroup = traceGroup ID. Wherein, the difference of the tracegroups of the URL parameters presents different traceability information display interfaces. Therefore, different traceability information display interfaces can be provided for various scenes. For example, different traceability information display interfaces are provided for various scenes such as an e-commerce scene, a logistics management scene, a trade scene and the like.
In one embodiment, the acquiring the traceability data of the object according to the access information includes: acquiring IP addresses and/or position information of terminals in the access information; and acquiring address data of the traceability data according to the IP address and/or the position information.
In this embodiment, if only the IP address exists in the access information, the address data of the trace-source data is obtained according to the IP address. Specifically, the IP address is a logical address of a network of the terminal, and the physical address is masked with the IP address. The attribution of the terminal can be queried through the IP address, and then the address data of the terminal is determined. The embodiment can obtain the IP address by analyzing the access request.
If only the position information of the terminal exists in the access information, the address data of the traceability data is directly obtained according to the position information of the terminal. Specifically, an application program on the terminal obtains authorization, further obtains the position information of the terminal, and sends the position information of the terminal to the traceability query system. For example, the terminal is a mobile phone, and the application program is a browser. The browser reads the positioning information of the mobile phone after obtaining the authorization of the mobile phone, obtains the position information of the mobile phone, and sends the position information follow-up access request of the mobile phone to the tracing inquiry system. Therefore, the traceability query system determines address data of the traceability data of the access request based on the location information.
If the access information contains the IP address and the position information of the terminal, the address data of the traceability data is obtained according to the IP address and the position information of the terminal. Specifically, the access information includes an IP address and location information of the terminal, one address data is determined according to the IP address, another address data is determined according to the location information of the terminal, and the two address data are compared and checked with each other to determine whether the two address data are identical. If yes, any one of the determined address data is used as the address data of the tracing data. If not, the two address data are used as the address data of the traceability data so as to facilitate subsequent manual check. Or the address data determined by the position information of the terminal is used as the address data of the traceability data, so that more accurate address data is obtained.
In an embodiment, the acquiring the traceability data of the object according to the access information further includes: if the IP address and the position information do not exist in the access information, acquiring historical data of the same category, the same batch and/or the same inventory of the articles of the terminal; and determining the address data of the traceability data according to the historical data of the same category, the same batch and/or the same inventory of the articles.
In this embodiment, if the IP address and the location information are not present in the access information, the address data of the terminal is determined based on the history data of the article. Specifically, when the position information and the IP address of the terminal are absent in the access information, a machine learning model is adopted, and the approximate geographical area where the traceability code is located is calculated through the historical data of the same kind, the same batch and the same library, so that the address data of the terminal is determined. The machine learning model may employ an nPrintML model.
Wherein the historical data of the same category, same batch and/or same inventory of the articles comprises: IP address and/or location information of historical data of the same category, same lot and/or same inventory of items. Because the geographic positions of the articles in the same category, batch and/or inventory are relatively similar, the address data of the articles can be determined through the IP address and/or position information of the articles in the same category, batch and/or inventory. For example, a certain article A, the same batch, the same category and the same inventory of articles B, the articles A and the articles B circulate to the same place, especially in the logistics management and the current business circulation, the same batch, the same category and the same inventory of articles are stored in the same place, so that the address data of the articles can be determined through the IP address and/or the position information of the same category, the same batch and/or the same inventory.
In one embodiment, the acquiring the traceability data of the object according to the access information includes: acquiring equipment information, software system information and/or browser information in the access information; and acquiring user type data of the traceability data according to the equipment information, the software system information and/or the browser information.
In this embodiment, a plurality of user types are preset. For example, the article is a commodity, and the commodity circulation links comprise links of production, management, distribution, consumption and the like. User types are classified into producer, manager, distributor, and consumer.
Different user types, which employ different terminals. Therefore, the user type is determined through the equipment type of the terminal, a software system adopted by the terminal and/or a browser used by the terminal. The device information is used for showing the device attribute of the terminal, the software system information is used for showing the software system used by the terminal, and the browser information is used for showing the browser used by the terminal. In particular, the browser information may be determined by a user agent program of the browser.
Any one or more of the device information, the software system information and the browser information may determine the user type data. In particular by means of pre-configured identification rules. For example, user types are classified into producer, manager, distributor, and consumer. If the producer, the manager, the distributor and the consumer adopt different terminal equipment to manage the articles, the user type data can be determined through the equipment information of the terminal. If the terminals adopted by the producer, the manager, the distributor and the consumer use different software systems, the user type data can be determined through the software system information. If the terminals adopted by the producer, the manager, the distributor and the consumer use different browsers, the user type data can be determined through the browser information. If the terminals adopted by the producer, the manager, the distributor and the consumer use different devices, different browsers and different software systems, the user type data is determined based on the device information, the software system information and the browser information.
In one embodiment, the acquiring the traceability data of the object according to the access information includes: if the equipment information, the software system information and the browser information do not exist in the access information, acquiring historical data of the same category, the same batch and/or the same inventory of the articles of the terminal; user type data of the traceability data is determined according to historical data of the same category, the same batch and/or the same inventory of the articles.
In this embodiment, if the device information, the software system information, and the browser information do not exist in the access information, the type of the user to be queried is estimated based on historical data of the same category, the same lot, and/or the same inventory of the items of the terminal. Wherein the historical data of the same category, same batch and/or same inventory comprises equipment information, software system information and browser information of the same category, same batch and/or same inventory of articles.
Specifically, according to a software system and a browser for inquiring a user, a machine learning model is adopted, and the type of the inquired user is presumed through historical data of the same kind, the same batch and the same library in the past. For example, the user type is an end consumer or a dealer of the process flow.
In one embodiment, the storing the tracing data of the article in association with the tracing code includes: data desensitization is carried out on the traceability data of the article, and privacy data and query data in the traceability data are obtained; binding and storing the privacy data with the user of the access request; and storing the query data into a query record table of the source tracing codes, wherein the query record table is used for displaying one or more query records of the source tracing codes.
In the embodiment, the obtained traceable data is subjected to data desensitization, encrypted transmission of authorized data of a user is ensured, and privacy data are reserved in a grouping and distribution mode. The privacy data includes the area ID of the user, identity information of the user, and the like. And storing the non-private data, such as query data, into a query record table of the tracing code so as to facilitate subsequent tracing personnel to query. The query record table can intuitively display the past tracing query place of the article, but does not display any privacy data such as user id or telephone. Therefore, the method and the device can provide the external inquiry tracing information and protect the personal privacy data of the user.
The method for acquiring the article traceability data can realize the circulation process of visually displaying the traceability codes. And effectively supervising the circulation process of the articles in different business scenes, preventing the goods from being fleed, and realizing circulation monitoring closed loop. And realizing the data credibility of the whole traceability process.
1. Visually displaying the circulation process of the tracing codes: by the method for acquiring the article traceability data, the article traceability data can be acquired, and the traceability data contains time, address and user information, so that the inquiry time, the inquiry place and the inquiry user of the article circulation process traceability codes can be inquired through the traceability codes. With respect to the traceable management system of the supply chain, the acquisition method of the article traceable data can be used for completing the acquisition of the product identification information and other business process data of each node enterprise based on the commodity bar code/two-dimensional code technology, so that an internal information system is established, and enterprises can monitor the quality of internal products and realize effective traceability when food problems occur.
2. In different business scenes, the circulation process of the articles is effectively supervised, the goods are prevented from being fleed, and circulation monitoring closed loop is realized:
for e-commerce products: the unified code identification (tracing code) is provided, so that the product information can be accurately collected, buyers can trust the product, no matter where the product is sold, the product can be checked, the product can be circulated actively, and the commodity information checking can be realized.
For logistics management: whether the product, the packaging box, the warehouse, the order or the trade participant is identified (the traceability code) through unified article coding standards such as commodity bar codes, box codes, two-dimensional codes and the like, so that the information of each node at the upstream and downstream of the supply chain is seamlessly shared and exchanged, the efficiency is greatly improved, and the automatic and visual management is truly realized.
For third party e-commerce platforms: through unified coding identification (tracing code), the identity of each merchant can be known once, and finally, electronic commerce with real identity, transparent information, data sharing, network supervision and trusted environment is realized, so that the electronic commerce becomes a platform which is trusted by both parties of the merchant.
For each trade participant: the method can be used for enabling basic information description of both zero supply parties to be consistent through a global data synchronous network based on a commodity bar code (traceability code) unified identification standard in the global scope, is convenient for each party to acquire the required information, and finally achieves smoothness and high efficiency of information transmission of the whole supply chain.
3. Data credibility of the whole tracing process: the traceability query system of the supply chain can realize visual operation in the whole process of the supply chain by means of a block chain technology, and a core enterprise can timely discover burst problems in the chain. For example, the problems of deterioration of products in transportation, backlog of warehouse products and the like are solved, the development of the products in transportation towards a more lean direction is facilitated, flexible operation of a supply chain is guaranteed, the end-to-end supply chain flow is digitized, inventory turnover rate is improved and the like, all members on the supply chain are placed on a decentralised blockchain, and information and files can be directly exchanged between the members. Thus, the method can help enterprises manage and track written records of tens of millions of shipping containers, and improve information transparency and high-safety information sharing among trading partners.
It should be understood that, although the steps of the flowchart are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least a portion of the steps of the flowchart may include a plurality of sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the sub-steps or stages are performed necessarily occur in sequence, but may be performed alternately or alternately with at least a portion of the other steps or sub-steps of other steps.
In one embodiment, the present application provides an apparatus for acquiring article tracing data, as shown in fig. 3, where the apparatus for acquiring article tracing data includes a receiving module 302, a first acquiring module 304, a second acquiring module 306, and a storage module 308. The receiving module 302 is configured to receive an access request of the terminal, where the access request encapsulates a tracing code of an article, and the tracing code is used to determine a tracing information display interface returned to the terminal; a first obtaining module 304, configured to obtain access information of the access request; the second obtaining module 306 is configured to obtain tracing data of the object according to the access information, where the tracing data of the object includes address data of the terminal, time data of the access request, and user type data of the terminal; and the storage module 308 is used for storing the tracing data of the article and the tracing code in a correlated manner.
In one embodiment, obtaining traceability data of an item according to access information includes: acquiring IP addresses and/or position information of terminals in the access information; and acquiring address data of the traceability data according to the IP address and/or the position information.
In one embodiment, the device for acquiring the article tracing data further includes a first determining module, configured to: if the IP address and the position information do not exist in the access information, acquiring historical data of the same category, the same batch and/or the same inventory of the articles of the terminal; and determining the address data of the traceability data according to the historical data of the same category, the same batch and/or the same inventory of the articles.
In one embodiment, obtaining traceability data of an item according to access information includes: acquiring equipment information, software system information and/or browser information in the access information; and acquiring user type data of the traceability data according to the equipment information, the software system information and/or the browser information.
In one embodiment, the device for acquiring the article tracing data further includes a second determining module, configured to: if the equipment information, the software system information and the browser information do not exist in the access information, acquiring historical data of the same category, the same batch and/or the same inventory of the articles of the terminal; user type data of the traceability data is determined according to historical data of the same category, the same batch and/or the same inventory of the articles.
In one embodiment, storing the traceability data of the item in association with the traceability code includes: data desensitization is carried out on the traceability data of the article, and privacy data and query data in the traceability data are obtained; binding and storing the privacy data with the user of the access request; and storing the query data into a query record table of the source tracing codes, wherein the query record table is used for displaying one or more query records of the source tracing codes.
In one embodiment, the device for acquiring the article tracing data further includes a return module, configured to: the tracing database is used for providing tracing display data for the tracing information display interface, and the tracing report format is used for providing a display format for the tracing information display interface; generating a traceability information display interface according to the traceability database and the traceability report format; and returning the traceability information display interface to the terminal.
For a specific limitation of the device for acquiring the article tracing data, reference may be made to the limitation of the method for acquiring the article tracing data hereinabove, and the description thereof will not be repeated here. The modules of the device for acquiring the article traceability data can be all or partially realized by software, hardware and a combination thereof. The above modules may be embedded in hardware or may be stored in a processor of the computer device, or may be stored in software in a memory of the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, where the computer device is a server of the traceability query system 104, and an internal structure diagram of the computer device may be shown in fig. 4. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs of the non-volatile storage media. The network interface of the computer device is used for receiving the access request of the terminal. The computer program, when executed by a processor, implements a method of acquiring item traceability data.
In one embodiment, a computer device is provided comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of when executing the computer program: receiving an access request of a terminal, and analyzing a tracing code of an article from the access request, wherein the tracing code is used for determining a tracing information display interface returned to the terminal; acquiring access information of an access request; acquiring tracing data of the object according to the access information, wherein the tracing data of the object comprises address data of a terminal, time data of an access request and user type data of the terminal; and storing the tracing data of the object and the tracing code in a correlated way.
In one embodiment, when the processor executes the computer program to implement the step of acquiring the traceability data of the object according to the access information, the following steps are specifically implemented: acquiring IP addresses and/or position information of terminals in the access information; and acquiring address data of the traceability data according to the IP address and/or the position information.
In one embodiment, the processor when executing the computer program further performs the steps of: if the IP address and the position information do not exist in the access information, acquiring historical data of the same category, the same batch and/or the same inventory of the articles of the terminal; and determining the address data of the traceability data according to the historical data of the same category, the same batch and/or the same inventory of the articles.
In one embodiment, when the processor executes the computer program to implement the step of acquiring the traceability data of the object according to the access information, the following steps are specifically implemented: acquiring equipment information, software system information and/or browser information in the access information; and acquiring user type data of the traceability data according to the equipment information, the software system information and/or the browser information.
In one embodiment, the processor when executing the computer program further performs the steps of: if the equipment information, the software system information and the browser information do not exist in the access information, acquiring historical data of the same category, the same batch and/or the same inventory of the articles of the terminal; user type data of the traceability data is determined according to historical data of the same category, the same batch and/or the same inventory of the articles.
In one embodiment, when the processor executes the computer program to implement the above step of storing the tracing data and the tracing code of the article in association, the following steps are specifically implemented: data desensitization is carried out on the traceability data of the article, and privacy data and query data in the traceability data are obtained; binding and storing the privacy data with the user of the access request; and storing the query data into a query record table of the source tracing codes, wherein the query record table is used for displaying one or more query records of the source tracing codes.
In one embodiment, the processor when executing the computer program further performs the steps of: the tracing database is used for providing tracing display data for the tracing information display interface, and the tracing report format is used for providing a display format for the tracing information display interface; generating a traceability information display interface according to the traceability database and the traceability report format; and returning the traceability information display interface to the terminal.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of: receiving an access request of a terminal, and analyzing a tracing code of an article from the access request, wherein the tracing code is used for determining a tracing information display interface returned to the terminal; acquiring access information of an access request; acquiring tracing data of the object according to the access information, wherein the tracing data of the object comprises address data of a terminal, time data of an access request and user type data of the terminal; and storing the tracing data of the object and the tracing code in a correlated way.
In one embodiment, when the computer program is executed by the processor to implement the steps of acquiring the traceability data of the article according to the access information, the following steps are specifically implemented: acquiring IP addresses and/or position information of terminals in the access information; and acquiring address data of the traceability data according to the IP address and/or the position information.
In one embodiment, the computer program when executed by the processor further performs the steps of: if the IP address and the position information do not exist in the access information, acquiring historical data of the same category, the same batch and/or the same inventory of the articles of the terminal; and determining the address data of the traceability data according to the historical data of the same category, the same batch and/or the same inventory of the articles.
In one embodiment, when the computer program is executed by the processor to implement the steps of acquiring the traceability data of the article according to the access information, the following steps are specifically implemented: acquiring equipment information, software system information and/or browser information in the access information; and acquiring user type data of the traceability data according to the equipment information, the software system information and/or the browser information.
In one embodiment, the computer program when executed by the processor further performs the steps of: if the equipment information, the software system information and the browser information do not exist in the access information, acquiring historical data of the same category, the same batch and/or the same inventory of the articles of the terminal; user type data of the traceability data is determined according to historical data of the same category, the same batch and/or the same inventory of the articles.
In one embodiment, when the computer program is executed by the processor to implement the above step of storing the tracing data and the tracing code of the article in association, the following steps are specifically implemented: data desensitization is carried out on the traceability data of the article, and privacy data and query data in the traceability data are obtained; binding and storing the privacy data with the user of the access request; and storing the query data into a query record table of the source tracing codes, wherein the query record table is used for displaying one or more query records of the source tracing codes.
In one embodiment, the computer program when executed by the processor further performs the steps of: the tracing database is used for providing tracing display data for the tracing information display interface, and the tracing report format is used for providing a display format for the tracing information display interface; generating a traceability information display interface according to the traceability database and the traceability report format; and returning the traceability information display interface to the terminal.
Those skilled in the art will appreciate that all or part of the above-described methods may be implemented by a computer program stored on a non-volatile computer readable storage medium, which when executed, may comprise the steps of the above-described embodiments of the methods. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features of the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (10)

1. The method for acquiring the article traceability data is characterized by comprising the following steps:
receiving an access request of a terminal, and analyzing a tracing code of an article from the access request, wherein the tracing code is used for determining a tracing information display interface returned to the terminal;
acquiring access information of the access request;
acquiring tracing data of the article according to the access information, wherein the tracing data of the article comprises address data of the terminal, time data of the access request and user type data of the terminal;
and storing the traceability data of the article and the traceability code in an associated mode.
2. The method according to claim 1, wherein the acquiring the traceability data of the article according to the access information includes:
acquiring an IP address in the access information and/or position information of the terminal;
and acquiring the address data of the tracing data according to the IP address and/or the position information.
3. The acquisition method according to claim 2, characterized in that the method further comprises:
if the IP address and the position information do not exist in the access information, historical data of the same category, the same batch and/or the same inventory of the articles of the terminal are obtained;
and determining the address data of the traceability data according to historical data of the same category, the same batch and/or the same inventory of the articles.
4. The method according to claim 1, wherein the acquiring the traceability data of the article according to the access information includes:
acquiring equipment information, software system information and/or browser information in the access information;
and acquiring the user type data of the traceability data according to the equipment information, the software system information and/or the browser information.
5. The acquisition method of claim 4, wherein the method further comprises:
if the equipment information, the software system information and the browser information do not exist in the access information, historical data of the same category, the same batch and/or the same inventory of the articles of the terminal are obtained;
and determining the user type data of the traceability data according to historical data of the same category, the same batch and/or the same inventory of the articles.
6. The method according to claim 1, wherein the associating the traceability data of the item with the traceability code includes:
data desensitization is carried out on the traceability data of the article to obtain privacy data and query data in the traceability data;
binding and storing the privacy data with the user of the access request;
and storing the query data into a query record table of the tracing code, wherein the query record table is used for displaying one or more query records of the tracing code.
7. The acquisition method according to claim 1, characterized in that the method further comprises:
matching a tracing database and a tracing report format according to the tracing code, wherein the tracing database is used for providing tracing display data for the tracing information display interface, and the tracing report format is used for providing a display format for the tracing information display interface;
generating the traceability information display interface according to the traceability database and the traceability report format;
and returning the traceability information display interface to the terminal.
8. An apparatus for acquiring traceability data of an article, the apparatus comprising:
the terminal comprises a receiving module, a receiving module and a display module, wherein the receiving module is used for receiving an access request of a terminal, the access request is encapsulated with a tracing code of an article, and the tracing code is used for determining a tracing information display interface returned to the terminal;
the first acquisition module is used for acquiring the access information of the access request;
the second acquisition module is used for acquiring the traceability data of the article according to the access information, wherein the traceability data of the article comprises the address data of the terminal, the time data of the access request and the user type data of the terminal;
and the storage module is used for storing the traceability data of the article and the traceability code in an associated mode.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1-7 when the computer program is executed by the processor.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to any of claims 1-7.
CN202211643841.5A 2022-12-20 2022-12-20 Method and device for acquiring article traceability data, computer equipment and storage medium Pending CN116228257A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211643841.5A CN116228257A (en) 2022-12-20 2022-12-20 Method and device for acquiring article traceability data, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211643841.5A CN116228257A (en) 2022-12-20 2022-12-20 Method and device for acquiring article traceability data, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116228257A true CN116228257A (en) 2023-06-06

Family

ID=86570583

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211643841.5A Pending CN116228257A (en) 2022-12-20 2022-12-20 Method and device for acquiring article traceability data, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116228257A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116629903A (en) * 2023-07-19 2023-08-22 南京广播电视集团有限责任公司 Commodity anti-counterfeiting Internet of things traceability recognition system based on blockchain data

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116629903A (en) * 2023-07-19 2023-08-22 南京广播电视集团有限责任公司 Commodity anti-counterfeiting Internet of things traceability recognition system based on blockchain data
CN116629903B (en) * 2023-07-19 2023-09-15 南京广播电视集团有限责任公司 Commodity anti-counterfeiting Internet of things traceability recognition system based on blockchain data

Similar Documents

Publication Publication Date Title
US11640574B2 (en) Aggregation event in a supply chain
CN109978573B (en) Information traceability system based on block chain
Kang et al. Development of generic RFID traceability services
CN109816331B (en) Audit task processing method, audit task processing device, computer equipment and storage medium
US9619774B2 (en) Product tracking system
CN109447632B (en) Electronic transaction tracking processing method, system, computer equipment and storage medium
WO2021128588A1 (en) Tracing method and system for item circulation system
CN113760958B (en) Information query method, device, equipment and storage medium
CN116228257A (en) Method and device for acquiring article traceability data, computer equipment and storage medium
US20230334609A1 (en) Information management method and non-transitory, computer readable, tangible storage medium storing information management program
CN111581078B (en) Business abnormality positioning method and device, computer equipment and storage medium
CN112288441A (en) Method, equipment and medium for tracing imported frozen meat based on block chain
CN113127563A (en) Intelligent retail management method and system based on block chain
Ahmad et al. Integrating Lean Six Sigma with blockchain technology for quality management–a scoping review of current trends and future prospects
CN111882265A (en) Cross-border e-commerce automatic customs declaration method and automatic customs declaration robot
JP7018206B2 (en) Product and service evaluation system and evaluation method
US20220207468A1 (en) Method for tracking product history
Subramanian et al. Enhancing Supply Chain Traceability with Blockchain Technology: A Study on Dairy, Agriculture, and Seafood Supply Chains
CN112053095A (en) Cargo monitoring method and device, computer equipment and storage medium
CN110570206A (en) commodity tracing method and device
Evizal et al. Traceability Software for the Food Industry
US20220012678A1 (en) System and method for tracking and tracing
CN117541159B (en) Material control method and device for chip storage
CN117593023B (en) Commodity tracing method, system, equipment and medium based on distributed network
CN113205359A (en) Method and device for determining commodity price in receipt and computer equipment

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