CN114510636B - A product data query method, device and storage medium based on identification resolution - Google Patents
A product data query method, device and storage medium based on identification resolution Download PDFInfo
- Publication number
- CN114510636B CN114510636B CN202210111643.8A CN202210111643A CN114510636B CN 114510636 B CN114510636 B CN 114510636B CN 202210111643 A CN202210111643 A CN 202210111643A CN 114510636 B CN114510636 B CN 114510636B
- Authority
- CN
- China
- Prior art keywords
- product
- user
- data
- identification code
- type
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 50
- 230000005540 biological transmission Effects 0.000 claims description 8
- 230000008569 process Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 8
- 238000004590 computer program Methods 0.000 description 7
- 238000012545 processing Methods 0.000 description 4
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 3
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9535—Search customisation based on user profiles and personalisation
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
本申请公开了一种基于标识解析的产品数据查询方法、设备及存储介质。方法包括:基于预设的编码规则,对加入工业互联网的产品进行编码,以确定产品对应的产品标识码;基于产品的产品信息,构建产品的全量信息表,并对全量信息表中的各类数据设置数据标识值;在第一用户对产品标识码进行解析的情况下,接收并识别第一用户发送的解析指令,以确定解析指令中包含的用户身份信息,并基于用户身份信息,确定第一用户对应的第一用户标识值;将第一用户标识值与全量信息表中的各类数据的数据标识值匹配,以读取第一用户对应的待读取数据。本申请通过上述方法实现了不同类型的用户所查询的产品数据信息,仅为与自己身份对应的有关数据。
The present application discloses a product data query method, device and storage medium based on identity resolution. The method includes: encoding products added to the industrial Internet based on preset encoding rules to determine the product identification code corresponding to the product; constructing a full information table of the product based on the product information, and setting data identification values for various types of data in the full information table; receiving and identifying the parsing instruction sent by the first user when the first user parses the product identification code to determine the user identity information contained in the parsing instruction, and determining the first user identification value corresponding to the first user based on the user identity information; matching the first user identification value with the data identification value of various types of data in the full information table to read the data to be read corresponding to the first user. The present application realizes the product data information queried by different types of users through the above method, which is only the relevant data corresponding to their own identity.
Description
技术领域Technical Field
本申请涉及工业互联网技术领域,尤其涉及一种基于标识解析的产品数据查询方法、设备及存储介质。The present application relates to the field of industrial Internet technology, and in particular to a product data query method, device and storage medium based on identity resolution.
背景技术Background Art
现有的工业互联网中,多用户操作的系统或产品均不可避免的涉及到权限问题,系统的使用者越多、使用者本身的社会属性或分工越复杂,权限问题也就越复杂。如果不能对不同身份的用户加以权限限制,很容易产生敏感信息泄露或误操作的问题。In the existing industrial Internet, systems or products operated by multiple users inevitably involve permission issues. The more users there are in the system and the more complex the social attributes or division of labor of the users themselves, the more complicated the permission issues become. If the permissions of users with different identities cannot be restricted, it is easy to cause sensitive information leakage or misoperation.
由于工业互联网多用户操作产品面对的用户数量众多、用户种类不可预测,避免敏感信息泄露变得越来越困难,因此,在不同用户面对同一产品时,如何查询与自己职责范围内有关的产品数据信息,使产品实现分权管控成为亟待解决的问题。Since industrial Internet multi-user operation products face a large number of users and unpredictable user types, it is becoming increasingly difficult to avoid the leakage of sensitive information. Therefore, when different users face the same product, how to query product data information related to their own responsibilities and achieve decentralized product management and control has become an urgent problem to be solved.
发明内容Summary of the invention
本申请实施例提供了一种基于标识解析的产品数据查询方法、设备及存储介质,用于解决如下技术问题:如何使不同类型的用户所查询的产品数据信息,仅为与自己身份对应的有关数据。The embodiments of the present application provide a product data query method, device and storage medium based on identity resolution, which are used to solve the following technical problem: how to ensure that the product data information queried by different types of users is only the relevant data corresponding to their own identities.
第一方面,本申请实施例提供了一种基于标识解析的产品数据查询方法,其特征在于,方法包括:基于预设的编码规则,对加入工业互联网的产品进行编码,以确定产品对应的产品标识码;基于产品的产品信息,构建产品的全量信息表,并对全量信息表中的各类数据设置数据标识值;其中,产品信息包含产品的各类产品属性数据及各类待执行操作任务;数据标识值用于确定有权限查看对应类型数据的用户类型;在第一用户对产品标识码进行解析的情况下,接收并识别第一用户发送的解析指令,以确定解析指令中包含的用户身份信息,并基于用户身份信息,确定第一用户对应的第一用户标识值;将第一用户标识值与全量信息表中的各类数据的数据标识值匹配,以读取第一用户对应的待读取数据。In the first aspect, an embodiment of the present application provides a product data query method based on identification resolution, characterized in that the method includes: encoding products added to the industrial Internet based on preset coding rules to determine the product identification code corresponding to the product; constructing a full information table of the product based on the product information of the product, and setting data identification values for various types of data in the full information table; wherein the product information includes various types of product attribute data and various types of operation tasks to be performed; the data identification value is used to determine the type of user who has the authority to view the corresponding type of data; when the first user resolves the product identification code, receiving and identifying the resolution instruction sent by the first user to determine the user identity information contained in the resolution instruction, and based on the user identity information, determining the first user identification value corresponding to the first user; matching the first user identification value with the data identification values of various types of data in the full information table to read the data to be read corresponding to the first user.
本申请实施例提供的一种基于标识解析的产品数据查询方法,通过对产品设置具有解析身份区分的产品标识码,以及对全量信息表中产品信息设置数据标识值,从而可以在不同用户对数据进行查看时,可以拒绝无权限用户的查看,为不同类型的用户选择性的展示对应的产品信息数据,从而实现产品信息的分权查询。The embodiment of the present application provides a product data query method based on identity resolution. By setting a product identification code with resolved identity distinction for the product and setting a data identification value for the product information in the full information table, when different users view the data, the viewing of unauthorized users can be denied, and the corresponding product information data can be selectively displayed to different types of users, thereby realizing decentralized query of product information.
在本申请的一种实现方式中,基于预设的编码规则,对加入工业互联网的产品进行编码,以确定产品对应的标识码,具体包括:基于产品的产品类型及产品的产品编号,确定产品对应的产品标识码前缀;确定产品对应的待操作用户类型,并基于待操作用户类型,确定产品对应的产品标识码后缀;基于产品标识码前缀与产品标识码后缀,确定产品对应的产品标识码。In one implementation of the present application, products added to the industrial Internet are encoded based on preset coding rules to determine the identification code corresponding to the product, specifically including: determining the product identification code prefix corresponding to the product based on the product type and the product number of the product; determining the user type to be operated corresponding to the product, and based on the user type to be operated, determining the product identification code suffix corresponding to the product; determining the product identification code corresponding to the product based on the product identification code prefix and the product identification code suffix.
在本申请的一种实现方式中,确定产品对应的待操作用户类型,并基于待操作用户类型,确定产品对应的产品标识码后缀,具体包括:确定应用工业互联网的用户种类数,并基于用户种类数,确定产品标识码后缀的位数;其中,产品标识码后缀的位数与用户种类数相同;基于产品标识码后缀的位数,构建产品标识码对应的初始标识码后缀;其中,初始标识码后缀中的各位,用于设置对应用户类型的用户标识值;确定产品对应的待操作用户类型,并基于待操作用户类型,对初始产品标识码后缀中对应位的用户标识值进行设置,以确定产品对应的产品标识码后缀。In one implementation of the present application, the type of user to be operated corresponding to the product is determined, and based on the type of user to be operated, the product identification code suffix corresponding to the product is determined, specifically including: determining the number of user types applying the industrial Internet, and based on the number of user types, determining the number of digits of the product identification code suffix; wherein the number of digits of the product identification code suffix is the same as the number of user types; based on the number of digits of the product identification code suffix, constructing an initial identification code suffix corresponding to the product identification code; wherein each digit in the initial identification code suffix is used to set a user identification value of the corresponding user type; determining the type of user to be operated corresponding to the product, and based on the type of user to be operated, setting the user identification value of the corresponding digit in the initial product identification code suffix to determine the product identification code suffix corresponding to the product.
在本申请的一种实现方式中,对全量信息表中的各类数据设置数据标识值,具体包括:确定全量信息表中各类数据对应的待操作用户类型;基于各类数据对应的待操作用户类型,对全量信息表中的各类数据设置数据标识值;其中,用户标识值与数据标识值一一映射,每一类数据能够对应多个数据标识值。In one implementation of the present application, data identification values are set for each type of data in the full information table, specifically including: determining the user type to be operated corresponding to each type of data in the full information table; based on the user type to be operated corresponding to each type of data, setting data identification values for each type of data in the full information table; wherein, user identification values and data identification values are mapped one-to-one, and each type of data can correspond to multiple data identification values.
在本申请的一种实现方式中,将第一用户标识值与全量信息表中的各类数据的数据标识值匹配,以读取第一用户对应的待读取数据,具体包括:读取预设的标识值对照表,并基于标识值对照表,确定第一用户标识值对应的第一数据标识值;基于第一数据标识值,确定第一数据标识值对应类型的数据为待读取数据;基于解析指令中包含的用户身份信息,确定第一用户的传输地址,并基于传输地址将待读取数据发送给第一用户,以实现第一用户读取待读取数据。In one implementation of the present application, the first user identification value is matched with the data identification values of various types of data in the full information table to read the data to be read corresponding to the first user, specifically including: reading a preset identification value comparison table, and determining the first data identification value corresponding to the first user identification value based on the identification value comparison table; based on the first data identification value, determining that the data of the type corresponding to the first data identification value is the data to be read; based on the user identity information contained in the parsing instruction, determining the transmission address of the first user, and sending the data to be read to the first user based on the transmission address, so that the first user can read the data to be read.
在本申请的一种实现方式中,方法还包括:在发布针对产品的新待执行操作任务的情况下,将新待执行操作任务写入全量信息表中;确定新待执行操作任务的用户类型,并基于新待执行操作任务的用户类型,对新待执行任务设置第二数据标识值;基于第二数据标识值,确定对应的第二用户标识值,并基于第二用户标识值,将新待执行任务的提醒信息发送给对应的第二用户。In one implementation of the present application, the method also includes: when a new operation task to be executed for a product is released, the new operation task to be executed is written into the full information table; the user type of the new operation task to be executed is determined, and based on the user type of the new operation task to be executed, a second data identification value is set for the new task to be executed; based on the second data identification value, a corresponding second user identification value is determined, and based on the second user identification value, a reminder information of the new task to be executed is sent to the corresponding second user.
在本申请的一种实现方式中,在构建产品的全量信息表之后,方法还包括:将全量信息表存储于工业互联网的节点数据库中;确定全量信息表在节点数据库中的存储地址,并将存储地址与产品标识码与存储地址绑定,以使产品标识码在被解析时可确定查询到对应的全量信息表。In one implementation of the present application, after constructing the full information table of the product, the method also includes: storing the full information table in the node database of the industrial Internet; determining the storage address of the full information table in the node database, and binding the storage address with the product identification code and the storage address, so that when the product identification code is parsed, the corresponding full information table can be determined and queried.
在本申请的一种实现方式中,在基于用户身份信息,确定第一用户对应的第一用户标识值之后,方法还包括:将第一用户对应的第一用户标识值与产品标识码后缀的各位依次匹配,以判断是否存在对应的第一用户标识值;在确定产品标识码后缀中不存在对应的第一用户标识值的情况下,向第一用户发送无权限查看通知。In one implementation of the present application, after determining the first user identification value corresponding to the first user based on the user identity information, the method also includes: matching the first user identification value corresponding to the first user with each digit of the product identification code suffix in sequence to determine whether there is a corresponding first user identification value; if it is determined that the corresponding first user identification value does not exist in the product identification code suffix, sending an unauthorized viewing notification to the first user.
第二方面,本申请实施例还提供了一种基于标识解析的产品数据查询设备,其特征在于,设备包括:处理器;及存储器,其上存储有可执行代码,当可执行代码被执行时,使得处理器执行如权利要求1-8任一项的一种方法。In a second aspect, an embodiment of the present application also provides a product data query device based on identity resolution, characterized in that the device includes: a processor; and a memory on which executable code is stored, and when the executable code is executed, the processor executes a method as claimed in any one of claims 1-8.
第三方面,本申请实施例还提供了一种基于标识解析的产品数据查询的非易失性计算机存储介质,存储有计算机可执行指令,其特征在于,计算机可执行指令设置为:基于预设的编码规则,对加入工业互联网的产品进行编码,以确定产品对应的产品标识码;基于产品的产品信息,构建产品的全量信息表,并对全量信息表中的各类数据设置数据标识值;其中,产品信息包含产品的各类产品属性数据及各类待执行操作任务;数据标识值用于确定有权限查看对应类型数据的用户类型;在第一用户对产品标识码进行解析的情况下,接收并识别第一用户发送的解析指令,以确定解析指令中包含的用户身份信息,并基于用户身份信息,确定第一用户对应的第一用户标识值;将第一用户标识值与全量信息表中的各类数据的数据标识值匹配,以读取第一用户对应的待读取数据。In the third aspect, an embodiment of the present application also provides a non-volatile computer storage medium for product data query based on identification resolution, storing computer executable instructions, characterized in that the computer executable instructions are set to: based on preset coding rules, encode products added to the industrial Internet to determine the product identification code corresponding to the product; based on the product information of the product, construct a full information table of the product, and set data identification values for various types of data in the full information table; wherein the product information includes various types of product attribute data and various types of operation tasks to be performed; the data identification value is used to determine the type of user who has the authority to view the corresponding type of data; when the first user resolves the product identification code, receive and identify the resolution instruction sent by the first user to determine the user identity information contained in the resolution instruction, and based on the user identity information, determine the first user identification value corresponding to the first user; match the first user identification value with the data identification values of various types of data in the full information table to read the data to be read corresponding to the first user.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
图1为本申请实施例提供的一种基于标识解析的产品数据查询方法流程图;FIG1 is a flow chart of a product data query method based on identity resolution provided in an embodiment of the present application;
图2为本申请实施例提供的一种基于标识解析的产品数据查询设备内部结构示意图。FIG2 is a schematic diagram of the internal structure of a product data query device based on identity resolution provided in an embodiment of the present application.
具体实施方式DETAILED DESCRIPTION
为使本申请的目的、技术方案和优点更加清楚,下面将结合本申请具体实施例及相应的附图对本申请技术方案进行清楚、完整地描述。显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
本申请实施例提供了一种基于标识解析的产品数据查询方法、设备及存储介质,用于解决如下技术问题:如何使不同类型的用户,所查询的产品数据信息仅为与自己身份对应的有关数据。The embodiments of the present application provide a product data query method, device and storage medium based on identity resolution, which are used to solve the following technical problem: how to enable different types of users to query only the relevant data corresponding to their own identities.
下面通过附图对本申请实施例提出的技术方案进行详细的说明。The technical solution proposed in the embodiments of the present application is described in detail below with reference to the accompanying drawings.
图1为本申请实施例提供的一种基于标识解析的产品数据查询方法流程图。如图1所示,本申请实施例提供的一种基于标识解析的产品数据查询方法,具体包括以下步骤:FIG1 is a flow chart of a product data query method based on identification resolution provided by an embodiment of the present application. As shown in FIG1 , a product data query method based on identification resolution provided by an embodiment of the present application specifically includes the following steps:
步骤101、基于预设的编码规则,对加入工业互联网的产品进行编码,以确定产品对应的产品标识码。Step 101: Encode products added to the industrial Internet based on preset coding rules to determine the product identification code corresponding to the product.
在本申请的一个实施例中,为实现对加入工业互联网产品的编码,首先需要利用标识解析技术,在国家二级节点注册产品。在对产品进行注册后,即可在产品生产完成后或在加入工业互联网时,基于预设的编码规则,对产品进行编码,以确定产品对应的产品标识码。In one embodiment of the present application, in order to realize the coding of products added to the industrial Internet, it is first necessary to use the identification resolution technology to register the product at the national secondary node. After the product is registered, the product can be encoded based on the preset coding rules after the product is produced or when it is added to the industrial Internet to determine the product identification code corresponding to the product.
具体地,首先基于产品的产品类型及产品的产品编号,确定产品对应的产品标识码前缀。然后确定产品对应的待操作用户类型,基于待操作用户类型,确定产品对应的产品标识码后缀。Specifically, firstly, the product identification code prefix corresponding to the product is determined based on the product type and the product number of the product, then the user type to be operated corresponding to the product is determined, and based on the user type to be operated, the product identification code suffix corresponding to the product is determined.
需要说明的是,本申请实施例中产品标识码前缀为用于区分不同产品的部分,产品标识码后缀为用于描述能够基于该标识码读取到产品信息对应的用户类型的部分。It should be noted that in the embodiment of the present application, the prefix of the product identification code is a part used to distinguish different products, and the suffix of the product identification code is a part used to describe the user type corresponding to the product information that can be read based on the identification code.
在本申请的一个实施例中,确定产品对应的待操作用户类型,并基于待操作用户类型,确定产品对应的产品标识码后缀,具体包括:确定应用工业互联网的用户种类数,并基于用户种类数,确定产品标识码后缀的位数;其中,产品标识码后缀的位数与用户种类数相同;基于产品标识码后缀的位数,构建产品标识码对应的初始标识码后缀;其中,初始标识码后缀中的各位,用于设置对应用户类型的用户标识值;确定产品对应的待操作用户类型,并基于待操作用户类型,对初始产品标识码后缀中对应位的用户标识值进行设置,以确定产品对应的产品标识码后缀。In one embodiment of the present application, the type of user to be operated corresponding to the product is determined, and based on the type of user to be operated, the product identification code suffix corresponding to the product is determined, specifically including: determining the number of user types applying the industrial Internet, and based on the number of user types, determining the number of digits of the product identification code suffix; wherein the number of digits of the product identification code suffix is the same as the number of user types; based on the number of digits of the product identification code suffix, constructing an initial identification code suffix corresponding to the product identification code; wherein each digit in the initial identification code suffix is used to set a user identification value of the corresponding user type; determining the type of user to be operated corresponding to the product, and based on the type of user to be operated, setting the user identification value of the corresponding digit in the initial product identification code suffix to determine the product identification code suffix corresponding to the product.
在本申请实施例中,通过下述例一进行详细解释。In the embodiments of the present application, a detailed explanation is given through the following Example 1.
例一:应用工业互联网的用户有管理者、质检员、维修员、使用者四类,则确定产品标识码后缀的位数为4位,若标识码为数字类型则可以设置产品的初始标识码后缀为0000。假设四类用户分别对应的用户标识值是1、2、3、4,某一产品的待操作用户类型仅为管理者和使用者,则可以设置产品对应的产品标识码后缀为1004。Example 1: There are four types of users who apply the industrial Internet: managers, quality inspectors, maintenance personnel, and users. The number of digits in the product identification code suffix is determined to be 4. If the identification code is a digital type, the initial identification code suffix of the product can be set to 0000. Assuming that the user identification values corresponding to the four types of users are 1, 2, 3, and 4 respectively, and the user types to be operated for a certain product are only managers and users, the product identification code suffix corresponding to the product can be set to 1004.
进一步地,在确定产品标识码前缀与产品标识码后缀之后,基于产品标识码前缀与产品标识码后缀,确定产品对应的产品标识码。Further, after the product identification code prefix and the product identification code suffix are determined, the product identification code corresponding to the product is determined based on the product identification code prefix and the product identification code suffix.
还需要说明的是,本申请实施例在确定产品标识码后,可以将产品标识码转换为条形码或二维码设置于产品上,用于用户识别该产品标识码。It should also be noted that, after determining the product identification code, the embodiment of the present application can convert the product identification code into a barcode or a QR code and set it on the product for the user to identify the product identification code.
步骤102、基于产品的产品信息,构建产品的全量信息表,并对全量信息表中的各类数据设置数据标识值。Step 102: Based on the product information of the product, construct a full information table of the product, and set data identification values for various types of data in the full information table.
在本申请的一个实施例中,为实现用户能够基于产品标识码,查询到产品信息,还需要将产品标识码与产品信息之间建立连接。In one embodiment of the present application, in order to enable a user to query product information based on a product identification code, it is also necessary to establish a connection between the product identification code and the product information.
具体地,首先确定可以基于产品标识码能够查询的产品信息,然后基于该产品信息构建对应的全量信息表。为实现产品信息中的不同用户仅能查询到对应身份类型的数据,本申请在确定全量信息表后,确定全量信息表中各类数据对应的待操作用户类型;然后基于各类数据对应的待操作用户类型,对全量信息表中的各类数据设置数据标识值。Specifically, first determine the product information that can be queried based on the product identification code, and then build the corresponding full information table based on the product information. In order to achieve that different users in the product information can only query the data of the corresponding identity type, after determining the full information table, this application determines the user type to be operated corresponding to each type of data in the full information table; then, based on the user type to be operated corresponding to each type of data, set the data identification value for each type of data in the full information table.
需要说明的是,本申请实施例中的产品信息可以包含产品的各类产品属性数据及各类待执行操作任务;用户标识值与数据标识值为一一映射关系,每一类数据能够对应多个数据标识值。It should be noted that the product information in the embodiment of the present application may include various product attribute data of the product and various operation tasks to be performed; the user identification value and the data identification value are in a one-to-one mapping relationship, and each type of data can correspond to multiple data identification values.
在本申请的一个实施例中,为实现解析产品标识码可以查询到全量信息表中的产品信息,本申请实施例在构建产品的全量信息表之后,还会将全量信息表存储于工业互联网的节点数据库中;然后根据全量信息表在节点数据库中的存储地址,将该存储地址与产品标识码与存储地址绑定,以使产品标识码在被解析时可确定查询到对应的全量信息表。In one embodiment of the present application, in order to realize that the product information in the full information table can be queried by parsing the product identification code, the embodiment of the present application will store the full information table in the node database of the industrial Internet after constructing the full information table of the product; then, according to the storage address of the full information table in the node database, the storage address is bound to the product identification code and the storage address, so that the corresponding full information table can be determined to be queried when the product identification code is parsed.
步骤103、在第一用户对产品标识码进行解析的情况下,接收并识别第一用户发送的解析指令,以确定解析指令中包含的用户身份信息,并基于用户身份信息,确定第一用户对应的第一用户标识值。Step 103: When the first user parses the product identification code, a parsing instruction sent by the first user is received and identified to determine the user identity information contained in the parsing instruction, and based on the user identity information, a first user identification value corresponding to the first user is determined.
在本申请的一个实施例中,在产品上设置产品标识码,并将全量信息表与产品标识码绑定后,若第一用户对产品标识码进行解析,接收第一用户基于产品标识码生成的解析指令,然后根据解析指令中包含的用户身份信息,确定第一用户对应的第一用户标识值。需要说明的是,在本申请实施例中,用户身份信息包含用户的账号信息及用户的传输地址;本申请实施例对不同类型用户分配不同类型的账号,各类型账号对应不同的用户标识值,因此,可以基于第一用户的账号信息确定第一用户对应的第一用户标识值。In one embodiment of the present application, a product identification code is set on the product, and after the full information table is bound to the product identification code, if the first user parses the product identification code, a parsing instruction generated by the first user based on the product identification code is received, and then the first user identification value corresponding to the first user is determined according to the user identity information contained in the parsing instruction. It should be noted that in the embodiment of the present application, the user identity information includes the user's account information and the user's transmission address; the embodiment of the present application assigns different types of accounts to different types of users, and each type of account corresponds to a different user identification value. Therefore, the first user identification value corresponding to the first user can be determined based on the first user's account information.
步骤104、将第一用户标识值与全量信息表中的各类数据的数据标识值匹配,以读取第一用户对应的待读取数据。Step 104: Match the first user identification value with the data identification values of various types of data in the full information table to read the to-be-read data corresponding to the first user.
在本申请的一个实施例中,在基于用户身份信息,确定第一用户对应的第一用户标识值之后,首先需要基于产品标识码确定该第一用户是否具有读取该产品产品信息的权项。In one embodiment of the present application, after determining the first user identification value corresponding to the first user based on the user identity information, it is first necessary to determine whether the first user has the right to read the product information of the product based on the product identification code.
具体地,将第一用户对应的第一用户标识值与产品标识码后缀的各位依次匹配,以判断是否存在对应的第一用户标识值;在确定产品标识码后缀中不存在对应的第一用户标识值的情况下,向第一用户发送无权限查看通知。Specifically, the first user identification value corresponding to the first user is matched with each digit of the product identification code suffix in sequence to determine whether there is a corresponding first user identification value; if it is determined that the corresponding first user identification value does not exist in the product identification code suffix, a notification of no authority to view is sent to the first user.
在本申请实施例中,通过下述例二进行详细解释。需要说明的是,例二是在例一基础上的扩展。In the embodiments of the present application, the following Example 2 is used for detailed explanation. It should be noted that Example 2 is an extension of Example 1.
例二,假设第一用户标识值为2,将该用户标识值与产品标识码后缀“1004”中的四位逐一匹配,由于对应四位与第一用户标识值为2均不匹配,因此第一用户无权限查看该产品的产品信息,向第一用户发送无权限查看通知。Example 2: Assuming that the first user identification value is 2, the user identification value is matched one by one with the four digits in the product identification code suffix "1004". Since the corresponding four digits do not match the first user identification value of 2, the first user has no authority to view the product information of the product, and a notification of no authority to view is sent to the first user.
在本申请的一个实施例中,在确定产品标识码后缀中存在对应的第一用户标识值的情况下,将第一用户标识值与全量信息表中的各类数据的数据标识值匹配,以读取第一用户对应的待读取数据。In one embodiment of the present application, when it is determined that there is a corresponding first user identification value in the product identification code suffix, the first user identification value is matched with the data identification values of various types of data in the full information table to read the data to be read corresponding to the first user.
具体地,读取预设的标识值对照表,并基于标识值对照表,确定第一用户标识值对应的第一数据标识值;基于第一数据标识值,确定第一数据标识值对应类型的数据为待读取数据;基于解析指令中包含的用户身份信息,确定第一用户的传输地址,并基于传输地址将待读取数据发送给第一用户,以实现第一用户读取待读取数据。Specifically, a preset identification value comparison table is read, and based on the identification value comparison table, a first data identification value corresponding to the first user identification value is determined; based on the first data identification value, data of the type corresponding to the first data identification value is determined to be the data to be read; based on the user identity information contained in the parsing instruction, a transmission address of the first user is determined, and based on the transmission address, the data to be read is sent to the first user, so that the first user can read the data to be read.
基于同样的发明构思,本申请实施例还提供了一种基于标识解析的产品数据查询设备,其内部结构如图2所示。Based on the same inventive concept, the embodiment of the present application also provides a product data query device based on identity resolution, and its internal structure is shown in FIG2 .
图2为本申请实施例提供的一种基于标识解析的产品数据查询设备内部结构示意图。如图2所示,设备包括:处理器201;存储器202,其上存储有可执行指令,当可执行指令被执行时,使得处理器201执行如上述的一种基于标识解析的产品数据查询方法。Fig. 2 is a schematic diagram of the internal structure of a product data query device based on identity resolution provided by an embodiment of the present application. As shown in Fig. 2, the device includes: a processor 201; a memory 202, on which executable instructions are stored, and when the executable instructions are executed, the processor 201 executes a product data query method based on identity resolution as described above.
在本申请的一个实施例中,处理器201用于基于预设的编码规则,对加入工业互联网的产品进行编码,以确定产品对应的产品标识码;基于产品的产品信息,构建产品的全量信息表,并对全量信息表中的各类数据设置数据标识值;其中,产品信息包含产品的各类产品属性数据及各类待执行操作任务;数据标识值用于确定有权限查看对应类型数据的用户类型;在第一用户对产品标识码进行解析的情况下,接收并识别第一用户发送的解析指令,以确定解析指令中包含的用户身份信息,并基于用户身份信息,确定第一用户对应的第一用户标识值;将第一用户标识值与全量信息表中的各类数据的数据标识值匹配,以读取第一用户对应的待读取数据。In one embodiment of the present application, the processor 201 is used to encode products added to the industrial Internet based on preset coding rules to determine the product identification code corresponding to the product; based on the product information of the product, construct a full information table of the product, and set data identification values for various types of data in the full information table; wherein the product information includes various types of product attribute data and various types of operation tasks to be performed; the data identification value is used to determine the type of user who has the authority to view the corresponding type of data; when the first user parses the product identification code, receive and identify the parsing instruction sent by the first user to determine the user identity information contained in the parsing instruction, and based on the user identity information, determine the first user identification value corresponding to the first user; match the first user identification value with the data identification values of various types of data in the full information table to read the to-be-read data corresponding to the first user.
本申请的一些实施例提供的对应于图1的一种基于标识解析的产品数据查询的非易失性计算机存储介质,存储有计算机可执行指令,计算机可执行指令设置为:Some embodiments of the present application provide a non-volatile computer storage medium corresponding to FIG. 1 for product data query based on identity resolution, storing computer executable instructions, and the computer executable instructions are set to:
基于预设的编码规则,对加入工业互联网的产品进行编码,以确定产品对应的产品标识码;Based on the preset coding rules, encode the products added to the Industrial Internet to determine the product identification code corresponding to the product;
基于产品的产品信息,构建产品的全量信息表,并对全量信息表中的各类数据设置数据标识值;其中,产品信息包含产品的各类产品属性数据及各类待执行操作任务;数据标识值用于确定有权限查看对应类型数据的用户类型;Based on the product information of the product, a full information table of the product is constructed, and data identification values are set for various types of data in the full information table; wherein the product information includes various types of product attribute data and various types of operation tasks to be performed; the data identification value is used to determine the type of user who has the authority to view the corresponding type of data;
在第一用户对产品标识码进行解析的情况下,接收并识别第一用户发送的解析指令,以确定解析指令中包含的用户身份信息,并基于用户身份信息,确定第一用户对应的第一用户标识值;In the case where the first user parses the product identification code, receiving and identifying a parsing instruction sent by the first user to determine user identity information contained in the parsing instruction, and determining a first user identification value corresponding to the first user based on the user identity information;
将第一用户标识值与全量信息表中的各类数据的数据标识值匹配,以读取第一用户对应的待读取数据。The first user identification value is matched with the data identification values of various types of data in the full information table to read the to-be-read data corresponding to the first user.
本申请中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于物联网设备和介质实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the IoT device and medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
本申请实施例提供的系统和介质与方法是一一对应的,因此,系统和介质也具有与其对应的方法类似的有益技术效果,由于上面已经对方法的有益技术效果进行了详细说明,因此,这里不再赘述系统和介质的有益技术效果。The system and medium provided in the embodiments of the present application correspond one-to-one to the method. Therefore, the system and medium also have similar beneficial technical effects to the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the system and medium will not be repeated here.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to the flowchart and/or block diagram of the method, device (system) and computer program product according to the embodiment of the present application. It should be understood that each process and/or box in the flowchart and/or block diagram, and the combination of the process and/or box in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for realizing the function specified in one process or multiple processes in the flowchart and/or one box or multiple boxes in the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPU), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and/or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210111643.8A CN114510636B (en) | 2022-01-29 | 2022-01-29 | A product data query method, device and storage medium based on identification resolution |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210111643.8A CN114510636B (en) | 2022-01-29 | 2022-01-29 | A product data query method, device and storage medium based on identification resolution |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114510636A CN114510636A (en) | 2022-05-17 |
CN114510636B true CN114510636B (en) | 2024-11-08 |
Family
ID=81551561
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210111643.8A Active CN114510636B (en) | 2022-01-29 | 2022-01-29 | A product data query method, device and storage medium based on identification resolution |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114510636B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115859916A (en) * | 2023-03-08 | 2023-03-28 | 北京合创三众能源科技股份有限公司 | Method, system, terminal and storage medium for automatically adding energy-using equipment data |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110708571A (en) * | 2019-10-18 | 2020-01-17 | 腾讯科技(深圳)有限公司 | Video clip playing control method and related product |
CN110765112A (en) * | 2019-10-29 | 2020-02-07 | 国网电子商务有限公司 | Energy equipment data association method and system based on Internet of things identification technology |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10348699B2 (en) * | 2016-02-11 | 2019-07-09 | Evident ID, Inc. | Identity binding systems and methods in a personal data store in an online trust system |
CN111935328B (en) * | 2020-07-01 | 2023-05-12 | 国家工业信息安全发展研究中心 | Cross-region and cross-industry industrial Internet entity identification method |
-
2022
- 2022-01-29 CN CN202210111643.8A patent/CN114510636B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110708571A (en) * | 2019-10-18 | 2020-01-17 | 腾讯科技(深圳)有限公司 | Video clip playing control method and related product |
CN110765112A (en) * | 2019-10-29 | 2020-02-07 | 国网电子商务有限公司 | Energy equipment data association method and system based on Internet of things identification technology |
Also Published As
Publication number | Publication date |
---|---|
CN114510636A (en) | 2022-05-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110032599B (en) | Data structure reading and updating method and device, and electronic equipment | |
CN109597822B (en) | User data storage and query method and user data processing device | |
CN115129716A (en) | Data management method, equipment and storage medium for industrial big data | |
CN110032568B (en) | Data structure reading and updating method and device, and electronic equipment | |
CN113079200A (en) | Data processing method, device and system | |
CN114490641B (en) | Sharing method, equipment and medium of industrial Internet data | |
CN106878367B (en) | Method and device for realizing asynchronous call of service interface | |
CN111737654A (en) | Infringement detection method and device based on block chain and electronic equipment | |
CN113743955A (en) | Food material traceability data security access control method based on intelligent contract | |
JP6636647B2 (en) | Method and apparatus for generating a random character string | |
CN106850743B (en) | Service authorization method and device | |
CN110334160A (en) | Relationship binding method, device and equipment based on block chain | |
CN114091099A (en) | Authority hierarchical control method, equipment and storage medium for business system | |
CN114510636B (en) | A product data query method, device and storage medium based on identification resolution | |
CN117709979A (en) | Textile traceability system and method based on blockchain | |
CN113297433A (en) | Method and system for accessing graph database | |
CN111310137B (en) | Block chain associated data evidence storing method and device and electronic equipment | |
CN111786792A (en) | Block chain-based data change recording method and device | |
CN111159192B (en) | Big data based data warehousing method and device, storage medium and processor | |
US10970316B1 (en) | Maintaining a class hierarchy of an object-oriented data model using shared columns and/or overflow tables | |
CN111177093A (en) | Method, device and medium for sharing scientific and technological resources | |
CN111046267A (en) | Method, device and medium for processing network rumors based on block chains | |
Kim et al. | Hyers‐Ulam Stability for a Class of Quadratic Functional Equations via a Typical Form | |
CN115168469A (en) | Calling method, device and medium of low-coding data interface | |
CN109189378B (en) | Data processing 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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Country or region after: China Address after: 250101 19th floor, building S02, Inspur Science Park, No. 1036, Inspur Road, high tech Zone, Jinan, Shandong Province Applicant after: Inspur industrial Internet Co.,Ltd. Address before: 250101 19th floor, building S02, Inspur Science Park, No. 1036, Inspur Road, high tech Zone, Jinan, Shandong Province Applicant before: Shandong Inspur industrial Internet Industry Co.,Ltd. Country or region before: China |
|
GR01 | Patent grant | ||
GR01 | Patent grant |