Data processing method and device based on material change, equipment, medium and product

By obtaining and matching material change orders and material demand records, the implementation time of material changes is determined, the problem of resource waste caused by material design optimization in BOM is solved, and material resources are saved and optimized.

CN118628028APending Publication Date: 2024-09-10HUNAN KINGDEE MOBILE INTERNET TECH CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410726102.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

In the manufacturing industry, the design optimization of materials in the BOM (Bill of Material) leads to the loss of already prepared materials, resulting in a waste of resources.

Method used

By obtaining the target material change order, determine the material to be changed and its quantity to be consumed, match the material demand record, consume the material in the time sequence of material demand, and determine the change implementation time to optimize material replacement and avoid resource waste.

Benefits of technology

It realizes the early replacement of materials when optimizing the product structure, avoids waste of material resources, and improves resource utilization efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628028A
    Figure CN118628028A
Patent Text Reader

Abstract

The invention relates to a data processing method and device based on material change, equipment, a medium and a product. The method comprises the following steps: acquiring a target material change list, determining target to-be-changed materials in the target material change list, and determining the to-be-consumed quantity of the target to-be-changed materials; acquiring a plurality of material demand records matched with the target to-be-changed material, wherein each material demand record comprises a material demand quantity and material demand time; according to the material demand quantity in each material demand record in sequence, determining a target material demand record of which the to-be-consumed quantity can support consumption in the plurality of material demand records; and determining the change implementation time of the target to-be-changed material according to the material demand time in the target material demand record. By adopting the method, material resources can be saved. The method can be applied to various information management systems, such as an enterprise resource planning (ERP) system, an enterprise management system, a supply chain management system, a manufacturing management system and the like.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a data processing method, device, equipment, medium and product based on material change. Background Art

[0002] In the manufacturing industry, BOM (Bill of Material) is a file used to describe product structure information. Product structure information can indicate the hierarchical relationship between the materials that make up the product (such as raw materials, semi-finished products, finished products, etc.), as well as the quantity of materials at each level. In the process of product management by manufacturing enterprises, there is a need for design optimization of materials in the BOM. Design optimization is to replace materials in the BOM with new materials to optimize product processing.

[0003] Since materials in the BOM are usually stocked in advance, if the materials in the BOM are immediately replaced with new materials when the need for design adjustment arises, the materials in the BOM that have been stocked will be lost, resulting in a waste of resources. Summary of the invention

[0004] Based on this, it is necessary to provide a data processing method, device, equipment, medium and product based on material changes that can save resources in order to solve the above technical problems.

[0005] In a first aspect, the present application provides a data processing method based on material changes, comprising:

[0006] Obtain a target material change order, determine the target material to be changed in the target material change order, and determine the quantity to be consumed of the target material to be changed;

[0007] Acquire multiple material requirement records matching the target material to be changed, each material requirement record including a material requirement quantity and a material requirement time;

[0008] According to the material requirement quantity in each material requirement record, determine the target material requirement record that can be consumed by the quantity to be consumed in the multiple material requirement records;

[0009] The change implementation time of the target material to be changed is determined according to the material demand time in the target material demand record.

[0010] In a second aspect, the present application also provides a data processing device based on material changes, comprising:

[0011] Material change order acquisition module, used to obtain the target material change order;

[0012] The data processing module for materials to be changed is used to determine the target materials to be changed in the target material change order, and determine the quantity to be consumed of the target materials to be changed;

[0013] A material requirement record acquisition module, used to acquire multiple material requirement records matching the target material to be changed, each material requirement record including a material requirement quantity and a material requirement time;

[0014] The change implementation time determination module is used to determine, in turn, according to the material requirement quantity in each material requirement record, the target material requirement record that can be supported by the quantity to be consumed in the multiple material requirement records; and determine the change implementation time of the target material to be changed according to the material requirement time in the target material requirement record.

[0015] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0016] Obtain a target material change order, determine the target material to be changed in the target material change order, and determine the quantity to be consumed of the target material to be changed;

[0017] Acquire multiple material requirement records matching the target material to be changed, each material requirement record including a material requirement quantity and a material requirement time;

[0018] According to the material requirement quantity in each material requirement record, determine the target material requirement record that can be consumed by the quantity to be consumed in the multiple material requirement records;

[0019] The change implementation time of the target material to be changed is determined according to the material demand time in the target material demand record.

[0020] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0021] Obtain a target material change order, determine the target material to be changed in the target material change order, and determine the quantity to be consumed of the target material to be changed;

[0022] Acquire multiple material requirement records matching the target material to be changed, each material requirement record including a material requirement quantity and a material requirement time;

[0023] According to the material requirement quantity in each material requirement record, determine the target material requirement record that can be consumed by the quantity to be consumed in the multiple material requirement records;

[0024] The change implementation time of the target material to be changed is determined according to the material demand time in the target material demand record.

[0025] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0026] Obtain a target material change order, determine the target material to be changed in the target material change order, and determine the quantity to be consumed of the target material to be changed;

[0027] Acquire multiple material requirement records matching the target material to be changed, each material requirement record including a material requirement quantity and a material requirement time;

[0028] According to the material requirement quantity in each material requirement record, determine the target material requirement record that can be consumed by the quantity to be consumed in the multiple material requirement records;

[0029] The change implementation time of the target material to be changed is determined according to the material demand time in the target material demand record.

[0030] The above-mentioned data processing method, device, equipment, medium and product based on material change, since multiple material requirement records match the target material to be changed, then the multiple material requirement records are material requirement records that may consume the target material to be changed, and then, according to the material requirement quantity in each material requirement record, determine the target material requirement record that can be supported by the quantity to be consumed in the multiple material requirement records. Since when the target material to be changed is consumed according to multiple material requirement records, the target material to be changed is consumed in the order of the included material requirement time from early to late, it can be known that the material requirement time in the target material requirement record can, to a certain extent, represent the earliest time when the target material to be changed is consumed. If the target material to be changed is changed at this time, the target material to be changed will have no or less remaining material. Therefore, according to the material requirement time in the target material requirement record, the change implementation time of the target material to be changed is determined, which can not only change the target material to be changed as early as possible to optimize the corresponding product, but also avoid waste of material resources, thereby saving material resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0032] FIG1 is a schematic flow chart of a data processing method based on material change in one embodiment;

[0033] FIG2 is a schematic flow chart of a step of determining a target material to be changed in a target material change order in one embodiment;

[0034] FIG3 is a schematic diagram of a material change assessment process in one embodiment;

[0035] FIG4 is a schematic diagram of a flow chart of steps for processing material group related data in one embodiment;

[0036] FIG5 is a structural block diagram of a data processing device based on material change in one embodiment;

[0037] FIG. 6 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0039] In one embodiment, as shown in FIG1 , a data processing method based on material changes is provided. This embodiment is illustrated by applying the method to a computer device. The computer device can be a terminal or a server. It can be understood that the method can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. Among them, the terminal can be a personal computer, a laptop, a smart phone, and a tablet computer. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services. In this embodiment, the method includes the following steps:

[0040] Step 102, obtaining a target material change order, determining the target material to be changed in the target material change order, and determining the quantity to be consumed of the target material to be changed.

[0041] Among them, the target material change order is a material change order that needs to evaluate the change implementation time of the materials to be changed. The material change order is a form used to change the materials in the BOM (Bill of Material). Materials are items related to product production, such as raw materials, auxiliary supplies, semi-finished products, finished products, or others. In some scenarios, materials can also be called components. Changing a material can be changing a material to another different material, such as changing material A to material B. A material change order can include one or more materials to be changed.

[0042] The target material to be changed is a material to be changed in the target material change order. The change implementation time of the target material to be changed is determined by steps 102 to 110. The quantity to be consumed is the quantity of the target material to be changed to be consumed. The material can be consumed in various manufacturing links of the product, such as the production link, the outsourcing processing link or others.

[0043] In one embodiment, a computer device may obtain a target material change order in response to a change assessment trigger event. The change assessment trigger event is an event that triggers the evaluation of the change implementation time of the material to be changed included in the material change order. The change assessment trigger event may be an automatic trigger event, such as automatically determining a target material change order whose change implementation time has not been evaluated from multiple material change orders at a preset time length; or, for example, automatically triggering upon receiving a material change notification. The change assessment trigger event may also be a manual trigger event, such as a trigger operation on an evaluation control corresponding to a target material change order.

[0044] In one embodiment, the computer device may determine the material to be changed in the target material change order, and when the material to be changed does not belong to any preset material group among multiple preset material groups, the material to be changed is determined as the target material to be changed.

[0045] In one embodiment, the computer device may obtain at least one data table for recording material information, and count the quantity of the target material to be changed to be consumed according to the material quantity corresponding to the material node preconfigured in at least one data table for the target material to be changed.

[0046] Step 104, obtaining multiple material requirement records matching the target material to be changed, each material requirement record including the material requirement quantity and the material requirement time.

[0047] Among them, the material requirement record is a record describing the material usage requirements. The material requirement record may include the required material, the material requirement quantity, and the material requirement time. The material requirement quantity is the planned quantity of the required material. The material requirement time is the planned time of using the required material. The material requirement time can be a date.

[0048] In one embodiment, the computer device may determine the preconfigured statistical time in the target material change order, obtain a set of candidate material demand records including material demand times later than the statistical time, and determine the candidate material demand records including the required materials matching the target material to be changed in the candidate material demand record set as multiple material demand records matching the target material to be changed. The preconfigured statistical time is a time preconfigured for screening material demand records to count the quantity to be consumed. The preconfigured statistical time may be configured by the user, for example, the statistical time may be the creation time of the target material change order, or may be a preset time set by the user.

[0049] In one embodiment, in a target material change order, a first field value of the target material to be changed under at least one preconfigured material attribute field is obtained, a set of candidate material requirement records including material requirement times that are later than a statistical time is obtained, and a second field value of the required material included in each candidate material requirement record under at least one material attribute field is obtained; based on the first field value and the second field value included in each candidate material requirement record, a plurality of material requirement records matching the target material to be changed are determined from the set of candidate material requirement records.

[0050] In one embodiment, the computer device can determine a preconfigured material plan type, obtain a material plan that matches the material plan type, parse candidate material requirement records from the obtained material plan, and form a candidate material requirement record set with the parsed candidate material requirement records.

