CN108255950B - Data storage method and terminal equipment - Google Patents

Data storage method and terminal equipment Download PDF

Info

Publication number
CN108255950B
CN108255950B CN201711367508.5A CN201711367508A CN108255950B CN 108255950 B CN108255950 B CN 108255950B CN 201711367508 A CN201711367508 A CN 201711367508A CN 108255950 B CN108255950 B CN 108255950B
Authority
CN
China
Prior art keywords
pcba
materials
operation flow
data storage
production operation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711367508.5A
Other languages
Chinese (zh)
Other versions
CN108255950A (en
Inventor
杨虎
袁彬
龚尧文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Twowing Technology Co ltd
Original Assignee
Shenzhen Twowing Technology 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 Shenzhen Twowing Technology Co ltd filed Critical Shenzhen Twowing Technology Co ltd
Priority to CN201711367508.5A priority Critical patent/CN108255950B/en
Publication of CN108255950A publication Critical patent/CN108255950A/en
Application granted granted Critical
Publication of CN108255950B publication Critical patent/CN108255950B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/215Improving data quality; Data cleansing, e.g. de-duplication, removing invalid entries or correcting typographical errors

Abstract

The invention is suitable for the technical field of data processing, and provides a data storage method and terminal equipment, wherein the method comprises the following steps: determining a PCBA to be generated, and determining materials which need to be used and correspond to the PCBA to be generated according to a production work order corresponding to the PCBA; detecting whether the materials are complete; if the materials are detected to be complete, acquiring the production operation flow of the PCBA to be generated and the material identification of the materials; sequencing the material identifications according to the production operation flow; combining the material identifications according to the sequencing result of the material identifications; and acquiring the PCBA identifier of the PCBA to be generated, establishing a corresponding relation between the PCBA identifier and the combined material identifier, and storing the corresponding relation. The storage space required by the data can be greatly reduced, the data maintenance cost is reduced, the material tracing difficulty is reduced, and the method is suitable for application.

Description

Data storage method and terminal equipment
Technical Field
The invention belongs to the technical field of data processing, and particularly relates to a data storage method and terminal equipment.
Background
With the development of technology, the manufacturing process of Printed Circuit Board Assemblies (PCBA) is more and more complex, and more materials are used, for example, 100 materials are used for one PCBA. When the PCBA is produced, the relation between the PCBA and the materials needs to be stored, and the production operation can be carried out after the data storage is finished.
The existing data storage is mainly relational data storage, and when the relational data storage is used for processing many-to-many data, a plurality of data tables are used for storing data, such as information for storing a PCBA, material information required to be used and a corresponding relation between the PCBA and the material required to be used.
If a PCBA needs multiple materials, such as above-mentioned 100 kinds of materials, current storage mode can use up the data volume of data table fast, causes the card to pause, makes production operation normally go on, influences production efficiency. Even if data management personnel transfer data in time and clear up sufficient data space, the existing storage mode can also use up the data space very fast, increases the data maintenance cost, and improves the material tracing difficulty simultaneously.
Disclosure of Invention
In view of this, embodiments of the present invention provide a data storage method and a terminal device, so as to solve the problems of a large space required for data storage, a high data maintenance cost, and a large material tracing difficulty in the existing storage method.
A first aspect of an embodiment of the present invention provides a data storage method, including:
determining a PCBA to be generated, and determining materials which need to be used and correspond to the PCBA to be generated according to a production work order corresponding to the PCBA;
detecting whether the materials are complete;
if the materials are detected to be complete, acquiring the production operation flow of the PCBA to be generated and the material identification of the materials;
sequencing the material identifications according to the production operation flow;
combining the material identifications according to the sequencing result of the material identifications;
and acquiring the PCBA identifier of the PCBA to be generated, establishing a corresponding relation between the PCBA identifier and the combined material identifier, and storing the corresponding relation.
Optionally, the detecting whether the materials are complete includes:
detecting whether preset key materials exist in the materials or not, and detecting whether the number of the materials in the materials reaches a preset threshold value or not.
Optionally, the sorting the material identifiers according to the production workflow includes:
determining materials required by the production operation flow of each step in the production operation flow;
sequencing the materials required by each step of the production operation flow according to the operation sequence of the production operation flow;
and sequencing the material identifications according to the sequencing result of the materials required by the production operation flow in each step.
Optionally, after the establishing the correspondence between the PCBA identifier and the combined material identifier, the method further includes:
performing data compression on the corresponding relation;
the storing the correspondence includes:
and storing the corresponding relation after the data compression.
Optionally, the determining the PCBA to be generated includes:
and determining the PCBA to be generated according to the sequence of the PCBA generation time.
A second aspect of embodiments of the present invention provides a data storage apparatus, including:
the information determining unit is used for determining a PCBA to be generated and determining materials which need to be used and correspond to the PCBA to be generated according to a production work order corresponding to the PCBA;
the material detection unit is used for detecting whether the materials are complete or not;
the information processing unit is used for acquiring the production operation flow of the PCBA to be generated and the material identification of the material if the material is detected to be complete;
the identification sorting unit is used for sorting the material identifications according to the production operation flow;
the identification combination unit is used for combining the material identifications according to the sequencing result of the material identifications;
and the data storage unit is used for acquiring the PCBA identifier of the PCBA to be generated, establishing the corresponding relation between the PCBA identifier and the combined material identifier, and storing the corresponding relation.
Optionally, the material detecting unit includes:
the first detection unit is used for detecting whether preset key materials exist in the materials;
and the second detection unit is used for detecting whether the number of the materials in the materials reaches a preset threshold value.
Optionally, the identification sorting unit includes:
the material determining unit is used for determining materials required by each step of production operation flow in the production operation flow;
the first sequencing unit is used for sequencing the materials required by each step of the production operation flow according to the operation sequence of the production operation flow;
and the second sequencing unit is used for sequencing the material identifications according to the sequencing result of the materials required by the production operation flow of each step.
A third aspect of the embodiments of the present invention provides a data storage terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the data storage method as described above when executing the computer program.
A fourth aspect of embodiments of the present invention provides a computer-readable storage medium, which stores a computer program that, when executed by a processor, implements the steps of the data storage method as described above.
Compared with the prior art, the embodiment of the invention has the following beneficial effects: after the PCBA to be generated is determined, materials which need to be used and correspond to the PCBA to be generated are determined according to a production work order corresponding to the PCBA, whether the materials are complete or not is detected, if the materials are complete, a production operation flow of the PCBA to be generated and material identifications of the materials are obtained, the material identifications are sorted according to the production operation flow, the material identifications are combined according to a sorting result of the material identifications, the PCBA identification of the PCBA to be generated is obtained, a corresponding relation between the PCBA identification and the combined material identifications is established, and the corresponding relation is stored. Because the invention converts the relationship between the PCBA and the materials into the one-to-one corresponding relationship for storage, namely, a plurality of materials corresponding to the PCBA are combined, and the corresponding relationship between the PCBA and the combined materials is established for storage, on the basis of not reducing the functionality, the storage space required by data is greatly reduced, the data maintenance cost is reduced, and meanwhile, the material tracing difficulty is reduced, thus the invention is suitable for application.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a schematic flow chart diagram of a data storage method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart diagram of a data storage method according to another embodiment of the present invention;
FIG. 3 is a schematic flow chart diagram of a data storage method according to a further embodiment of the present invention;
FIG. 4 is a schematic flow chart diagram of a data storage method according to another embodiment of the present invention;
FIG. 5 is a schematic flow chart diagram of a data storage method according to another embodiment of the present invention;
FIG. 6 is a schematic block diagram of a data storage device provided by an embodiment of the present invention;
FIG. 7 is a schematic block diagram of a data storage device according to another embodiment of the present invention;
fig. 8 is a schematic block diagram of a data storage terminal device according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Referring to fig. 1, fig. 1 is a schematic flowchart of a data storage method according to an embodiment of the present invention, in this embodiment, an angle trigger of a terminal is taken as an example for description, where the terminal may be a mobile terminal such as a smart phone and a tablet computer. As shown in fig. 1, in this embodiment, the processing procedure of the terminal may include the following steps:
s101: and determining the PCBA to be generated, and determining the materials which need to be used and correspond to the PCBA to be generated according to the production work order corresponding to the PCBA.
Here, the PCBA identification may be a barcode, name, number, etc. of the PCBA that may identify elements of the PCBA identity. After the PCBA to be generated is determined, the determined PCBA to be generated can be displayed, and related personnel can check and check conveniently. And generating a prompt for judging whether to replace the PCBA, if so, replacing the determined PCBA according to the request, and if not, determining the materials to be used corresponding to the PCBA to be generated according to the production work order corresponding to the PCBA.
Specifically, determining, according to the production work order corresponding to the PCBA, the material that needs to be used and corresponds to the PCBA to be generated may include: and searching the production work order corresponding to the PCBA to be generated in the production work order corresponding to the PCBA, and determining the materials required to be used corresponding to the PCBA to be generated according to the production work order corresponding to the PCBA to be generated.
After the materials which need to be used and correspond to the PCBA to be generated are determined, the determined materials can be displayed, and subsequent processing is facilitated.
S102: and detecting whether the materials are complete.
Here, the detecting whether the material is complete may include: and acquiring the materials required in the production operation flow of the PCBA to be generated, comparing whether the materials are consistent with the acquired materials, if so, judging that the materials are complete, and otherwise, judging that the materials are not complete.
S103: and if the materials are detected to be complete, acquiring the production operation flow of the PCBA to be generated and the material identification of the materials.
Specifically, if the materials are detected to be incomplete, the processing is stopped, and a full prompt of the uneven materials is generated.
Here, the correspondence between the PCBA identifier and the production operation flow may be prestored, the PCBA identifier of the PCBA to be generated is obtained, and the production operation flow of the PCBA to be generated is obtained according to the PCBA identifier. After the production operation flow of the PCBA to be generated is obtained, the obtained operation flow can be displayed, and related personnel can know the production operation condition in time conveniently. The material identifier of the material may be a unique traceability code (PSN), name, etc. of the material.
S104: and sequencing the material identifications according to the production operation flow.
Specifically, the material identifiers may be sorted according to an operation order in the production operation flow. After the sorting is completed, the sorting result of the material identifier can be displayed, and a prompt whether the sorting result is adjusted can also be generated.
S105: and combining the material identifications according to the sequencing result of the material identifications.
Here, the material identifiers may be combined according to the sorting result of the material identifiers, for example, A, B, C material identifiers are provided, the sorting result is B, A, C material identifiers, and the material identifiers are combined according to the sorting result to obtain B + a + C material identifiers, that is, a plurality of material identifiers are combined into a row.
Specifically, a combination upper limit threshold may be preset, after the material identifiers are combined according to the sorting result of the material identifiers, whether the combined material identifiers meet requirements or not may be detected according to the preset combination upper limit threshold, that is, whether the size of the combined material identifiers exceeds the preset combination upper limit threshold or not, if not, step S106 is executed, if so, the combined material identifiers are divided according to the preset combination upper limit threshold, so that the size of each combined material identifier after division does not exceed the preset combination upper limit threshold, thus ensuring that the device does not work in an overload state through the preset combination upper limit threshold, and being suitable for application, specifically, the preset combination upper limit threshold may be set according to an actual situation.
S106: and acquiring the PCBA identifier of the PCBA to be generated, establishing a corresponding relation between the PCBA identifier and the combined material identifier, and storing the corresponding relation.
Here, the mapping relationship between the PCBA identifier and the combined material identifier is established, and the mapping relationship can be stored in a preset database, so that the checking is convenient. When the PCBA is put into production, the stored mapping relation between the PCBA identification and the combined material identification is searched firstly, the combined material identification is obtained according to the mapping relation, and further the corresponding material is found according to the identification to carry out production operation. In the actual production operation, every PCBA that produces all only has one and uses the relation record of material, so can save data storage space, when the PCBA of production need carry out the material to the PCBA under some factors and trace back, just can find out all material identifications that use according to the PCBA sign, guarantee the traceability of material.
As can be seen from the above description, in the data storage method according to the embodiment of the present invention, since the relationship between the PCBA and the materials is converted into the one-to-one correspondence for storage, that is, the multiple materials corresponding to the PCBA are combined, and the correspondence between the PCBA and the combined materials is established for storage, on the basis of not reducing the functionality, the storage space required by the data is greatly reduced, the data maintenance cost is reduced, and the material tracing difficulty is reduced, so that the method is suitable for application.
Referring to fig. 2, fig. 2 is a schematic flow chart of a data storage method according to another embodiment of the present invention. The embodiment corresponding to fig. 1 differs in that: the detecting whether the materials are complete may include S202. S201 is the same as S101 in the previous embodiment, and S203 to S206 are the same as S103 to S106 in the previous embodiment, and reference is specifically made to the description related to S101 and S103 to S106 in the previous embodiment, which is not repeated herein. Specifically, S202 may include S2021 to S2022:
s2021: and detecting whether preset key materials exist in the materials.
S2022: and detecting whether the number of the materials in the materials reaches a preset threshold value.
Here, the preset key materials may be necessary materials for producing the PCBA, and may be set according to actual conditions. For example, the materials necessary for producing the PCBA are the first material and the second material, and whether the first material and the second material exist in the materials is detected. The preset threshold value may be the minimum number of materials for producing the PCBA, and may also be set according to actual conditions, for example, the minimum number of materials for producing the PCBA is 10, and it is detected whether the number of the materials in the materials reaches 10.
If the preset key materials exist in the materials and the number of the materials in the materials reaches a preset threshold value, the materials are detected to be complete, otherwise, the materials are detected to be incomplete.
Whether the materials are complete is detected through presetting key materials and a threshold value, and the subsequent steps are executed after the materials are complete, so that the correct subsequent treatment is ensured.
Referring to fig. 3, fig. 3 is a schematic flow chart of a data storage method according to still another embodiment of the invention. The embodiment corresponding to fig. 1 differs in that: the sorting the material identifications according to the production workflow may include S304. S301 to S303 are the same as S101 to S103 in the previous embodiment, and S305 to S306 are the same as S105 to S106 in the previous embodiment, and specific reference is made to the description of S101 to S103 and S105 to S106 in the previous embodiment, which is not repeated herein. Specifically, S304 may include S3041 to S3043:
s3041: and determining materials required by the production operation flow of each step in the production operation flow.
S3042: and sequencing the materials required by each step of the production operation flow according to the operation sequence of the production operation flow.
S3043: and sequencing the material identifications according to the sequencing result of the materials required by the production operation flow in each step.
And sequencing the materials required by each step of the production operation flow in the determined production operation flow through the operation sequence of the production operation flow, and sequencing the material identification according to the sequencing result, so that the accuracy of the sequencing result is ensured, and the method is suitable for application.
Referring to fig. 4, fig. 4 is a schematic flow chart of a data storage method according to another embodiment of the present invention. The difference between the above embodiments of the present embodiment is S406, wherein S401 to S405 are the same as S101 to S105 in the previous embodiment, and please refer to the related description of S101 to S105 in the above embodiments, which is not repeated herein. The data storage method in this embodiment may further include:
s406: and acquiring the PCBA identifier of the PCBA to be generated, establishing a corresponding relation between the PCBA identifier and the combined material identifier, performing data compression on the corresponding relation, and storing the corresponding relation after the data compression.
Here, the data compression means that on the premise that useful information is not lost, the data amount is reduced to reduce the storage space and improve the transmission, storage and processing efficiency, and the like, and a Lempel-Ziv compression method may be adopted to perform data compression on the correspondence, and specifically, the data compression mode may be set according to actual needs.
After the one-to-one relationship between the PCBA identifier and the combined material identifier is established, the established relationship is further subjected to data compression, so that the storage space required by data can be reduced, and the application requirement can be met.
Referring to fig. 5, fig. 5 is a schematic flow chart of a data storage method according to another embodiment of the present invention. The difference between the above embodiments is S501, where S502 to S506 are the same as S102 to S106 in the previous embodiment, and please refer to the description related to S102 to S106 in the above embodiments, which is not repeated herein. The data storage method in this embodiment may further include:
s501: and determining the PCBA to be generated according to the sequence of the PCBA generation time, and determining the materials required to be used corresponding to the PCBA to be generated according to the production work order corresponding to the PCBA.
Here, the PCBA generation time may be time for producing PCBA, for example, one PCBA needs to be produced at 10 am today, another PCBA needs to be produced at 11 am today, the PCBA to be generated is determined according to the sequence of the PCBA generation time, that is, the PCBA that needs to be produced at 10 am today is determined as the PCBA to be generated, the subsequent data storage step is executed, then the PCBA that needs to be produced at 11 am today is determined as the PCBA to be generated, and the subsequent data storage step is repeatedly executed.
The PCBA to be generated is determined according to the sequence of the PCBA generation time, so that the PCBA needing to be produced firstly can be produced on time, related personnel are prevented from forgetting to process, and the requirements of various application scenes are met.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Fig. 6 shows a schematic block diagram of a data storage device provided by the embodiment of the present invention, corresponding to the data storage method described in the above embodiment. The data storage device 600 of the present embodiment includes units for performing the steps in the embodiment corresponding to fig. 1, please refer to fig. 1 and the related description in the embodiment corresponding to fig. 1, which are not repeated herein. The data storage device 600 of the present embodiment includes an information determination unit 601, a material detection unit 602, an information processing unit 603, an identifier sorting unit 604, an identifier combining unit 605, and a data storage unit 606.
The information determining unit 601 is configured to determine a PCBA to be generated, and determine, according to a production work order corresponding to the PCBA, a material that needs to be used and corresponds to the PCBA to be generated. And the material detection unit 602 is used for detecting whether the materials are complete. And the information processing unit 603 is configured to, if it is detected that the materials are complete, obtain the production operation flow of the PCBA to be generated and the material identifiers of the materials. An identifier sorting unit 604, configured to sort the material identifiers according to the production workflow. The identifier combining unit 605 is configured to combine the material identifiers according to the sorting result of the material identifiers. And the data storage unit 606 is configured to acquire the PCBA identifier of the PCBA to be generated, establish a correspondence between the PCBA identifier and the combined material identifier, and store the correspondence.
As can be seen from the above description, in the data storage device according to the embodiment of the present invention, since the relationship between the PCBA and the materials is converted into the one-to-one correspondence for storage, that is, the multiple materials corresponding to the PCBA are combined, and the correspondence between the PCBA and the combined materials is established for storage, on the basis of not reducing the functionality, the storage space required by the data is greatly reduced, the data maintenance cost is reduced, and the material tracing difficulty is reduced, so that the data storage device is suitable for application.
Referring to fig. 7, fig. 7 is a schematic block diagram of another data storage device according to another embodiment of the present invention. The data storage device 700 of the present embodiment includes an information determination unit 701, a material detection unit 702, an information processing unit 703, an identifier sorting unit 704, an identifier combining unit 705, and a data storage unit 706.
The information determining unit 701, the material detecting unit 702, the information processing unit 703, the identifier sorting unit 704, the identifier combining unit 705, and the data storing unit 706 specifically refer to the relevant descriptions of the information determining unit 601, the material detecting unit 602, the information processing unit 603, the identifier sorting unit 604, the identifier combining unit 605, and the data storing unit 606 in the embodiment corresponding to fig. 6 and fig. 6, which is not described herein again.
Further, the material detecting unit 702 includes a first detecting unit 7021 and a second detecting unit 7022.
The first detecting unit 7021 is configured to detect whether there is a preset key material in the materials. A second detecting unit 7022 is configured to detect whether the number of the materials in the material reaches a preset threshold.
Further, the identification sorting unit 704 includes a material determining unit 7041, a first sorting unit 7042, and a second sorting unit 7043.
The material determining unit 7041 is configured to determine a material required by the production operation flow in each step of the production operation flow. A first sequencing unit 7042, configured to sequence the materials required by each step of the production workflow according to the operation sequence of the production workflow. A second sorting unit 7043, configured to sort the material identifiers according to a sorting result of the materials required by the production operation flow in each step.
Further, after the establishing of the correspondence between the PCBA identifier and the combined material identifier, the data storage unit 706 is further configured to: performing data compression on the corresponding relation; and storing the corresponding relation after the data compression.
Further, the information determining unit 701 is further configured to: and determining the PCBA to be generated according to the sequence of the PCBA generation time.
As can be seen from the above description, in this embodiment, after the PCBA to be generated is determined, the materials to be used corresponding to the PCBA to be generated are determined according to the production work order corresponding to the PCBA, whether the materials are complete is detected, if the materials are complete, the production operation flow of the PCBA to be generated and the material identifiers of the materials are obtained, the material identifiers are sorted according to the production operation flow, the material identifiers are combined according to the sorting result of the material identifiers, the PCBA identifiers of the PCBA to be generated are obtained, the corresponding relationship between the PCBA identifiers and the combined material identifiers is established, and the corresponding relationship is stored. Because the invention converts the relationship between the PCBA and the materials into the one-to-one corresponding relationship for storage, namely, a plurality of materials corresponding to the PCBA are combined, and the corresponding relationship between the PCBA and the combined materials is established for storage, on the basis of not reducing the functionality, the storage space required by data is greatly reduced, the data maintenance cost is reduced, and meanwhile, the material tracing difficulty is reduced, thus the invention is suitable for application.
Referring to fig. 8, fig. 8 is a schematic block diagram of a data storage terminal device according to an embodiment of the present invention. As shown in fig. 8, the data storage terminal device 8 of this embodiment includes: a processor 80, a memory 81 and a computer program 82, such as a data storage program, stored in said memory 81 and operable on said processor 80. The processor 80, when executing the computer program 82, implements the steps in the various data storage method embodiments described above, such as the steps 101-106 shown in fig. 1. Alternatively, the processor 80, when executing the computer program 82, implements the functions of the units in the above-described device embodiments, such as the functions of the units 701 to 706 shown in fig. 7.
The computer program 82 may be divided into one or more modules/units that are stored in the memory 81 and executed by the processor 80 to accomplish the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 82 in the data storage terminal device 8. For example, the computer program 82 may be divided into an information determination unit, a material detection unit, an information processing unit, an identifier sorting unit, an identifier combining unit, and a data storage unit, where the specific functions of each unit are as follows:
determining a PCBA to be generated, and determining materials which need to be used and correspond to the PCBA to be generated according to a production work order corresponding to the PCBA;
detecting whether the materials are complete;
if the materials are detected to be complete, acquiring the production operation flow of the PCBA to be generated and the material identification of the materials;
sequencing the material identifications according to the production operation flow;
combining the material identifications according to the sequencing result of the material identifications;
and acquiring the PCBA identifier of the PCBA to be generated, establishing a corresponding relation between the PCBA identifier and the combined material identifier, and storing the corresponding relation.
Further, the detecting whether the materials are complete comprises:
detecting whether preset key materials exist in the materials or not, and detecting whether the number of the materials in the materials reaches a preset threshold value or not.
Further, the sorting the material identifiers according to the production operation flow includes:
determining materials required by the production operation flow of each step in the production operation flow;
sequencing the materials required by each step of the production operation flow according to the operation sequence of the production operation flow;
and sequencing the material identifications according to the sequencing result of the materials required by the production operation flow in each step.
Further, after the establishing the correspondence between the PCBA identifier and the combined material identifier, the method further includes:
performing data compression on the corresponding relation;
the storing the correspondence includes:
and storing the corresponding relation after the data compression.
Further, the determining that the PCBA is to be generated includes:
and determining the PCBA to be generated according to the sequence of the PCBA generation time.
Above-mentioned scheme converts the relation of PCBA and material into a one-to-one corresponding relation and stores, is about to a plurality of materials that PCBA corresponds make up, establishes the corresponding relation of PCBA and post-combination material and stores, and on the basis that the functionality does not reduce, great reduction the required storage space of data, reduced the data maintenance cost, reduced the material simultaneously and traceed back the degree of difficulty, be fit for using.
The data storage terminal device 8 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The data storage terminal device may include, but is not limited to, a processor 80, a memory 81. Those skilled in the art will appreciate that fig. 8 is merely an example of a data storage terminal device 8 and does not constitute a limitation of the data storage terminal device 8 and may include more or fewer components than shown, or some components may be combined, or different components, for example, the data storage terminal device may also include input output devices, network access devices, buses, etc.
The Processor 80 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 81 may be an internal storage unit of the data storage terminal device 8, such as a hard disk or a memory of the data storage terminal device 8. The memory 81 may also be an external storage device of the data storage terminal device 8, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are equipped on the data storage terminal device 8. Further, the memory 81 may also include both an internal storage unit of the data storage terminal device 8 and an external storage device. The memory 81 is used to store the computer program and other programs and data required by the data storage terminal device. The memory 81 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A method of storing data, comprising:
determining a PCBA (printed circuit board assembly) to be generated, and determining materials which need to be used and correspond to the PCBA to be generated according to a production work order corresponding to the PCBA;
detecting whether the materials are complete;
if the materials are detected to be complete, acquiring the production operation flow of the PCBA to be generated and the material identification of the materials; the material identification is a unique traceability code of the material;
sequencing the material identifications according to the production operation flow;
combining the material identifications according to the sequencing result of the material identifications;
and acquiring the PCBA identifier of the PCBA to be generated, establishing a corresponding relation between the PCBA identifier and the combined material identifier, and storing the corresponding relation.
2. The data storage method of claim 1, wherein said detecting whether said material is complete comprises:
detecting whether preset key materials exist in the materials or not, and detecting whether the number of the materials in the materials reaches a preset threshold value or not.
3. The data storage method of claim 1, wherein said sorting said material identifications according to said production workflow comprises:
determining materials required by the production operation flow of each step in the production operation flow;
sequencing the materials required by each step of the production operation flow according to the operation sequence of the production operation flow;
and sequencing the material identifications according to the sequencing result of the materials required by the production operation flow in each step.
4. The data storage method of claim 1, wherein after the establishing the correspondence between the PCBA identifier and the combined material identifier, further comprising:
performing data compression on the corresponding relation;
the storing the correspondence includes:
and storing the corresponding relation after the data compression.
5. The data storage method of claim 1, wherein the determining that the PCBA is to be generated comprises:
and determining the PCBA to be generated according to the sequence of the PCBA generation time.
6. A data storage device, comprising:
the information determining unit is used for determining a PCBA to be generated and determining materials which need to be used and correspond to the PCBA to be generated according to a production work order corresponding to the PCBA;
the material detection unit is used for detecting whether the materials are complete or not;
the information processing unit is used for acquiring the production operation flow of the PCBA to be generated and the material identification of the material if the material is detected to be complete; the material identification is a unique traceability code of the material;
the identification sorting unit is used for sorting the material identifications according to the production operation flow;
the identification combination unit is used for combining the material identifications according to the sequencing result of the material identifications;
and the data storage unit is used for acquiring the PCBA identifier of the PCBA to be generated, establishing the corresponding relation between the PCBA identifier and the combined material identifier, and storing the corresponding relation.
7. The data storage device of claim 6, wherein the material detection unit comprises:
the first detection unit is used for detecting whether preset key materials exist in the materials;
and the second detection unit is used for detecting whether the number of the materials in the materials reaches a preset threshold value.
8. The data storage device of claim 6, wherein the identification sorting unit comprises:
the material determining unit is used for determining materials required by each step of production operation flow in the production operation flow;
the first sequencing unit is used for sequencing the materials required by each step of the production operation flow according to the operation sequence of the production operation flow;
and the second sequencing unit is used for sequencing the material identifications according to the sequencing result of the materials required by the production operation flow of each step.
9. A data storage terminal device comprising a memory, a processor and a computer program stored in said memory and executable on said processor, characterized in that said processor implements the steps of the data storage method according to any of claims 1 to 5 when executing said computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the data storage method according to any one of claims 1 to 5.
CN201711367508.5A 2017-12-18 2017-12-18 Data storage method and terminal equipment Active CN108255950B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711367508.5A CN108255950B (en) 2017-12-18 2017-12-18 Data storage method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711367508.5A CN108255950B (en) 2017-12-18 2017-12-18 Data storage method and terminal equipment

Publications (2)

Publication Number Publication Date
CN108255950A CN108255950A (en) 2018-07-06
CN108255950B true CN108255950B (en) 2020-08-21

Family

ID=62723654

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711367508.5A Active CN108255950B (en) 2017-12-18 2017-12-18 Data storage method and terminal equipment

Country Status (1)

Country Link
CN (1) CN108255950B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109583813A (en) * 2018-11-29 2019-04-05 武汉华星光电技术有限公司 Material management method and device
CN110533396A (en) * 2019-09-05 2019-12-03 Oppo(重庆)智能科技有限公司 Material binding method, material binding device and terminal device
CN117436792B (en) * 2023-12-18 2024-04-05 深圳市一诺智控科技有限公司 Control method and system for realizing traceability of PCBA plug-in material

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101877080A (en) * 2009-04-30 2010-11-03 厦门敏讯信息技术股份有限公司 Method for automatically generating configuration of bill of material (BOM)
US20140244019A1 (en) * 2013-02-22 2014-08-28 Sap Ag System and Method for Bill-of-Materials Low-Level Code Harmonization
CN107272627A (en) * 2017-07-21 2017-10-20 东莞职业技术学院 Intelligent flexible production line and its production method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101877080A (en) * 2009-04-30 2010-11-03 厦门敏讯信息技术股份有限公司 Method for automatically generating configuration of bill of material (BOM)
US20140244019A1 (en) * 2013-02-22 2014-08-28 Sap Ag System and Method for Bill-of-Materials Low-Level Code Harmonization
CN107272627A (en) * 2017-07-21 2017-10-20 东莞职业技术学院 Intelligent flexible production line and its production method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
机械产品零部件参数匹配系统的开发与研究;邓光伟等;《通信电源技术》;20141125;第31卷(第6期);第33-35页 *

Also Published As

Publication number Publication date
CN108255950A (en) 2018-07-06

Similar Documents

Publication Publication Date Title
CN107819627B (en) System fault processing method and server
CN108255950B (en) Data storage method and terminal equipment
CN107784070B (en) Method, device and equipment for improving data cleaning efficiency
CN108255602B (en) Task combination method and terminal equipment
CN109814524B (en) Vehicle diagnosis method, device and system
CN110221145B (en) Power equipment fault diagnosis method and device and terminal equipment
CN108536739B (en) Metadata sensitive information field identification method, device, equipment and storage medium
CN111460232A (en) Functional module searching method, device, terminal and computer readable storage medium
CN109041064B (en) Pseudo base station identification method and device and mobile terminal
CN112671609A (en) Asset census and safety detection method and device and terminal equipment
CN113642575A (en) Vehicle function detection method and device, electronic equipment and storage medium
CN108920601B (en) Data matching method and device
CN107133233B (en) Processing method and device for configuration data query
CN113052416A (en) Shipment quality control method and device, computer device and storage medium
CN112819267A (en) Incoming material quality control method and device, computer device and storage medium
CN111221742A (en) Test case updating method and device, storage medium and server
CN116205639A (en) Vehicle recycling management system, method, electronic equipment and storage medium
CN113824717B (en) Configuration checking method and device
CN102902820B (en) The recognition methods of type of database and device
CN112286881B (en) Document authentication tracing method and device
CN110119337B (en) Data analysis method and device and server
CN113391256A (en) Electric energy meter metering fault analysis method and system of field operation terminal
CN111209765A (en) Method and device for identifying material bar code and terminal equipment
CN110580243A (en) file comparison method and device, electronic equipment and storage medium
CN113033832B (en) Method and device for inputting automobile repair data, terminal equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant