CN114385895A - Commodity checking method and device, electronic equipment and medium - Google Patents

Commodity checking method and device, electronic equipment and medium Download PDF

Info

Publication number
CN114385895A
CN114385895A CN202210043896.6A CN202210043896A CN114385895A CN 114385895 A CN114385895 A CN 114385895A CN 202210043896 A CN202210043896 A CN 202210043896A CN 114385895 A CN114385895 A CN 114385895A
Authority
CN
China
Prior art keywords
search
commodity
parameter
target
commodity attribute
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210043896.6A
Other languages
Chinese (zh)
Inventor
吴晓敏
易锋
柯灵利
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengcaiyun Co ltd
Original Assignee
Zhengcaiyun Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengcaiyun Co ltd filed Critical Zhengcaiyun Co ltd
Priority to CN202210043896.6A priority Critical patent/CN114385895A/en
Publication of CN114385895A publication Critical patent/CN114385895A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9532Query formulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0623Item investigation
    • G06Q30/0625Directed, with specific intent or strategy
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0623Item investigation
    • G06Q30/0625Directed, with specific intent or strategy
    • G06Q30/0629Directed, with specific intent or strategy for generating comparisons

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Mathematical Physics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application discloses a commodity checking method and device, electronic equipment and a medium, and mainly relates to the field of data screening. The method comprises the steps of receiving a request sent by an operation platform, generating search codes and returning the search codes to the operation platform, wherein the search codes are not repeated; then, inquiring the search condition of the target commodity corresponding to the search code; inquiring all commodity attribute names of the target commodity and commodity attribute parameters corresponding to the commodity attribute names; and finally, comparing each search parameter with each commodity attribute parameter to obtain a target commodity attribute name, generating a comparison result and returning the comparison result to the operation platform. The method obtains the search condition by generating the non-repeated search code, does not need to position the search condition in the mass data, and saves time. In addition, the method can automatically compare the search parameters with the commodity attribute parameters without manual comparison, thereby saving time and reducing labor cost.

Description

Commodity checking method and device, electronic equipment and medium
Technical Field
The present application relates to the field of data screening, and in particular, to a method and an apparatus for checking a commodity, an electronic device, and a medium.
Background
The supplier creates the commodity, the commodity needs to be checked on the purchasing platform and cannot be searched by the purchaser, and in the actual search, the required commodity cannot be searched because the commodity attributes such as the commodity state, the selling area, the distribution area and the like are not matched with the search condition on the purchasing platform, so that the reason that the commodity cannot be searched needs to be checked and positioned.
Currently, logging in a log platform for operation is needed when troubleshooting is performed, then, a corresponding log request is searched in massive log data, commodity attributes inquired during actual searching are extracted, all commodity attributes are inquired through a search server (ES) by using an ID of a target commodity, then, the commodity attributes on two sides are manually compared, and unmatched commodity attributes are found.
Therefore, how to reduce the examination time is an urgent problem to be solved by those skilled in the art.
Disclosure of Invention
The application aims to provide a commodity inspection method, a commodity inspection device, electronic equipment and a commodity inspection medium, which can be used for inspecting the reason that a commodity cannot be searched and reducing the commodity inspection time.
In order to solve the above technical problem, the present application provides a method for checking a commodity, applied to a server, including:
receiving a request sent by an operation platform, generating a search code and returning the search code to the operation platform; the search codes are not repeated;
inquiring the search condition of the target commodity corresponding to the search code; the searching conditions comprise the ID of the target commodity, all searching parameters input when the target commodity is searched, and searching names corresponding to the searching parameters;
inquiring all commodity attribute names of the target commodity and commodity attribute parameters corresponding to the commodity attribute names;
comparing each search parameter with each commodity attribute parameter, generating a comparison result and returning the comparison result to the operation platform; and the search name corresponding to the search parameter for comparison is consistent with the commodity attribute name corresponding to the commodity attribute parameter for comparison in the same group.
Preferably, the search condition for querying the target product corresponding to the search code includes:
inquiring whether a target key value exists from the Redis; the target key value is the same key value as the search code;
and if so, taking out the target value corresponding to the target key value as the search condition of the query.
Preferably, before comparing each search parameter with each product attribute parameter, the method further includes:
judging whether a commodity attribute name consistent with each search name exists or not;
and if the commodity attribute name consistent with the current search name does not exist, acquiring the commodity attribute name corresponding to the current search name according to the mapping relation table.
Preferably, the judging whether there is an article attribute name that coincides with each search name includes:
and judging whether the commodity attribute name consistent with each search name exists or not in a polling mode.
Preferably, the generating and returning the comparison result to the operation platform comprises:
obtaining the attribute name of the target commodity according to the comparison condition of each search parameter and each commodity attribute parameter; the target commodity attribute name is a commodity attribute name corresponding to the commodity attribute parameter inconsistent with the search parameter in all the commodity attribute parameters subjected to comparison;
generating a comparison result according to the target commodity attribute name, the target commodity attribute parameter corresponding to the target commodity attribute name and the search parameter compared with the target commodity attribute parameter;
and sending the comparison result to an operation platform.
In order to solve the above technical problem, the present application further provides a method for checking a commodity, which is applied to an operation platform, and includes:
receiving a request sent by a user, and sending the request to a server;
receiving and displaying a search code sent by a server; the search code is generated after the server receives the request;
receiving and displaying a comparison result sent by the server; and the comparison result is generated after the server compares each search parameter obtained by query with each commodity attribute parameter.
In order to solve the above technical problem, the present application further provides a commodity inspection device, which is applied to a server, and includes:
the first receiving module is used for receiving a request sent by the operating platform, generating a search code and returning the search code to the operating platform; the search codes are not repeated;
the first query module is used for querying the search condition of the target commodity corresponding to the search code; the searching conditions comprise the ID of the target commodity, all searching parameters input when the target commodity is searched, and searching names corresponding to the searching parameters;
the second query module is used for querying all commodity attribute names of the target commodity and all commodity attribute parameters corresponding to all the commodity attribute names;
the comparison module is used for comparing each search parameter with each commodity attribute parameter, generating a comparison result and returning the comparison result to the operation platform; and the search name corresponding to the search parameter for comparison is consistent with the commodity attribute name corresponding to the commodity attribute parameter for comparison in the same group.
In order to solve the above technical problem, the present application further provides a device for checking a commodity, which is applied to an operation platform, and includes:
the second receiving module is used for receiving the request sent by the user and sending the request to the server;
the third receiving module is used for receiving and displaying the search code sent by the server; the search code is generated after the server receives the request;
the fourth receiving module is used for receiving and displaying the comparison result sent by the server; and the comparison result is generated after the server compares each search parameter obtained by query with each commodity attribute parameter.
In order to solve the above technical problem, the present application further provides an electronic device, including:
a memory for storing a computer program;
and the processor is used for realizing the steps of the commodity checking method when executing the computer program.
In order to solve the above technical problem, the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the method for checking the above-mentioned article.
The commodity checking method comprises the steps of receiving a request sent by an operation platform, generating a search code and returning the search code to the operation platform; the search codes are not repeated; inquiring the search condition of the target commodity corresponding to the search code; the searching conditions comprise the ID of the target commodity, all searching parameters input when the target commodity is searched, and searching names corresponding to the searching parameters; inquiring all commodity attribute names of the target commodity and commodity attribute parameters corresponding to the commodity attribute names; comparing each search parameter with each commodity attribute parameter, generating a comparison result and returning the comparison result to the operation platform; and the search name corresponding to the search parameter for comparison is consistent with the commodity attribute name corresponding to the commodity attribute parameter for comparison in the same group. The method obtains the search condition by generating the non-repeated search code, does not need to position the search condition in the mass data, and saves time. In addition, the method can automatically compare the search parameters with the commodity attribute parameters without manual comparison, thereby saving time and reducing labor cost.
In addition, the commodity checking device, the electronic equipment and the medium provided by the application correspond to the commodity checking method, and the effects are as above.
Drawings
In order to more clearly illustrate the embodiments of the present application, the drawings needed for the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained by those skilled in the art without inventive effort.
Fig. 1 is a flowchart of a commodity inspection method applied to a server according to the present application;
FIG. 2 is a flowchart of a method for checking commodities applied to an operating platform according to the present application;
fig. 3 is a structural diagram of a commodity inspection device applied to a server according to the present application;
fig. 4 is a structural diagram of a commodity inspection device applied to an operation platform according to the present application;
fig. 5 is a block diagram of an electronic device provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without any creative effort belong to the protection scope of the present application.
When a user purchases commodities on the online shopping platform, the commodities are input and certain search parameters are selected for searching, so that target commodities can be screened from a plurality of commodities on the online shopping platform. The search parameters selectable by the user when searching for the product include the color, brand, model, sales area, distribution area, and the like of the product, and usually, the product attribute name corresponding to the search parameter selected by the user is only a part of all the product attribute names of the target product. It can be understood that, the user inputs the keyword of the target commodity in the search bar of the search page of the online shopping platform, and performs the query after selecting the search parameter in the search condition selection bar of the search page, when the search parameter selected by the user is all consistent with the commodity attribute parameter of the target commodity, the online shopping platform will show the relevant information of the target commodity, and when at least one search parameter in the selected search parameter is inconsistent with the commodity attribute parameter of the target commodity, the target commodity cannot be searched.
Obviously, the search parameters selected by each user in each commodity search process are recorded by the background system of the online shopping platform, and in the process of checking, the required search records are found from the massive search records of the background system, and then the search parameters in the search records are manually compared with the commodity attribute parameters corresponding to the target commodities, so that the checking time of the commodities is certainly and greatly increased.
In view of the above problems, the core of the present application is to provide a method for checking a product, which is used to search all search parameters selected by a user for search parameters inconsistent with product attribute parameters of a target product, and to check the reason why the product cannot be searched, so as to reduce the checking time of the product.
For easy understanding, an application scenario to which the technical solution of the present application is applied is described below.
The commodity checking system can comprise a user terminal, an operation platform, a server, a search page of an online shopping platform and a background system.
In a specific implementation, the user terminal may provide an information input interface for querying the operation platform and the online shopping platform for the user through an application installed in the user terminal, such as a browser. Specifically, the user terminal may obtain, through the information input interface, a website for querying the operation platform or the online shopping platform, which is input by the user, and may also obtain, through the information input interface, a keyword for querying the operation platform or the online shopping platform, so that the operation platform and the online shopping platform may be queried in the installed application interface. It is understood that the user terminal in the present application includes, but is not limited to, a smart phone, a tablet computer, a desktop computer, and the like.
The operating platform is a link for realizing communication between a user and a server, and particularly, the operating platform can acquire a request of the user through an operation of clicking a displayed button for generating a search code by the user, send the request to the server, acquire the search code sent by the server after the server generates the search code, and copy the search code to a clipboard, so that the user acquires the search code generated by the server. It should be noted that the request sent from the operation platform to the server is only used to notify the server to generate the search code, and in addition, the search code is not generated according to the target product, and is not directly linked to the target product, and is only used to be imported as a mark when searching for the product, so that for each search of the user, the server generates search codes which are not repeated for the user to use when searching for the product, so as to distinguish each search of the user. In addition, the operation platform can also receive a search code input by a user and the ID of the target commodity, send the search code and the ID of the target commodity to the server, and receive and display a comparison result sent by the server after the server completes processing.
The search page of the online shopping platform provides a channel for searching for commodities for a user, and specifically, the search page can acquire a search term which is input by the user and consists of keywords of a target commodity and a search code on a clipboard through a search bar, acquire search parameters of the target commodity selected by the user through a search condition selection bar, and forward the acquired search term and the search parameters to a background system of the online shopping platform. In specific implementation, the background system of the online shopping platform receives all search terms and search parameters sent by the user, obviously, the search terms input by the user during searching may not include search codes, and the target commodity is queried only through the input commodity keywords and the selected search parameters, so that in order to find the search terms containing the search codes from a plurality of search terms, the background system of the online shopping platform needs to analyze the search terms sent by the search page. Specifically, a background system of the online shopping platform checks whether a search entry contains a search code, automatically releases the search entry if the search code does not exist, allows the search, disassembles the search entry into the search code and a keyword of a target commodity if the search code exists, stores the search code as a key value in a Remote Dictionary service (Redis), assembles the keyword of the target commodity and a search parameter selected by a user into a set of complete search conditions, finally searches through the assembled search conditions, feeds the search result back to a search page after the search result is queried, and stores the search condition as a value in the Redis. It can be understood that the keyword of the target product is the ID of the target product, and the search parameter for assembling is all the search parameters selected in the search condition selection field when the user searches for the target product, and therefore, the search condition obtained after assembling includes the ID of the target product and all the search parameters selected in the search condition selection field by the user. It is to be noted that the search condition stored in Redis includes, but is not limited to, the ID of the target product and all the search parameters selected in the search condition selection field, and also includes a search name corresponding to each search parameter. It should be noted that Redis is a storage system for storing the search code and the assembled search condition, and the storage system used in this application includes, but is not limited to, Redis, and may also be a distributed cache system (Memcache) and other storage systems capable of correspondingly storing the search code and the search condition. In addition, the online shopping platform in the application includes, but is not limited to, a political mining cloud platform, and may include an online shopping platform in which all search pages support input of search codes and a background system can verify the search codes.
The server can be a special server specially used for checking the reason that the commodity cannot be searched, or can be a general server capable of realizing various services, and the implementation of the technical scheme of the application is not influenced. In general, a server is a dedicated server, and functions thereof include only generating a search code, searching conditions for querying a target product, all product attributes for querying the target product, and comparing the searching conditions and all product attributes of the target product. In the present application, the product attribute of the target product includes product attribute names of the target product and product attribute parameters corresponding to the product attribute names. Specifically, after receiving a request sent by the operation platform, the server generates a search code and returns the generated search code to the operation platform, and after a user inputs the search code and the ID of the target commodity in an input box corresponding to the operation platform, the server queries a search condition from Redis according to the input search code, queries all commodity attributes of the target commodity according to the input ID of the target commodity, compares the queried search condition with all commodity attributes of the target commodity, and returns a comparison result to the operation platform.
In order that those skilled in the art will better understand the disclosure, the following detailed description will be given with reference to the accompanying drawings.
Fig. 1 is a flowchart of a commodity inspection method applied to a server according to the present application. As shown in fig. 1, the method includes:
s1: and receiving a request sent by the operating platform, generating a search code and returning the search code to the operating platform.
In this embodiment, in order to facilitate searching by using a search term composed of a commodity keyword and a search code, the search code may be set as a character string, where the character string may include three or two of numbers, letters, and underlines, or may be composed of only numbers or letters, and the search code may also be set as a combination of a chinese phrase, a sentence, or a chinese character and a character string, which is not limited in this embodiment. In order to facilitate a background system of the online shopping platform to recognize the search code from the search entry, the search code may be set as a regular character string, for example, the search code may be set as a character string of a specific format, and the search entry composed of the commodity keyword and the search code is a combination of the Chinese character and the character string. In addition, since the search code is used as a mark for entering when searching for a product, it is necessary to ensure that the search codes generated do not overlap with each other regardless of the search code.
S2: and inquiring the search condition of the target commodity corresponding to the search code.
In specific implementation, after receiving the generated search code, the operating platform copies the search code to the clipboard, at this time, the user can switch from the operating platform to the online shopping platform, input keywords of the target product in the search bar of the search page of the online shopping platform, copy the search code on the clipboard to the search bar, at this time, use the input keywords of the target product and the search code as search terms, and select certain search parameters from the search condition selection bar for searching. After receiving the search terms and the search parameters, the background system of the online shopping platform analyzes and identifies the search terms, resolves the search terms into search codes and keywords of target goods for the search terms containing the search codes, caches the search terms and the search parameters transmitted together into Redis, and has the following storage rules: and taking the search code as a key value, and assembling the keywords of the target commodity and the search parameters transmitted together into a group of search conditions as a value corresponding to the key value. It should be noted that the keyword of the target product is the ID of the target product, and during assembly, the search name corresponding to each search parameter is also acquired for assembly, that is, the search condition in this embodiment includes the ID of the target product, all search parameters input when searching for the target product, and the search name corresponding to each search parameter.
When the search condition is queried, the query is performed in the Redis according to the input search code, specifically, the search code input by the user is compared with each key value stored in the Redis, and when a key value consistent with the input search code exists, a value corresponding to the key value is taken out to serve as the search condition obtained by the query.
S3: and inquiring all the commodity attribute names of the target commodity and the commodity attribute parameters corresponding to the commodity attribute names.
In a specific implementation, a user may input an ID of a target product in an input box corresponding to an operation platform to query all product attributes of the target product. Specifically, in the query, the query is performed from the ES according to the ID of the target product, so as to obtain all product attribute names of the target product and product attribute parameters corresponding to the product attribute names. The search server for querying all product attributes of the target product includes, but is not limited to, ES, and may be other search servers such as an enterprise-level search application server (Solr).
S4: and comparing each search parameter with each commodity attribute parameter, generating a comparison result and returning the comparison result to the operation platform.
In a specific implementation, after the search condition, all the product attribute names of the target product, and the product attribute parameters corresponding to the product attribute names are obtained, each search parameter is compared with each product attribute parameter. It should be noted that the search name corresponding to the search parameter for comparison needs to be consistent with the product attribute name corresponding to the product attribute parameter for comparison in the same group, for example, the parameter of the corresponding color in the search parameter is only compared with the parameter of the corresponding color in the product attribute parameter, and is not compared with the parameter of the corresponding sales area or distribution area in the product attribute parameter, so that the troubleshooting time can be effectively reduced.
After each search parameter is compared with each commodity attribute parameter one by one, a comparison result is generated according to the comparison condition of each search parameter, specifically, the comparison result is generated according to the search parameter which is inconsistent with the commodity attribute parameter in all the search parameters, and the comparison result is sent to an operation platform for displaying, so that a user can obtain the reason that the commodity cannot be searched.
The embodiment provides a commodity checking method, which comprises the steps of receiving a request sent by an operation platform, generating search codes and returning the search codes to the operation platform, wherein the search codes are not repeated; then, searching conditions of the target commodity corresponding to the search codes are inquired, wherein the searching conditions comprise the ID of the target commodity, all search parameters input when the target commodity is searched and search names corresponding to the search parameters; inquiring all commodity attribute names of the target commodity and commodity attribute parameters corresponding to the commodity attribute names; finally, comparing each search parameter with each commodity attribute parameter, generating a comparison result and returning the comparison result to the operation platform; and the search name corresponding to the search parameter for comparison is consistent with the commodity attribute name corresponding to the commodity attribute parameter for comparison in the same group. The method obtains the search condition by generating the non-repeated search code, does not need to position the search condition in the mass data, and saves time. In addition, the method can automatically compare the search parameters with the commodity attribute parameters without manual comparison, thereby saving time and reducing labor cost.
On the basis of the above embodiment, the present embodiment further describes the search condition for querying the target product corresponding to the search code in step S2. The method comprises the following steps:
inquiring whether a target key value exists from the Redis; the target key value is the same key value as the search code;
and if so, taking out the target value corresponding to the target key value as the search condition of the query.
In this embodiment, after the search code input by the user is acquired, whether the key value identical to the search code exists is queried from the Redis by using the search code. It should be noted that, the background system with the key value as the online shopping platform disassembles the search terms including the search codes and stores the search codes in the Redis, and for each search term including the search codes, the online shopping system disassembles the search terms into the search codes and the commodity keywords, and stores the search codes as the key value in the Redis. In this embodiment, the search code input by the user is compared with each key value stored in the Redis, and the obtained key value identical to the search code input by the user is the target key value, that is, the search code input when the user searches for the target commodity. In the above embodiment, the value is a search condition composed of the product ID, all search parameters input when searching for a product, and a search name corresponding to each search parameter, and therefore, the search condition of the query of this time can be obtained by taking out the target value stored in correspondence with the target key value.
The present embodiment further explains step S2 on the basis of the above embodiment. In the embodiment, whether a target key value identical to a search code input by a user exists is inquired from Redis; if the key value exists, the target value corresponding to the target key value is taken out, the target value is used as the search condition of the query, the search condition is queried through the search code, the required search condition can be queried from a large number of search conditions efficiently, and the time for querying the search condition is effectively reduced.
In the above embodiment, the search name corresponding to the search parameter for comparison needs to be consistent with the product attribute name corresponding to the product attribute parameter for comparison in the same group. Therefore, before each search parameter is compared with each product attribute parameter in the above embodiment, it is necessary to determine whether each search name in the search condition matches the product attribute name of the target product in order to facilitate parameter comparison. The method comprises the following steps:
judging whether a commodity attribute name consistent with each search name exists or not;
and if the commodity attribute name consistent with the current search name does not exist, acquiring the commodity attribute name corresponding to the current search name according to the mapping relation table.
Specifically, each search name in the search condition is determined, if a product attribute name consistent with the current search name exists, the next search name is continuously determined, if no product attribute name consistent with the current search name exists, the product attribute name corresponding to the current search name is queried from a preset mapping relation table, for example, if the search name is a region, the product attribute name corresponding to the search name can be queried as a distribution region through the mapping relation table, and at this time, the queried product attribute name, that is, the distribution region can be used for comparison.
The embodiment judges whether the commodity attribute names consistent with the search names exist or not, and when the commodity attribute names consistent with the current search names do not exist, the commodity attribute names corresponding to the current search names are obtained according to the mapping relation table so as to realize that the search names corresponding to the search parameters for comparison are consistent with the commodity attribute names corresponding to the commodity attribute parameters for comparison in the same group, and the checking time can be effectively reduced.
On the basis of the above-described embodiment, the present embodiment further explains the step of determining whether or not there is a product attribute name that coincides with each search name. The method comprises the following steps: and judging whether the commodity attribute name consistent with each search name exists or not in a polling mode.
In the specific implementation, the search names are judged one by one in a polling mode, so that the judgment of partial search names can be effectively avoided from being omitted.
On the basis of the above embodiments, the present embodiment provides supplementary description on the step of generating the comparison result and returning to the operation platform. The method comprises the following steps:
obtaining the attribute name of the target commodity according to the comparison condition of each search parameter and each commodity attribute parameter;
generating a comparison result according to the target commodity attribute name, the target commodity attribute parameter corresponding to the target commodity attribute name and the search parameter compared with the target commodity attribute parameter;
and sending the comparison result to an operation platform.
The target product attribute name is a product attribute name corresponding to a product attribute parameter that is inconsistent with the search parameter, among all product attribute parameters subjected to comparison. In this embodiment, a comparison result is generated according to the target product attribute name, the target product attribute parameter corresponding to the target product attribute name, and the search parameter compared with the target product attribute parameter, and specifically, the comparison result includes the target product attribute name, the target product attribute parameter, the search parameter compared with the target product attribute parameter, and a reason why no product can be searched, which is obtained through analysis according to a comparison condition between the target product attribute parameter and the search parameter compared with the target product attribute parameter. It should be noted that there may be a plurality of target product attribute names, that is, there may be a plurality of search parameters inconsistent with the compared product attribute parameters in all the search parameters input by the user.
According to the embodiment, the target commodity attribute name is obtained according to the comparison condition of each search parameter and each commodity attribute parameter, then the comparison result is generated according to the target commodity attribute name, the target commodity attribute parameter corresponding to the target commodity attribute name and the search parameter compared with the target commodity attribute parameter, and finally the comparison result is sent to the operation platform, so that a user can obtain the comparison result through the operation platform, and the reason that the commodity cannot be searched can be found more efficiently.
Fig. 2 is a flowchart of a commodity inspection method applied to an operation platform according to the present application.
As shown in fig. 2, the method includes:
s5: and receiving a request sent by a user, and sending the request to a server.
S6: and receiving and displaying the search code sent by the server.
S7: and receiving and displaying a comparison result sent by the server.
In this embodiment, the search code is a search code generated after the server receives the request, and the comparison result is a result generated after the server compares each search parameter obtained by the query with each product attribute parameter.
In the embodiment, the request is obtained according to the operation that the user clicks the button for generating the search code, and is sent to the server, so that the server can know the request of the user and generate the search code conveniently. Then, the search code sent by the server needs to be received and displayed, so that the user can conveniently obtain the search code, in this embodiment, the display method is to copy the search code to the clipboard, and other display methods can be selected according to actual situations, such as directly displaying on an operation platform. In addition, after the server comparison is completed, the comparison result sent by the server needs to be received and displayed, so that the user can find out the reason why the commodity cannot be searched.
In the above embodiments, detailed descriptions are given to the method for checking the commodities, and the present application also provides embodiments corresponding to the commodity checking device. It should be noted that the present application describes the embodiments of the apparatus portion from two perspectives, one from the perspective of the function module and the other from the perspective of the hardware.
Fig. 3 is a structural diagram of a commodity inspection device applied to a server according to the present application. The device includes:
the first receiving module 10 is configured to receive a request sent by an operating platform, generate a search code, and return the search code to the operating platform; the search codes are not repeated;
a first query module 11, configured to query a search condition of the target product corresponding to the search code; the searching conditions comprise the ID of the target commodity, all searching parameters input when the target commodity is searched, and searching names corresponding to the searching parameters;
the second query module 12 is configured to query all product attribute names of the target product and all product attribute parameters corresponding to the product attribute names;
the comparison module 13 is used for comparing each search parameter with each commodity attribute parameter, generating a comparison result and returning the comparison result to the operation platform; and the search name corresponding to the search parameter for comparison is consistent with the commodity attribute name corresponding to the commodity attribute parameter for comparison in the same group.
Since the embodiments of the apparatus portion and the method portion correspond to each other, please refer to the description of the embodiments of the method portion for the embodiments of the apparatus portion, which is not repeated here.
The commodity inspection device applied to the server provided by the embodiment receives a request sent by an operation platform through a first receiving module, generates search codes and returns the search codes to the operation platform, wherein the search codes are not repeated; then, inquiring the search condition of the target commodity corresponding to the search code through a first inquiry module, wherein the search condition comprises the ID of the target commodity, all search parameters input when searching the target commodity and search names corresponding to the search parameters; then, a second query module queries all commodity attribute names of the target commodity and all commodity attribute parameters corresponding to the commodity attribute names; and finally, comparing each search parameter with each commodity attribute parameter through a comparison module, generating a comparison result and returning the comparison result to the operation platform, wherein the search name corresponding to the search parameter to be compared is consistent with the commodity attribute name corresponding to the commodity attribute parameter to be compared in the same group. The device obtains the search condition by generating the non-repeated search code, does not need to position the search condition in the mass data, and saves time. In addition, the device can automatically compare the search parameters and the commodity attribute parameters, manual comparison is not needed, time is saved, and meanwhile labor cost is reduced.
Fig. 4 is a structural diagram of a commodity inspection device applied to an operation platform according to the present application.
The device includes:
the second receiving module 14 is configured to receive a request sent by a user, and send the request to a server;
the third receiving module 15 is configured to receive and display the search code sent by the server; the search code is generated after the server receives the request;
a fourth receiving module 16, configured to receive and display the comparison result sent by the server; and the comparison result is generated after the server compares each search parameter obtained by query with each commodity attribute parameter.
Since the embodiments of the apparatus portion and the method portion correspond to each other, please refer to the description of the embodiments of the method portion for the embodiments of the apparatus portion, which is not repeated here.
The commodity inspection device applied to the operation platform provided by the embodiment receives a request sent by a user through the second receiving module, and sends the request to the server; then, receiving and displaying a search code sent by the server through a third receiving module, wherein the search code is generated after the server receives the request; and finally, receiving and displaying a comparison result sent by the server through a fourth receiving module, wherein the comparison result is generated after the server compares each search parameter obtained by inquiry with each commodity attribute parameter. The device sends the request to the server, so that the server can know the request of the user and generate the search code conveniently, and also receives the search code sent by the server and displays the search code so that the user can obtain the search code, and in addition, the device also receives the comparison result sent by the server and displays the comparison result so that the user can find the reason why the commodity cannot be searched.
Fig. 5 is a block diagram of an electronic device provided in the present application. As shown in fig. 5, the electronic apparatus includes: a memory 20 for storing a computer program;
the processor 21 is configured to implement the steps of the method for checking the merchandise, as mentioned in the above embodiments, when executing the computer program.
The electronic device provided by the embodiment may include, but is not limited to, a smart phone, a tablet computer, a notebook computer, or a desktop computer.
The processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The Processor 21 may be implemented in hardware using at least one of a Digital Signal Processor (DSP), a Field-Programmable Gate Array (FPGA), and a Programmable Logic Array (PLA). The processor 21 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with a Graphics Processing Unit (GPU) which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 21 may further include an Artificial Intelligence (AI) processor for processing computational operations related to machine learning.
The memory 20 may include one or more computer-readable storage media, which may be non-transitory. Memory 20 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used for storing the following computer program 201, wherein after being loaded and executed by the processor 21, the computer program can implement the relevant steps of the method for checking a commodity disclosed in any one of the foregoing embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202, data 203, and the like, and the storage manner may be a transient storage manner or a permanent storage manner. Operating system 202 may include, among others, Windows, Unix, Linux, and the like. The data 203 may include, but is not limited to, each search parameter being compared to each item attribute parameter, etc.
In some embodiments, the electronic device may further include a display 22, an input/output interface 23, a communication interface 24, a power supply 25, and a communication bus 26.
Those skilled in the art will appreciate that the configuration shown in fig. 5 is not intended to be limiting of the electronic device and may include more or fewer components than those shown.
The electronic device provided by the embodiment comprises the memory and the processor, and the processor can realize the commodity checking method when executing the program stored in the memory, and the effect is the same as that of the commodity checking method.
Finally, the application also provides a corresponding embodiment of the computer readable storage medium. The computer-readable storage medium stores thereon a computer program which, when executed by a processor, implements the steps of the method for checking a product described in the above-described method embodiment (which may be a method corresponding to the server side, a method corresponding to the operation platform side, or a method corresponding to the server side and the operation platform side).
It is to be understood that if the method in the above embodiments is implemented in the form of software functional units and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium and executes all or part of the steps of the methods described in the embodiments of the present application, or all or part of the technical solutions. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The computer-readable storage medium provided by the embodiment includes the above-mentioned method for checking the commodities, and the effect is the same as above.
The detailed description is given above of the method, apparatus, electronic device, and medium for inspecting a commodity provided by the present application. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. The commodity checking method is applied to a server and comprises the following steps:
receiving a request sent by an operating platform, generating a search code and returning the search code to the operating platform; the search codes are not repeated;
inquiring the search condition of the target commodity corresponding to the search code; the search condition comprises the ID of the target commodity, all search parameters input when the target commodity is searched, and a search name corresponding to each search parameter;
inquiring all commodity attribute names of the target commodity and commodity attribute parameters corresponding to the commodity attribute names;
comparing each search parameter with each commodity attribute parameter to generate a comparison result and returning the comparison result to the operation platform; and the search name corresponding to the search parameter for comparison is consistent with the commodity attribute name corresponding to the commodity attribute parameter for comparison in the same group.
2. The method for checking commodities, according to claim 1, wherein said search condition for inquiring the target commodity corresponding to the search code includes:
inquiring whether a target key value exists from the Redis; the target key value is the same key value as the search code;
and if so, taking out the target value corresponding to the target key value as the search condition of the query.
3. The method for checking merchandise according to claim 1, wherein before the comparing each search parameter with each merchandise attribute parameter, further comprising:
judging whether the commodity attribute name consistent with each search name exists or not;
and if the commodity attribute name consistent with the current search name does not exist, acquiring the commodity attribute name corresponding to the current search name according to a mapping relation table.
4. The method of claim 3, wherein the determining whether the item attribute name that matches each of the search names exists comprises:
and judging whether the commodity attribute names consistent with the search names exist or not in a polling mode.
5. The method for checking commodities according to claim 1, wherein the generating and returning comparison results to the operation platform comprises:
obtaining the name of the target commodity attribute according to the comparison condition of each search parameter and each commodity attribute parameter; the target commodity attribute name is the commodity attribute name corresponding to the commodity attribute parameter inconsistent with the search parameter in all the compared commodity attribute parameters;
generating the comparison result according to the target commodity attribute name, the target commodity attribute parameter corresponding to the target commodity attribute name and the search parameter compared with the target commodity attribute parameter;
and sending the comparison result to the operating platform.
6. The commodity checking method is applied to an operation platform and comprises the following steps:
receiving a request sent by a user, and sending the request to a server;
receiving and displaying a search code sent by the server; the search code is generated after the server receives the request;
receiving and displaying a comparison result sent by the server; and the comparison result is generated after the server compares each search parameter obtained by query with each commodity attribute parameter.
7. The commodity checking device is applied to a server and comprises the following components:
the first receiving module is used for receiving a request sent by the operating platform, generating a search code and returning the search code to the operating platform; the search codes are not repeated;
the first query module is used for querying the search condition of the target commodity corresponding to the search code; the search condition comprises the ID of the target commodity, all search parameters input when the target commodity is searched, and a search name corresponding to each search parameter;
the second query module is used for querying all commodity attribute names of the target commodity and all commodity attribute parameters corresponding to all the commodity attribute names;
the comparison module is used for comparing each search parameter with each commodity attribute parameter, generating a comparison result and returning the comparison result to the operation platform; and the search name corresponding to the search parameter for comparison is consistent with the commodity attribute name corresponding to the commodity attribute parameter for comparison in the same group.
8. The commodity inspection device is applied to an operation platform and comprises:
the second receiving module is used for receiving a request sent by a user and sending the request to the server;
the third receiving module is used for receiving and displaying the search code sent by the server; the search code is generated after the server receives the request;
the fourth receiving module is used for receiving and displaying the comparison result sent by the server; and the comparison result is generated after the server compares each search parameter obtained by query with each commodity attribute parameter.
9. An electronic device, comprising a memory for storing a computer program;
a processor for implementing the steps of the method of inspecting an article of manufacture of any of claims 1 to 6 when executing said computer program.
10. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of troubleshooting an article according to any one of claims 1 through 6.
CN202210043896.6A 2022-01-14 2022-01-14 Commodity checking method and device, electronic equipment and medium Pending CN114385895A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210043896.6A CN114385895A (en) 2022-01-14 2022-01-14 Commodity checking method and device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210043896.6A CN114385895A (en) 2022-01-14 2022-01-14 Commodity checking method and device, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN114385895A true CN114385895A (en) 2022-04-22

Family

ID=81201899

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210043896.6A Pending CN114385895A (en) 2022-01-14 2022-01-14 Commodity checking method and device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN114385895A (en)

Similar Documents

Publication Publication Date Title
JP5721818B2 (en) Use of model information group in search
WO2017000513A1 (en) Information pushing method and apparatus based on user search behavior, storage medium, and device
US8533198B2 (en) Mapping descriptions
EP2763054A1 (en) Information processing device, information processing method, and information processing program
CN107798001B (en) Webpage processing method, device and equipment
US8260772B2 (en) Apparatus and method for displaying documents relevant to the content of a website
US8615733B2 (en) Building a component to display documents relevant to the content of a website
US20170083574A1 (en) Search system, search method, and program
CN108470289B (en) Virtual article issuing method and equipment based on E-commerce shopping platform
US20150169680A1 (en) Webpage content search
CN110489032B (en) Dictionary query method for electronic book and electronic equipment
CN111597355A (en) Information processing method and device
KR102023999B1 (en) Method and apparatus for generating web pages
CN114385895A (en) Commodity checking method and device, electronic equipment and medium
KR100888329B1 (en) System and method for automatically detecting information in real-time using rule
CN112232903B (en) Business object display method and device
US11113461B2 (en) Generating edit suggestions for transforming digital documents
CN114356896A (en) Database detection method and device
CN109614467B (en) Knowledge association and dynamic organization method and system based on fragment similarity
CN112612817A (en) Data processing method and device, terminal equipment and computer readable storage medium
KR100312430B1 (en) System for learning information of goods in internet shopping malls and method using the same
JP2021140646A (en) Target user feature extraction method, target user feature extraction system and target user feature extraction server
CN111045720A (en) Code management method, code management system, server, and medium
CN114661979A (en) Information processing method and device, equipment and computer readable storage medium
CN117556474A (en) Data processing method, device, computer 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