[0051] The type of material plan may be a production bill of materials, a subcontracted bill of materials, or other types. The material plan may include multiple required materials and the material information corresponding to each of the multiple required materials. The material information may include the material identification of the material, the organization using the required material, the material requirement quantity, the material requirement time, or other types. A required material in the material plan and the material information corresponding to the required material may be parsed into a material requirement record. The material plan may be a production bill of materials, a subcontracted bill of materials, or other types.

[0052] Step 106, determining, in turn, according to the material requirement quantity in each material requirement record, a target material requirement record that can be supported by the quantity to be consumed in the multiple material requirement records.

[0053] It can be understood that, in actual application scenarios, when consuming the target material to be changed according to multiple material demand records, the target material to be changed is consumed in the order of the material demand time included from early to late, so the material demand quantity in the previous material demand record before the target material demand record can be consumed by the quantity to be consumed, and at least a part of the material demand quantity in the target material demand record can be consumed by the quantity to be consumed. The previous material demand record is a material demand record in which the material demand time included in the multiple material demand records is earlier than the material demand time in the target material demand record.

[0054] In one embodiment, a computer device may determine a to-be-satisfied material demand record with the earliest material demand time from multiple material demand records, consume the to-be-satisfied quantity according to the material demand quantity in the currently determined material demand record to be met, and if the remaining quantity after consuming the to-be-satisfied quantity is greater than zero, determine the next to-be-satisfied material demand record with the earliest material demand time from the multiple material demand records, and update the next to-be-satisfied material demand record with the earliest material demand time to the currently determined material demand record to be met, and return to execute the step of consuming the to-be-satisfied quantity according to the material demand quantity in the currently determined material demand record to be met, until the remaining quantity is equal to zero, or the remaining quantity is less than zero and the absolute value of the remaining quantity is less than the material demand quantity in the currently determined material demand record to be met, and determine the currently determined material demand record to be met as the target material demand record.

[0055] In one embodiment, a computer device may sort multiple material requirement records from early to late according to the material requirement time included, obtain multiple sorted material requirement records, and, starting from the first of the sorted multiple material requirement records, determine, in turn, according to the material requirement quantity in each material requirement record, whether the quantity to be consumed can support the consumption of the target material requirement record.

[0056] Among the sorted multiple material requirement records, the material requirement quantities in the material requirement records before the target material requirement record can be consumed by the quantity to be consumed, and at least a portion of the material requirement quantities in the target material requirement record can be consumed by the quantity to be consumed.

[0057] In one embodiment, the computer device may consume the quantity to be consumed according to the material requirement quantity in each material requirement record in sequence, starting from the first of the multiple sorted material requirement records, and update the quantity to be consumed with the remaining quantity after consuming the quantity to be consumed, and determine the material requirement record when the quantity to be consumed is insufficient to completely consume the material requirement quantity as the target material requirement record.

[0058] In one embodiment, the computer device may consume the quantity to be consumed according to the material requirement quantity in each material requirement record in sequence, starting from the first of the multiple sorted material requirement records, and update the quantity to be consumed with the remaining quantity after consuming the quantity to be consumed, and determine the material requirement record before the material requirement record when the quantity to be consumed is not enough to completely consume the material requirement quantity as the target material requirement record.

[0059] In one embodiment, a computer device can sort multiple material demand records from early to late according to the material demand time included. During the sorting process, when there are material demand records with the same material demand time included, the priorities of the material demand records with the same material demand time are determined, and the material demand records with the same material demand time included are sorted according to their respective priorities to obtain multiple sorted material demand records. Among them, the priority of the material demand record can be determined according to the cost of the required material in the material demand record, such as the higher the cost of the required material, the higher the priority of the material demand record; it can also be determined according to the preset priority corresponding to the organization in the material demand record, such as the higher the preset priority of the organization, the higher the priority of the material demand record.

[0060] Step 108, determining the change implementation time of the target material to be changed according to the material demand time in the target material demand record.

[0061] The change implementation time is the time to change the material to be changed to the specified material. The material change order can be configured with a specified material for the material to be changed.

[0062] In one embodiment, the computer device may determine the material requirement time in the target material requirement record as the change implementation time of the target material to be changed, and update the determined change implementation time corresponding to the target material to be changed into the target material change order. In this embodiment, since the material requirement time in the target material requirement record can represent the earliest time when the target material to be changed is consumed to a certain extent, the material requirement time in the target material requirement record is determined as the change implementation time of the target material to be changed, so that the determination of the change implementation time is more accurate.

[0063] In the above-mentioned data processing method based on material change, since multiple material requirement records match the target material to be changed, the multiple material requirement records are material requirement records that may consume the target changed material. Then, according to the material requirement quantity in each material requirement record, the target material requirement record that can be consumed by the quantity to be consumed in the multiple material requirement records is determined. Since when the target material to be changed is consumed according to multiple material requirement records, the target material to be changed is consumed in the order of the included material requirement time from early to late, it can be known that the material requirement time in the target material requirement record can represent the earliest time when the target material to be changed is consumed to a certain extent. At this time, if the target material to be changed is changed, the target material to be changed will not be left or will be left less. Therefore, according to the material requirement time in the target material requirement record, the change implementation time of the target material to be changed is determined, which can not only change the target material to be changed as early as possible to optimize the corresponding product, but also avoid waste of material resources, thereby saving material resources.

[0064] In an exemplary embodiment, as shown in FIG2 , the step of determining the target material to be changed in the target material change order in step 102 includes steps 202 to 204. Among them:

[0065] Step 202, determining the material to be changed in the target material change order;

[0066] Step 204: When the material to be changed belongs to a preset material group and is a primary key material in the preset material group, the material to be changed is determined as a target material to be changed.

[0067] The target material change order may include one or more materials to be changed. The preset material group is a pre-set material group. The preset material group may include only a material group of at least two materials to be changed in the target material change order, or may include at least one material to be changed in the target material change order and at least one material to be changed in other material change orders other than the target material change order.

[0068] In one embodiment, a computer device can obtain multiple preset material groups, determine whether the material to be changed belongs to one of the multiple preset material groups, and obtain a judgment result; when the judgment result indicates that the material to be changed belongs to a preset material group, according to a preconfigured primary key selection method, a material that serves as a primary key material is determined from the preset material group to which the material to be changed belongs; when the material to be changed serves as the primary key material, the material to be changed is determined as the target material to be changed.

[0069] Among them, multiple preset material groups can be preset material groups in a pre-configured material group relationship table, or preset material groups configured in a target material change order. The primary key material refers to the material that plays the main role. The primary key selection method can be to use the pre-configured material as the primary key material. For example, the material group relationship table can be configured with the primary key material in each preset material group, or the primary key material specified in the preset material group configured in the target material change order; the primary key selection method can be to use the material with the largest material cost as the primary key material, the material with the smallest material cost as the primary key material, the material with the largest quantity to be consumed as the primary key material, or the material with the smallest quantity to be consumed as the primary key material.

[0070] In one embodiment, the above-mentioned step of determining whether the material to be changed belongs to a preset material group among multiple preset material groups and obtaining the determination result includes: determining whether the material to be changed matches the preset material corresponding to a preset material group; if so, determining whether other preset materials corresponding to the preset material group match the materials to be changed in the target material change order or other material change orders; if so, obtaining the determination result that the material to be changed belongs to the preset material group. The material to be changed matches the preset material, which may be that the material identifications of the material to be changed and the preset material are the same, or that the material identifications of the material to be changed and the preset material are the same, and the organizations to which they belong are also the same. Other material change orders are material change orders other than the target material change order.

[0071] In one embodiment, it is determined whether the material to be changed matches a preset material corresponding to a preset material group. If so, it is determined whether other preset materials corresponding to the preset material group match the materials to be changed in the target material change order or other material change orders. If not, a judgment result is obtained that the material to be changed does not belong to the preset material group.

[0072] For example, the preset material group may correspond to preset material 1 and preset material 2. When the material 1 to be changed in the target material change order matches the preset material 1, and the material 2 to be changed in other material change orders matches the preset material 2, it can be determined that both the material 1 to be changed and the material 2 to be changed belong to the preset material group; when the material 1 to be changed in the target material change order matches the preset material 1, but there is no material to be changed with the preset material 2 in other material change orders, it can be determined that the material 1 to be changed does not belong to the preset material group.

[0073] In one embodiment, it is determined whether the material to be changed matches the preset material corresponding to any preset material group. If not, a determination result is obtained that the material to be changed does not belong to any preset material group.

[0074] In this embodiment, when the material to be changed belongs to a preset material group, it can be indicated that the material group to be changed and other materials in the preset material group need to be changed at the same time. At this time, if the material to be changed is the primary key material in the preset material group, the material to be changed is determined as the target material to be changed, and the change implementation time can be determined through steps 102 to 110, and the change implementation time of the primary key material can be determined more accurately.

[0075] In one embodiment, the above-mentioned data processing method based on material change also includes the following steps: when the material to be changed belongs to a preset material group and is a non-primary key material in the preset material group, the change implementation time of the primary key material in the preset material group is obtained; the change implementation time of the primary key material is determined as the change implementation time of the material to be changed.

[0076] Among them, non-key materials are materials that play a secondary role. The preset material group may include a material that is a key material and at least one material that is a non-key material. When the material to be changed in the target material change order (the material whose change implementation time needs to be evaluated) is a non-key material, the key material of the preset material group can be another material to be changed in the target material change order or a material to be changed in other material change orders. Before determining the change implementation time of the non-key material, the change implementation time of the key material can be pre-determined in accordance with steps 102 to 110.

[0077] In this embodiment, when the material group to be changed belongs to the preset material group and is a non-primary key material in the preset material group, the change implementation time of the primary key material is determined as the change implementation time of the material to be changed. This can make the change implementation time of each material in the same preset material group the same, satisfying the business scenario of replacing materials in the same group at the same time.

[0078] In one embodiment, the step of determining the quantity to be consumed of the target material to be changed in step 102 includes: determining at least one preconfigured material node; obtaining at least one data table for recording material information corresponding to at least one material node; and counting the quantity to be consumed of the target material to be changed according to the material quantity corresponding to the material node in at least one material node in at least one data table of the target material to be changed.

[0079] Among them, at least one material node can be at least one of an inventory node, an in-transit node, a supplier stocking node, a purchase application node, a production node, and other nodes. The material quantity corresponding to the inventory node can be the quantity of the material already in the warehouse. The material quantity corresponding to the in-transit node can be the quantity of the material in transit. The material quantity corresponding to the supplier stocking node can be the quantity of the material that the supplier has prepared or plans to prepare. The material quantity corresponding to the purchase application node can be the quantity of the material applied for purchase. The material quantity corresponding to the production node can be the quantity of the material expected to be produced in the production link.

[0080] Material information is information related to materials. Material information includes material quantity, organization to which the material belongs, and material cost. Material information corresponding to at least one material node can be stored in the same data table or in different data tables. For example, material information corresponding to an inventory node can be stored in an instant inventory table; material information corresponding to a production node can be stored in a production plan table.

[0081] In this embodiment, according to the material quantity corresponding to the material node in at least one material node in at least one data table of the target material to be changed, the quantity to be consumed of the target material to be changed is counted, thereby creating conditions for determining the change implementation time in the subsequent steps, and at least one material node is configurable, so that the user can configure reasonable material nodes according to business needs to determine a reasonable quantity to be consumed.

[0082] In one embodiment, step 104 includes: in the target material change order, obtaining the first field value of the target material to be changed under at least one pre-configured material attribute field; determining the pre-configured statistical time in the target material change order; obtaining a set of candidate material requirement records including material requirement times that are later than the statistical time; each candidate material requirement record in the set of candidate material requirement records includes a second field value of the required material under at least one material attribute field; from the set of candidate material requirement records, screening out multiple candidate material requirement records including second field values ​​that match the first field value; and determining the screened out multiple candidate material requirement records as multiple material requirement records that match the target material to be changed.

[0083] Among them, the material attribute field is used to describe the attribute information of the material. At least one material attribute field can be at least one of the material identification field, organization field, material category field, and material group identification field. The material identification field can be a material code field, a material name field, or others. The organization field is used to describe the organization to which the material belongs or the organization that needs to use the material. In a material change order, the field value of the organization field can represent the organization to which the material belongs; and in a material requirement record, the field value of the organization field can represent the organization that needs to use the material. The material category field is used to describe the category to which the material belongs, for example, the category of a red keyboard or a black keyboard is keyboard. The material group identification field is used to describe the material group to which the material belongs. The material group identification field can be a material group name field, a material group code field, or others.

[0084] The first field value is the field value of at least one material attribute field of the target material to be changed in the target material change order. The candidate material demand record set includes multiple candidate material demand records whose material demand time is later than the statistical time. The second field value is the field value of at least one material attribute field of the required material in the candidate required material. The second field value matches the first field value, and the second field value under the same field can be the same as the first field value.

[0085] In this embodiment, by matching the first field value of the target material to be changed under at least one material attribute field with the second field value of the required material included in each candidate material requirement record under at least one material attribute field, it is convenient to determine the material requirement record that matches the target material to be changed, creating conditions for subsequently determining the change implementation time, and at least one material attribute field is configurable, so that the matching material requirement record can be flexibly determined according to the configuration.

[0086] In one embodiment, step 106 includes: sorting multiple material requirement records from early to late according to the material requirement time included, and obtaining multiple sorted material requirement records; consuming the quantity to be consumed according to the material requirement quantity of the first material requirement record in the sorted multiple material requirement records, and determining the remaining quantity after the first material requirement record consumes the quantity to be consumed; starting from the second material requirement record in the sorted multiple material requirement records, consuming the remaining quantity after the consumption of the previous material requirement record according to the material requirement quantity in each material requirement record, and obtaining the remaining quantity after the consumption of the current material requirement record, until the remaining quantity is insufficient to fully support the consumption of the next material requirement record, and selecting the target material requirement record whose consumption can be supported by the quantity to be consumed from the current material requirement record and the next material requirement record.

[0087] In this embodiment, multiple material requirement records are sorted from early to late according to the material requirement times included, and multiple sorted material requirement records are obtained. Furthermore, when the remaining quantity is insufficient to fully support the consumption of the next material requirement record, it means that the remaining quantity can be consumed by the material requirement quantity of the current material requirement record, or the remaining quantity can be consumed by part of the material requirement quantity of the next material requirement record. It can be seen that the material requirement times of the current material requirement record and the next material requirement record are estimated to be the time when the target material to be changed is consumed. The target material requirement record is selected from the current material requirement record and the next material requirement record, so that the change implementation time can be determined more accurately.

[0088] In one embodiment, the computer device may select a target material requirement record whose quantity to be consumed can support consumption from the current material requirement record and the next material requirement record according to a preconfigured strategy. The preconfigured strategy may be a random selection strategy, a strategy of selecting an earlier material requirement record, or a strategy of selecting a later material requirement record.

[0089] In one embodiment, a computer device may calculate the difference between the quantity to be consumed and the material requirement quantity of the first material requirement record among the sorted multiple material requirement records, and obtain the remaining quantity after the first material requirement record consumes the quantity to be consumed; starting from the second material requirement record among the sorted multiple material requirement records, the computer device may calculate the difference between the remaining quantity after consumption of the previous material requirement record and the material requirement quantity in the current material requirement record, and obtain the remaining quantity after consumption of the current material requirement record, until the remaining quantity is a non-negative value and the remaining quantity is less than the material requirement quantity of the next material requirement record, and it is determined that the remaining quantity is insufficient to fully support the consumption of the next material requirement record.

[0090] For example, the quantity of material A to be consumed can be 100, and the multiple material requirement records after sorting can be material requirement record 1, material requirement record 2 and material requirement record 3, among which the material requirement quantity of material requirement record 1 is 50, the material requirement quantity of material requirement record 2 is 40, and the material requirement quantity of material requirement record 3 is 20. Then, the target material requirement record that can be consumed by the quantity to be consumed can be material requirement record 2 or material requirement record 3.

[0091] In one embodiment, the above-mentioned data processing method based on material changes also includes the following steps: in response to a material demand update event, obtaining a preconfigured lock time length; when the change implementation time of the target material to be changed exceeds the lock time length from the current time, re-execute the step of determining the quantity to be consumed of the target material to be changed to redetermine the change implementation time of the target material to be changed.

[0092] The material requirement update event is an event in which the material requirement is updated. The material requirement update event can be triggered when any of the multiple material requirement records matching the target material to be changed changes, or when a new material requirement record is generated and the material requirement time of the new material requirement record is earlier than the current change implementation time.

[0093] The lock time length is used to limit the modification opportunity of the change implementation time. The lock time length can be, for example, 7 days, 3 days, 1 day or other. When the change implementation time of the target material to be changed is not more than the lock time length from the current time, it indicates that the change implementation time is close to the current time. In order to ensure stability, the change implementation time will no longer be modified.

[0094] In this embodiment, when the material requirement update event is triggered, it indicates that the material requirement has changed, which may affect the consumption of the target material to be changed. When the change implementation time of the target material to be changed exceeds the lock time length from the current time, the change implementation time has not arrived and cannot be changed. The change implementation time is re-determined and can be updated as the material requirement changes, thereby improving the accuracy of the change implementation time.

[0095] In one embodiment, when the change implementation time of the target material to be changed exceeds the locked time length from the current time, the computer device may re-execute the step of determining the quantity to be consumed of the target material to be changed, and execute steps 104 to 110 to re-determine the change implementation time of the target material to be changed.

[0096] In one embodiment, the above-mentioned data processing method based on material changes also includes the following steps: in response to a material demand update event, re-execute the step of determining the quantity to be consumed of the target material to be changed, and execute steps 104 to 110 to re-determine the change implementation time of the target material to be changed.

[0097] In one embodiment, based on the material change evaluation process diagram shown in Figure 3, the above-mentioned data processing method based on material changes specifically includes the following steps. Among them, there are many triggering scenarios for material changes. For example, material changes can be triggered by any of the three scenarios of customer changes, design errors or design adjustments. Customer changes refer to customer requirements to change materials. Design errors refer to the need to change materials in the BOM to correct errors in product design. Design adjustment is to replace materials in the BOM with new materials to optimize product processing. For scenarios of customer changes and design errors, it is necessary to immediately execute the material change, while in the scenario of design adjustment, it is a flexible execution strategy and does not need to be executed immediately. Since it is an active optimization of product structure, the replacement cost of the old model must be fully considered, and the supplier's supply cycle for the new material must also be considered to determine the exact time for implementing the change.

[0098] When receiving the material change notification form, the computer device can determine the material to be changed in the target material change form, and determine the target material to be changed in the target material change form from the materials to be changed in the target material change form.

[0099] When determining the target material to be changed, when the material to be changed belongs to a preset material group and is the primary key material in the preset material group, the computer device determines the material to be changed as the target material to be changed. Referring to the schematic flow diagram of the material group-related data processing steps shown in FIG4, the computer device can obtain multiple preset material groups, determine whether the material to be changed matches the preset material corresponding to a preset material group, and if so, determine whether the other preset materials corresponding to the preset material group match the materials to be changed in the target material change order or other material change orders, and if so, obtain the judgment result that the material to be changed belongs to the preset material group; according to the preconfigured primary key selection method, determine the material as the primary key material from the preset material group to which the material to be changed belongs, and when the material to be changed is the primary key material, determine the material to be changed as the target material to be changed. Among them, different preset material groups can be regarded as different parent items, and the same sub-items (materials in the preset material group) can exist in different parent items. Before determining whether the material to be changed belongs to the preset material group, the primary key selection method can be preconfigured, and multiple preset material groups can be configured. Materials in the same preset material group can exist in different material change orders. In the same material change order, the expiration of the old material (material to be changed) and the effectiveness of the new material must be processed at the same time, that is, the new material will take effect at the same time as the old material becomes invalid.

[0100] The computer device can determine at least one pre-configured material node; obtain at least one data table for recording material information corresponding to at least one material node; and count the quantity of the target material to be changed to be consumed according to the material quantity corresponding to the material node in at least one material node in at least one data table of the target material to be changed.

[0101] The computer device can obtain, in the target material change order, the first field value of the target material to be changed under at least one pre-configured material attribute field, and determine the statistical time pre-configured in the target material change order; obtain a set of candidate material requirement records including materials whose requirement time is later than the statistical time; each candidate material requirement record in the set of candidate material requirement records includes a second field value of the required material under at least one material attribute field; from the set of candidate material requirement records, filter out a plurality of candidate material requirement records including a second field value that matches the first field value; and determine the filtered out plurality of candidate material requirement records as a plurality of material requirement records that match the target material to be changed.

[0102] The computer device can sort multiple material requirement records from early to late according to the material requirement time included, and obtain multiple sorted material requirement records; consume the quantity to be consumed according to the material requirement quantity of the first material requirement record in the sorted multiple material requirement records, and determine the remaining quantity after the first material requirement record consumes the quantity to be consumed; starting from the second material requirement record in the sorted multiple material requirement records, consume the remaining quantity after the consumption of the previous material requirement record according to the material requirement quantity in each material requirement record, and obtain the remaining quantity after the consumption of the current material requirement record, until the remaining quantity is insufficient to fully support the consumption of the next material requirement record, and select from the current material requirement record and the next material requirement record The target material requirement record whose quantity to be consumed can support consumption.

[0103] The computer device can determine the material demand time in the target material demand record as the change implementation time of the target material to be changed, and update the change implementation time of the target material to be changed to the target material change order and the BOM where the target material to be changed is located, corresponding to the target material to be changed. For other materials that belong to the same preset material group as the target material to be changed and are non-primary key materials, the change implementation time of each other material is updated according to the change implementation time of the target material to be changed.

[0104] When the material to be changed belongs to a preset material group and is a non-primary key material in the preset material group, the computer device can obtain the change implementation time of the primary key material in the preset material group that is predetermined; and determine the change implementation time of the primary key material as the change implementation time of the material to be changed.

[0105] The computer device can obtain a preconfigured lock time length in response to a material demand update event; when the change implementation time of the target material to be changed exceeds the lock time length from the current time, the change implementation time of the target material to be changed is re-determined.

[0106] In the execution process of the above-mentioned data processing method based on material changes, when obtaining data from the database (such as obtaining a target material change order, obtaining a preset material group, obtaining at least one data table, obtaining multiple material demand records, or other data acquisition from the database), a database computing engine (such as a memory database computing engine, a distributed database computing engine) is used to obtain data, which can realize hot plugging and fast data acquisition; after the data is obtained, the obtained data is compressed and decompressed by byte stream, and then the data is processed and stored in batches to reduce the pressure on the database. In addition, in the process of performing calculations based on the obtained data, the RabbitMQ distributed multi-container computing mode and the batch computing mode are used to solve the calculation of large-scale data volumes, and the asynchronous thread method is used to realize process control. Among them, RabbitMQ is a message queue implemented based on AMQP (Advanced Message Queue Advanced Message Queue Protocol).

[0107] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0108] Based on the same inventive concept, the embodiment of the present application also provides a data processing device based on material changes for implementing the data processing method based on material changes involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the one or more data processing device embodiments based on material changes provided below can refer to the limitations of the data processing method based on material changes above, and will not be repeated here.

[0109] In an exemplary embodiment, as shown in FIG5 , a data processing device 500 based on material changes is provided, comprising: a material change order acquisition module 510, a to-be-changed material data processing module 520, a material demand record acquisition module 530, and a change implementation time determination module 540, wherein:

[0110] The material change order acquisition module 510 is used to acquire the target material change order.

[0111] The material to be changed data processing module 520 is used to determine the target material to be changed in the target material change order, and determine the quantity to be consumed of the target material to be changed.

[0112] The material requirement record acquisition module 530 is used to acquire multiple material requirement records matching the target material to be changed, each material requirement record including the material requirement quantity and the material requirement time.

[0113] The change implementation time determination module 540 is used to determine the target material requirement record that can be consumed by the quantity to be consumed in multiple material requirement records according to the material requirement quantity in each material requirement record; and determine the change implementation time of the target material to be changed according to the material requirement time in the target material requirement record.

[0114] In one embodiment, the material to be changed data processing module 520 is also used to determine the material to be changed in the target material change order; when the material to be changed belongs to a preset material group and is the primary key material in the preset material group, the material to be changed is determined as the target material to be changed.

[0115] In one embodiment, the change implementation time determination module 540 is also used to obtain the change implementation time of the primary key material in the preset material group when the material to be changed belongs to the preset material group and is a non-primary key material in the preset material group; and determine the change implementation time of the primary key material as the change implementation time of the material to be changed.

[0116] In one embodiment, the material data processing module 520 for changing materials is also used to determine at least one pre-configured material node; obtain at least one data table for recording material information corresponding to at least one material node; and count the quantity of the target material to be changed to be consumed according to the material quantity corresponding to the material node in at least one material node in at least one data table of the target material to be changed.

[0117] In one embodiment, the material requirement record acquisition module 530 is also used to obtain the first field value of the target material to be changed under at least one pre-configured material attribute field in the target material change order; determine the statistical time pre-configured in the target material change order; obtain a set of candidate material requirement records including material requirement times that are later than the statistical time; each candidate material requirement record in the set of candidate material requirement records includes a second field value of the required material under at least one material attribute field; from the set of candidate material requirement records, filter out multiple candidate material requirement records including second field values ​​that match the first field value; and determine the multiple filtered candidate material requirement records as multiple material requirement records that match the target material to be changed.

[0118] In one embodiment, the change implementation time determination module 540 is also used to sort multiple material requirement records from early to late according to the material requirement time included, and obtain multiple sorted material requirement records; consume the quantity to be consumed according to the material requirement quantity of the first material requirement record in the sorted multiple material requirement records, and determine the remaining quantity after the first material requirement record consumes the quantity to be consumed; starting from the second material requirement record in the sorted multiple material requirement records, consume the remaining quantity after the consumption of the previous material requirement record according to the material requirement quantity in each material requirement record, and obtain the remaining quantity after the consumption of the current material requirement record, until the remaining quantity is insufficient to fully support the consumption of the next material requirement record, and select the target material requirement record whose consumption can be supported by the quantity to be consumed from the current material requirement record and the next material requirement record.

[0119] In one embodiment, the above-mentioned material change-based data processing device 500 also includes an update module, which is used to respond to a material demand update event and obtain a preconfigured lock time length; when the change implementation time of the target material to be changed exceeds the lock time length from the current time, the step of determining the quantity to be consumed of the target material to be changed is re-executed to redetermine the change implementation time of the target material to be changed.

[0120] Each module in the above-mentioned data processing device based on material change can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0121] In an exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be shown in FIG6. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data to be stored when executing the above-mentioned data processing method based on material changes. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a data processing method based on material changes is implemented.

[0122] Those skilled in the art will understand that the structure shown in FIG. 6 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0123] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0124] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0125] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0126] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0127] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0128] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A data processing method based on material changes, characterized in that: The method comprises: Obtain a target material change order, determine the target material to be changed in the target material change order, and determine the quantity to be consumed of the target material to be changed; Acquire multiple material requirement records matching the target material to be changed, each material requirement record including a material requirement quantity and a material requirement time; According to the material requirement quantity in each material requirement record, determine the target material requirement record that can be consumed by the quantity to be consumed in the multiple material requirement records; The change implementation time of the target material to be changed is determined according to the material demand time in the target material demand record.

2. The method according to claim 1, characterized in that Determining the target material to be changed in the target material change order includes: Determine the material to be changed in the target material change order; When the material to be changed belongs to a preset material group and is a key material in the preset material group, the material to be changed is determined as a target material to be changed.

3. The method according to claim 2, characterized in that The method further comprises: When the material to be changed belongs to a preset material group and is a non-key material in the preset material group, a predetermined change implementation time of the key material in the preset material group is obtained; The change implementation time of the primary key material is determined as the change implementation time of the material to be changed.

4. The method according to claim 1, characterized in that: Determining the quantity of the target material to be changed to be consumed includes: Determining at least one preconfigured material node; Acquire at least one data table for recording material information corresponding to the at least one material node; According to the material quantity corresponding to the material node in at least one material node in the at least one data table of the target material to be changed, the quantity to be consumed of the target material to be changed is counted.

5. The method according to claim 1, characterized in that The obtaining of a plurality of material demand records matching the target material to be changed includes: In the target material change order, obtaining a first field value of the target material to be changed under at least one pre-configured material attribute field; Determine the statistical time preconfigured in the target material change order; Acquire a set of candidate material demand records including material demand times later than the statistical time; each candidate material demand record in the set of candidate material demand records includes a second field value of the demanded material under the at least one material attribute field; Filtering out, from the candidate material requirement record set, a plurality of candidate material requirement records whose second field value matches the first field value; The screened multiple candidate material requirement records are determined as multiple material requirement records that match the target material to be changed.

6. The method according to claim 1, characterized in that The determining, in sequence according to the material requirement quantity in each material requirement record, a target material requirement record that can be supported by the quantity to be consumed in the multiple material requirement records includes: Sorting the plurality of material demand records from earliest to latest according to the material demand time included therein, to obtain a plurality of sorted material demand records; Consuming the quantity to be consumed according to the material demand quantity of the first material demand record among the sorted multiple material demand records, and determining the remaining quantity after the first material demand record consumes the quantity to be consumed; Starting from the second material requirement record among the sorted multiple material requirement records, consume the remaining quantity after consumption of the previous material requirement record according to the material requirement quantity in each material requirement record, and obtain the remaining quantity after consumption of the current material requirement record, until the remaining quantity is insufficient to fully support the consumption of the next material requirement record, select the target material requirement record whose consumption can be supported by the quantity to be consumed from the current material requirement record and the next material requirement record.

7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: In response to a material requirement update event, obtaining a preconfigured lock time length; When the change implementation time of the target material to be changed is more than the locked time length away from the current time, the step of determining the quantity to be consumed of the target material to be changed is re-executed to re-determine the change implementation time of the target material to be changed.

8. A data processing device based on material changes, characterized in that: The device comprises: Material change order acquisition module, used to obtain the target material change order; The data processing module for materials to be changed is used to determine the target materials to be changed in the target material change order, and determine the quantity to be consumed of the target materials to be changed; A material requirement record acquisition module, used to acquire multiple material requirement records matching the target material to be changed, each material requirement record including a material requirement quantity and a material requirement time; The change implementation time determination module is used to determine, in turn, according to the material requirement quantity in each material requirement record, the target material requirement record that can be supported by the quantity to be consumed in the multiple material requirement records; and determine the change implementation time of the target material to be changed according to the material requirement time in the target material requirement record.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Material change management method, device and equipment and computer readable storage medium

    CN119273284A

  • Raw material replacement method and device, equipment and storage medium

    CN119850294A

  • Raw material replacement method, device, apparatus, and storage medium

    CN119850294B