Code processing method and device for bank storage service, equipment and medium
Through automated comparison and generation of function relationship diagrams, the problem of omissions in manual analysis in code development is solved, and accurate identification and efficient evaluation of the impact range of modified code is achieved.
Patent Information
- Application Number
- CN202510622853.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-14
- Publication Date
- 2025-08-15
AI Technical Summary
In the process of code development in the prior art, the identification of the scope of the function modification impact depends on manual analysis, which is prone to omissions or misjudgments, resulting in inefficient development and waste of resources.
By comparing the object codes in the modified code and storage business code base, differential codes are determined, and functional relationship diagrams are generated using breadth search algorithms and graph databases to identify the scope of direct and indirect impact, avoiding the omission of manual analysis.
It realizes accurate identification of the impact range of modified code, improves the efficiency of code review and regression testing, and reduces the time consumption of development and testing.
Smart Images

Figure CN120492019A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a code processing method, device, equipment and medium for bank storage services. Background Art
[0002] Code development falls within the field of information technology (IT) and is a key application area of software engineering and computer science. With the rapid development of technologies such as the internet, artificial intelligence, and big data, code development has become a core force driving digital transformation and innovation, and is widely used in various industries, including finance, healthcare, education, manufacturing, and entertainment.
[0003] In the prior art, determining the impact of function modifications during code development typically relies on developers manually analyzing call chains and business logic.
[0004] Due to the complex calling relationships within the system, manual sorting is prone to omissions or misjudgments, and there is a risk of incomplete identification of the impact scope. Summary of the Invention
[0005] The embodiments of the present application provide a code processing method, apparatus, device, and medium for bank storage services, so as to achieve the effect of improving the accurate identification of the impact range of code modification during code development.
[0006] In a first aspect, an embodiment of the present application provides a code processing method for a bank storage service, comprising:
[0007] Compare the modified code with the target code stored in the business code library to determine the difference code;
[0008] Based on the code function to which the difference code belongs, determine the association function that has an impact relationship with the code function. The impact relationship represents the dependency and risk propagation relationship between storage services. The impact relationship includes association functions that have a direct impact relationship with the code function and association functions that have an indirect impact relationship with the code function.
[0009] Based on the influence relationship between the code function and the associated function, as well as the influence relationship between the associated functions, a function relationship diagram of the code function is generated and displayed.
[0010] In a second aspect, an embodiment of the present application provides a code processing device for a bank storage service, including:
[0011] The comparison module is used to compare the modified code with the target code stored in the business code library to determine the difference code;
[0012] A determination module is configured to determine, based on the code function to which the difference code belongs, an associated function that has an impact relationship with the code function. The impact relationship represents the dependency and risk propagation relationship between storage services. The impact relationship includes an associated function that has a direct impact relationship with the code function and an associated function that has an indirect impact relationship with the code function.
[0013] The display module is used to generate and display the function relationship diagram of the code function based on the influence relationship between the code function and the associated function, and the influence relationship between the associated functions.
[0014] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a memory, a processor;
[0015] Memory stores computer-executable instructions;
[0016] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the above first aspect and / or various possible implementations of the first aspect.
[0017] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the first aspect above and / or various possible implementation methods of the first aspect.
[0018] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the above first aspect and / or various possible implementation methods of the first aspect.
[0019] The code processing method, apparatus, equipment, and medium for bank storage services provided in the embodiments of the present application can accurately identify the direct and indirect impact scope of the modified code by comprehensively and efficiently traversing the code base, avoiding omissions in manual combing and incomplete local code problems; at the same time, it uses a graph database to store and visualize impact links, intuitively display function call relationships, and avoid the analysis process from falling into an infinite loop, thereby ensuring the comprehensiveness and reliability of the analysis results, improving the effect of accurately identifying the impact scope of the modified code, and providing accurate change impact scope assessment for code review and regression testing. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0021] Figure 1 A schematic diagram of the scenario of the code processing method for the bank deposit service provided in this application;
[0022] Figure 2A flowchart of the code processing method for the bank deposit service provided in this application;
[0023] Figure 2a A schematic diagram of the influence relationship between the code function and the associated function provided in the embodiment of the present application;
[0024] Figure 2b Function relationship diagram provided for the embodiment of this application;
[0025] Figure 3 A flowchart of the function parsing process provided for this application;
[0026] Figure 4 A schematic diagram of the structure of the code processing device for the bank storage service provided in this application;
[0027] Figure 5 This is a schematic diagram of the structure of the electronic device provided in this application.
[0028] The above drawings illustrate specific embodiments of the present application, which will be described in more detail below. These drawings and the textual description are not intended to limit the scope of the present application in any way, but rather to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments. DETAILED DESCRIPTION
[0029] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
[0030] First, let’s explain the terms involved in this application:
[0031] Code modification refers to the purposeful alteration of software source code, including but not limited to adding new features, adjusting logic, fixing bugs, optimizing performance, or refactoring. Its core characteristic is the recording of changes through version management tools (such as Git), creating a traceable commit history. Code modification typically undergoes code review and testing to ensure the correctness and compatibility of the changes. Code modifications can have cascading effects, requiring the use of static analysis, dependency tracking, and other tools to assess their scope. Code modification is a critical step in software development iteration and maintenance.
[0032] In the code development process of existing technologies, the implementation of a single function is generally accomplished by the coordinated efforts of multiple functions. For example, the function for user A to transfer money to user B is split into multiple functions, such as function F1, which deducts the transfer amount from user A's bank card balance, and function F2, which adds the transfer amount to user B's bank card balance. These two functions work together to complete a single function. In actual development, there is also function F3, which is the core function that actually performs the balance change. That is, F1 calls F3, passing in parameters, to debit account A, and F2 calls F3, passing in parameters, to credit account B. Modifying the functionality of function F3 not only affects function F3 itself, but also functions F1 and F2.
[0033] Therefore, during code development, there are many call relationships like the one described above, where functions call each other to achieve a specific function. While these function call relationships reduce code development effort, they also complicate the call relationships.
[0034] In the current code development process, impact analysis primarily relies on manual judgment by developers. This approach presents two significant problems: First, manual analysis consumes significant development time and is prone to omissions. Second, to ensure system stability, the testing phase requires additional testing of core functional modules in addition to verifying the developer-specified impact scope. This model places a double burden on development teams: developers must devote additional effort to impact analysis, while testers are forced to expand their testing scope to compensate for potential flaws in manual analysis, resulting in reduced overall development efficiency and wasted resources.
[0035] The code processing method for bank storage services provided in the embodiment of the present application can accurately extract the difference code and locate the specific function based on the automated code comparison engine of the version management tool, so as to ensure the integrity of the analysis basis and avoid the code omissions that may occur in manual comparison; at the same time, through the dependency relationship and risk propagation relationship, the impact range of the modification point (including direct call relationship and indirect business association) can be quickly and accurately analyzed, thereby improving the effect of accurately identifying the impact range of the modified code, and providing accurate change impact range assessment for code review and regression testing; in addition, through the dynamically generated visual function relationship diagram, the impact link and risk propagation path are intuitively displayed, and interactive exploration is supported, so that developers can quickly verify the analysis results, and provide testers with clear guidance on the key test range, which not only eliminates the time consumption of the development team in manually sorting out the impact range, but also avoids the excessive testing of the test team due to fear of omissions. Figure 1 A schematic diagram of the scenario of the code processing method for the bank storage business provided in this application, such as Figure 1As shown, the specific application scenario of the present application is a code processing system, which can be a server, and the server can be a mobile phone, tablet, computer and other devices. The embodiment of the present application does not limit the execution subject of the code processing method of the bank storage business, as long as it can execute the comparison between the modified code and the target code in the storage business code library to determine the difference code; according to the code function to which the difference code belongs, determine the association function that has an influence relationship with the code function, the influence relationship represents the dependency relationship and risk propagation relationship between the storage businesses, and the influence relationship includes the association function that has a direct influence relationship with the code function and the association function that has an indirect influence relationship with the code function; according to the influence relationship between the code function and the association function, as well as the influence relationship between the association functions, generate and display the function relationship diagram of the code function.
[0036] The following specific embodiments describe in detail the technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0037] Figure 2 A flow chart of the code processing method for the bank storage service provided in this application is as follows: Figure 2 As shown, the method includes:
[0038] S201: Compare the modified code with the target code stored in the business code library to determine the difference code.
[0039] Modified code refers to code segments that developers have updated, added, or deleted during the current work cycle. These modifications may be to fix bugs, add new features, or optimize existing features.
[0040] A business code repository is a centralized location for managing all business-related code. For example, it can be a repository in a version control system (such as Git or SVN). It contains all historical versions of the project's code, as well as information such as branches and tags, and is the foundation for collaborative development within a team.
[0041] The target code can refer to the portion of code in the business code repository that is designated for comparison. The target code can refer to a specific module, file, or the code state of a specific commit, which serves as the basis for comparison.
[0042] Diff code may refer to the differences identified by comparing the modified code with the target code. The diff code shows the changes between the two sets of code, including but not limited to newly added lines of code, deleted lines of code, and modified lines of code.
[0043] In the embodiments of the present application, automatic comparison of code differences can be achieved by using a version control system (such as Git) combined with a continuous integration / continuous delivery (CI / CD) tool (such as Jenkins, GitLab CI, GitHub Actions, etc.). When a developer submits code, the system automatically triggers a pipeline task that calls git diff or other code analysis tools through a script to compare the currently modified code with the target branch (such as the main or release branch), automatically generates a difference report, and identifies the specific files and lines of code that have changed.
[0044] S202. Determine, based on the code function to which the difference code belongs, an associated function that has an impact relationship with the code function. The impact relationship represents the dependency and risk propagation relationship between storage services. The impact relationship includes an associated function that has a direct impact relationship with the code function and an associated function that has an indirect impact relationship with the code function.
[0045] The code function to which the difference code belongs may refer to the function unit directly affected by the modification in the code change analysis. As the direct impact point of the change, the behavior change of the function unit will be transmitted outward through the call chain, data flow or control flow.
[0046] Impact relationships can refer to the way different parts of a codebase (such as functions and modules) interact with each other. This impact relationship can characterize the relationship between dependencies and risk transmission generated by calls, data sharing, or business rules. Among them:
[0047] A dependency relationship refers to the technical connections between functions in the code, formed through calls, data transfer, or shared resources. For example, in a system that performs storage services, a data write function will explicitly call the underlying disk I / O function and implicitly depend on the file system cache management function. Functions connected by technical links can be considered dependent functions. Dependent functions in a dependency relationship can be clearly identified through static code analysis.
[0048] For example, in a bank transfer system, suppose the validateAccount() function (account verification) is modified. Through static code analysis, it is found that:
[0049] Direct dependency: This function is explicitly called by transferFunds() (the main transfer function);
[0050] Indirect dependency: transferFunds() calls updateLedger() (updates the ledger), and updateLedger() depends on auditLog() (audit log).
[0051] At this time, the related functions include transferFunds (direct), updateLedger and auditLog (indirect), forming a complete technical call chain.
[0052] Risk propagation relationships can refer to relationships that are generated along business processes in business scenarios. For example, if an exception occurs in the "deduction" function, it is necessary to identify the subsequent dependent "deposit" function and the "reversal" function that may be triggered. These functions that have a causal relationship or an abnormal transmission path with it in the business logic chain are associated functions.
[0053] For example, if the core function deductBalance() is modified, the business risk will be transmitted along the process:
[0054] Forward transmission: After the deduction is successful, addPayeeBalance() is triggered (the payee is credited to the account);
[0055] Abnormal transmission: If the deduction fails, you need to call reverseTransaction() (transaction reversal) and notify alertRiskControl() (risk control system).
[0056] At this time, the associated functions include not only the technical call addPayeeBalance, but also the business logic-related reverseTransaction and alertRiskControl, even if they are not called directly.
[0057] Dependent functions refer to all functions that have some form of interaction or dependency with the function containing the difference code. This includes directly called functions and functions indirectly affected by other function call chains.
[0058] The associated functions with a direct impact relationship may refer to other functions that are directly called by the function where the difference code is located or directly call the function where the difference code is located.
[0059] An indirect impact function refers to a function that doesn't directly interact with the function containing the differenced code, but is indirectly affected by a series of intermediate functions. For example, if function A calls function B, and function B calls function C, if function A changes, function C is also affected. Function C is an indirect impact function.
[0060] In the embodiment of the present application, determining the associated function that has an influencing relationship with the code function according to the code function to which the difference code belongs includes:
[0061] Traverse the storage business code library to determine the associated functions that have a direct impact on the code functions;
[0062] The associated function that has a direct impact relationship with the code function is used as the code function, and the steps of traversing the stored business code library to determine the associated function that has a direct impact relationship with the code function are repeated until the first associated function that has a direct impact relationship with the code function does not exist in the stored business code library, and then the associated function that has an indirect impact relationship with the code function is obtained;
[0063] According to the correlation function that has a direct influence relationship with the code function and the correlation function that has an indirect influence relationship with the code function, the correlation function that has an influence relationship with the code function is determined.
[0064] Among them, after determining the difference code, the code function to which the difference code belongs can be detected through a code management tool. Among them, a code management tool can refer to a software system for tracking and managing code changes, which can record each modification, support multi-person collaboration, and help developers quickly locate code differences. In some embodiments, the code management tool may include Git, SVN, etc. For example, when the developer uses the git diff command, Git will display the code differences between the working directory and the temporary storage area, and can further analyze which function or code block these difference codes belong to through git blame or IDE integrated tools, thereby accurately locating the modification range.
[0065] After determining the code function, in order to clarify the code function's impact on the entire code functionality, it is necessary to calculate the code function's impact range layer by layer. This will determine the code function's impact range on the entire storage business code base.
[0066] Among them, starting from the code function, find the associated functions (first-level association) it directly calls, and then continue the deep search with each associated function as a new starting point, and determine the second-level, third-level and other multi-level indirect associated functions layer by layer until no deeper calling relationship is found; finally, all direct and indirect associated functions are merged to form a complete impact relationship set of the code function.
[0067] The embodiment of the present application can use a breadth search algorithm in combination with a graph database to calculate the multi-level code influence range, thereby determining the association functions that have a direct influence relationship with the code function and the association functions that have an indirect influence relationship with the code function.
[0068] S203 : Generate and display a function relationship diagram of the code function according to the influence relationship between the code function and the associated function, and the influence relationship between the associated functions.
[0069] A function relationship graph is a visualization tool used to show the call dependencies and impact relationships between code functions. It presents the logical structure of the code through nodes (representing functions) and lines (representing calls or data dependencies). For example, if function A calls functions B and C, and function B depends on function D, the relationship graph will display these connections in a hierarchical or network format, helping developers understand the code architecture, assess the impact of modifications, or analyze potential problem links.
[0070] In some embodiments, a tool (such as Doxygen, CodeViz, or an IDE built-in analyzer) can be used to automatically generate a function relationship graph based on static code analysis.
[0071] Figure 2a The schematic diagram of the influence relationship between the code function and the associated function provided in the embodiment of the present application is as follows: Figure 2a As shown in the figure, since functions have influence relationships, and these relationships are complex, the code function, as a source function, will influence n first-level influences, and each first-level influence will influence m second-level influences, and so on, until all associated functions with influence relationships are determined. The first-level influence association function is the one that has a direct influence relationship with the code function, while the other level influence association functions are the ones that have an indirect influence relationship with the code function.
[0072] The embodiment of the present application can process the impact link through a non-recursive breadth traversal method, by parsing the calling relationship between functions, that is, obtaining the associated function of the first-level impact of the code modification through parsing, and adding it to the queue to be parsed, and obtaining the second-level impact function of the function to be calculated by parsing the calling relationship of the first-level impact function, and repeating this cycle until the queried N-level impact function has no associated function of the N+1-level impact.
[0073] Figure 2b The functional relationship diagram provided in the embodiment of this application is as follows: Figure 2b As shown, Figure 2a The influence relationship between the code function and the associated function can generate a functional relationship diagram of the code function.
[0074] In the embodiment of the present application, a function relationship diagram of the code function is generated and displayed based on the influence relationship between the code function and the associated function, and the influence relationship between the associated functions, including:
[0075] De-duplication the correlation function to obtain the target correlation function;
[0076] The code function and the target association function are used as nodes in the function relationship graph, the influence relationship between the code function and the association function, and the influence relationship between the target association functions are used as edges in the function relationship graph, and the function relationship graph of the code function is generated and displayed.
[0077] Deduplication refers to the process of removing duplicate associated functions within each influence relationship. Due to the flexible nature of function calls, influence relationships are not simple tree structures. The presence of circular calls leads to a more complex network structure. This means that for some associated functions, it's difficult to determine whether they belong to a primary or secondary influence.
[0078] like Figure 2a As shown, the correlation function f5 has both a primary and secondary influence relationship. In this case, embodiments of the present application can perform impact analysis on the first occurrence of the correlation function. That is, if the same function appears in a multi-level influence correlation function, only the first occurrence is analyzed. For subsequent occurrences, only the function's influence relationship is retained, and no further link analysis is performed on the function, preventing endless link analysis. By establishing a Set to store processed functions, once a function is detected to have been processed, link analysis is no longer performed on the function.
[0079] After determining the target association function, the code function and the target association function are used as nodes in the function relationship graph, the influence relationship between the code function and the association function, and the influence relationship between the target association functions are used as edges in the function relationship graph to generate and display the function relationship graph of the code function.
[0080] In the embodiment of the present application, the method includes:
[0081] Construct the display relationship between the function information of nodes in the function relationship graph;
[0082] In response to a user's operation on a node in the function relationship graph, function information is displayed in the function relationship graph.
[0083] Among them, function information can refer to the properties and metadata related to the code function, which may include the function name, parameter list, return value type, the file and code location to which it belongs, the sub-functions called internally, the relationship between functions called by other functions, code complexity indicators (such as cyclomatic complexity), annotation documents, modification history, and performance analysis data (such as execution time), etc.
[0084] Display relationships refer to the visual mapping rules between nodes and their associated information in a function relationship graph, which are used to control how function information (such as function name, parameters, code location, number of calls, etc.) is presented to the user. For example: 1. The node displays the function name by default. When the user hovers or clicks, detailed information (such as code snippets, dependency statistics, etc.) is expanded through pop-ups, sidebars, etc.; 2. Hierarchical control: Dynamically display information based on the zoom level (the thumbnail view only displays the function name, and zooming in displays the parameters and return value); 3. Interactive response: When the user clicks a node, its directly associated edges (call relationships) are highlighted, and other panels are updated in a linked manner (such as the code editor positioning the corresponding function definition).
[0085] In the embodiment of the present application, the function information displayed in the function relationship diagram is associated with the corresponding function in the storage service code library;
[0086] Methods include:
[0087] In response to a user's modification operation on the function information displayed in the function relationship graph, the modified function information is obtained;
[0088] According to the modified function information and the association between the function information and the corresponding function in the storage service code library, the corresponding function in the storage service code library is modified.
[0089] Among them, the association relationship can refer to the dynamic two-way link mechanism between the visual elements in the function relationship graph and the actual functions in the underlying code base, which can ensure that the function information in the graph (such as name, parameters, call relationship) is kept synchronized with the source code in real time.
[0090] When a user modifies the properties of a function in the relationship diagram, the corresponding function entity in the code base is automatically located through predefined mapping rules (such as AST parsing or symbol table indexing), and the modified content is reversely updated to the source code file. At the same time, dependency analysis is triggered to ensure the consistency of the call chain, thus realizing a closed-loop operation from visual editing to automatic code reconstruction.
[0091] In this embodiment of the present application, the method further includes:
[0092] According to the level of banking business corresponding to the code function and the level of banking business corresponding to the association function, the display color of the nodes and / or the edges between nodes in the function relationship diagram is adjusted, wherein the higher the level of banking business, the darker the display color.
[0093] In the function relationship diagram, the system dynamically adjusts the color depth of nodes and connecting edges based on the business level of the code function and its associated functions (for example, key businesses such as core transactions and risk control systems have higher levels, while auxiliary functions have lower levels). The higher the business level, the darker the node or edge color (for example, dark red represents core payment and settlement functions, and light gray represents log printing tool functions). This color grading strategy can intuitively expose critical business paths, helping developers quickly identify high-priority modules and focus on core business links during architecture optimization or troubleshooting.
[0094] In the embodiment of the present application, the method further includes:
[0095] Determine the change type that represents the difference code and the change risk level of the change type;
[0096] The display colors of nodes and / or edges between nodes in the function relationship graph are adjusted according to the change type of the difference code and the change risk level of the change type.
[0097] This approach first analyzes the change type (e.g., new functionality, logic modifications, bug fixes, etc.) in the difference code and assesses its risk level (e.g., high risk, medium risk, low risk). It then dynamically adjusts the colors of the affected function nodes and call edges in the function relationship graph—the higher the risk level, the more striking the display color (e.g., red for high risk, yellow for medium risk, green for low risk). This intuitively exposes the potential impact of code changes, helping development teams quickly identify high-risk modification points and conduct targeted code reviews or regression testing, thereby reducing stability risks.
[0098] The code processing method for bank storage services provided in the embodiment of the present application obtains the objective facts of code changes through a code version management tool as the basis for analysis, and adopts a breadth-first search algorithm to systematically calculate the impact range of multi-level codes to ensure that all directly and indirectly related functions are not missed; at the same time, combined with the storage and query advantages of the graph database, it supports rapid observation of the final impact boundary from a global perspective, and can also expand the function call link layer by layer for refined analysis. Compared with traditional manual analysis methods, it not only avoids the risk of subjective omissions, but also significantly improves the comprehensiveness of the impact range analysis and the efficiency of problem location.
[0099] Figure 3 The flowchart of the function parsing process provided for this application is as follows: Figure 3 As shown, the method includes: obtaining the parsing function from the queue, parsing the calling relationship, obtaining the next-level influencing function, adding the next-level influencing function to the queue, storing the calling relationship between the current-level function and the next-level function in the graph database, and checking whether the queue is empty. If it is not empty, return to "obtaining the parsing function from the queue", and if it is empty, end the process.
[0100] Figure 4 A schematic diagram of the structure of the code processing device for the bank storage service provided by this application, such as Figure 4 As shown, the code processing device 40 for the bank deposit service provided in this embodiment includes:
[0101] Comparison module 401, used to compare the modified code with the target code stored in the business code library to determine the difference code;
[0102] Determination module 402 is configured to determine, based on the code function to which the difference code belongs, association functions that have an impact relationship with the code function. The impact relationship represents the dependency and risk propagation relationship between storage services. The impact relationship includes association functions that have a direct impact relationship with the code function and association functions that have an indirect impact relationship with the code function.
[0103] The display module 403 is used to generate and display a function relationship diagram of the code function according to the influence relationship between the code function and the associated function, and the influence relationship between the associated functions.
[0104] In a possible implementation, the determining module 402 may further be specifically configured to:
[0105] Traverse the storage business code library to determine the associated functions that have a direct impact on the code functions;
[0106] The associated function that has a direct impact relationship with the code function is used as the code function, and the steps of traversing the stored business code library to determine the associated function that has a direct impact relationship with the code function are repeated until the first associated function that has a direct impact relationship with the code function does not exist in the stored business code library, and then the associated function that has an indirect impact relationship with the code function is obtained;
[0107] According to the correlation function that has a direct influence relationship with the code function and the correlation function that has an indirect influence relationship with the code function, the correlation function that has an influence relationship with the code function is determined.
[0108] In a possible implementation, the display module 403 may also be specifically configured to:
[0109] De-duplication the correlation function to obtain the target correlation function;
[0110] The code function and the target association function are used as nodes in the function relationship graph, the influence relationship between the code function and the association function, and the influence relationship between the target association functions are used as edges in the function relationship graph, and the function relationship graph of the code function is generated and displayed.
[0111] In a possible implementation, the display module 403 may also be specifically configured to:
[0112] Construct the display relationship between the function information of nodes in the function relationship graph;
[0113] In response to a user's operation on a node in the function relationship graph, function information is displayed in the function relationship graph.
[0114] In a possible implementation, the function information displayed in the function relationship diagram is associated with the corresponding function in the storage service code library; the display module 403 may also be specifically used to:
[0115] In response to a user's modification operation on the function information displayed in the function relationship graph, the modified function information is obtained;
[0116] According to the modified function information and the association between the function information and the corresponding function in the storage service code library, the corresponding function in the storage service code library is modified.
[0117] In a possible implementation, the display module 403 may also be specifically configured to:
[0118] According to the level of banking business corresponding to the code function and the level of banking business corresponding to the association function, the display color of the nodes and / or the edges between nodes in the function relationship diagram is adjusted, wherein the higher the level of banking business, the darker the display color.
[0119] In a possible implementation, the display module 403 may also be specifically configured to:
[0120] Determine the change type that represents the difference code and the change risk level of the change type;
[0121] The display colors of nodes and / or edges between nodes in the function relationship graph are adjusted according to the change type of the difference code and the change risk level of the change type.
[0122] The code processing device for bank storage services provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effects are similar, and are not described in detail in this embodiment.
[0123] Figure 5 This is a schematic diagram of the structure of the electronic device provided in this application. Figure 5 As shown, the electronic device 50 provided in this embodiment includes: at least one processor 501 and a memory 502. Optionally, the device 50 further includes a communication component 503. The processor 501, the memory 502 and the communication component 503 are connected via a bus 504.
[0124] In a specific implementation process, at least one processor 501 executes the computer-executable instructions stored in the memory 502, so that the at least one processor 501 performs the above method.
[0125] The specific implementation process of the processor 501 can be found in the above method embodiment. Its implementation principle and technical effects are similar and will not be repeated here in this embodiment.
[0126] In the above embodiments, it should be understood that the processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASICs), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the present invention may be directly executed by a hardware processor or by a combination of hardware and software modules in the processor.
[0127] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (NVM), such as at least one disk memory.
[0128] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. Buses can be classified as address buses, data buses, and control buses. For ease of illustration, the buses in the drawings of this application are not limited to just one bus or just one type of bus.
[0129] The present application also provides a computer program product, including a computer program, which implements the above method when executed by a processor.
[0130] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above method is implemented.
[0131] The above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile memory device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer.
[0132] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be an integral part of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the readable storage medium can also exist in a device as discrete components.
[0133] The division of units is merely a logical functional division; actual implementations may employ alternative divisions, such as combining or integrating multiple units or components into another system, or omitting or disabling certain features. Furthermore, any direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection between devices or units, either through an interface, electrical, mechanical, or other means.
[0134] Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0135] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0136] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the various embodiments 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, and other media that can store program code.
[0137] Those skilled in the art will appreciate that all or part of the steps in the above-described method embodiments can be implemented using hardware associated with program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.
[0138] Finally, it should be noted that those skilled in the art will readily identify other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses, or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art not disclosed herein. The present invention is not limited to the precise structure described above and illustrated in the accompanying drawings, and various modifications and variations may be made without departing from the scope thereof. The scope of the present invention is limited solely by the appended claims.
Claims
1. A code processing method for bank storage services, characterized in that: include: Compare the modified code with the target code stored in the business code library to determine the difference code; Determining, based on the code function to which the difference code belongs, an association function having an influence relationship with the code function, where the influence relationship represents a dependency relationship and a risk propagation relationship between storage services, and the influence relationship includes an association function having a direct influence relationship with the code function and an association function having an indirect influence relationship with the code function; According to the influence relationship between the code function and the association function, and the influence relationship between the association functions, a function relationship diagram of the code function is generated and displayed.
2. The method according to claim 1, characterized in that The determining, based on the code function to which the difference code belongs, an associated function having an influencing relationship with the code function includes: Traversing the storage service code library to determine an associated function that has a direct impact on the code function; The associated function that has a direct impact relationship with the code function is used as the code function, and the steps of traversing the storage service code library to determine the associated function that has a direct impact relationship with the code function are repeated until the first associated function that has a direct impact relationship with the code function does not exist in the storage service code library, and then the associated function that has an indirect impact relationship with the code function is obtained; According to the correlation function that has a direct influence relationship with the code function and the correlation function that has an indirect influence relationship with the code function, the correlation function that has an influence relationship with the code function is determined.
3. The method according to claim 1, characterized in that The generating and displaying a function relationship diagram of the code function according to the influence relationship between the code function and the correlation function, and the influence relationship between the correlation functions, includes: performing deduplication processing on the correlation function to obtain a target correlation function; The code function and the target association function are used as nodes in the function relationship graph, the influence relationship between the code function and the association function, and the influence relationship between the target association functions are used as edges in the function relationship graph, and the function relationship graph of the code function is generated and displayed.
4. The method according to claim 3, characterized in that The method comprises: Constructing a display relationship between nodes in the function relationship graph and function information of the nodes; In response to a user's operation on the node in the function relationship graph, the function information is displayed in the function relationship graph.
5. The method according to claim 4, characterized in that The function information displayed in the function relationship diagram is associated with the corresponding function in the storage service code library; The method comprises: In response to a user's modification operation on the function information displayed in the function relationship graph, obtaining modified function information; According to the modified function information and the association between the function information and the corresponding function in the storage service code library, the corresponding function in the storage service code library is modified.
6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: According to the level of the banking business corresponding to the code function and the level of the banking business corresponding to the association function, the display color of the nodes and / or the edges between the nodes in the function relationship diagram is adjusted, wherein the higher the level of the banking business, the darker the display color.
7. The method according to any one of claims 1 to 5, characterized in that The method further comprises: Determining a change type representing the difference code and a change risk level of the change type; The display colors of the nodes and / or the edges between the nodes in the function relationship graph are adjusted according to the change type of the difference code and the change risk level of the change type.
8. A code processing device for bank deposit services, characterized in that: include: The comparison module is used to compare the modified code with the target code stored in the business code library to determine the difference code; a determination module configured to determine, based on the code function to which the difference code belongs, an association function having an influence relationship with the code function, wherein the influence relationship represents a dependency relationship and a risk propagation relationship between storage services, and the influence relationship includes an association function having a direct influence relationship with the code function and an association function having an indirect influence relationship with the code function; The display module is used to generate and display a function relationship diagram of the code function according to the influence relationship between the code function and the associated function, and the influence relationship between the associated functions.
9. An electronic device, characterized in that: include: Memory, processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 7 when executed by a processor.