Difference report generation method and device, electronic equipment and storage medium
By building an index tree in the process file maintenance system and generating a change difference report, the problem of difficult to quickly and accurately view the process file change review in the existing technology is solved, and the rapid and accurate viewing of process file change content is achieved and the efficiency of reviewing the process file change content is improved.
Patent Information
- Application Number
- CN202411034833.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-12-20
AI Technical Summary
In the process file change review, it is difficult to quickly and accurately view the change content, causing the reviewer to ignore the change details and affect efficiency.
By building an index tree, determining the target path in the process file maintenance system, generating a change difference report, and using the change difference report template and document, automatically generating a change difference report of the process file to achieve quick and accurate view of the change content.
It realizes quick and accurate viewing of the change content of process documents, clarifies the change points, improves the review efficiency, and ensures the accuracy and completeness of the changed content.
Smart Images

Figure CN119167914A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a difference report generating method, device, electronic device and storage medium. Background Art
[0002] Most of the existing manufacturing companies still use paper process documents. Even if they use electronic process documents, it is just a change in the presentation format, moving the documents from paper to electronic software. Changes to process documents are also managed through task management plug-ins.
[0003] The existing task management plug-in control only explains the change point. The specific content and details of the change still require employees to find the change location and compare it by themselves, which is not convenient for employees to quickly understand the process change point. For the change reviewers, because the process files are often large and take a long time to open or download, the reviewers only view the content of the change from the information filled in the interface, and often ignore the specific information and details of the change, resulting in the inability to quickly and accurately view the change content. Summary of the invention
[0004] The present invention provides a difference report generation method, device, electronic equipment and storage medium, which are used to automatically generate a change difference report of a target process file, thereby realizing rapid and accurate viewing of the change content.
[0005] The present invention provides a method for generating a difference report, comprising the following steps: Receive engineering change messages to target process files; Based on a pre-constructed index tree, determining a target path for storing the target process file in the process file maintenance system, and creating a change difference report folder and a process file change folder in the target path, wherein the index tree is constructed based on process file names of all levels in the process file maintenance system and their corresponding paths; Based on the engineering change message, the target process file in the target path is changed, and the changed target process file is stored in the process file change folder; Based on the change information of the target process file, generating a change information document of the target process file in the change difference report folder; A change difference report of the target process file is generated based on the change difference report template and the change information document.
[0006] According to a difference report generation method provided by the present invention, the target path for storing the target process file is determined in the process file maintenance system based on the pre-built index tree, including: Based on the file name of the target process file, searching in the index tree, determining a target node in the index tree that matches the name of the target process file; The path of the target node is used as the target path of the target process file.
[0007] According to a difference report generation method provided by the present invention, after generating a change information document of the target process file in the change difference report folder based on the change information of the change of the target process file, the method further includes: Based on the change information document, the process rules and process flow list of the target process file stored in the change management database are updated. The change management database is a database pre-constructed in the process file maintenance system, and the change management database includes the process rules and process flow list of each process file in the process file maintenance system.
[0008] According to a difference report generation method provided by the present invention, the change difference report of the target process file is generated based on the change difference report template and the change information document, including: Sending the change difference report template and the change information document to a change management database, so that after receiving the change difference report template and the change information document, the change management database obtains the content before the change from the target path, compares the content of the target process file before the change with the content of the target process file after the change, and after determining that the content before and after the change are inconsistent, generates a change difference report based on the change difference report template and the obtained content of the target process file before the change and the obtained content of the target process file after the change; The change difference report template is pre-built and contains a display template of all fields of the process file in the change management database; The change information document includes the content of the target process file before the change and the content of the target process file after the change; the database compares the content of the target process file before the change with the content of the target process file after the change based on semantic similarity.
[0009] A difference report generation method provided by the present invention also includes: Receiving a difference information viewing request from the process document maintenance system; Based on the index tree, traverse the process file paths in the process file maintenance system to determine all change difference report folders in the process file maintenance system; Extract change information documents from all change difference report folders in the process file maintenance system to obtain all change documents in the process file maintenance system, and generate a change difference report for the process file maintenance system based on all change documents and the change difference report template.
[0010] According to a difference report generation method provided by the present invention, before changing the target process file in the target path based on the engineering change message, the method further includes: Based on the target path, the target process file is acquired, and based on the process file change folder, the changed target process file is acquired; Based on the semantic similarity, a text comparison is performed between the target process file and the target process file after the change, and it is determined that the target process file is different from the target process file after the change.
[0011] According to a difference report generation method provided by the present invention, after receiving the engineering change message of the target process file, the method further includes: Trigger the engineering change application process of the product lifecycle management system and determine whether the engineering change application process is approved.
[0012] The present invention also provides a difference report generating device, comprising the following modules: A receiving module, used for receiving an engineering change message of a target process file; An index module, used for determining a target path for storing the target process file in the process file maintenance system based on a pre-built index tree, and creating a change difference report folder and a process file change folder in the target path, wherein the index tree is built based on process file names of all levels in the process file maintenance system and their corresponding paths; A change module, used for changing the target process file in the target path based on the engineering change message, and storing the changed target process file in the process file change folder; A document generation module, configured to generate a change information document of the target process file in the change difference report folder based on the change information of the target process file; The report generation module is used to generate a change difference report of the target process file based on the change difference report template and the change information document.
[0013] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any of the above-mentioned difference report generating methods is implemented.
[0014] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the difference report generating method as described in any one of the above is implemented.
[0015] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the difference report generating method as described above is implemented.
[0016] The difference report generation method, device, electronic device and storage medium provided by the present invention can automatically generate a change difference report of the target process file by changing the difference report template and the obtained change information document, thereby realizing a quick and accurate review of the change content. At the same time, auditors or production employees can directly and clearly see the differences before and after the change, and clarify the specific change points, so that employees can quickly become familiar with the change points and apply them to actual operations. Auditors can also quickly see the content of the change and review the content of the change in more detail. For the initiator of the change, they can also directly see whether the content of the change is consistent with the content of the change they expect, whether there are any missing changes or change errors, or accidental deletions. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 It is a flow chart of the difference report generating method provided by the present invention.
[0019] Figure 2 It is a schematic diagram of the database structure of the change management database provided by the present invention.
[0020] Figure 3 It is a schematic diagram of a change difference report provided by the present invention.
[0021] Figure 4 It is a schematic diagram of memory process change provided by the present invention.
[0022] Figure 5 This is one of the ECN change schematic diagrams provided by the present invention.
[0023] Figure 6 This is the second ECN change schematic diagram provided by the present invention.
[0024] Figure 7 It is a schematic diagram of the memory process change difference report provided by the present invention.
[0025] Figure 8 It is a structural schematic diagram of the difference report generating device provided by the present invention.
[0026] Fig. 9 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0027] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0028] Figure 1 is a flow chart of the difference report generation method provided by the present invention, such as Figure 1 As shown, the method includes the following: Step 110, receiving an engineering change message for a target process file; Step 120, based on a pre-constructed index tree, determining a target path for storing the target process file in the process file maintenance system, and creating a change difference report folder and a process file change folder in the target path, wherein the index tree is constructed based on process file names of all levels in the process file maintenance system and their corresponding paths; Step 130, based on the engineering change message, changing the target process file in the target path, and storing the changed target process file in the process file change folder; Step 140, generating a change information document of the target process file in the change difference report folder based on the change information of the target process file; Step 150: Generate a change difference report of the target process file based on a change difference report template and the change information document.
[0029] The execution subject of the difference report generation method provided by the present invention can be an electronic device, a component in an electronic device, an integrated circuit, or a chip. The electronic device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a palmtop computer, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device can be a server, a network attached storage (Network Attached Storage, NAS) or a personal computer (personal computer, PC), etc., which is not specifically limited by the present invention.
[0030] The following takes the difference report generation method provided by the present invention executed by a computer as an example to describe the technical solution of the present invention in detail.
[0031] In step 110, an engineering change message for a target process file is received.
[0032] Receive engineering change notices (ECN) from departments such as design, production or quality management.
[0033] The target process file is a main technical file containing process rules and process flow lists, which is used to guide product processing and worker operations. The engineering change message is a message that makes substantial changes to the process rules or process flow lists in the process file.
[0034] In step 120, based on a pre-constructed index tree, a target path for storing the target process file is determined in the process file maintenance system, and a change difference report folder and a process file change folder are created in the target path. The index tree is constructed based on the process file names of all levels in the process file maintenance system and their corresponding paths.
[0035] The process document maintenance system can be a pre-built digital process software system.
[0036] By using the pre-built index tree, the system can quickly locate the specific storage location (i.e., target path) of the target process file in the process file maintenance system. Once the target path is found, two folders are created under the path: a change difference report folder and a process file change folder.
[0037] The index tree is constructed based on the process file names and their corresponding paths at all levels in the process file maintenance system. This structured data management method can greatly improve the efficiency of file retrieval.
[0038] In step 130, based on the engineering change message, the target process file in the target path is changed, and the changed target process file is stored in the process file change folder.
[0039] According to the specific instructions in the engineering change message, make necessary modifications to the target process file under the target path. After the modification is completed, the new process file is stored in the process file change folder created previously.
[0040] In step 140 , based on the change information of the target process file, a change information document of the target process file is generated in the change difference report folder.
[0041] Based on all the changes made to the target process files, the system automatically generates a detailed change information document in the change difference report folder. This document is a comprehensive record of the change process.
[0042] In step 150, a change difference report of the target process file is generated based on a change difference report template and the change information document.
[0043] Using the predefined change difference report template, the change difference report template can fully and accurately reflect the change situation. Optionally, the format of the constructed change difference report template is a spreadsheet format. This template contains all the fields for the changes to the process file. This template divides the content of each field into two parts, namely before the change and after the change.
[0044] Based on the pre-defined change difference report template and the generated change information document, a change difference report for the target process file is automatically generated.
[0045] The difference report generation method provided by the present invention can automatically generate a change difference report of the target process file by changing the difference report template and the obtained change information document, thereby realizing a quick and accurate review of the change content. At the same time, auditors or production employees can directly and clearly see the differences before and after the change, and clarify the specific change points, so that employees can quickly become familiar with the change points and apply them to actual operations. Auditors can also quickly see the change content and review the change content more specifically. For the change initiator, they can also directly see whether the change content is consistent with the change content they expect, whether there are any missing changes or change errors, or accidental deletions.
[0046] In one embodiment, based on a pre-constructed index tree, a target path for storing the target process file is determined in a process file maintenance system, including: based on the file name of the target process file, searching in the index tree to determine a target node in the index tree that matches the name of the target process file; and using the path of the target node as the target path of the target process file.
[0047] Define the basic structure of the index tree, which usually includes a set of nodes and edges. Each node represents a process file or directory, while the edge represents the hierarchical relationship between these files or directories.
[0048] Traverse all process files and directories in the process file maintenance system, and add their names and corresponding full path information to the index tree. Specifically, each node stores the name of the file and a pointer to its child nodes (or a list of pointers, if the file can have multiple subdirectories). At the same time, for fast retrieval, it may also be necessary to store the reference or path information of the parent node in the node (depending on the specific implementation of the index tree).
[0049] According to the actual hierarchical structure in the file system, the hierarchical relationship of the index tree is constructed level by level. Starting from the root node (usually representing the top-level directory of the system), child nodes are added level by level until all process files and directories are correctly added to the index tree.
[0050] The specific traversal process is: in the index tree, traverse from the root node. The root node represents the top-level directory of the file system and is the starting point of the search.
[0051] During the traversal process, the name of the current node is compared with the name of the target process file. If the names match, the target path of the target process file can be determined directly or indirectly, depending on how the index tree is built (whether the full path information or parent node references are stored).
[0052] If the name of the current node does not match the target, but the current node has child nodes, then recursively search those child nodes until a matching node is found or all possible paths are exhausted.
[0053] Once a node matching the target process file name is found, its target path can be determined based on the location of the node in the index tree.
[0054] In one embodiment, after generating a change information document of the target process file in the change difference report folder based on the change information of the change to the target process file, it also includes: based on the change information document, updating the process rules and process flow list of the target process file stored in the change management database, the change management database is a database pre-constructed in the process file maintenance system, and the change management database includes the process rules and process flow list of each process file in the process file maintenance system.
[0055] Pre-build a change management database, which includes the process rules of each process file in the process file maintenance system and the Bill of Process (BOP) rules. Figure 2 The database structure diagram of the change management database provided by the present invention is shown as follows. Each part in the database is stored in two columns, and is arranged in chronological order as a pre-change version and a post-change version. Specifically, it includes process rules before change, process rules after change, BOP rules before change, and BOP rules after change.
[0056] The process rule includes the process rule ID, process rule name, process rule version, applicable model, business meaning description, entry condition, effective condition, and rule operation result. The process BOP rule includes the BOP ID, BOP name, BOP version, operation requirement description, attachments, feeding rules, effective condition, main process / subsidiary process, electrostatic protection requirements, process resources (tools, fixtures), precautions, and process purpose.
[0057] An interface can be established in the change management database, which only receives the process and procedure data in the folder named EC+date+changed process file name+changed process file version number.
[0058] The process rules and process flow list may be stored in the change management database in the form of codes.
[0059] In one embodiment, a change difference report of the target process file is generated based on a change difference report template and the change information document, including: sending the change difference report template and the change information document to a change management database, so that after receiving the change difference report template and the change information document, the change management database obtains the content before the change from the target path, compares the content of the target process file before the change with the content of the target process file after the change, and after determining that the content before and after the change are inconsistent, generates a change difference report based on the change difference report template and the obtained content of the target process file before the change and the obtained content of the target process file after the change; the change difference report template is pre-constructed and contains a display template of all fields of the process file in the change management database; the change information document includes the content of the target process file before the change and the content of the target process file after the change; the database compares the content of the target process file before the change with the content of the target process file after the change based on semantic similarity.
[0060] The change difference report template is pre-built, which contains the display template of all fields of the process file in the change management database, and is used to guide how to generate a structured difference report. The change information document contains the content before and after the target process file is changed, and is the data source required to generate the difference report.
[0061] Send the change difference report template and change information document to the change management database. After receiving the change difference report template and change information document, the change management database first verifies and analyzes the data to ensure the integrity and accuracy of the data.
[0062] According to the target path provided in the change information document (or the path recorded inside the database), the change management database obtains the target process file content before the change from the corresponding storage location.
[0063] Based on semantic similarity analysis, the change management database compares the target process file content before the change with the target process file content after the change. Based on the comparison results, the change management database determines whether there is any inconsistency between the content before and after the change. If there is an inconsistency, the next step is to generate a change difference report.
[0064] Using the pre-built change difference report template, combined with the target process file content before and after the change obtained from the change information document, the change management database begins to generate a change difference report. The generated change difference report can be as follows: Figure 3 The change difference report provided by the present invention is shown in the schematic diagram. The report should clearly show the changes of each field or part, including the content before the change, the specific content after the change, and the description or comments of the change.
[0065] The generated change difference report can be formatted to ensure that it is easy to read and understand.
[0066] In one embodiment, the method further includes: receiving a difference information viewing request from the process file maintenance system; traversing the process file paths in the process file maintenance system based on the index tree to determine all change difference report folders in the process file maintenance system; extracting change information documents from all change difference report folders in the process file maintenance system to obtain all change documents in the process file maintenance system, and generating a change difference report for the process file maintenance system based on all change documents and the change difference report template.
[0067] By using the index tree constructed previously, you can quickly locate the root directory or the specified starting point of the process file maintenance system.
[0068] Each node in the index tree is systematically traversed using depth-first search (DFS), breadth-first search (BFS), or other suitable traversal algorithms.
[0069] During the traversal process, the folders used to store the change difference report are identified. For each identified change difference report folder, the change information document therein is accessed and read.
[0070] Parse the extracted change information documents to extract key information such as change description, scope of impact, implementation date, etc. This information will be used to generate the final change difference report.
[0071] Load a preset change difference report template. This template defines the format, structure and content organization of the report.
[0072] Fill in each part of the change difference report template according to the key information extracted from the change information document. Convert the filled change difference report template into the final change difference report file.
[0073] In one embodiment, before changing the target process file in the target path based on the engineering change message, the method further includes: obtaining the target process file based on the target path, and obtaining the changed target process file based on the process file change folder; and performing a text comparison between the target process file and the changed target process file based on semantic similarity to determine that the target process file is different from the changed target process file.
[0074] Before comparison, it is usually necessary to pre-process the text content of the process files before and after the change. This includes removing irrelevant format information (such as spaces, line breaks, comments, etc.), word segmentation, and removing stop words, so as to more accurately compare the essence of the file content.
[0075] Semantic similarity analysis is used to evaluate the similarity of the content of two files. Semantic similarity analysis takes into account factors such as the contextual meaning of words, sentence structure, and paragraph theme, and can more accurately reflect the differences in file content.
[0076] Determine the difference between the target process file and the changed target process file through the results of semantic similarity analysis
[0077] In one embodiment, after receiving the engineering change message for the target process file, the method further includes: triggering an engineering change application process of the product lifecycle management system, and determining whether the engineering change application process is approved.
[0078] After receiving the engineering change message for the target process file, an engineering change ECN approval process can be initiated for the target file in the process file maintenance system, and the approval is confirmed.
[0079] The change process can only be continued after the product lifecycle management system PLM is approved. Optional, the specific change implementation process can be: like Figure 4 The memory process change diagram provided by the present invention is shown. PLM includes a variety of operation processes, such as chassis upper limit, CPU installation, and memory installation. When a user initiates an ECN change to a process file, after PLM passes, it is also necessary to confirm that the Engineering Change Request (ECR) has been reviewed and approved. Based on the process file maintenance system TCM, it automatically searches for the model name corresponding to this process file and searches for the corresponding model name file directory, and automatically creates a folder under the model name file directory, named EC+date+changed process file name+changed process file version number, and then automatically creates a change difference report folder under this folder.
[0080] The user then makes changes to the process BOP, such as Figure 5As shown in one of the ECN change schematic diagrams provided by the present invention. When an ECN change is initiated for a process, such as an ECN revision, the system will automatically search for the version number of this process file, and search for a folder named EC+date+changed process file name+changed process file version number with +0.1 version number. When the version number in the folder matches the +0.1 version number, the folder for the process BOP change is automatically created in the folder named EC+date+changed process file name+changed process file version number, and is named with the BOP ID number+version number.
[0081] Then the user initiates ECN changes to specific processes, such as when revising ECN. Figure 6 As shown in the second ECN change diagram provided by the present invention, the system automatically searches for the process folder in a folder named EC+date+changed process file name+changed process file version number and automatically creates two folders in this folder, named process ID+version number+before change and process ID+version number+after change. In the folder before change, the BOP before change is automatically copied and stored in this folder. Then the user changes the BOP, and after the change is completed and saved, the system automatically stores the saved BOP in the folder after change; When the user completes the change, the ECN approval process needs to be initiated for the process file in TCM. When this process is triggered, the process and process data in the folder named EC+date+changed process file name+changed process file version number will be automatically transferred to the change management database. At this time, the database will automatically compare the data content before and after the change. When the content before and after the change is different, the system assumes that this part has changed and marks this part of the data.
[0082] When using one-click to generate a change difference report, the database calls the difference report template by default, and judges the content in the database and the content in the template. When the data is the same (such as process rules), the database passes the marked data to the difference report template. After the spreadsheet file is generated, it is automatically stored in the change difference report folder. When the user confirms that there is no problem and clicks Finish, the system automatically passes the change difference report as an attachment to the PLM system for the regular approval process. The generated change difference report can be Figure 7 The memory process change difference report provided by the present invention is shown in a schematic diagram.
[0083] The difference report generating device provided by the present invention is described below. The difference report generating device described below and the difference report generating method described above can be referred to each other.
[0084] like Figure 8As shown, the device comprises: A receiving module 810, for receiving an engineering change message for a target process file; An index module 820 is used to determine a target path for storing the target process file in the process file maintenance system based on a pre-constructed index tree, and to create a change difference report folder and a process file change folder in the target path, wherein the index tree is constructed based on the process file names of all levels in the process file maintenance system and their corresponding paths; a change module 830 is used to change the target process file in the target path based on the engineering change message, and to store the changed target process file in the process file change folder; A document generation module 840, configured to generate a change information document of the target process file in the change difference report folder based on the change information of the target process file; The report generation module 850 is used to generate a change difference report of the target process file based on the change difference report template and the change information document.
[0085] The difference report generation device provided by the present invention can automatically generate a change difference report for the target process file by changing the difference report template and the obtained change information document, thereby realizing a quick and accurate review of the change content. At the same time, auditors or production employees can directly and clearly see the differences before and after the change, and identify the specific change points, so that employees can quickly become familiar with the change points and apply them to actual operations. Auditors can also quickly see the change content and review the change content more specifically. For the initiator of the change, they can also directly see whether the change content is consistent with the change content they expect, whether there are any missing changes or change errors, or accidental deletions.
[0086] In one embodiment, the changing module 830 is specifically used to: Determining a target path for storing the target process file in the process file maintenance system based on the pre-built index tree includes: Based on the file name of the target process file, searching in the index tree, determining a target node in the index tree that matches the name of the target process file; The path of the target node is used as the target path of the target process file.
[0087] In one embodiment, the document generation module 840 is specifically used to: After generating a change information document of the target process file in the change difference report folder based on the change information of the target process file, the method further includes: Based on the change information document, the process rules and process flow list of the target process file stored in the change management database are updated. The change management database is a database pre-constructed in the process file maintenance system, and the change management database includes the process rules and process flow list of each process file in the process file maintenance system.
[0088] In one embodiment, the document generation module 840 is further specifically configured to: Based on the change difference report template and the change information document, a change difference report of the target process file is generated, including: Sending the change difference report template and the change information document to a change management database, so that after receiving the change difference report template and the change information document, the change management database obtains the content before the change from the target path, compares the content of the target process file before the change with the content of the target process file after the change, and after determining that the content before and after the change are inconsistent, generates a change difference report based on the change difference report template and the obtained content of the target process file before the change and the obtained content of the target process file after the change; The change difference report template is pre-built and contains a display template of all fields of the process file in the change management database; The change information document includes the content of the target process file before the change and the content of the target process file after the change; the database compares the content of the target process file before the change with the content of the target process file after the change based on semantic similarity.
[0089] In one embodiment, the document generation module 840 is further specifically configured to: Receiving a difference information viewing request from the process document maintenance system; Based on the index tree, traverse the process file paths in the process file maintenance system to determine all change difference report folders in the process file maintenance system; Extract change information documents from all change difference report folders in the process file maintenance system to obtain all change documents in the process file maintenance system, and generate a change difference report for the process file maintenance system based on all change documents and the change difference report template.
[0090] In one embodiment, the changing module 830 is further specifically configured to: Before changing the target process file in the target path based on the engineering change message, the method further includes: Based on the target path, the target process file is acquired, and based on the process file change folder, the changed target process file is acquired; Based on the semantic similarity, a text comparison is performed between the target process file and the target process file after the change, and it is determined that the target process file is different from the target process file after the change.
[0091] In one embodiment, the receiving module 810 is specifically configured to: After receiving the engineering change message of the target process file, the method further includes: Trigger the engineering change application process of the product lifecycle management system and determine whether the engineering change application process is approved.
[0092] Fig. 9 An example of a physical structure diagram of an electronic device is shown in FIG. Fig. 9 As shown, the electronic device may include: a processor 910, a communications interface 920, a memory 930 and a communication bus 940, wherein the processor 910, the communications interface 920 and the memory 930 communicate with each other through the communication bus 940. The processor 910 may call the logic instructions in the memory 930 to execute the difference report generation method, which includes: receiving an engineering change message for a target process file; Based on a pre-constructed index tree, determining a target path for storing the target process file in the process file maintenance system, and creating a change difference report folder and a process file change folder in the target path, wherein the index tree is constructed based on process file names of all levels in the process file maintenance system and their corresponding paths; Based on the engineering change message, the target process file in the target path is changed, and the changed target process file is stored in the process file change folder; Based on the change information of the target process file, generating a change information document of the target process file in the change difference report folder; A change difference report of the target process file is generated based on the change difference report template and the change information document.
[0093] In addition, the logic instructions in the above-mentioned memory 930 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0094] On the other hand, the present invention further provides a computer program product, the computer program product includes a computer program, the computer program can be stored in a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the difference report generation method provided by the above methods, the method includes: receiving an engineering change message for a target process file; Based on a pre-constructed index tree, determining a target path for storing the target process file in the process file maintenance system, and creating a change difference report folder and a process file change folder in the target path, wherein the index tree is constructed based on process file names of all levels in the process file maintenance system and their corresponding paths; Based on the engineering change message, the target process file in the target path is changed, and the changed target process file is stored in the process file change folder; Based on the change information of the target process file, generating a change information document of the target process file in the change difference report folder; A change difference report of the target process file is generated based on the change difference report template and the change information document.
[0095] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the difference report generation method provided by the above methods is implemented, and the method includes: Receive engineering change messages to target process files; Based on a pre-constructed index tree, determining a target path for storing the target process file in the process file maintenance system, and creating a change difference report folder and a process file change folder in the target path, wherein the index tree is constructed based on process file names of all levels in the process file maintenance system and their corresponding paths; Based on the engineering change message, the target process file in the target path is changed, and the changed target process file is stored in the process file change folder; Based on the change information of the target process file, generating a change information document of the target process file in the change difference report folder; A change difference report of the target process file is generated based on the change difference report template and the change information document.
[0096] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0097] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0098] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for generating a difference report, It is characterized in that The method comprises: Receive engineering change messages to target process files; Based on a pre-constructed index tree, determining a target path for storing the target process file in the process file maintenance system, and creating a change difference report folder and a process file change folder in the target path, wherein the index tree is constructed based on process file names of all levels in the process file maintenance system and their corresponding paths; Based on the engineering change message, the target process file in the target path is changed, and the changed target process file is stored in the process file change folder; Based on the change information of the target process file, generating a change information document of the target process file in the change difference report folder; A change difference report of the target process file is generated based on the change difference report template and the change information document.
2. The method for generating a difference report according to claim 1, It is characterized in that The step of determining a target path for storing the target process file in the process file maintenance system based on the pre-built index tree includes: Based on the file name of the target process file, searching in the index tree, determining a target node in the index tree that matches the name of the target process file; The path of the target node is used as the target path of the target process file.
3. The method for generating a difference report according to claim 1, It is characterized in that After generating a change information document of the target process file in the change difference report folder based on the change information of the target process file, the method further includes: Based on the change information document, the process rules and process flow list of the target process file stored in the change management database are updated. The change management database is a database pre-constructed in the process file maintenance system, and the change management database includes the process rules and process flow list of each process file in the process file maintenance system.
4. The method for generating a difference report according to claim 3, It is characterized in that The generating a change difference report of the target process file based on the change difference report template and the change information document includes: Sending the change difference report template and the change information document to a change management database, so that after receiving the change difference report template and the change information document, the change management database obtains the content before the change from the target path, compares the content of the target process file before the change with the content of the target process file after the change, and after determining that the content before and after the change are inconsistent, generates a change difference report based on the change difference report template and the obtained content of the target process file before the change and the obtained content of the target process file after the change; The change difference report template is pre-built and contains a display template of all fields of the process file in the change management database; The change information document includes the content of the target process file before the change and the content of the target process file after the change; the database compares the content of the target process file before the change with the content of the target process file after the change based on semantic similarity.
5. The method for generating a difference report according to claim 1, It is characterized in that Also includes: Receiving a difference information viewing request from the process document maintenance system; Based on the index tree, traverse the process file paths in the process file maintenance system to determine all change difference report folders in the process file maintenance system; Extract change information documents from all change difference report folders in the process file maintenance system to obtain all change documents in the process file maintenance system, and generate a change difference report for the process file maintenance system based on all change documents and the change difference report template.
6. The method for generating a difference report according to claim 1, It is characterized in that Before changing the target process file in the target path based on the engineering change message, the method further includes: Based on the target path, the target process file is acquired, and based on the process file change folder, the changed target process file is acquired; Based on the semantic similarity, a text comparison is performed between the target process file and the target process file after the change, and it is determined that the target process file is different from the target process file after the change.
7. The method for generating a difference report according to claim 1, It is characterized in that After receiving the engineering change message of the target process file, the method further includes: Trigger the engineering change application process of the product lifecycle management system and determine whether the engineering change application process is approved.
8. A difference report generating device, It is characterized in that include: A receiving module, used for receiving an engineering change message of a target process file; An index module, used for determining a target path for storing the target process file in the process file maintenance system based on a pre-built index tree, and creating a change difference report folder and a process file change folder in the target path, wherein the index tree is built based on process file names of all levels in the process file maintenance system and their corresponding paths; A change module, used for changing the target process file in the target path based on the engineering change message, and storing the changed target process file in the process file change folder; A document generation module, configured to generate a change information document of the target process file in the change difference report folder based on the change information of the target process file; The report generation module is used to generate a change difference report of the target process file based on the change difference report template and the change information document.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the difference report generating method according to any one of claims 1 to 7 is implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the method for generating a difference report according to any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Document generation method, electronic equipment, storage medium and program product
CN120046579A
