Product material management method, server and computer readable medium
The commodity material management method addresses inefficient product material management by using a material identifier to query and manage product list data, allowing shared materials across products, thus enhancing online management efficiency.
Patent Information
- Application Number
- CN202111159352.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-30
- Publication Date
- 2024-12-20
- Estimated Expiration
- 2041-09-30
AI Technical Summary
Existing online shopping platforms face challenges in efficiently managing complex product materials due to the need for repeated uploads and inefficient management of product and material data.
A commodity material management method that utilizes a material identifier to query and manage product list data associated with materials, allowing multiple products to share the same material, reducing redundant uploads and enhancing online management efficiency.
The method simplifies and efficiently manages product materials by using a material identifier, enabling shared use of materials across multiple products, thereby reducing redundant operations and improving online management efficiency.
Smart Images

Figure CN113869985B_ABST
Abstract
Description
Technical Field
[0001] The present application mainly relates to the field of data management technology, and in particular to a commodity material management method, a server and a computer-readable medium. Background Art
[0002] With the continuous development of the Internet and e-commerce technology, online shopping has been increasingly infiltrating people's daily lives. Against this backdrop, a large number of shopping platforms have emerged on the Internet to help brands and merchants build stores, quickly achieve sales and bring in profits. These shopping platforms provide tools to help brands create online stores, and provide content and product maintenance services for brands with solidified templates and shopping processes. A large number of brand personalization needs require a large amount of product introduction materials, and the content of product materials is becoming more and more complex. Therefore, how to manage product materials simply and efficiently is one of the problems that people in this field need to solve urgently. Summary of the invention
[0003] The technical problem to be solved by the present application is to provide a commodity material management method, a server and a computer-readable medium, which can manage commodity materials simply and efficiently.
[0004] To solve the above technical problems, the present application provides a commodity material management method, which is applied to a commodity management system server, including: receiving a data acquisition request initiated by a page, the data acquisition request includes an identifier of a material and is used to request to obtain commodity list data associated with the material; judging whether the identifier has a value; if the identifier has a value, querying the number of commodities associated with the material in a database according to the identifier; judging whether the number of commodities associated with the material is greater than 0; if the number of commodities associated with the material is greater than 0, querying the commodity list data associated with the material in the database according to the identifier; and returning the commodity list data associated with the material to the page.
[0005] In one embodiment of the present application, the method further includes: if the identifier does not have a value, throwing an exception and ending the process.
[0006] In one embodiment of the present application, the method further includes: if the number of commodities associated with the material is not greater than 0, ending the process.
[0007] In one embodiment of the present application, the identifier of the material is concatenated after the URL of the data acquisition request.
[0008] In one embodiment of the present application, the page is a page of a material center system; the data acquisition request initiated by the page is initiated by the page in response to a user's selection of the material.
[0009] In an embodiment of the present application, the method further includes: the page receiving the commodity list data associated with the material; and the page rendering the commodity list data associated with the material and displaying it in a page list.
[0010] In one embodiment of the present application, the identifier of the material is generated by the database when the material center system server calls the object storage service to store the material in the database.
[0011] In one embodiment of the present application, the material is used to introduce the products associated therewith, and each material is associated with one or more products; the material is a document, picture, video, web page template, audio or compressed file.
[0012] To solve the above technical problems, the present application also provides a commodity material management method, including: in response to a data storage request initiated by a page, a commodity center system server initiates a data storage request, and the data storage request is used to request the storage of relationship data between commodities and materials; the material center system server queries whether the material in the data storage request exists; if the material exists, the material center system server determines whether the number of commodities associated with the material in the relationship data between the commodity and the material is greater than 0; if the number of commodities associated with the material is greater than 0, the material center system server queries whether the commodity has been released; and if the commodity has been released, the material center system server stores the relationship data between the commodity and the material in a database.
[0013] To solve the above technical problems, the present application also provides a server, comprising: a memory for storing instructions executable by a processor; and a processor for executing the instructions to implement the above method.
[0014] In order to solve the above technical problem, the present application also provides a computer-readable medium storing computer program code, and the computer program code implements the above method when executed by a processor.
[0015] Compared with the prior art, the product material management method, server and computer-readable medium of the present application manage the product list data associated with the material by using the material identifier, thereby simply and efficiently realizing that multiple products share the same material. Users do not need to repeatedly upload products and materials, and products and materials can be efficiently managed online. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings are included to provide a further understanding of the present application. They are included and constitute a part of the present application. The accompanying drawings illustrate embodiments of the present application and together with the present specification serve to explain the principles of the present application. In the accompanying drawings:
[0017] Figure 1 It is a flowchart of a method for managing merchandise materials according to an embodiment of the present application.
[0018] Figure 2 It is an architecture diagram of a server according to an embodiment of the present application. DETAILED DESCRIPTION
[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for the description of the embodiments. Obviously, the drawings described below are only some examples or embodiments of the present application. For ordinary technicians in this field, the present application can also be applied to other similar scenarios based on these drawings without creative work. Unless it is obvious from the language environment or otherwise explained, the same reference numerals in the figures represent the same structure or operation.
[0020] As shown in this application and claims, unless the context clearly indicates an exception, the words "a", "an", "an" and / or "the" do not refer to the singular and may also include the plural. Generally speaking, the terms "include" and "comprise" only indicate the inclusion of the steps and elements that have been clearly identified, and these steps and elements do not constitute an exclusive list. The method or device may also include other steps or elements.
[0021] Unless otherwise specifically stated, the relative arrangement, numerical expressions and numerical values of the parts and steps set forth in these embodiments do not limit the scope of the present application. At the same time, it should be understood that, for ease of description, the sizes of the various parts shown in the accompanying drawings are not drawn according to the actual proportional relationship. The technology, method and equipment known to those of ordinary skill in the relevant field may not be discussed in detail, but in appropriate cases, the technology, method and equipment should be considered as a part of the authorization specification. In all examples shown and discussed here, any specific value should be interpreted as being merely exemplary, rather than as a limitation. Therefore, other examples of exemplary embodiments may have different values. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so that once a certain item is defined in an accompanying drawing, it does not need to be further discussed in subsequent drawings.
[0022] Flowcharts are used in the present application to illustrate the operations performed by the system according to the embodiments of the present application. It should be understood that the preceding or following operations are not necessarily performed accurately in order. On the contrary, various steps may be processed in reverse order or simultaneously. At the same time, other operations may be added to these processes, or one or more operations may be removed from these processes.
[0023] The present application provides a commodity material management method, which is applied to a commodity management system server. The commodity management service and the material center service belong to two different system modules. The commodity management system runs on the commodity center system server, and the material center service runs on the material center system server. The commodity center system server and the material center system server can be connected to each other through a network.
[0024] In an exemplary application scenario, a user selects material details on the material center system page and opens the details page, and then the material center system page initiates a request to the product management system to obtain the product list data associated with the material. After receiving the request sent by the page, the product center system server obtains the product list data associated with the material in the database and returns it to the material center system page.
[0025] In one example, the product management service and material center service adopt a distributed architecture, are written in JAVA, use nocos registration and discovery, use MySQL database / Redis cache, use RocketMQ queue message processing, use object storage (OSS, ObjectStorage Service) to store material files, are deployed on k8s, and use OpenFeign to call each other's interfaces.
[0026] Figure 1 It is a flowchart of a method for managing merchandise materials according to an embodiment of the present application.
[0027] like Figure 1 As shown, the commodity material management method of this embodiment includes:
[0028] Step 101, receiving a data acquisition request initiated by a page. The data acquisition request is used to request to obtain the commodity list data associated with the material. In one embodiment of the present application, the page may be a page of the material center system. In one embodiment of the present application, the data acquisition request initiated by the page may be initiated by the page in response to the user's selection of the material.
[0029] The data acquisition request includes the identification (ID) of the material. In one example, the identification of the material can be a universal unique identifier (UUID). In one embodiment of the present application, the identification of the material can be spliced after the URL of the data acquisition request. In one embodiment of the present application, the identification of the material can be generated by the database when the material center system server calls the object storage service to store the material in the database. After the database generates the identification of the material, it sends the identification of the material to the material center system server and / or the commodity management system server. Compared with the material file, the material identification occupies a small space, which can effectively reduce the amount of data transmission and improve the efficiency of data transmission. In addition, by using the system servers of the material center and the commodity center to manage and store the commodities and materials respectively, the user does not need to upload the commodities and materials in the commodity center system and the material center system respectively, which reduces repeated operations and realizes efficient online management of commodities and materials.
[0030] In one embodiment of the present application, the material can be used to introduce the corresponding product. Different products may use some or all of the same material to introduce, so each material can correspond to one or more products. The material can be a document, picture, video, webpage template, audio or compressed file.
[0031] Step 102, determine whether the material identifier has a value. If the identifier has a value, execute step 103. In one embodiment of the present application, if the identifier does not have a value, that is, the material identifier does not exist or is empty, an exception may be thrown and the process ends.
[0032] Step 103, query the number of commodities associated with the material in the database according to the identification of the material. In one example, the database can be on a cloud server. In one embodiment of the present application, the database is a MySQL database.
[0033] Step 104, determine whether the number of commodities associated with the material is greater than 0. If the number of commodities associated with the material is greater than 0, execute step 105. In an embodiment of the present application, if the number of commodities associated with the material is not greater than 0, that is, the number of commodities associated with the material is 0, the process can be terminated.
[0034] Step 105: query the database for the commodity list data associated with the material according to the material identifier.
[0035] Step 106, returning the product list data associated with the queried material to the page.
[0036] In one embodiment of the present application, after step 106, that is, after the product management system server returns the product list data associated with the material to the page, the page can receive the product list data associated with the material, and then the page can render the product list data associated with the material and display it in the page list.
[0037] To sum up, the product material management method of this embodiment manages the product list data associated with the material by using the material identifier, which simply and efficiently enables multiple products to share the same material. Users do not need to repeatedly upload products and materials, and can efficiently manage products and materials online.
[0038] The present application also provides a server, comprising: a memory for storing instructions executable by a processor; and a processor for executing the instructions to implement the commodity material management method as described above.
[0039] Figure 2 is an architecture diagram of a server according to an embodiment of the present application. Figure 2 As shown, the server 200 may include an internal communication bus 201, a processor (Processor) 202, a read-only memory (ROM) 203, a random access memory (RAM) 204, and a communication port 205. The internal communication bus 201 can realize data communication between components of the server 200. The processor 202 can make judgments and issue prompts. In some embodiments, the processor 202 can be composed of one or more processors. The communication port 205 can realize data communication between the server 200 and the outside. In some embodiments, the server 200 can send and receive information and data from the network through the communication port 205. The server 200 may also include different forms of program storage units and data storage units, such as a read-only memory (ROM) 203 and a random access memory (RAM) 204, which can store various data files used for computer processing and / or communication, and possible program instructions executed by the processor 202. The processor executes these instructions to implement the main part of the method. The result of the processor processing is transmitted to the user device through the communication port and displayed on the user interface.
[0040] It is understood that the commodity material management method of the present application is not limited to being implemented by one server, but can be implemented by multiple online servers in collaboration. The online servers can be connected and communicated through a local area network or a wide area network.
[0041] For other implementation details of the server in this embodiment, please refer to Figure 1 The described embodiments will not be described in detail here.
[0042] The present application also provides a computer-readable medium storing a computer program code, and the computer program code implements the above-mentioned commodity material management method when executed by a processor.
[0043] For example, the commodity material management method of the present application can be implemented as a program of the commodity material management method, which is stored in a memory and can be loaded into a processor for execution to implement the commodity material management method of the present application.
[0044] When the commodity material management method is implemented as a computer program, it can also be stored in a computer-readable storage medium as a product. For example, a computer-readable storage medium may include, but is not limited to, magnetic storage devices (e.g., hard disks, floppy disks, magnetic strips), optical disks (e.g., compact disks (CDs), digital versatile disks (DVDs)), smart cards, and flash memory devices (e.g., electrically erasable programmable read-only memories (EPROMs), cards, sticks, key drives). In addition, the various storage media described herein can represent one or more devices and / or other machine-readable media for storing information. The term "machine-readable medium" may include, but is not limited to, wireless channels and various other media (and / or storage media) that can store, contain and / or carry code and / or instructions and / or data.
[0045] The basic concepts have been described above. Obviously, for those skilled in the art, the above application disclosure is only an example and does not constitute a limitation of the present application. Although not explicitly stated herein, those skilled in the art may make various modifications, improvements and amendments to the present application. Such modifications, improvements and amendments are suggested in the present application, so such modifications, improvements and amendments still belong to the spirit and scope of the exemplary embodiments of the present application.
[0046] At the same time, the present application uses specific words to describe the embodiments of the present application. For example, "one embodiment", "an embodiment", and / or "some embodiments" refer to a certain feature, structure or characteristic related to at least one embodiment of the present application. Therefore, it should be emphasized and noted that "one embodiment" or "an embodiment" or "an alternative embodiment" mentioned twice or more in different positions in this specification does not necessarily refer to the same embodiment. In addition, some features, structures or characteristics in one or more embodiments of the present application can be appropriately combined.
[0047] Some aspects of the method and system of the present application can be performed entirely by hardware, can be performed entirely by software (including firmware, resident software, microcode, etc.), or can be performed by a combination of hardware and software. The above hardware or software can all be referred to as "data blocks", "modules", "engines", "units", "components" or "systems". The processor can be one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DAPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), processors, controllers, microcontrollers, microprocessors, or combinations thereof. In addition, various aspects of the present application may be expressed as computer products located in one or more computer-readable media, which include computer-readable program codes. For example, computer-readable media may include, but are not limited to, magnetic storage devices (e.g., hard disks, floppy disks, tapes...), optical disks (e.g., compact disks (CDs), digital versatile disks (DVDs)...), smart cards, and flash memory devices (e.g., cards, sticks, key drives...).
[0048] A computer readable signal medium may include a propagated data signal containing computer program code, such as in baseband or as part of a carrier wave. The propagated signal may have a variety of manifestations, including electromagnetic, optical, etc., or a suitable combination. A computer readable signal medium may be any computer readable medium other than a computer readable storage medium, which can be connected to an instruction execution system, device or equipment to communicate, propagate or transmit the program for use. The program code located on the computer readable signal medium can be transmitted through any suitable medium, including radio, cable, fiber optic cable, radio frequency signal, or similar medium, or any combination of the above mediums.
[0049] The computer program code required for the operation of each part of the present application can be written in any one or more programming languages, including object-oriented programming languages such as Java, Scala, Smalltalk, Eiffel, JADE, Emerald, C++, C#, VB.NET, Python, etc., conventional procedural programming languages such as C language, Visual Basic, Fortran 2003, Perl, COBOL 2002, PHP, ABAP, dynamic programming languages such as Python, Ruby and Groovy, or other programming languages, etc. The program code can be run completely on the user's computer, or run on the user's computer as an independent software package, or run partly on the user's computer and partly on the remote computer, or run completely on the remote computer or server. In the latter case, the remote computer can be connected to the user's computer through any network form, such as a local area network (LAN), or a wide area network (WAN), or connected to an external computer (e.g., via the Internet), or in a cloud computing environment, or used as a service such as software as a service (SaaS).
[0050] In addition, unless explicitly stated in the claims, the order of the processing elements and sequences described in the present application, the use of alphanumeric characters, or the use of other names are not intended to limit the order of the processes and methods of the present application. Although the above disclosure discusses some application embodiments that are currently considered useful through various examples, it should be understood that such details are only for illustrative purposes, and the attached claims are not limited to the disclosed embodiments. On the contrary, the claims are intended to cover all modifications and equivalent combinations that are consistent with the essence and scope of the embodiments of the present application. For example, although the system components described above can be implemented by hardware devices, they can also be implemented only by software solutions, such as installing the described system on an existing server or mobile device.
[0051] Similarly, it should be noted that in order to simplify the description of the disclosure of this application and thus help understand one or more application embodiments, in the above description of the embodiments of this application, multiple features are sometimes merged into one embodiment, figure or description thereof. However, this disclosure method does not mean that the features required by the object of this application are more than the features mentioned in the claims. In fact, the features of the embodiments are less than all the features of the single embodiment disclosed above.
[0052] In some embodiments, numbers describing the number of components and attributes are used. It should be understood that such numbers used in the description of the embodiments are modified by the modifiers "about", "approximately" or "substantially" in some examples. Unless otherwise specified, "about", "approximately" or "substantially" indicate that the numbers are allowed to vary by ±20%. Accordingly, in some embodiments, the numerical parameters used in the specification and claims are approximate values, which may change according to the required features of individual embodiments. In some embodiments, the numerical parameters should take into account the specified significant digits and adopt the general method of retaining digits. Although the numerical domains and parameters used to confirm the breadth of their range in some embodiments of the present application are approximate values, in specific embodiments, the setting of such numerical values is as accurate as possible within the feasible range.
[0053] Although the present application has been described with reference to the current specific embodiments, ordinary technicians in this technical field should recognize that the above embodiments are only used to illustrate the present application, and various equivalent changes or substitutions may be made without departing from the spirit of the present application. Therefore, as long as the changes and modifications to the above embodiments are within the essential spirit of the present application, they will fall within the scope of the claims of the present application.
Claims
1. A commodity material management method, applied to a commodity management system server, comprising: Receiving a data acquisition request initiated by a page, the data acquisition request includes an identifier of a material and is used to request to acquire commodity list data associated with the material, wherein the material is used to introduce commodities associated with the material, and each material is associated with one or more commodities; Determine whether the flag has a value; If the identifier has a value, query the number of commodities associated with the material in the database according to the identifier; Determine whether the number of products associated with the material is greater than 0; If the number of commodities associated with the material is greater than 0, querying the database for commodity list data associated with the material according to the identifier; and Return the product list data associated with the material to the page.
2. The method according to claim 1, characterized in that Also includes: If the flag does not have a value, an exception is thrown and the process ends.
3. The method according to claim 1, characterized in that Also includes: If the number of products associated with the material is not greater than 0, the process ends.
4. The method according to claim 1, characterized in that The identifier of the material is spliced after the URL of the data acquisition request.
5. The method according to claim 1, characterized in that The page is a page of the material center system; the data acquisition request initiated by the page is initiated by the page in response to the user's selection of the material.
6. The method according to claim 1, characterized in that Also includes: The page receives the commodity list data associated with the material; as well as The page renders the product list data associated with the material and displays it in the page list.
7. The method according to claim 1, characterized in that The identifier of the material is generated by the database when the material center system server calls the object storage service to store the material in the database.
8. The method according to claim 1, characterized in that The material is a document, picture, video, web page template, audio or compressed file.
9. A server, comprising: a memory for storing instructions executable by a processor; and a processor, configured to execute the instructions to implement the method according to any one of claims 1-8.
10. A computer readable medium storing computer program code, wherein the computer program code, when executed by a processor, implements the method according to any one of claims 1 to 8.
