CN114329097B - Method and device for registering product identifications in batches, electronic equipment and storage medium - Google Patents

Method and device for registering product identifications in batches, electronic equipment and storage medium Download PDF

Info

Publication number
CN114329097B
CN114329097B CN202210234585.8A CN202210234585A CN114329097B CN 114329097 B CN114329097 B CN 114329097B CN 202210234585 A CN202210234585 A CN 202210234585A CN 114329097 B CN114329097 B CN 114329097B
Authority
CN
China
Prior art keywords
product
identification
identification information
registration
identifier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210234585.8A
Other languages
Chinese (zh)
Other versions
CN114329097A (en
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.)
China Academy of Information and Communications Technology CAICT
Original Assignee
China Academy of Information and Communications Technology CAICT
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 China Academy of Information and Communications Technology CAICT filed Critical China Academy of Information and Communications Technology CAICT
Priority to CN202210234585.8A priority Critical patent/CN114329097B/en
Publication of CN114329097A publication Critical patent/CN114329097A/en
Application granted granted Critical
Publication of CN114329097B publication Critical patent/CN114329097B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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

Abstract

The embodiment of the disclosure discloses a method, a device, electronic equipment and a storage medium for registering product identifiers in batches, wherein the method comprises the following steps: receiving an identification registration request message sent by a client; the identity registration request message includes: the system comprises an identification name list, a registration server and a registration server, wherein the identification name list comprises a first number of product identifications to be registered and identification names corresponding to the first number; then, acquiring a reference identifier of the product attribute, wherein the reference identifier is used for uniquely identifying a product attribute set; and respectively creating a piece of product identification information aiming at each identification name in the identification name list according to the identification name and the reference identification in the identification name list. Therefore, in the embodiment of the disclosure, the batch identification names and the reference identifications in the identification name list are used as identification registration information of batch products, and the registration of the identifications of a plurality of products is completed at one time through the registration information, so that the registration of the identifications of the batch products can be completed by executing a registration instruction at one time.

Description

