SKU data updating method and updating device of electronic components, and electronic equipment
By obtaining multiple data sources of electronic components, including other procurement websites and initial SKU data source systems, directly retrieve update data, the problem of untimely and effective update of SKU data in the existing technology is solved, and the problem of untimely and effective update of SKU data of electronic components is realized. More complete and timely data updates support users to better select components.
Patent Information
- Application Number
- CN202210046814.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-14
- Publication Date
- 2024-12-24
- Estimated Expiration
- 2042-01-14
AI Technical Summary
When the existing electronic component procurement platform updates SKU data, the data is not timely and has low effectiveness, which affects the reasonable choice of users.
By obtaining the data source of electronic components, including other related procurement websites and initial SKU data source systems, directly retrieve and update SKU data to ensure the integrity and timeliness of the data.
It improves the timeliness and effectiveness of SKU data of electronic components, so that users can obtain more purchase information when importing BOM files, and supports more reasonable component selection.
Smart Images

Figure CN114817278B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic devices, and in particular to a method for updating SKU data of electronic components and an updating device and electronic equipment thereof. Background Art
[0002] SKU (stock keeping unit) is the basic unit of measurement for inventory in and out, and is the smallest physically indivisible inventory unit. In other words, the specific inventory of a single item can be determined based on the SKU. When in use, SKU is handled according to different business formats, different products and different management models.
[0003] With the development of Internet technology, more and more manufacturers have begun to purchase components through electronic component procurement platforms on the Internet. Usually, when manufacturers purchase, they generate a bill of material (BOM) file according to the information of the components they need, import the BOM file into the component procurement platform for identification, and thus obtain the purchase details of the required components. At this time, the data on the electronic component procurement platform needs to be updated in real time so that users can obtain the latest data about electronic components. In the prior art, when the electronic component procurement platform updates the SKU data of the electronic components, it often only updates the SKU data of the electronic components based on the data on the procurement platform. Therefore, the SKU data of the electronic components on the procurement platform cannot well reflect all the information of the electronic components. Therefore, when the user imports the BOM file into the component procurement platform for identification, the component purchase information obtained is less. In addition, the SKU data update of the electronic components is often delayed, resulting in the SKU data of the electronic components being updated in a timely manner and having low effectiveness, thereby affecting the user's reasonable selection of the corresponding components. Summary of the invention
[0004] In view of this, the present application provides a SKU data updating method for electronic components and an updating device and electronic device thereof, which solves the technical problem in the prior art that when a user imports a BOM file into a component procurement platform for identification, less purchasing information of the components is obtained, and the SKU data of the electronic components is not updated in a timely manner and has low effectiveness, thereby affecting the user's reasonable selection of corresponding components.
[0005] According to one aspect of the present application, the present application provides a method for updating SKU data of electronic components, including: obtaining electronic components corresponding to the update request information based on update request information; obtaining a data source of the electronic components based on the electronic components, and obtaining updated SKU data corresponding to the electronic components based on the data source; and updating the initial SKU data of the electronic components based on the updated SKU data.
[0006] In one embodiment of the present application, based on the electronic component, a data source of the electronic component is obtained, and based on the data source, updated SKU data corresponding to the electronic component is obtained, including: based on the electronic component, initial SKU data of the electronic component is obtained; based on the initial SKU data, the latest update time of the initial SKU data is obtained; when the time length between the latest update time of the initial SKU data and the request time of the update request information is greater than a first preset time length, the updated SKU data corresponding to the electronic component is obtained.
[0007] In an embodiment of the present application, obtaining updated SKU data corresponding to the electronic component includes:
[0008] The initial SKU data source of the electronic component is obtained according to the initial SKU data of the electronic component; when a preset initial SKU data source matching the initial SKU data source is found in the preset initial SKU data source database, the updated SKU data corresponding to the electronic component is directly retrieved from the preset initial SKU data source through an API interface with the preset initial SKU data source.
[0009] In one embodiment of the present application, updated SKU data corresponding to the electronic components are directly retrieved from the preset initial SKU data source through an API interface with the preset initial SKU data source, including: directly retrieving the latest updated SKU data corresponding to the electronic components from the preset initial SKU data source through an API interface with the preset initial SKU data source; when the update time of the latest updated SKU data in the preset initial SKU data source is after the latest update time of the initial SKU data, retrieving the latest updated SKU data in the preset initial SKU data source as the updated SKU data of the electronic components.
[0010] In one embodiment of the present application, based on the electronic component, the data source of the electronic component is obtained, and based on the data source, updated SKU data corresponding to the electronic component is obtained, and the method also includes: when a preset initial SKU data source that matches the initial SKU data source is not found in the preset initial SKU data source database, based on the initial SKU data of the electronic component, obtaining the data source when the electronic component was most recently updated; and based on the data source, obtaining updated SKU data corresponding to the electronic component in the data source.
[0011] In one embodiment of the present application, according to the data source, updated SKU data corresponding to the electronic component is obtained in the data source, including: according to the data source, the latest updated SKU data corresponding to the electronic component is obtained in the data source; when the update time of the latest updated SKU data in the data source is after the latest update time of the initial SKU data, the latest updated SKU data in the data source is retrieved as the updated SKU data of the electronic component.
[0012] In one embodiment of the present application, after obtaining the data source of the electronic component when it was most recently updated according to the initial SKU data of the electronic component, the SKU data updating method of the electronic component also includes: recording a first moment when the data source of the electronic component when it was most recently updated is obtained according to the initial SKU data of the electronic component; at a second moment after the first moment, querying whether the second SKU data of the electronic component at the second moment is consistent with the initial SKU data, wherein the time interval between the second moment and the first moment is a second preset duration; when the second SKU data of the electronic component at the second moment is inconsistent with the initial SKU data, updating the initial SKU data to the second SKU data; wherein, updating the initial SKU data of the electronic component according to the updated SKU data includes: updating the second SKU data of the electronic component according to the updated SKU data.
[0013] In an embodiment of the present application, the second preset time length is 4 to 6 seconds.
[0014] As a second aspect of the present application, the present application provides an electronic component SKU data updating device, including: an electronic component determination module, used to obtain electronic components corresponding to the update request information according to the update request information; an updated SKU data acquisition module, used to obtain the data source of the electronic components according to the electronic components, and obtain updated SKU data corresponding to the electronic components according to the data source; and an update module, used to update the initial SKU data of the electronic components according to the updated SKU data.
[0015] As a third aspect of the present application, the present application provides an electronic device, comprising: a processor; and a memory for storing information executable by the processor; wherein the processor is used to execute the above-mentioned method for updating SKU data of electronic components.
[0016] The present application describes a method for updating SKU data of electronic components. When the SKU data of electronic components on a procurement platform of electronic components is updated, the updated data source is not only the data on the procurement platform of the electronic components, but also includes other procurement websites related to the electronic components or the initial SKU data source system of the electronic components, etc., thereby increasing the integrity of the SKU data of the electronic components. Therefore, when the user imports the BOM file into the component procurement platform for identification, more purchasing information of the components will be obtained, and the timeliness and timeliness of the SKU data of the electronic components are improved, so that the user can choose the corresponding components more reasonably. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] By describing the embodiments of the present application in more detail in conjunction with the accompanying drawings, the above and other purposes, features and advantages of the present application will become more apparent. The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings, the same reference numerals generally represent the same components or steps.
[0018] Figure 1 FIG. 1 is a flow chart of a method for updating SKU data of electronic components provided in one embodiment of the present application;
[0019] Figure 2 FIG. 1 is a flow chart of a method for updating SKU data of electronic components provided by another embodiment of the present application;
[0020] Figure 3 FIG. 1 is a flow chart of a method for updating SKU data of electronic components provided by another embodiment of the present application;
[0021] Figure 4FIG. 1 is a flow chart of a method for updating SKU data of electronic components provided by another embodiment of the present application;
[0022] Figure 5 FIG. 1 is a flow chart of a method for updating SKU data of electronic components provided by another embodiment of the present application;
[0023] Figure 6 The figure shows a working principle diagram of a SKU data updating device for electronic components provided by an embodiment of the present application;
[0024] Figure 7 Shown is a schematic structural diagram of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0025] In the description of the application, the meaning of "multiple" is at least two, for example, two, three, etc., unless otherwise clearly and specifically limited. In the embodiment of the present application, all directional indications (such as up, down, left, right, front, back, top, bottom ...) are only used to explain the relative position relationship, motion conditions, etc. between the components under a certain specific posture (as shown in the drawings). If the specific posture changes, the directional indication also changes accordingly. In addition, the terms "including" and "having" and any of their deformations are intended to cover non-exclusive inclusions. For example, the process, method, system, product or equipment comprising a series of steps or units are not limited to the steps or units listed, but optionally also include the steps or units not listed, or optionally also include other steps or units inherent to these processes, methods, products or equipment.
[0026] In addition, the reference to "embodiment" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiment may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0027] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0028] Figure 1 The flowchart of a method for updating SKU data of electronic components provided by the present application is shown in FIG. Figure 1As shown, the method for updating the SKU data of electronic components includes the following steps:
[0029] Step S101: acquiring electronic components corresponding to the update request information according to the update request information;
[0030] The electronic components procurement platform is provided with an update button, and the user can click the update button, and then the electronic components procurement platform will update the SKU data of the electronic components on the electronic components procurement platform according to the user's update button.
[0031] Specifically, an update button can be set on the electronic component procurement platform. When the user clicks the update button, the SKU data of all electronic components on the entire electronic component procurement platform will be updated. Multiple update buttons can be set on the electronic component procurement platform, each button corresponds to a type of electronic component. When the user clicks the update button corresponding to the electronic component, the data of the electronic component will be updated.
[0032] Therefore, when a user clicks the update button on the electronic component procurement platform, the update request information of the user is generated when the update button is clicked. At this time, it is necessary to determine which electronic component the update request information is for based on the update request information, that is, to obtain the electronic component corresponding to the update request information based on the update request information. In this way, the SKU data of the electronic components required by the user can be updated accurately and quickly, reducing the difficulty of data update on the electronic component procurement platform.
[0033] Step S102: acquiring a data source of the electronic component according to the electronic component, and acquiring updated SKU data corresponding to the electronic component according to the data source;
[0034] Since the source of the SKU data on the electronic components on the electronic component purchasing platform may be: other electronic components platforms and other electronic components sales platforms. Therefore, according to the electronic components corresponding to the update request information determined in step S102, the data source of the electronic components is searched, and then the updated SKU data is obtained according to the data source. The SKU data of the electronic components can be updated in a targeted manner, thereby improving the update speed of the SKU data.
[0035] Step S103: updating the initial SKU data of the electronic components according to the updated SKU data.
[0036] The present application discloses a method for updating SKU data of electronic components. When the SKU data of electronic components on a procurement platform of electronic components is updated, the updated data source is not only the data on the procurement platform of the electronic components, but also includes other procurement websites related to the electronic components or the initial SKU data source system of the electronic components, etc., thereby increasing the integrity of the SKU data of the electronic components. Therefore, when the user imports the BOM file into the component procurement platform for identification, more purchasing information of the components will be obtained, and the timeliness and timeliness of the SKU data of the electronic components will be improved, so that the user can choose the corresponding components more reasonably.
[0037] In one embodiment of the present application, Figure 2 FIG. 1 is a flow chart of a method for updating SKU data of electronic components provided by another embodiment of the present application, such as Figure 2 As shown, step S102 (obtaining the data source of the electronic component according to the electronic component, and obtaining the updated SKU data corresponding to the electronic component according to the data source) specifically includes the following steps:
[0038] Step S1021: Acquire initial SKU data of the electronic components according to the electronic components;
[0039] In step S1021, the initial SKU data of the electronic component is the initial SKU data of the electronic component on the electronic component purchasing platform;
[0040] Step S1022: Obtain the latest update time of the initial SKU data according to the initial SKU data;
[0041] Since the SKU data of the electronic components on the electronic component platform will be updated according to the user's click of the update button, the SKU data of the electronic component may have just been updated before the user clicks to update the SKU data of the electronic component, that is, the SKU data of the electronic component may be updated multiple times in a short period of time. Whether the SKU data of the electronic component should be updated depends on the latest update time of the electronic component before that.
[0042] Step S1023: determining whether the time between the latest update time of the SKU data and the request time of the update request information is greater than a first preset time;
[0043] In step S1022, the latest update time of the SKU data of the electronic component before the user requests to update the SKU data of the electronic component is obtained. In step S1023, the time interval between the latest update time and the request time of the update request information, that is, the time interval between the current update request of the SKU data of the electronic component and the most recent data update, is obtained.
[0044] When the judgment result in step S1023 is yes, that is, the time length between the latest update time and the request time of the update request information is greater than the first preset time length, it can be explained that the last data update of the electronic component is far away from the current time, and the updated SKU data corresponding to the electronic component can be obtained, and then the initial SKU data of the electronic component is updated according to the updated SKU data.
[0045] Step S1024: Acquire updated SKU data corresponding to the electronic components.
[0046] When the judgment result in step S1023 is no, that is, the time length between the latest update time and the request time of the update request information is less than or equal to the first preset time length, it can be said that the last data update of the electronic component is relatively close to the current time. At this time, the acquisition of updated SKU data corresponding to the electronic component will not be executed, and the step of updating the SKU data of the electronic component will not be executed, thereby reducing the probability of duplication of SKU data caused by frequent data updates.
[0047] The present application provides a method for updating SKU data of electronic components. When the SKU data of the electronic component is requested to be updated by a user, the method first determines the latest data update time of the electronic component before the user requests the update. When the time interval between the latest data update time and the time for requesting the update is greater than a first preset time length, the updated SKU data of the electronic component is obtained, and the initial SKU data of the electronic component is updated according to the updated SKU data of the electronic component, thereby improving the accuracy and efficiency of the SKU data of the electronic component and reducing the probability of repeated updates of the SKU data of the electronic component.
[0048] In one embodiment of the present application, Figure 3 FIG. 1 is a flow chart of a method for updating SKU data of electronic components provided by another embodiment of the present application, such as Figure 3 As shown, step S1024 (obtaining updated SKU data corresponding to the electronic component) specifically includes the following steps:
[0049] Step S10241: obtaining an initial SKU data source of electronic components according to the initial SKU data of the electronic components;
[0050] Step S10242: determining whether a preset initial SKU data source matching the initial SKU data source can be found in the preset initial SKU data source database;
[0051] When the judgment result in step S10242 is yes, that is, the preset initial SKU data source that matches the initial SKU data source can be found in the preset initial SKU data source database, execute step S10243; when the judgment result in step S10242 is no, that is, the preset initial SKU data source that matches the initial SKU data source is not found in the preset initial SKU data source database, execute steps S10244-S10245.
[0052] Step S10243: directly retrieve the updated SKU data corresponding to the electronic components from the preset initial SKU data source through the API interface with the preset initial SKU data source.
[0053] In step S10243, the latest updated SKU data corresponding to the electronic component is directly retrieved from the preset initial SKU data source through the API interface with the preset initial SKU data source;
[0054] When the update time of the latest updated SKU data in the preset initial SKU data source is after the latest update time of the initial SKU data, the latest updated SKU data in the preset initial SKU data source is retrieved as the updated SKU data of the electronic component. That is, the updated SKU data corresponding to the electronic component is directly retrieved from the corresponding preset initial SKU data source. The updated SKU data is the SKU data about the electronic component in the preset initial SKU data source when the user requests to update the SKU data of the electronic component. Since the updated SKU data is directly retrieved through the API interface, the time for querying data is reduced, and the SKU data of the electronic component can be quickly updated.
[0055] Step S10244: according to the initial SKU data of the electronic component, obtain the data source when the electronic component is most recently updated;
[0056] Step S10245: According to the data source, the updated SKU data corresponding to the electronic component is obtained from the data source. That is, when the preset initial SKU data source matching the initial SKU data source is not found in the preset initial SKU data source database, that is, the initial SKU data source is not associated with the electronic component platform. Therefore, at this time, it is necessary to obtain the data source of the most recent update according to the initial SKU data of the electronic component, and then go to the data source to obtain the updated SKU data corresponding to the electronic component in the data source.
[0057] In one embodiment of the present application, Figure 4 FIG. 1 is a flow chart of a method for updating SKU data of electronic components provided by another embodiment of the present application, such as Figure 4As shown, step S10243 (directly retrieving updated SKU data corresponding to the electronic component from the preset initial SKU data source through the API interface with the preset initial SKU data source) specifically includes the following steps:
[0058] S10: directly retrieve the latest updated SKU data corresponding to the electronic components from the preset initial SKU data source through an API interface with the preset initial SKU data source;
[0059] S11: When the update time of the latest updated SKU data in the preset initial SKU data source is after the latest update time of the initial SKU data, the latest updated SKU data in the preset initial SKU data source is retrieved as the updated SKU data of the electronic component. That is, when the latest updated SKU data corresponding to the electronic component is retrieved directly from the preset initial SKU data source through the API interface, since the SKU data of the electronic component in the preset initial SKU data source is also updated in real time, when the update time of the latest updated SKU data in the preset initial SKU data source is after the latest update time of the initial SKU data, it means that the latest data in the preset initial SKU data source is relatively new compared to the latest data in the initial SKU data. Therefore, directly retrieving the latest updated SKU data in the preset initial SKU data source as the updated SKU data of the electronic component can ensure that the updated SKU data is the latest data, thereby improving the timeliness and accuracy of data updating.
[0060] Similarly, Figure 5 FIG. 1 is a flow chart of a method for updating SKU data of electronic components provided by another embodiment of the present application, such as Figure 5 As shown, step S10245 (according to the data source, obtaining the updated SKU data corresponding to the electronic component in the data source) specifically includes the following steps:
[0061] S20: According to the data source, the latest updated SKU data corresponding to the electronic component is obtained from the data source;
[0062] S21: When the update time of the latest updated SKU data in the data source is after the latest updated time of the initial SKU data, the latest updated SKU data in the data source is retrieved as the updated SKU data of the electronic component.
[0063] When the update time of the latest updated SKU data in the data source is after the latest update time of the initial SKU data, it means that the latest data in the data source is newer than the latest data in the initial SKU data. Therefore, retrieving the latest updated SKU data in the data source as the updated SKU data of the electronic components can ensure that the updated SKU data is the latest data, thereby improving the timeliness and accuracy of data updates.
[0064] When a user browses a web page, when the web page is being updated, a pop-up window will be displayed on the web page, indicating that the web page is being refreshed. During the updating process: the preset initial SKU data source that matches the initial SKU data source is not found in the preset initial SKU data source database, that is, the initial SKU data source of the electronic component is not associated with the electronic component platform, and the SKU data cannot be directly retrieved. Therefore, it is necessary to obtain the data source of the SKU data at the time of the most recent update based on the initial SKU data, and then go directly to the data source to obtain the updated SKU data. In this process, it takes a long time. At this time, if you keep waiting for the web page to update, it will affect the user experience. Therefore, after step S10244 (obtaining the data source of the most recent update of the electronic component based on the initial SKU data of the electronic component), the SKU data update method for electronic components also includes the following steps:
[0065] Step S107: recording the first moment when the data source of the most recent update of the electronic component is obtained according to the initial SKU data of the electronic component;
[0066] Step S108: at a second moment after the first moment, query whether the second SKU data of the electronic component at the second moment is consistent with the initial SKU data, wherein the time interval between the second moment and the first moment is a second preset time length;
[0067] That is, while obtaining the updated SKU data, after obtaining the first moment when the data source of the most recent update of the electronic component is obtained, at every second preset time, it is queried whether the original SKU data of the electronic component has been updated. When the original SKU data of the electronic component is updated, then when the updated SKU data is obtained, the updated data of the electronic component is: the second SKU data (that is, the updated data after the user clicks the update button).
[0068] Step S109: when the second SKU data of the electronic component at the second moment is inconsistent with the initial SKU data, updating the initial SKU data to the second SKU data;
[0069] Among them, step S103 (updating the initial SKU data of the electronic component according to the updated SKU data) specifically includes the following steps: Step S1031: updating the second SKU data of the electronic component according to the updated SKU data.
[0070] Optionally, the second preset time length is 4 to 6 seconds, that is, the data of the electronic component is automatically queried every 4 to 6 seconds to see whether it has been updated, thereby improving the timeliness and accuracy of the data update of the electronic component.
[0071] Figure 6 FIG. 1 is a working principle diagram of a SKU data updating device for electronic components provided by another embodiment of the present application. Figure 6 As shown, the electronic component SKU data updating device includes: an electronic component determining module 100, used to obtain the electronic components corresponding to the update request information according to the update request information; an updated SKU data obtaining module 200, used to obtain the data source of the electronic components according to the electronic components, and obtain the updated SKU data corresponding to the electronic components according to the data source; and an updating module 300, used to update the initial SKU data of the electronic components according to the updated SKU data.
[0072] The SKU data updating device for electronic components described in the present application, when updating the SKU data of electronic components on the electronic component procurement platform, the updated data source is not only the data on the electronic component procurement platform, but also includes other procurement websites related to the electronic component or the initial SKU data source system of the electronic component, etc., thereby increasing the integrity of the SKU data of the electronic component. Therefore, when the user imports the BOM file into the component procurement platform for identification, more purchasing information of the components will be obtained, so that the user can choose the corresponding components more reasonably.
[0073] Below, reference Figure 7 To describe an electronic device according to an embodiment of the present application. Figure 7 Shown is a schematic structural diagram of an electronic device provided in one embodiment of the present application.
[0074] like Figure 7 As shown, the electronic device 600 includes one or more processors 601 and a memory 602 .
[0075] The processor 601 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or information execution capabilities, and may control other components in the electronic device 600 to perform desired functions.
[0076] The memory 601 may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, a random access memory (RAM) and / or a cache memory (cache), etc. The non-volatile memory may include, for example, a read-only memory (ROM), a hard disk, a flash memory, etc. One or more computer program information may be stored on the computer-readable storage medium, and the processor 601 may run the program information to implement the SKU data update method of the electronic components of the various embodiments of the present application described above or other desired functions.
[0077] In one example, the electronic device 600 may further include: an input device 603 and an output device 604 , and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).
[0078] The input device 603 may include, for example, a keyboard, a mouse, etc.
[0079] The output device 604 can output various information to the outside. The output device 604 can include, for example, a display, a communication network and a remote output device connected thereto.
[0080] Of course, to simplify, Figure 7 Only some of the components related to the present application in the electronic device 600 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device 600 may also include any other appropriate components.
[0081] In addition to the above-mentioned methods and devices, an embodiment of the present application may also be a computer program product, which includes computer program information, which, when executed by a processor, enables the processor to execute the steps of the SKU data update method for electronic components according to various embodiments of the present application described in this specification.
[0082] The computer program product may be written in any combination of one or more programming languages to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages, such as Java, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0083] In addition, an embodiment of the present application may also be a computer-readable storage medium on which computer program information is stored. When the computer program information is executed by a processor, the processor executes the steps of the method for updating SKU data of electronic components according to various embodiments of the present application described in this specification.
[0084] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0085] The basic principles of the present application are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present application are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present application. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, not for limitation, and the above details do not limit the present application to being implemented by adopting the above specific details.
[0086] The block diagrams of the devices, apparatuses, equipment, and systems involved in this application are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagram. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including", "comprising", "having", etc. are open words, referring to "including but not limited to", and can be used interchangeably with them. The words "or" and "and" used here refer to the words "and / or" and can be used interchangeably with them, unless the context clearly indicates otherwise. The words "such as" used here refer to the phrase "such as but not limited to", and can be used interchangeably with them.
[0087] It should also be noted that in the apparatus, device and method of the present application, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present application.
[0088] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present application. Therefore, the present application is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features of the present invention.
[0089] The above description is only a preferred embodiment of the invention of the present application and is not intended to limit the invention of the present application. Any modifications, equivalent substitutions, etc. made within the spirit and principles of the invention of the present application shall be included in the protection scope of the invention of the present application.
Claims
1. A method for updating SKU data of electronic components, characterized in that: include: According to the update request information, obtaining the electronic components corresponding to the update request information; According to the electronic component, obtaining initial SKU data of the electronic component; According to the initial SKU data, obtaining the latest update time of the initial SKU data; When the time length between the latest update time of the initial SKU data and the request time of the update request information is greater than a first preset time length, acquiring the initial SKU data source of the electronic component according to the initial SKU data of the electronic component; When a preset initial SKU data source matching the initial SKU data source is found in the preset initial SKU data source database, the latest updated SKU data corresponding to the electronic component is directly retrieved from the preset initial SKU data source through an API interface with the preset initial SKU data source; When the update time of the latest updated SKU data in the preset initial SKU data source is later than the latest update time of the initial SKU data, retrieving the latest updated SKU data in the preset initial SKU data source as the updated SKU data of the electronic component; When the time between the latest update time of the initial SKU data and the request time of the update request information is less than or equal to a first preset time, the updated SKU data corresponding to the electronic component is not acquired; as well as The initial SKU data of the electronic component is updated according to the updated SKU data.
2. The method for updating SKU data of electronic components according to claim 1, characterized in that: According to the electronic component, a data source of the electronic component is obtained, and according to the data source, updated SKU data corresponding to the electronic component is obtained, further comprising: When a preset initial SKU data source matching the initial SKU data source is not found in the preset initial SKU data source database, obtaining the data source of the most recent update of the electronic component according to the initial SKU data of the electronic component; and According to the data source, updated SKU data corresponding to the electronic component is obtained from the data source.
3. The method for updating SKU data of electronic components according to claim 2, characterized in that: According to the data source, obtaining updated SKU data corresponding to the electronic component in the data source includes: According to the data source, obtaining the latest updated SKU data corresponding to the electronic component in the data source; When the update time of the latest updated SKU data in the data source is later than the latest updated time of the initial SKU data, the latest updated SKU data in the data source is retrieved as the updated SKU data of the electronic component.
4. The method for updating SKU data of electronic components according to claim 2, characterized in that: After obtaining the data source of the most recently updated electronic component according to the initial SKU data of the electronic component, the method for updating the SKU data of the electronic component further includes: Recording the first moment when the data source of the most recent update of the electronic component is obtained according to the initial SKU data of the electronic component; At a second moment after the first moment, query whether the second SKU data of the electronic component at the second moment is consistent with the initial SKU data, wherein the time interval between the second moment and the first moment is a second preset time length; When the second SKU data of the electronic component at the second moment is inconsistent with the initial SKU data, updating the initial SKU data to the second SKU data; Wherein, updating the initial SKU data of the electronic component according to the updated SKU data includes: updating the second SKU data of the electronic component according to the updated SKU data.
5. The method for updating SKU data of electronic components according to claim 4, characterized in that: The second preset time length is 4 to 6 seconds.
6. An electronic component SKU data updating device, characterized in that: include: An electronic component determination module, used to obtain electronic components corresponding to the update request information according to the update request information; Update the SKU data acquisition module to: According to the electronic component, obtaining initial SKU data of the electronic component; According to the initial SKU data, obtaining the latest update time of the initial SKU data; When the time length between the latest update time of the initial SKU data and the request time of the update request information is greater than a first preset time length, acquiring the initial SKU data source of the electronic component according to the initial SKU data of the electronic component; When a preset initial SKU data source matching the initial SKU data source is found in the preset initial SKU data source database, the latest updated SKU data corresponding to the electronic component is directly retrieved from the preset initial SKU data source through an API interface with the preset initial SKU data source; When the update time of the latest updated SKU data in the preset initial SKU data source is later than the latest update time of the initial SKU data, retrieving the latest updated SKU data in the preset initial SKU data source as the updated SKU data of the electronic component; When the time between the latest update time of the initial SKU data and the request time of the update request information is less than or equal to a first preset time, the updated SKU data corresponding to the electronic component is not acquired; as well as An updating module is used to update the initial SKU data of the electronic component according to the updated SKU data.
7. An electronic device, characterized in that: The electronic device comprises: Processor; and a memory for storing information executable by the processor; Wherein, the processor is used to execute the SKU data updating method of electronic components described in any one of claims 1-5 above.
