Business object structure data detection method and device and computer equipment
By automatically detecting and merging unmerged development data in the merge list, the problem of omissions caused by manual verification in software development is solved, improving work efficiency and reducing the probability of errors.
Patent Information
- Application Number
- CN202410709731.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2024-08-20
AI Technical Summary
In the software development process, manual verification is often required when summarizing the branch work completed by each developer, resulting in frequent omission of branch work, resulting in incomplete software functions and low work efficiency.
Provides a detection method for business object structure data. By obtaining the configuration information of business objects, automatically merging lists, monitoring merge events, checking summary data and development data, finding and merging unmerged development data, outputting detection results, and realizing automatic merging. , to avoid manual intervention.
It improves the efficiency of software development, avoids merger errors, and reduces the probability of errors during software testing or application.
Smart Images

Figure CN118519618A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and in particular to a method, device and computer equipment for detecting business object structure data. Background Art
[0002] At present, software development usually requires the collaboration of multiple developers, with each developer responsible for a part of the branch work. After the development is completed, the branch work completed by each developer needs to be summarized. Finally, the complete software data is actually tested and applied.
[0003] In the related art, when summarizing the branch work completed by each developer, it is often necessary to manually check each branch work and then summarize them. In this process, branch work is often missed, which leads to incomplete software functions and requires multiple checks, resulting in low software development efficiency. Summary of the invention
[0004] Based on this, it is necessary to provide a method, device, computer equipment, computer-readable storage medium and computer program product for detecting business object structure data that can accelerate the merging of branches in response to the above technical problems.
[0005] In a first aspect, the present application provides a method for detecting business object structure data, the method comprising:
[0006] Acquire configuration information of the business object, wherein the configuration information includes an automatic merge list;
[0007] Based on the configuration information of the business object, acquiring structural data of the business object, the structural data including summary data and a plurality of development data, the plurality of development data being used to execute different functions of the business object, and the summary data being used to merge the plurality of development data;
[0008] checking the summary data and the plurality of development data, and when there is development data that has not been merged into the summary data, searching for the development data in the automatic merge list;
[0009] When the development data is found in the automatic merge list, the development data is merged into the summary data.
[0010] In one embodiment, after obtaining the configuration information of the business object, the following steps are included:
[0011] Monitor merger events;
[0012] The acquiring structure data of the business object based on the configuration information of the business object includes:
[0013] When the merge event is triggered, the summary data and a plurality of development data of the business object are acquired based on the configuration information of the business object.
[0014] In one embodiment, the checking of the summary data and the plurality of development data, when there is development data that has not been merged into the summary data, after searching the development data in the automatic merge list, comprises:
[0015] When the development data is not found in the automatic merge list, sending the specified information of the development data and a merge request;
[0016] In response to the received merge request, the development data is merged into the summary data.
[0017] In one embodiment, the specified information includes a modification list, and after obtaining the structural data of the business object based on the configuration information of the business object, the following steps are performed:
[0018] Check the modification information of each development data, and store the modification information in a modification list.
[0019] In one embodiment, the modification information includes modification content, and the checking the modification information of each development data and storing the modification information in a modification list includes:
[0020] Acquire a modification mark of each development data, wherein the modification mark is used to indicate the modification content of the development data;
[0021] Based on the change identifier, the change content is determined.
[0022] In one embodiment, when the development data is found in the automatic merge list, merging the development data into the summary data includes:
[0023] A detection result is output, wherein the detection result includes each of the development data merged into the summary data.
[0024] In a second aspect, the present application further provides a device for detecting business object structure data, the device comprising:
[0025] A first acquisition module, used to acquire configuration information of a business object, wherein the configuration information includes an automatic merge list;
[0026] A second acquisition module is used to acquire structural data of the business object based on the configuration information of the business object, wherein the structural data includes summary data and a plurality of development data, the plurality of development data are used to execute different functions of the business object, and the summary data is used to merge the plurality of development data;
[0027] A checking module, configured to check the summary data and the plurality of development data, and when there is development data that has not been merged into the summary data, search the development data in the automatic merge list;
[0028] A merging module is used to merge the development data into the summary data when the development data is found in the automatic merging list.
[0029] In one embodiment, the device comprises:
[0030] A monitoring module for monitoring merge events;
[0031] The second acquisition module is used to acquire the structural data of the business object based on the configuration information of the business object when the merge event is triggered.
[0032] In one embodiment, the device comprises:
[0033] A sending module, configured to send designated information and a merge request for the development data when the development data is not found in the automatic merge list;
[0034] The receiving module is used to merge the development data into the summary data based on the received merge request.
[0035] In one embodiment, the device comprises:
[0036] The storage module is used to check the modification information of each development data and store the modification information into the modification list.
[0037] In one embodiment, the device comprises:
[0038] A third acquisition module, used for acquiring a modification mark of each development data, wherein the modification mark is used for indicating the modification content of the development data;
[0039] A determination module is used to determine the modified content based on the modified identifier.
[0040] In one embodiment, the device comprises:
[0041] An output module is used to output a detection result, wherein the detection result includes each of the development data merged into the summary data.
[0042] 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:
[0043] Acquire configuration information of the business object, wherein the configuration information includes an automatic merge list;
[0044] Based on the configuration information of the business object, acquiring structural data of the business object, the structural data including summary data and a plurality of development data, the plurality of development data being used to execute different functions of the business object, and the summary data being used to merge the plurality of development data;
[0045] checking the summary data and the plurality of development data, and when there is development data that has not been merged into the summary data, searching for the development data in the automatic merge list;
[0046] When the development data is found in the automatic merge list, the development data is merged into the summary data.
[0047] 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:
[0048] Acquire configuration information of the business object, wherein the configuration information includes an automatic merge list;
[0049] Based on the configuration information of the business object, acquiring structural data of the business object, the structural data including summary data and a plurality of development data, the plurality of development data being used to execute different functions of the business object, and the summary data being used to merge the plurality of development data;
[0050] checking the summary data and the plurality of development data, and when there is development data that has not been merged into the summary data, searching for the development data in the automatic merge list;
[0051] When the development data is found in the automatic merge list, the development data is merged into the summary data.
[0052] 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:
[0053] Acquire configuration information of the business object, wherein the configuration information includes an automatic merge list;
[0054] Based on the configuration information of the business object, acquiring structural data of the business object, the structural data including summary data and a plurality of development data, the plurality of development data being used to execute different functions of the business object, and the summary data being used to merge the plurality of development data;
[0055] checking the summary data and the plurality of development data, and when there is development data that has not been merged into the summary data, searching for the development data in the automatic merge list;
[0056] When the development data is found in the automatic merge list, the development data is merged into the summary data.
[0057] The above-mentioned business object structure data detection method, device, computer equipment, computer-readable storage medium and computer program product, by presetting the automatic merge list, can automatically merge the development data in the automatic merge list into the summary data, thereby eliminating the need for manual merging one by one, thereby improving the processing efficiency of the business object. Moreover, by automatically merging the development data through the automatic merge list, merging errors can be avoided, reducing the probability of errors in business object testing or application. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] 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.
[0059] Figure 1 A schematic diagram of a flow chart of a method for detecting business object structure data in one embodiment;
[0060] Figure 2 is a flowchart of a method for detecting business object structure data in yet another embodiment;
[0061] Figure 3 is a flow chart of a method for detecting business object structure data in another embodiment;
[0062] Figure 4 A schematic diagram of a flow chart of a method for detecting initialization of business object structure data in one embodiment;
[0063] Figure 5 A schematic diagram of a flow chart of a branch difference checking function in one embodiment;
[0064] Figure 6 A schematic diagram of a process for parsing Git commit log information in one embodiment;
[0065] Figure 7 A schematic diagram of a process for obtaining a function for submitting change content in one embodiment;
[0066] Figure 8A schematic diagram of a flow chart of a branch merging function in one embodiment;
[0067] Fig. 9 A schematic diagram of a flow chart of a function for displaying a detection result in one embodiment;
[0068] Fig.10 A schematic diagram of a device for detecting business object structure data in an embodiment;
[0069] Fig.11 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0070] In order to make the purpose, technical solutions and advantages of the present application clearer, 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. It should be noted that in the embodiments of the present application, certain software, groups, models and other existing solutions in the industry may be mentioned, which should be considered as exemplary, and their purpose is only to illustrate the feasibility of the implementation of the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.
[0071] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations. The acquisition, storage, use, and processing of data in the technical solution of this application are in compliance with relevant provisions of national laws and regulations.
[0072] The business object structure data detection method provided in the multiple embodiments and combinations of the present application can be applied in a server environment. This embodiment uses the method applied to a terminal as an example. It is understandable that the method can also be applied to a server, and 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.
[0073] In one embodiment, see Figure 1 , the method comprises the following steps:
[0074] Step S2: Acquire configuration information of the business object, where the configuration information includes an automatic merge list.
[0075] Step S4: Based on the configuration information of the business object, the structural data of the business object is obtained, where the structural data includes summary data and a plurality of development data, the plurality of development data are used to execute different functions of the business object, and the summary data is used to merge the plurality of development data.
[0076] Step S6: Check the summary data and the plurality of development data, and when there is development data that has not been merged into the summary data, search for the development data in the automatic merge list.
[0077] Step S8: When development data is found in the automatic merge list, the development data is merged into the summary data.
[0078] In step S2, the business object may be a work task that needs to be completed. The business object may include software development or hardware development, etc. When the business object includes software development, the structural data of the business object may include multiple codes or source files, etc. Specifically, when software development is performed, the total task of the software development will be divided into multiple branch tasks, and different branch tasks will be assigned to different staff members. As an example, tools such as Git can be used to manage each branch task. Each branch task may have a unique code. The branch tasks completed by the staff form each development data, and the development data can be used to execute different functions of the business object. After merging each development data, summary data can be formed.
[0079] The configuration information of the business object may be specific data, files, etc. contained in the business object. For example, when the business object includes software development, the configuration information of the business object may include an automatic merge list. The automatic merge list may include the codes of branch tasks that need to be automatically merged. In addition, the configuration information of the business object may also include the identifiers of each branch in the software development (the identifiers may include names, codes, etc.), the path information of each file, or the detection time range when the software development is detected, etc.
[0080] In step S4, as an example, when the business object includes software development, the structure data may include code. Accordingly, the summary data may include code data of a production branch, and the development data may include code data of a development branch.
[0081] In step S6, the summary data and each development data are compared to check whether there is development data that has not been merged into the summary data. When there is development data that has not been merged into the summary data, the development data is searched in the automatic merge list. For example, it can be determined whether the development data that has not been merged into the summary data exists in the automatic merge list by searching the code of the development data that has not been merged into the summary data in the automatic merge list.
[0082] In step S8, when the development data is found in the automatic merge list, it means that the development data is set to be automatically merged. At this time, the development data can be merged into the summary data. As an example, the field value of the merge field of the development data can be found, and the field value indicates its specific merge position. Afterwards, according to the merge position indicated by the field value, the development data is merged into the corresponding position of the summary data.
[0083] In this embodiment, by presetting the automatic merge list, the development data in the automatic merge list can be automatically merged into the summary data, thereby eliminating the need for manual merging one by one, thereby improving the processing efficiency of the business object. Moreover, by automatically merging the development data through the automatic merge list, merging errors can be avoided, reducing the probability of errors in business object testing or application.
[0084] In one embodiment, step S2 includes:
[0085] Step S20: monitor the merging event.
[0086] Accordingly, step S4 includes:
[0087] Step S40: when the merge event is triggered, the summary data and multiple development data of the business object are acquired based on the configuration information of the business object.
[0088] In step S20, as an example, when using the Webpack platform to process business objects, it is possible to monitor or listen to whether Webpack needs to perform a merge event (eg, a compile event).
[0089] In step S40 , when the merge event is triggered, it means that it is necessary to detect whether the multiple development data are merged into the summary data, and the subsequent steps can be performed.
[0090] In this embodiment, a merge event is set, and subsequent steps are performed only when the merge event is triggered, thereby preventing the detection process from affecting the running of other tasks.
[0091] In one embodiment, step S6 includes:
[0092] Step S80: When the development data is not found in the automatic merge list, the specified information of the development data and the merge request are sent.
[0093] Step S82: In response to the received merge request, merge the development data into the summary data.
[0094] In step S80, when the development data is not found in the automatic merge list, it means that the development data needs to be merged manually. At this time, the specified information of the development data and the merge request are sent to the specified client. As an example, the specified information of the development data may include the updated content of the development data, or the content involving substantial changes, or the code of the relevant personnel, etc. The merge request of the development data may include whether to agree to merge the development data into the summary data, etc.
[0095] After sending the development data designation information and merge request, the designated client will display the above content. At this time, the staff of the designated client can check the development data designation information and confirm whether to merge the development data into the summary data.
[0096] In step S82 , in one possible example, after receiving information confirming that the development data is to be merged into the summary data, the development data is merged into the summary data.
[0097] In another possible example, if no information is received to merge the development data into the summary data, or if information not to merge is received, the subsequent steps are not performed.
[0098] In this embodiment, when development data that is not in the automatic merge list is detected, the specified information of the development data and the merge request can be sent to the specified client to allow the specified client to confirm whether to perform the merge operation. This is helpful for the staff to understand the differences between the various development data and decide whether to merge the various development data, which can further ensure the merge position of important development data and avoid merge errors.
[0099] In one example, the specified information of the development data may include a list of changes. Step S6 includes:
[0100] Step S84: Check the modification information of each development data and store the modification information into the modification list.
[0101] As an example, the character string of each development data can be checked to determine whether the character string involves a file change. If the character string involves a file change, the character string and the change content are stored in a change list.
[0102] Specifically, step S84 may include:
[0103] Step S840: Obtain a change mark of each development data, where the change mark is used to indicate the change content of the development data.
[0104] Step S842: Determine the modified content based on the modified identifier.
[0105] Exemplarily, the change mark may include a "-" sign and a "+" sign. If a "-" sign appears in the development data, it means that the development data includes content deleted from a file. If a "+" sign appears in the development data, it means that the development data includes content added to a file. In a possible example, a regular expression may be used to extract specific change content.
[0106] In this embodiment, by setting a change list, the differences between each development data and the summary data can be automatically compared, and the specified information of the development data can be quickly obtained, so that the staff of the designated client can quickly determine whether to merge the development data, thereby improving the efficiency of development data merging.
[0107] In one embodiment, after step S8, the following steps are included:
[0108] Step S10: Output the detection result, where the detection result includes each development data merged into the summary data.
[0109] After traversing each development data, the detection results and the processing results of the branch tasks can be output. For example, the detection results can be sent to the corresponding client in the form of an email, so as to prompt the staff that the detection has been completed.
[0110] In this embodiment, by setting the detection result to be output after the detection is completed, the staff is prompted that the detection has been completed, and then the testing or application of the business object can be quickly carried out.
[0111] See also Figures 2 to 9 , the following takes the example of using the Git tool to manage development data and using the Webpack platform to compile business objects to illustrate the above steps. It can be understood that the methods provided by the above embodiments and their combinations can be integrated into the Webpack platform in the form of plug-ins. It should be understood that the business object structure data methods provided by the above embodiments and their combinations can also be applied to other tools and platforms. The following content is only for illustrative purposes and does not limit the business object structure data methods provided by the above embodiments and their combinations.
[0112] See also Figures 2 to 4First, you can initialize the detection method of the business object structure data. Specifically, it involves reading the configuration information of the business object and connecting to the Webpack platform. The configuration information of the business object may include the development branch name, the production branch name, the automatic merge list, the detection time range, the project path information, etc. After that, detect the business object structure data. Specifically, you can start listening to the compilation events of the Webpack platform. When the compilation event of the Webpack platform is triggered, execute the Git command in the project directory to obtain all branch information of the Git remote repository and convert the information into a string format. Get all the development branch and production branch information from the branch string information and configuration information respectively. Then, traverse all development branches and obtain the information of each development branch. Compare the development branch with the production branch to check whether there are Git commits in the development branch that have not been merged into the production branch.
[0113] If the development branch has Git commits that have not been merged into the production branch, obtain the Git commit information of the development branch that has not been merged into the production branch, and parse the Git commit information into a Git commit array. Traverse the Git commit array to obtain the changed files and the changed contents of each Git commit. Determine whether the branch is automatically merged into the production branch based on the configuration information. If it is determined that the branch is automatically merged into the production branch, merge the development branch into the production branch. If it is determined that the branch does not need to be automatically merged into the production branch, list all the Git commit information in the Git commit array, let the user select the Git commit to be merged into the production branch, and merge the Git commit selected by the user into the production branch. After that, determine whether all development branches have been traversed. If all development branches have been traversed, output the detection results.
[0114] See also Figure 5, when the compilation event of the Webpack platform is triggered, after executing the Git command in the project directory to obtain all branch information of the Git remote warehouse, the project directory address can be obtained from the configuration file, and an empty array can be created to store the detection results, which is determined as the detection result array. Execute the Git command in the project directory to obtain all branches of the Git remote warehouse and determine it as a branch string. Get the name of the production branch from the configuration file and determine whether the branch string contains the production branch. If the branch string contains the production branch, remove the production branch information from the branch string (after removing the production branch, the remaining ones are development branches). If the branch string does not contain the production branch, end the subsequent steps. Switch the project to the production branch, and pull the latest code of the production branch to the local, use regular expressions to extract all the remaining branches from the branch string, store them in the branch list, and confirm them as the development branch array. Traverse the development branch list and obtain the name of each development branch (confirm each obtained development branch as the current development branch). Switch the project to the current development branch and pull the latest code of the current development branch to the local. Execute the command of Git comparing branch log differences to check whether there are any Git commits on the current development branch that have not been merged into the production branch within the detection time range. If there are any Git commits on the current development branch that have not been merged into the production branch, obtain the Git commit log string information of the current development branch that has not been merged into the production branch within the detection time range, and determine it as the difference Git commit log string. Parse the difference Git commit log string information into a difference Git commit log list. Traverse the difference Git commit log list, obtain each Git commit information, and obtain the details of the commit information, including the submitter, the commit, the changed files involved, and the changed content of the files. Determine whether the difference Git commit log list is traversed. If the traversal is completed, merge the development branch according to the configuration information. If the traversal is not completed, repeat the above steps. Determine whether the development branch list is traversed. If so, end the process. If not, repeat the above steps.
[0115] See also Figure 6Specifically, parsing the difference Git commit log string information into a difference Git commit log list includes: obtaining the difference Git commit log string information between the development branch and the production branch within the detection time range, and then dividing the difference log string into individual strings according to each commit and storing it in an array, and confirming it as a string array. Next, create an array to store each Git commit object, and confirm it as a Git commit array. Traverse the string array to obtain each Git commit string. Determine whether the Git commit string involves file changes. If file changes are involved, obtain the basic information of the Git commit (the basic information includes ID, submitter, commit date, and remark information). Obtain all the changed files submitted by Git, convert the files into objects and store them in an array, and confirm it as a list of changed files. Traverse the list of changed files, obtain the changed content of each file, assemble the basic information of the Git commit and the list of changed files into an object and store it in the Git commit array. If there is no file change involved, check whether the segment string array is traversed. If the traversal is completed, end the process. If the traversal is not completed, repeat the above steps.
[0116] See also Figure 7 Specifically, traversing the Git commit array and obtaining the changed files and changed contents of each file submitted by Git includes: obtaining the ID of the Git commit object, traversing the list of changed files submitted by Git, and obtaining the object information of each changed file. According to the Git commit object ID and the file path, obtain the string content of the file modified in this submission, and extract the string content marked as deleted and added in the string content. Add the string content of the file deletion and addition status to the file object. And determine whether the list of changed files submitted by Git has been traversed. If the traversal is completed, end the process. If the traversal is not completed, repeat the above steps.
[0117] See also Figure 8Specifically, when there is a development branch that has not been merged into the production branch, the current development branch is compared with the automatic merge list of the distribution information branch to determine whether the automatic merge list contains the current development branch. If the automatic merge list includes the current development branch, the project is switched to the production branch, and the Git command is executed to merge the current development branch into the production branch, and the development branch information, the Git commit array of the branch, and the Git commit information selected for merging are added to the detection result array. If the automatic merge list does not include the current development branch, all Git commit information in the Git commit array of the current development branch is output (including Git commit ID, Git committer, Git commit remark information, files involved in the change, and file change content, etc.), and the user is waiting to select the Git commit information to be merged. Next, it is determined whether the user has completed the selection and whether the user has selected the Git commit information. If the user chooses to submit the Git information, the project is switched to the production branch, and the Git command is executed to merge the Git commit selected by the user into the production branch. If the user chooses not to submit the Git information, the subsequent steps are terminated.
[0118] See also Fig. 9 Specifically, outputting the detection results includes: traversing the detection result array and obtaining each detection result information. Outputting the detection result branch name. Traversing the detection result Git commit array and obtaining each Git commit information. Outputting the ID and description of the Git information. Determining whether the traversal of the Git commit array is complete, if the traversal is complete, merging the detection result into the Git information list of the production branch, obtaining each Git commit information, outputting the ID and description of the Git information, outputting the ID and description of the Git information, and determining whether the traversal of the Git information list merged into the production branch is complete. If the traversal is complete, determine whether the traversal of the detection result array is complete, and if the traversal is complete, end the process. If the traversal is not complete, repeat the above steps.
[0119] 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 is not strictly limited in order, 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 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.
[0120] Based on the same inventive concept, the embodiment of the present application also provides a business object structure data device for implementing the business object structure data method 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 one or more business object structure data device embodiments provided below can refer to the limitations of the business object structure data method above, and will not be repeated here.
[0121] In one embodiment, Fig.10 As shown, a device for detecting business object structure data is provided, comprising: a first acquisition module, a second acquisition module, a checking module and a merging module, wherein:
[0122] The first acquisition module is used to acquire configuration information of the business object, where the configuration information includes an automatic merge list.
[0123] The second acquisition module is used to acquire the structural data of the business object based on the configuration information of the business object. The structural data includes summary data and multiple development data. The multiple development data are used to execute different functions of the business object, and the summary data is used to merge the multiple development data.
[0124] The checking module is used to check the summary data and multiple development data, and when there is development data that has not been merged into the summary data, the development data is searched in the automatic merge list.
[0125] A merge module is used to merge the development data into the summary data when the development data is found in the automatic merge list.
[0126] In one embodiment, the device for detecting business object structure data includes: a monitoring module.
[0127] The monitoring module is used to monitor merge events.
[0128] The second acquisition module is also used to acquire the structural data of the business object based on the configuration information of the business object when the merge event is triggered.
[0129] In one embodiment, the device for detecting business object structure data includes: a sending module and a receiving module.
[0130] The sending module is used to send the specified information and merge request of the development data when the development data is not found in the automatic merge list.
[0131] The receiving module is used to merge the development data into the summary data based on the received merge request.
[0132] In one embodiment, the device for detecting business object structure data includes: a storage module.
[0133] The storage module is used to check the change information of each development data and store the change information in the change list.
[0134] In one embodiment, the device for detecting business object structure data includes: a third acquisition module and a determination module.
[0135] The third acquisition module is used to acquire a change mark of each development data, where the change mark is used to indicate the change content of the development data.
[0136] The determination module is used to determine the changed content based on the changed identifier.
[0137] In one embodiment, the device for detecting business object structure data includes: an output module.
[0138] The output module is used to output the detection result, where the detection result includes each development data merged into the summary data.
[0139] Each module in the above-mentioned detection device for business object structure data 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.
[0140] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Fig.11As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. 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 and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. 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 in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a method for detecting business object structure data is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0141] Those skilled in the art will understand that Fig.11 The structure shown in the figure is only a block diagram of a part of the 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 those shown in the figure, or combine certain components, or have a different arrangement of components.
[0142] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0143] Step S2: Acquire configuration information of the business object, where the configuration information includes an automatic merge list.
[0144] Step S4: Based on the configuration information of the business object, the structural data of the business object is obtained, where the structural data includes summary data and a plurality of development data, the plurality of development data are used to execute different functions of the business object, and the summary data is used to merge the plurality of development data.
[0145] Step S6: Check the summary data and the plurality of development data, and when there is development data that has not been merged into the summary data, search for the development data in the automatic merge list.
[0146] Step S8: When development data is found in the automatic merge list, the development data is merged into the summary data.
[0147] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0148] Step S20: monitoring a merge event, and Step S40: when the merge event is triggered, acquiring summary data and a plurality of development data of the business object based on configuration information of the business object.
[0149] Step S80: when the development data is not found in the automatic merge list, sending the designated information of the development data and the merge request, and Step S82: in response to the received merge request, merging the development data into the summary data.
[0150] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0151] Step S84: Check the modification information of each development data and store the modification information into the modification list.
[0152] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0153] Step S840: obtaining a change identifier of each development data, the change identifier is used to indicate the change content of the development data, and step S842: determining the change content based on the change identifier.
[0154] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0155] A computer program is stored, and when the processor executes the computer program, the following steps are implemented:
[0156] Step S2: Acquire configuration information of the business object, where the configuration information includes an automatic merge list.
[0157] Step S4: Based on the configuration information of the business object, the structural data of the business object is obtained, where the structural data includes summary data and a plurality of development data, the plurality of development data are used to execute different functions of the business object, and the summary data is used to merge the plurality of development data.
[0158] Step S6: Check the summary data and the plurality of development data, and when there is development data that has not been merged into the summary data, search for the development data in the automatic merge list.
[0159] Step S8: When development data is found in the automatic merge list, the development data is merged into the summary data.
[0160] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0161] Step S20: monitoring a merge event, and Step S40: when the merge event is triggered, acquiring summary data and a plurality of development data of the business object based on configuration information of the business object.
[0162] Step S80: when the development data is not found in the automatic merge list, sending the designated information of the development data and the merge request, and Step S82: in response to the received merge request, merging the development data into the summary data.
[0163] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0164] Step S84: Check the modification information of each development data and store the modification information into the modification list.
[0165] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0166] Step S840: obtaining a change identifier of each development data, the change identifier is used to indicate the change content of the development data, and step S842: determining the change content based on the change identifier.
[0167] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0168] Step S2: Acquire configuration information of the business object, where the configuration information includes an automatic merge list.
[0169] Step S4: Based on the configuration information of the business object, the structural data of the business object is obtained, where the structural data includes summary data and a plurality of development data, the plurality of development data are used to execute different functions of the business object, and the summary data is used to merge the plurality of development data.
[0170] Step S6: Check the summary data and the plurality of development data, and when there is development data that has not been merged into the summary data, search for the development data in the automatic merge list.
[0171] Step S8: When development data is found in the automatic merge list, the development data is merged into the summary data.
[0172] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0173] Step S20: monitoring a merge event, and Step S40: when the merge event is triggered, acquiring summary data and a plurality of development data of the business object based on configuration information of the business object.
[0174] Step S80: when the development data is not found in the automatic merge list, sending the designated information of the development data and the merge request, and Step S82: in response to the received merge request, merging the development data into the summary data.
[0175] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0176] Step S84: Check the modification information of each development data and store the modification information into the modification list.
[0177] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0178] Step S840: obtaining a change identifier of each development data, the change identifier is used to indicate the change content of the development data, and step S842: determining the change content based on the change identifier.
[0179] 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.
[0180] 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.
[0181] 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 method for detecting business object structure data, characterized in that: The method comprises: Acquire configuration information of the business object, wherein the configuration information includes an automatic merge list; Based on the configuration information of the business object, acquiring structural data of the business object, the structural data including summary data and a plurality of development data, the plurality of development data being used to execute different functions of the business object, and the summary data being used to merge the plurality of development data; checking the summary data and the plurality of development data, and when there is development data that has not been merged into the summary data, searching for the development data in the automatic merge list; When the development data is found in the automatic merge list, the development data is merged into the summary data.
2. The method according to claim 1, characterized in that After obtaining the configuration information of the business object, the following steps are included: Monitor merger events; The acquiring structure data of the business object based on the configuration information of the business object includes: When the merge event is triggered, the summary data and a plurality of development data of the business object are acquired based on the configuration information of the business object.
3. The method according to claim 1, characterized in that: The checking of the summary data and the plurality of development data, when there is development data that has not been merged into the summary data, after searching the development data in the automatic merge list, comprises: When the development data is not found in the automatic merge list, sending the specified information of the development data and a merge request; In response to the received merge request, the development data is merged into the summary data.
4. The method according to claim 3, characterized in that: The specified information includes a modification list, and after obtaining the structural data of the business object based on the configuration information of the business object, the method includes: Check the modification information of each development data, and store the modification information in a modification list.
5. The method according to claim 4, characterized in that The modification information includes modification content, and the step of checking the modification information of each development data and storing the modification information in a modification list includes: Acquire a modification mark of each development data, wherein the modification mark is used to indicate the modification content of the development data; Based on the change identifier, the change content is determined.
6. The method according to claim 1, characterized in that When the development data is found in the automatic merge list, merging the development data into the summary data comprises: A detection result is output, wherein the detection result includes each of the development data merged into the summary data.
7. A device for detecting business object structure data, characterized in that: The device comprises: A first acquisition module, used to acquire configuration information of a business object, wherein the configuration information includes an automatic merge list; A second acquisition module is used to acquire structural data of the business object based on the configuration information of the business object, wherein the structural data includes summary data and a plurality of development data, the plurality of development data are used to execute different functions of the business object, and the summary data is used to merge the plurality of development data; A checking module, configured to check the summary data and the plurality of development data, and when there is development data that has not been merged into the summary data, search the development data in the automatic merge list; A merging module is used to merge the development data into the summary data when the development data is found in the automatic merging list.
8. The device according to claim 7, characterized in that The device comprises: A monitoring module, used to monitor merge events; The second acquisition module is used to acquire the structural data of the business object based on the configuration information of the business object when the merge event is triggered.
9. The device according to claim 7, characterized in that The device comprises: A sending module, configured to send designated information and a merge request for the development data when the development data is not found in the automatic merge list; The receiving module is used to merge the development data into the summary data based on the received merge request.
10. The device according to claim 7, characterized in that The device comprises: The storage module is used to check the modification information of each development data and store the modification information into the modification list.
11. The device according to claim 10, characterized in that The device comprises: A third acquisition module, used for acquiring a modification mark of each development data, wherein the modification mark is used for indicating the modification content of the development data; A determination module is used to determine the modified content based on the modified identifier.
12. The device according to claim 7, characterized in that The device comprises: An output module is used to output a detection result, wherein the detection result includes each of the development data merged into the summary data.
13. 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 6 are implemented.
14. 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 6 are implemented.
15. 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 6 are implemented.