Method and device for registering product identifications in batches, electronic equipment and storage medium
Technical Field
The present disclosure relates to industrial internet technologies, and in particular, to a method and an apparatus for registering product identifiers in batch, an electronic device, and a storage medium.
Background
The Industrial Internet (Industrial Internet) is a new infrastructure, application mode and Industrial ecology deeply integrated with new-generation information communication technology and Industrial economy, and a brand-new manufacturing and service system covering a whole Industrial chain and a whole value chain is constructed through comprehensive connection of people, machines, objects, systems and the like. In the industrial internet, the product identifier is mainly applied to a supply chain system of a product and is used for uniquely identifying one product, and related attributes (such as product type, manufacturer, batch and the like) of the product can be acquired according to the product identifier, so that the attributes of the product can be effectively associated with the product to form sound product information. An enterprise may learn about all attributes of a product by parsing the product identification.
When product identification registration is currently carried out, a registration operation command needs to be executed once when product identification is registered for each product, and when the data volume of product identification registered by an enterprise is large, the problems of network congestion, high service concurrency and the like can be caused by the mode, and finally, the identification registration efficiency is low.
Disclosure of Invention
The embodiment of the disclosure provides a method and a device for registering product identifiers in batches, electronic equipment and a storage medium, so as to solve the problem that in the prior art, when registering product identifiers for each product, registration operation quality needs to be executed once, so that registration efficiency is low when registering product identifiers of products in batches.
According to an aspect of the embodiments of the present disclosure, there is provided a method of registering product identifications in batches, including: receiving an identification registration request message sent by a client; wherein the identity registration request message comprises: the system comprises an identification name list, a registration server and a registration server, wherein the identification name list comprises a first number of product identifications to be registered and identification names corresponding to the first number, and the identification names are used for uniquely identifying one product; acquiring a reference identifier of a product attribute, wherein the reference identifier is used for uniquely identifying a product attribute set, and the product attribute set comprises at least one product attribute; creating a piece of product identification information respectively aiming at each identification name in the identification name list according to the identification name and the reference identification in the identification name list; wherein the product identification information includes: a product identifier, an index value of the product identifier, and a creation time of the product identifier, wherein the product identifier includes the identifier name and the reference identifier; and feeding back an identification registration response message to the client, wherein the identification registration response message comprises product identification information corresponding to the identification name which is successfully registered.
Optionally, in the method according to any of the foregoing embodiments of the present disclosure, the identifier registration request message includes a reference identifier of the product attribute; the obtaining of the reference identifier of the product attribute includes: and acquiring the reference identifier from the identifier registration request message.
Optionally, in the method according to any of the above embodiments of the present disclosure, the identifier registration request message includes the product attribute set; the obtaining of the reference identifier of the product attribute includes: generating the reference identifier for identifying the product attribute set; creating a corresponding relation between the reference identification and the product attribute set; and sending the reference identification to the client.
Optionally, in the method according to any of the above embodiments of the present disclosure, the method further includes: and feeding back a registration failure message to the client in response to detecting that at least one identification name fails to create the product identification information, wherein the registration failure message comprises a registration failure reason and/or an identification name which fails to create the product identification information.
Optionally, in the method according to any of the above embodiments of the present disclosure, the method further includes: receiving an identifier deletion request message sent by the client, wherein the identifier deletion request message comprises: a product identification information list, wherein the product identification information list comprises a second quantity of product identification information to be deleted and the product identification information to be deleted corresponding to the second quantity; and deleting the product identification information to be deleted in the product identification information list.
Optionally, in the method according to any of the above embodiments of the present disclosure, the method further includes: and feeding back a deletion failure message to the client in response to detecting that at least one to-be-deleted product identification information in the product identification information list fails to be deleted, wherein the deletion failure message comprises a deletion failure reason and/or deletion failure to-be-deleted product identification information.
Optionally, in the method according to any of the above embodiments of the present disclosure, the method further includes: receiving an identification query request message sent by the client, wherein the identification query request message comprises identification information of a product to be queried; acquiring a product attribute set identified by the reference identifier of the product identification information to be queried; and feeding back the product identification information to be queried and the product attribute set identified by the reference identification of the product identification information to be queried to the client.
According to another aspect of the embodiments of the present disclosure, there is provided an apparatus for registering product identifiers in batches, including: the first receiving module is used for receiving an identifier registration request message sent by a client; wherein the identity registration request message comprises: the system comprises an identification name list, a registration server and a registration server, wherein the identification name list comprises a first number of product identifications to be registered and identification names corresponding to the first number, and the identification names are used for uniquely identifying one product; the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring a reference identifier of a product attribute, the reference identifier is used for uniquely identifying a product attribute set, and the product attribute set comprises at least one product attribute; the identification creating module is used for creating a piece of product identification information aiming at each identification name in the identification name list respectively according to the identification name in the identification name list and the reference identification; wherein the product identification information includes: a product identifier, an index value of the product identifier, and a creation time of the product identifier, wherein the product identifier includes the identifier name and the reference identifier; and the first feedback module is used for feeding back an identification registration response message to the client, wherein the identification registration response message comprises product identification information corresponding to the identification name which is successfully registered.
According to still another aspect of an embodiment of the present disclosure, there is provided an electronic apparatus including: a memory for storing a computer program product; and the processor is used for executing the computer program product stored in the memory, and when the computer program product is executed, the method for registering the product identifications in batches is realized.
According to another aspect of the embodiments of the present disclosure, a computer readable storage medium is stored with computer program instructions, wherein the computer program instructions, when executed by a processor, implement a method for batch registration of product identifiers.
The method, the device, the electronic equipment and the storage medium for registering the product identifiers in batches in the embodiment of the disclosure receive an identifier registration request message sent by a client; the identity registration request message includes: the system comprises an identification name list, a registration server and a registration server, wherein the identification name list comprises a first number of product identifications to be registered and identification names corresponding to the first number; then, acquiring a reference identifier of the product attribute, wherein the reference identifier is used for uniquely identifying a product attribute set; and respectively creating a piece of product identification information aiming at each identification name in the identification name list according to the identification name and the reference identification in the identification name list. Therefore, in the embodiment of the disclosure, the batch identification names and the reference identifications in the identification name list are used as identification registration information of batch products, and registration of the identifications of a plurality of products is completed at one time through the registration information, so that registration of the identifications of the batch products can be completed by executing a registration instruction at one time, the problems of network congestion and high service concurrency caused by independently executing product identification information registration operation on each product when the product identification information of an enterprise is registered in a large batch are solved, and the registration efficiency of the product identification information is improved.
In addition, in the embodiment of the disclosure, the reference identifier for identifying the product attribute is introduced, and when each product identifier is registered, the identifier registration information request only needs to carry the reference identifier corresponding to the product attribute set, and the product attribute information does not need to be carried, so that the data size of the identifier registration information request is reduced. Meanwhile, in the registration process of the product identification information, only the corresponding relation between the identification name and the reference identification needs to be established, and a new identification is not required to be separately created and stored to identify the product attribute when the product identification information is registered for each product, so that the identification registration efficiency of the product is effectively improved, and the redundant data of the product attribute is reduced.
The technical solution of the present disclosure is further described in detail by the accompanying drawings and examples.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description, serve to explain the principles of the disclosure.
The present disclosure may be more clearly understood from the following detailed description, taken with reference to the accompanying drawings, in which:
FIG. 1 shows a flowchart of one embodiment of a method for batch registration of product identifiers according to an embodiment of the present disclosure.
Fig. 2 shows a flowchart of another embodiment of a method for batch registration of product identifiers according to an embodiment of the present disclosure.
FIG. 3 illustrates a flow diagram of yet another embodiment of a method for batch registration of product identifiers according to an embodiment of the disclosure.
Fig. 4 is a schematic structural diagram illustrating an embodiment of an apparatus for batch registration of product identifiers according to an embodiment of the present disclosure.
Fig. 5 is a schematic structural diagram of an application embodiment of an electronic device according to an embodiment of the present disclosure.
Detailed Description
Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions, and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless specifically stated otherwise.
It will be understood by those of skill in the art that the terms "first," "second," and the like in the embodiments of the present disclosure are used merely to distinguish one element from another, and are not intended to imply any particular technical meaning, nor is the necessary logical order between them.
It is also understood that in embodiments of the present disclosure, "a plurality" may refer to two or more and "at least one" may refer to one, two or more.
It is also to be understood that any reference to any component, data, or structure in the embodiments of the disclosure, may be generally understood as one or more, unless explicitly defined otherwise or stated otherwise.
In addition, the term "and/or" in the present disclosure is only one kind of association relationship describing an associated object, and means that three kinds of relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" in the present disclosure generally indicates that the former and latter associated objects are in an "or" relationship.
It should also be understood that the description of the various embodiments of the present disclosure emphasizes the differences between the various embodiments, and the same or similar parts may be referred to each other, so that the descriptions thereof are omitted for brevity.
Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the disclosure, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be discussed further in subsequent figures.
The disclosed embodiments may be applied to electronic devices such as terminal devices, computer systems, servers, etc., which are operational with numerous other general purpose or special purpose computing system environments or configurations. Examples of well known terminal devices, computing systems, environments, and/or configurations that may be suitable for use with electronic devices, such as terminal devices, computer systems, servers, and the like, include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients, hand-held or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, networked personal computers, minicomputer systems, mainframe computer systems, distributed cloud computing environments that include any of the above, and the like.
Electronic devices such as terminal devices, computer systems, servers, etc. may be described in the general context of computer system-executable instructions, such as program modules, being executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, etc. that perform particular tasks or implement particular abstract data types. The computer system/server may be practiced in distributed cloud computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules may be located in both local and remote computer system storage media including memory storage devices.
Fig. 1 shows a flowchart of a method for batch registration of product identifiers in an embodiment of the present disclosure. The embodiment can be applied to an electronic device, and as shown in fig. 1, the method for batch registration of product identifiers of the embodiment includes the following steps:
s101, receiving an identification registration request message sent by a client.
Wherein the identity registration request message may include: the system comprises an identification name list, wherein the identification name list comprises a first number of product identifications to be registered and identification names corresponding to the first number, and the identification names are used for uniquely identifying one product. The client generates a unique identification name for each product, the identification name can be a character string, and an identification name list is created according to a plurality of identification names. The client sends the identification registration request message to the server, and the server receives the identification registration request message sent by the client and processes the identification registration request message.
S102, obtaining the reference identification of the product attribute.
Wherein the reference identifier can be used to uniquely identify a product attribute set, the product attribute set including at least one product attribute. The product attributes may be manufacturer, batch, type, date of manufacture, etc. of the product. For example, when creating product identification information in a large batch of products of the same type from the same manufacturer, since the product attributes of the products in the large batch are the same, if each product identification information stores all the product attributes of the product, a large amount of redundant data is generated. Thus, the reference identifier is used and a correspondence between the reference identifier and a set of product attributes of the product is established, wherein the set of product attributes may be formed by all product attributes of the product or by a combination of a plurality of product attributes of the product. When the product identification information is created for batch products, only the reference identification and the corresponding relation between the reference identification and the product attribute set need to be created once, and the product attribute identification does not need to be created once again when the product identification information is created for each product.
S103, creating a piece of product identification information aiming at each identification name in the identification name list respectively according to the identification name and the reference identification in the identification name list.
The server side creates product identification information of each identification name in the identification name list according to the reference identification and each identification name in the identification name list. The product identification information may include: the system comprises a product identification, an index value of the product identification and a creation time of the product identification, wherein the product identification comprises an identification name and a reference identification. The product identification uniquely identifies one product, and the product identified by the product identification and the product identified by the identification name included in the product identification are the same product. For example, the reference identification corresponding to the property set of product A is ABC, the identification name of product A is 111.22.333, and the product identification of product A is 111.22.333/ABC.
And S104, feeding back an identification registration response message to the client.
The identifier registration response message may include product identifier information corresponding to the identifier name that is successfully registered.
In the embodiment of the disclosure, the batch identification names and the reference identifications in the identification name list are used as identification registration information of batch products, and the registration of the identifications of a plurality of products is completed once through the registration information, so that the registration of the identifications of the batch products can be completed by executing a registration instruction once, the problems of network congestion and high service concurrency caused by independently executing a product identification information registration operation on each product when an enterprise registers the product identification information in a large batch are avoided, and the registration efficiency of the product identification information is improved. In addition, in the embodiment of the disclosure, the quoting identifiers for identifying the product attributes are introduced, and when each product identifier is registered, the identifier registration information request only needs to carry the quoting identifier corresponding to the product attribute set, and does not need to carry product attribute information, thereby reducing the data size of the identifier registration information request. Meanwhile, in the registration process of the product identification information, only the corresponding relation between the identification name and the reference identification needs to be established, and a new identification is not required to be separately created and stored to identify the product attribute when the product identification information is registered for each product, so that the identification registration efficiency of the product is effectively improved, and the redundant data of the product attribute is reduced.
The following is an application embodiment of the method for batch registration of product identifiers in the embodiment of the present disclosure, including the following steps:
1. the client creates an identity registration request message and sends the identity registration request message. Specifically, the identifier registration request message can be created according to rfc 3650-3652 in the HANDLE protocol, and the message structure of the identifier registration request message is shown in Table I.
Watch 1
Figure 242284DEST_PATH_IMAGE001
The message structure shown in table one includes: envelope, Header, Body, and credit. Message envelopes are used to help deliver messages properly. The message header holds the common data fields of all messages exchanged between the client and the server. The message body stores the text content of the message. The message credential is used for performing identity verification on a message between the client and the server and checking integrity after data transmission, and may be a digital signature or a message authentication code.
Wherein OpCode in the message header represents the operation code, and OC _ CREATE _ MULTI _ HANDLE (2000) is the batch registration interface. HandleNameList1 in the message body is a list of identification names. The handlensumber indicates the number of the identifier names in the HandleNameList1, and if the handlensumber is 0, the HandleNameList1 is a null array, that is, the HandleNameList1 does not include the identifier names, and at this time, the product identifier is not registered. HandleName1, HandleName2, and HandleName3 represent tag names, and ReferenceHandle represents a reference tag corresponding to a product attribute set. The client side can send an identification registration request message to the server side through the batch registration interface.
2. The server receives the identification registration request message and then acquires the reference identification of the product attribute.
3. And respectively creating a piece of product identification information aiming at each identification name in the identification name list according to the identification name and the reference identification in the identification name list.
The structure of the product identification information may be created according to a Handle protocol, and the structure of the product identification information may include: index value (Index), data type (type), identification content (data), Time To Live (TTL), authority (permission), timestamp (timestamp), reference (reference). Wherein the index value is used to uniquely identify the product identification. The data type is used to indicate the data type of the product identification. The identification content is used for recording the product identification. For example, the product identifier recorded in the identifier content is 86.100.100/reference _ handle _ production name, 86.100.100 is an identifier name, reference _ handle is a reference identifier corresponding to the product attribute set, and production name is a suffix, which may be randomly generated or generated according to a preset generation rule, which is not limited in this disclosure. The cache expiration time indicates how long the value record can be cached before querying the product identification again. The rights are used to indicate access rights to the product identification. The time stamp is used to record the creation time of the product identification. Other product identifications are recorded in the citations and used as the evidence of the product identification.
And 4, feeding back an identification registration response message to the client. Wherein, the identification registration response message includes the product identification information.
In an optional example, the identifier registration request message in step S101 may include a reference identifier of the product attribute set; the reference identifier may be obtained from the identifier registration request message in step S102.
The method comprises the following steps that a product attribute set can be input or transmitted to a server in advance, and a reference identifier is created at the server; and then establishing a corresponding relation between the reference identification and the product attribute.
In the embodiment of the disclosure, the product identification information is created according to the reference identifier in the identifier registration request message and each identifier name in the identifier name list, so that the product identification information is quickly registered in batches.
In another alternative example, the identity registration request message in step S101 includes a set of product attributes; in step S102 a reference identifier for the set of product attributes is generated. A correspondence between the reference identifier and the set of product attributes is created. And sending the reference identification to the client.
When the client registers the product identification information in batch for the first time, the client can add the product attribute set of the product into the identification registration request message, the server creates the reference identification, and establishes the corresponding relation between the reference identification and the product attribute set. The server side can send the reference identifier to the client side independently, and can also send the reference identifier to the client side together with the product identification information. When the client registers the product identification information in batch for the second time, the reference identification can be carried in the identification registration request message.
In the embodiment of the disclosure, the creation of the reference identifier corresponding to the product attribute set of the product is completed when the product identifier information of the product is registered for the first time, and the product identifier is registered for the second time only by carrying the product identifier, so that the product identifier is registered in batches quickly.
In an optional example, after step S103, the method may further include, for example: and feeding back a registration failure message to the client in response to detecting that the at least one identification name fails to create the product identification information.
When the server detects that the identification name in the identification name list fails to create the product identification information, all the identification names which fail to create the product identification and the reason of registration failure are obtained, and a registration failure message is fed back to the client, wherein the registration failure message can comprise the reason of registration failure and/or all the identification names which fail to create the product identification information. For example, the identification name list includes 1000 identification names, wherein 100 identification names fail to create the product identification information, the 100 identification names that fail to create the product identification name information may be fed back to the client in the form of a list and the registration failure reasons of the 100 identification names, or the registration failure reasons of the 100 identification names may be fed back to the client.
The client can create the identification registration request message again according to the identification name which fails to create the product identification information in the registration failure message; or re-sending an identification registration request message including an identification name list including identification names failing to create the product identification information to the server.
In the embodiment of the disclosure, the creation condition of the product identification information is monitored, the identification name of the product identification information which is not successfully created is timely found, and the identification name of the product identification information which is failed to be created and/or the identification name list containing the identification name of the product identification information which is failed to be created is timely fed back to the client, so that the client is timely reminded of the product identification information which is failed to be created, and the success rate of the product identification information creation is improved.
In an alternative example, as shown in fig. 2, the method for batch registering product identifiers of the present embodiment further includes the following steps:
s201, receiving an identifier deletion request message sent by a client.
Wherein the identifier deletion request message may include: a product identification information list, where the product identification information list may include a second number of product identification information to be deleted and product identification information to be deleted corresponding to the second number.
S202, deleting the product identification information to be deleted in the product identification information list.
In the embodiment of the disclosure, batch deletion of all product identification information to be deleted in the product identification information list is realized, the problems of network congestion and the like caused by sending and executing a deletion operation instruction every time one product identification information is deleted are avoided, and the deletion efficiency of the product identification information is improved.
In an alternative example, the above-mentioned id delete request message may be created according to rfc 3650-3652 in the HANDLE protocol, and the message structure of the id delete request message is shown in Table two.
Watch two
Figure 637493DEST_PATH_IMAGE002
The meanings of Envelope, Header, Body and credit in the message structure shown in table two are the same as those in table one, wherein OC _ DELETE _ MULTI _ HANDLE (2001) is a bulk DELETE interface. HandleNameList2 in the message body is a list of product identification information. The handlensumber indicates the number of the product identification information in the HandleNameList2, and if the handlensumber is 0, the HandleNameList2 is an empty array, that is, the HandleNameList2 does not include the product identification information, and the product identification information is not deleted. Handlemanaa, handlemanab, handlemananc represent product identification information. The client side can send an identification registration request message to the server side through the batch deletion interface.
In an alternative example, the method for batch registration of product identifiers of the present embodiment further includes:
and feeding back a deletion failure message to the client in response to detecting that at least one to-be-deleted product identification information in the product identification information list fails to be deleted.
When the server detects that at least one to-be-deleted product identification information in the product identification information list fails to be deleted, a deletion failure message is fed back to the client, wherein the deletion failure message may include a deletion failure reason and/or deletion failure to-be-deleted product identification information. For example, the product identification information list includes 1000 pieces of product identification information, wherein 600 pieces of product identification information fail to be deleted, and 600 pieces of product identification information that fail to be deleted may be fed back to the client in a form of a list together with the deletion failure reason of the 600 pieces of product identification information, or the deletion failure reason of the 600 pieces of product identification information may be fed back to the client. The client can create an identifier deletion request message again according to the identifier information of the product to be deleted, which fails to be deleted, in the deletion failure message; or sending the identification deletion request message including the product identification information list (the product identification information list includes the identification information of the product to be deleted which fails to be deleted) to the server again.
In the embodiment of the disclosure, the product identification information deletion condition is monitored, the product identification information to be deleted which is not successfully deleted is found in time, and the product identification information to be deleted which is not successfully deleted and/or the product identification information list containing the product identification information to be deleted which is not successfully deleted is fed back to the client, so that the client is prompted to fail in deleting the product identification information in time, and the deletion efficiency of the product identification information is improved.
In an alternative example, as shown in fig. 3, the method for batch registering product identifiers of the embodiment further includes the following steps:
s301, receiving an identification query request message sent by a client.
Wherein the identification query request message includes identification information of the product to be queried.
S302, acquiring a product attribute set identified by the reference identifier of the product identification information to be inquired.
S303, feeding back the product identification information to be inquired and the product attribute set identified by the reference identification of the product identification information to be inquired to the client.
The client determines an index number (IndexNumber) corresponding to an index value of the product identification information to be queried, wherein the index number is used for indicating the number of elements of the index value. When the index number is 0, the index value is a null array. At this point, the query results will not be filtered according to the index values. Determining the type number (TypeNumber) of the data type of the product identifier information to be queried, wherein the type number is used for representing the element number of the data type of the product identifier, and when the type number is 0, the data type of the product identifier to be queried is a null array. At this time, the query result is not filtered according to the data type of the product identifier information to be queried.
The server receives an identification query request message sent by the client, and acquires a product attribute set identified by a reference identification of the identification information of the product to be queried according to the identification information of the product to be queried; and integrating the acquired product attribute set with the identification information of the product to be inquired, and feeding back the information to the client.
Fig. 4 shows a block diagram of an apparatus for batch registering product identifiers in an embodiment of the present disclosure. As shown in fig. 4, the apparatus for batch registration of product identifiers of this embodiment includes:
a first receiving module 401, configured to receive an identifier registration request message sent by a client; wherein the identity registration request message comprises: the system comprises an identification name list, a registration server and a registration server, wherein the identification name list comprises a first number of product identifications to be registered and identification names corresponding to the first number, and the identification names are used for uniquely identifying one product;
an obtaining module 402, configured to obtain a reference identifier of a product attribute, where the reference identifier is used to uniquely identify a product attribute set, and the product attribute set includes at least one product attribute;
an identifier creating module 403, configured to create a piece of product identifier information for each identifier name in the identifier name list according to the identifier name in the identifier name list and the reference identifier; wherein the product identification information includes: a product identifier, an index value of the product identifier, and a creation time of the product identifier, wherein the product identifier includes the identifier name and the reference identifier;
a first feedback module 404, configured to feed back an identifier registration response message to the client, where the identifier registration response message includes product identifier information corresponding to an identifier name that is successfully registered.
Optionally, the identifier registration request message includes a reference identifier of the product attribute; the obtaining module 402 is further configured to obtain the reference identifier from the identifier registration request message.
Optionally, the identity registration request message includes the set of product attributes; the obtaining module 402 is further configured to generate the reference identifier for identifying the product attribute set; creating a corresponding relation between the reference identification and the product attribute set; and sending the reference identification to the client.
Optionally, the apparatus for batch registration of product identifiers further includes:
a second feedback module (not shown in the figure) for feeding back a registration failure message to the client in response to detecting that at least one identification name fails to create the product identification information, wherein the registration failure message includes a reason for the registration failure and/or an identification name for which creating the product identification information fails.
Optionally, the apparatus for batch registration of product identifiers further includes:
a deleting module (not shown in the figure) configured to receive an identifier deleting request message sent by the client, where the identifier deleting request message includes: a product identification information list, wherein the product identification information list comprises a second quantity of product identification information to be deleted and the product identification information to be deleted corresponding to the second quantity; and deleting the product identification information to be deleted in the product identification information list.
Optionally, the apparatus for batch registration of product identifiers further includes:
a third feedback module (not shown in the figure), configured to feed back a deletion failure message to the client in response to detecting that deletion of at least one to-be-deleted product identification information in the product identification information list fails, where the deletion failure message includes a deletion failure reason and/or deletion-failed to-be-deleted product identification information.
Optionally, the apparatus for batch registration of product identifiers further includes:
a query module (not shown in the figure) for receiving an identification query request message sent by the client, where the identification query request message includes identification information of a product to be queried; acquiring a product attribute set identified by the reference identifier of the product identification information to be inquired; and feeding back the product identification information to be queried and the product attribute set identified by the reference identification of the product identification information to be queried to the client.
FIG. 5 illustrates a block diagram of an electronic device in accordance with an embodiment of the disclosure.
As shown in fig. 5, the electronic device includes one or more processors 501 and memory 503.
The processor 501 may be a Central Processing Unit (CPU) or other form of processing unit having data processing capabilities and/or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.
Memory 503 may store one or more computer program products, and the memory 503 may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, Random Access Memory (RAM), cache memory (cache), and/or the like. The non-volatile memory may include, for example, Read Only Memory (ROM), hard disk, flash memory, etc. One or more computer program products may be stored on the computer-readable storage medium and executed by the processor 501 to implement the method for batch registration of product identifications and/or other desired functions of the various embodiments of the present disclosure described above.
In one example, the electronic device may further include: an input device 502 and an output device 504, which are interconnected by a bus system and/or other form of connection mechanism (not shown).
The input device 502 may also include, for example, a keyboard, a mouse, and the like.
The output device 504 may output various information to the outside, including the determined distance information, direction information, and the like. The output devices may include, for example, a display, speakers, a printer, and a communication network and remote output devices connected thereto, among others.
Of course, for simplicity, only some of the components of the electronic device relevant to the present disclosure are shown in fig. 5, omitting components such as buses, input/output interfaces, and the like. In addition, the electronic device may include any other suitable components, depending on the particular application.
In addition to the above-described methods and apparatus, embodiments of the present disclosure may also be a computer program product comprising computer program instructions which, when executed by a processor, cause the processor to perform the steps in the method of batch registration of product identifications according to various embodiments of the present disclosure described in the above-mentioned part of the description.
The computer program product may write program code for carrying out operations for embodiments of the present disclosure in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server.
Furthermore, embodiments of the present disclosure may also be a computer-readable storage medium having stored thereon computer program instructions, which, when executed by a processor, cause the processor to perform the steps in the method of batch registration of product identifications according to various embodiments of the present disclosure described in the above section of the present specification.
The computer-readable storage medium may take any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may include, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing describes the general principles of the present disclosure in conjunction with specific embodiments, however, it is noted that the advantages, effects, etc. mentioned in the present disclosure are merely examples and are not limiting, and they should not be considered essential to the various embodiments of the present disclosure. Furthermore, the foregoing disclosure of specific details is for the purpose of illustration and description and is not intended to be limiting, since the disclosure is not intended to be limited to the specific details so described.
In the present specification, the embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts in the embodiments are referred to each other. For the system embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The block diagrams of devices, apparatuses, systems referred to in this disclosure are only given as illustrative examples and are not intended to require or imply that the connections, arrangements, configurations, etc. must be made in the manner shown in the block diagrams. These devices, apparatuses, devices, systems may be connected, arranged, configured in any manner, as will be appreciated by those skilled in the art. Words such as "including," "comprising," "having," and the like are open-ended words that mean "including, but not limited to," and are used interchangeably therewith. The words "or" and "as used herein mean, and are used interchangeably with, the word" and/or, "unless the context clearly dictates otherwise. The word "such as" is used herein to mean, and is used interchangeably with, the phrase "such as but not limited to".
The methods and apparatus of the present disclosure may be implemented in a number of ways. For example, the methods and apparatus of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above-described order for the steps of the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above unless specifically stated otherwise. Further, in some embodiments, the present disclosure may also be embodied as programs recorded in a recording medium, the programs including machine-readable instructions for implementing the methods according to the present disclosure. Thus, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.
It is also noted that in the devices, apparatuses, and methods of the present disclosure, each component or step can be decomposed and/or recombined. Such decomposition and/or recombination should be considered as equivalents of the present disclosure.
The previous description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the disclosure. Thus, the present disclosure is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing description has been presented for purposes of illustration and description. Furthermore, this description is not intended to limit embodiments of the disclosure to the form disclosed herein. While a number of example aspects and embodiments have been discussed above, those of skill in the art will recognize certain variations, modifications, alterations, additions and sub-combinations thereof.

Claims (9)

1. A method of registering product identifiers in batches, comprising:
receiving an identification registration request message sent by a client; wherein the identity registration request message comprises: the system comprises an identification name list, a registration server and a registration server, wherein the identification name list comprises a first number of product identifications to be registered and identification names corresponding to the first number, and the identification names are used for uniquely identifying one product;
acquiring a reference identifier of a product attribute, wherein the reference identifier is used for uniquely identifying a product attribute set, and the product attribute set comprises at least one product attribute;
creating a piece of product identification information respectively aiming at each identification name in the identification name list according to the identification name and the reference identification in the identification name list; wherein the product identification information includes: a product identification, an index value of the product identification and a creation time of the product identification, wherein the product identification comprises the identification name and the reference identification;
feeding back an identification registration response message to the client, wherein the identification registration response message comprises product identification information corresponding to the identification name which is successfully registered;
receiving an identifier deletion request message sent by the client, wherein the identifier deletion request message comprises: a product identification information list, wherein the product identification information list comprises a second quantity of product identification information to be deleted and the product identification information to be deleted corresponding to the second quantity;
and deleting the product identification information to be deleted in the product identification information list.
2. The method of claim 1, wherein the identity registration request message includes a reference identity of the product attribute;
the obtaining of the reference identifier of the product attribute includes:
and acquiring the reference identifier from the identifier registration request message.
3. The method of claim 1, wherein the identity registration request message includes the set of product attributes;
the obtaining of the reference identifier of the product attribute includes:
generating the reference identifier for identifying the product attribute set;
creating a corresponding relation between the reference identifier and the product attribute set;
and sending the reference identification to the client.
4. The method according to any one of claims 1-3, further comprising:
and feeding back a registration failure message to the client in response to detecting that at least one identification name fails to create the product identification information, wherein the registration failure message comprises a registration failure reason and/or an identification name which fails to create the product identification information.
5. The method of claim 1, further comprising:
and feeding back a deletion failure message to the client in response to detecting that at least one to-be-deleted product identification information in the product identification information list fails to be deleted, wherein the deletion failure message comprises a deletion failure reason and/or deletion failure to-be-deleted product identification information.
6. The method of claim 1, further comprising:
receiving an identification query request message sent by the client, wherein the identification query request message comprises identification information of a product to be queried;
acquiring a product attribute set identified by the reference identifier of the product identification information to be queried;
and feeding back the product identification information to be queried and the product attribute set identified by the reference identification of the product identification information to be queried to the client.
7. An apparatus for registering product identifiers in batches, comprising:
the first receiving module is used for receiving an identifier registration request message sent by a client; wherein the identity registration request message comprises: the system comprises an identification name list, a registration server and a registration server, wherein the identification name list comprises a first number of product identifications to be registered and identification names corresponding to the first number, and the identification names are used for uniquely identifying one product;
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring a reference identifier of a product attribute, the reference identifier is used for uniquely identifying a product attribute set, and the product attribute set comprises at least one product attribute;
the identification creating module is used for creating a piece of product identification information aiming at each identification name in the identification name list respectively according to the identification name in the identification name list and the reference identification; wherein the product identification information includes: a product identification, an index value of the product identification and a creation time of the product identification, wherein the product identification comprises the identification name and the reference identification;
the first feedback module is used for feeding back an identification registration response message to the client, wherein the identification registration response message comprises product identification information corresponding to an identification name which is successfully registered;
a deleting module, configured to receive an identifier deletion request message sent by the client, where the identifier deletion request message includes: a product identification information list, wherein the product identification information list comprises a second quantity of product identification information to be deleted and the product identification information to be deleted corresponding to the second quantity; and deleting the product identification information to be deleted in the product identification information list.
8. An electronic device, comprising: a memory for storing a computer program product; a processor for executing the computer program product stored in the memory, and when executed, implementing the method of any of the preceding claims 1-6.
9. A computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, implement the method of any of claims 1-6.
CN202210234585.8A 2022-03-11 2022-03-11 Method and device for registering product identifications in batches, electronic equipment and storage medium Active CN114329097B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210234585.8A CN114329097B (en) 2022-03-11 2022-03-11 Method and device for registering product identifications in batches, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210234585.8A CN114329097B (en) 2022-03-11 2022-03-11 Method and device for registering product identifications in batches, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114329097A CN114329097A (en) 2022-04-12
CN114329097B true CN114329097B (en) 2022-05-31

Family

ID=81033987

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210234585.8A Active CN114329097B (en) 2022-03-11 2022-03-11 Method and device for registering product identifications in batches, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114329097B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116934263B (en) * 2023-07-26 2024-02-13 广东企企通科技有限公司 Product batch admittance method, device, equipment and medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984299B (en) * 2012-12-10 2015-09-16 中国科学院计算机网络信息中心 Domain name registration, the method for parsing and service system is realized based on domain name group
CN109416713B (en) * 2016-08-22 2021-06-29 帕斯罗基株式会社 Authentication system and non-transitory information recording medium
CN111428831A (en) * 2020-03-20 2020-07-17 贵阳块数据城市建设有限公司 Batch registration method of industrial internet identification through file uploading mode

Also Published As

Publication number Publication date
CN114329097A (en) 2022-04-12

Similar Documents

Publication Publication Date Title
US10540271B2 (en) Document processing events
CN106874334B (en) Data processing method and device and information processing system
CN110515965A (en) Business paper processing method, device, computer equipment and storage medium
CN114329097B (en) Method and device for registering product identifications in batches, electronic equipment and storage medium
CN111831458A (en) High-concurrency high-decoupling data processing method and data center system
CN112764726A (en) Data synthesis method and device
US11935004B2 (en) Reading and writing processing improvements as a single command
CN115994372B (en) File preprocessing method and device in block chain-based data resource hosting
CN111078764B (en) Data processing method, data processing device, computer readable storage medium and electronic equipment
CN113051086A (en) Data processing method and device, electronic equipment and storage medium
CN114782045B (en) Cross-chain non-transactional writing method and device, storage medium and electronic equipment
US20190139123A1 (en) Document Routing System
CN111400027A (en) Distributed task processing method, device and system
US20220171772A1 (en) Structured query language interface for tabular abstraction of structured and unstructured data
US10963889B2 (en) Cross-system object tracking platform
CN110213322B (en) Content publishing processing method, client and server for community
CN115357548B (en) Block chain-based electronic contract query method, device, equipment and medium
CN112905970A (en) Authority verification method and device, computer readable storage medium and electronic equipment
CN116010998B (en) Block chain-based data format verification and hosting method and device and electronic equipment
CN116010997B (en) Data resource hosting method and device based on continuity check of blockchain
CN114448729B (en) Identity authentication method and device for client in industrial internet
US20090300345A1 (en) Concept for Client Identification and Authorization in an Asynchronous Request Dispatching Environmnet
CN115664861B (en) Identity information verification method and device based on block chain, equipment and medium
CN115310065B (en) File generation method and device, storage medium and electronic equipment
CN115150349A (en) Message processing method, device, equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant