Method and device for synchronizing business logic aperture, technical logic aperture and code

By building the mapping relationship between business logic, technical logic and code, and automatically synchronizing the business logic and technical logic, the problem of difficulty in maintaining consistency in the existing technology is solved, and the business logic, technical logic and code are realized. Continuous consistency.

CN119201118APending Publication Date: 2024-12-27BEIYIN FINANCIAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411075565.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-07
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

In the prior art, it is difficult to maintain lasting consistency in business logic, technical logic and code, especially in case of project requirements changes and emergency launch, resulting in the gradual increase in inconsistency problems.

Method used

By building a mapping relationship between the business logic caliber, technical logic caliber and code, automatically update the technical logic caliber in response to changes in the business logic caliber, and change the code according to the technical logic caliber, thereby achieving synchronization.

Benefits of technology

It realizes automatic synchronization of business logic, technical logic and code, continuously maintains consistency, and improves the accuracy and maintenance efficiency of data results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119201118A_ABST
    Figure CN119201118A_ABST
Patent Text Reader

Abstract

The invention discloses a method and a device for synchronizing a business logic caliber, a technical logic caliber and a code, relates to the technical field of computers, and can solve the technical problem that the business logic caliber, the technical logic caliber and the code cannot be synchronized and consistent at present. Comprising the following steps: constructing a mapping relationship among business logic calibers, technical logic calibers and codes corresponding to the same project demand; in response to the change of the business logic aperture corresponding to any project demand, changing the technical logic aperture according to the project demand and the changed business logic aperture to obtain a changed technical logic aperture; and changing the code according to the project demand and the changed technical logic aperture to obtain a changed code so as to complete synchronization of the business logic aperture, the technical logic aperture and the code of the same project demand.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method and device for synchronizing business logic caliber, technical logic caliber and code. Background Art

[0002] In various current data development projects, the corresponding business logic caliber, technical logic caliber and code are all saved offline in the form of documents as project deliverables or uploaded to the deliverable storage platform specified by Party A. When the requirements change, the corresponding business logic caliber, technical logic caliber and corresponding code will need to be updated.

[0003] In order to ensure the accuracy of data results, that is, the data results should be consistent with the business logic caliber provided by the business department, the consistency of business logic caliber, technical logic caliber and code must be achieved. However, in the existing technical solutions, only the code is completely online, and the change record log will be automatically stored and archived during the online maintenance process. The maintenance of business logic caliber and technical logic caliber are all maintained offline, and the business logic caliber document, technical logic caliber document and code are all maintained separately. It is difficult to maintain lasting consistency. Often, the three are consistent when the project is first delivered, and with the continuous iteration and update of the later demand content, or the existence of urgent online requirements, the business logic caliber, technical logic caliber and code will become inconsistent, and the longer the time, the greater the proportion of inconsistency. Summary of the invention

[0004] In view of this, the present invention provides a method and device for synchronizing business logic caliber, technical logic caliber and code, which can solve the current technical problem that business logic caliber, technical logic caliber and code cannot be synchronized.

[0005] According to a first aspect of the present invention, a method for synchronizing a business logic caliber, a technical logic caliber, and a code is provided, the method comprising:

[0006] Construct the mapping relationship between business logic, technical logic and code corresponding to the same project requirements;

[0007] In response to a change in the business logic caliber corresponding to any of the project requirements, the technical logic caliber is changed according to the project requirements and the changed business logic caliber to obtain a changed technical logic caliber;

[0008] The code is changed according to the project requirements and the changed technical logic caliber to obtain the changed code, so as to complete the synchronization of the business logic caliber, the technical logic caliber and the code of the same project requirements.

[0009] Preferably, the changing of the technical logic caliber according to the project requirements and the changed business logic caliber includes:

[0010] Query the technical logic caliber corresponding to the project requirements;

[0011] Display prompt information that the technical logical caliber is to be synchronized, receive an instruction to synchronize the technical logical caliber, and change the technical logical caliber according to the changed business logical caliber.

[0012] Preferably, the changing the technical logic caliber according to the changed business logic caliber includes:

[0013] The target technical logic caliber corresponding to the changed business logic caliber is matched from the metadata management system, and the technical logic caliber is replaced by the target technical logic caliber.

[0014] Preferably, the changing of the code according to the project requirements and the changed technical logic caliber includes:

[0015] Query the code corresponding to the project requirement;

[0016] Display prompt information that the code is to be synchronized, receive instructions to synchronize the code, and change the code according to the changed technical logic caliber.

[0017] Preferably, the changing the code according to the changed technical logic caliber includes:

[0018] The changed technical logic caliber is combined according to preset grammatical rules.

[0019] Preferably, after changing the technical logic caliber according to the project requirements and the changed business logic caliber to obtain the changed technical logic caliber, the method further includes:

[0020] Display prompt information indicating whether the modified technical logic caliber requires manual review;

[0021] receiving an instruction that the modified technical logic caliber needs to be manually reviewed, receiving an instruction to manually adjust the modified technical logic caliber, and obtaining the manually adjusted technical logic caliber;

[0022] Changing the code according to the project requirements and the changed technical logic caliber includes:

[0023] The code is modified according to the project requirements and the technical logic caliber of the manual adjustment.

[0024] Preferably, after changing the code according to the project requirements and the changed technical logic caliber to obtain the changed code, the method further includes:

[0025] Displaying prompt information indicating whether the modified code needs manual review;

[0026] An instruction that the modified code needs to be manually reviewed is received, and an instruction to manually adjust the modified code is received to obtain the manually adjusted code.

[0027] According to a second aspect of the present invention, there is provided a device for synchronizing a business logic caliber, a technical logic caliber, and a code, the device comprising:

[0028] Construction module, used to construct the mapping relationship between business logic caliber, technical logic caliber and code corresponding to the same project requirements;

[0029] A first changing module, configured to respond to a change in the business logic caliber corresponding to any of the project requirements, change the technical logic caliber according to the project requirements and the changed business logic caliber, and obtain a changed technical logic caliber;

[0030] The second change module is used to change the code according to the project requirements and the changed technical logic caliber to obtain the changed code to complete the synchronization of the business logic caliber, the technical logic caliber and the code of the same project requirements.

[0031] According to the third aspect of the present application, a storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method for synchronizing the above-mentioned business logic caliber, technical logic caliber and code is implemented.

[0032] According to the fourth aspect of the present application, a computer device is provided, including a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein when the processor executes the program, the method for synchronizing the above-mentioned business logic caliber, technical logic caliber and code is implemented.

[0033] By means of the above technical scheme, the present invention provides a method and device for synchronizing business logic caliber, technical logic caliber and code, which first constructs a mapping relationship between the business logic caliber, technical logic caliber and code corresponding to the same project requirement; then, in response to a change in the business logic caliber corresponding to any of the project requirements, changes the technical logic caliber according to the project requirement and the changed business logic caliber to obtain the changed technical logic caliber; finally, changes the code according to the project requirement and the changed technical logic caliber to obtain the changed code, so as to complete the business logic caliber of the same project requirement. , the synchronization of the technical logic caliber and the code. Through the technical solution of the present invention, since the mapping relationship between the business logic caliber, the technical logic caliber and the code corresponding to the same project requirement is pre-constructed, therefore, after any business logic caliber is changed, the technical logic caliber of the same project requirement will be automatically changed according to the changed business logic caliber. Similarly, after the technical logic caliber is changed, the code corresponding to the same project requirement will be automatically changed according to the changed technical logic caliber. Thereby, when the business logic caliber is changed, the technical logic caliber and the code corresponding to the same project requirement will be automatically changed synchronously with each other to maintain consistency.

[0034] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation on the local application. In the drawings:

[0036] Figure 1 A schematic flow chart of a method for synchronizing a business logic caliber, a technical logic caliber, and a code provided in an embodiment of the present invention is shown;

[0037] Figure 2 A schematic flow chart of another method for synchronizing business logic caliber, technical logic caliber and code provided in an embodiment of the present invention is shown;

[0038] Figure 3 A schematic diagram of the structure of a device for synchronizing business logic caliber, technical logic caliber and code provided by an embodiment of the present invention is shown;

[0039] Figure 4 A schematic diagram of the structure of another device for synchronizing business logic caliber, technical logic caliber and code provided by an embodiment of the present invention is shown;

[0040] Figure 5 An example diagram showing a mapping relationship between a business logic caliber, a technical logic caliber and a code corresponding to the same project requirement provided by an embodiment of the present invention is shown;

[0041] Figure 6 An example diagram of a technical logic caliber for synchronizing the same project requirements according to the business logic caliber provided by an embodiment of the present invention is shown;

[0042] Figure 7 An example diagram of a code for synchronizing the same project requirements according to a technical logic caliber provided by an embodiment of the present invention is shown;

[0043] Figure 8 An example diagram showing a conditional query and export based on a report number, an indicator number, a business scope number, a business version number, a technical version number, and a business scope provided by an embodiment of the present invention;

[0044] Fig. 9 An example diagram of batch query export of business logic caliber and technical logic caliber according to the same business department provided by an embodiment of the present invention is shown;

[0045] Fig.10 An example diagram is shown of a reverse batch query and export of historical versions based on the same indicator in terms of business logic and technical logic, provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0046] The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present invention can be combined with each other without conflict.

[0047] This embodiment provides a method for synchronizing business logic, technical logic and code. Figure 1 As shown, the method includes:

[0048] 101. Build a mapping relationship between business logic, technical logic and code corresponding to the same project requirements.

[0049] For this embodiment, project requirements can be divided according to at least one of the report number, report name, indicator code, indicator name, business scope number, and business scope. For example, the report number is G01, the report name is balance sheet, the indicator number is ID001, the indicator name is loan, the business scope number is BS001001, and the business scope is ordinary loan, which corresponds to one project requirement.

[0050] like Figure 5As shown, a mapping relationship between the business logic caliber, technical logic caliber and code corresponding to the same project requirement is constructed, including: the business logic caliber is filled in by the business department and the technical logic caliber is filled in by the technical department, the project requirement and the business logic caliber corresponding to the project requirement are stored together, the project requirement and the technical logic caliber corresponding to the project requirement are stored together, and the project requirement and the code corresponding to the project requirement are stored together.

[0051] Among them, 1. Business logic caliber: "Provided by the business department"

[0052] [Value / summary field 1 name] (field Chinese name)

[0053] [Value / summary field 1 source table name] (table Chinese name)

[0054] [Source system of value / aggregation field 1] (the full name of the source system in Chinese is abbreviated as)

[0055] [Priority of value / aggregate field 1] (When multiple value fields are involved at the same time, the priority of the values ​​must be determined)

[0056] [Value / aggregate field 1 filter condition]

[0057] [Value / summary field 2 name] (field Chinese name)

[0058] [Value / summary field 2 source table name] (table Chinese name)

[0059] [Source system of value / aggregation field 2] (the full name of the source system in Chinese is abbreviated as)

[0060] [Priority of value / aggregate field 2] (When multiple value fields are involved at the same time, the priority of the values ​​must be determined)

[0061] [Value / aggregate field 2 filter condition]

[0062] …

[0063] [Default value of value / aggregate field]

[0064] 2. The technical department shall fill in the technical logic caliber;

[0065] Technical logic: "Filled in by the technical department"

[0066] [Value / summary field 1 name] (field English name)

[0067] [Value / aggregate field 1 source table name] (table English name / physical table name)

[0068] [Value / summary field 1 source system] (source system code)

[0069] [Priority of value / aggregate field 1] (When multiple value fields are involved at the same time, the priority of the values ​​must be determined)

[0070] [Value / aggregate field 1 filter condition]

[0071] [Value / summary field 2 name] (field English name)

[0072] [Value / aggregate field 2 source table name] (table English name / physical table name)

[0073] [Source system of value / aggregation field 2] (the full name of the source system in Chinese is abbreviated as)

[0074] [Priority of value / aggregate field 2] (When multiple value fields are involved at the same time, the priority of the values ​​must be determined)

[0075] [Value / aggregate field 2 filter condition]

[0076] …

[0077] [Default value of value / aggregate field]

[0078] 102. In response to a change in the business logic caliber corresponding to any of the project requirements, the technical logic caliber is changed according to the project requirements and the changed business logic caliber to obtain a changed technical logic caliber.

[0079] 103. Modify the code according to the project requirements and the modified technical logic caliber to obtain the modified code, so as to complete the synchronization of the business logic caliber, the technical logic caliber and the code of the same project requirements.

[0080] For step 102 of the embodiment, in response to the change of the business logic caliber corresponding to any of the project requirements, due to the mapping relationship of step 101 of the embodiment, it is automatically associated with the technical logic caliber corresponding to the project requirement, and the technical logic caliber is changed according to the changed business logic caliber to obtain the changed technical logic caliber.

[0081] For step 103 of the embodiment, similarly, due to the mapping relationship of step 101 of the embodiment, it is automatically associated with the code corresponding to the project requirement, and the code is changed according to the changed technical logic caliber to obtain the changed code.

[0082] In the above embodiment, steps 101-103 are automatically synchronized, which is simple and efficient. In order to ensure the accuracy of synchronization, a manual review step is added on the basis of automatic synchronization, which is as follows:

[0083] After step 102 of the embodiment, that is, after the technical logic caliber is changed according to the project requirements and the changed business logic caliber to obtain the changed technical logic caliber, the method further includes: displaying a prompt message indicating whether the changed technical logic caliber requires manual review; if an instruction is received that no manual review is required, then proceeding to step 103 of the embodiment; if an instruction is received that the changed technical logic caliber requires manual review, after manual review, if an instruction is received that the changed technical logic caliber does not need to be manually adjusted, then proceeding to step 103 of the embodiment; if an instruction is received to manually adjust the changed technical logic caliber, then the manually adjusted technical logic caliber is obtained.

[0084] Correspondingly, after the changed technical logic caliber is manually adjusted to obtain the manually adjusted technical logic caliber, the embodiment step 103, changing the code according to the project requirements and the changed technical logic caliber, includes: changing the code according to the project requirements and the manually adjusted technical logic caliber.

[0085] After step 103 of the embodiment, that is, after the code is changed according to the project requirements and the changed technical logic caliber to obtain the changed code, the method further includes: displaying a prompt message indicating whether the changed code needs to be manually reviewed; if an instruction is received that does not require manual review, the changed code is not changed and synchronization is completed; if an instruction is received that the changed code needs to be manually reviewed, after manual review, if an instruction is received that does not require manual adjustment of the changed code, the changed code is not changed and synchronization is completed; if an instruction is received to manually adjust the changed code, a manually adjusted code is obtained.

[0086] The present invention provides a method and device for synchronizing business logic caliber, technical logic caliber and code. First, a mapping relationship between business logic caliber, technical logic caliber and code corresponding to the same project requirement is constructed; then, in response to a change in the business logic caliber corresponding to any of the project requirements, the technical logic caliber is changed according to the project requirement and the changed business logic caliber to obtain the changed technical logic caliber; finally, the code is changed according to the project requirement and the changed technical logic caliber to obtain the changed code, so as to complete the synchronization of the business logic caliber, the technical logic caliber and the code of the same project requirement. Through the technical solution of the present invention, since the mapping relationship between the business logic caliber, technical logic caliber and code corresponding to the same project requirement is pre-constructed, after any business logic caliber is changed, the technical logic caliber of the same project requirement will be automatically changed according to the changed business logic caliber. Similarly, after the technical logic caliber is changed, the code corresponding to the same project requirement will be automatically changed according to the changed technical logic caliber, so that when the business logic caliber is changed, the technical logic caliber and code corresponding to the same project requirement will be automatically changed synchronously to maintain consistency.

[0087] Further, as a refinement and extension of the specific implementation of the above embodiment, in order to fully illustrate the specific implementation process of this embodiment, another synchronization method of business logic caliber, technical logic caliber and code is provided, such as Figure 2 As shown, the method includes:

[0088] 201. Construct the mapping relationship between business logic caliber, technical logic caliber and code corresponding to the same project requirements.

[0089] For this embodiment, the specific implementation is the same as step 101 of the embodiment, and will not be repeated here.

[0090] 202. In response to a change in the business logic caliber corresponding to any of the project requirements, query the technical logic caliber corresponding to the project requirements.

[0091] 203. Display prompt information that the technical logical caliber is to be synchronized, receive an instruction to synchronize the technical logical caliber, change the technical logical caliber according to the changed business logical caliber, and obtain the changed technical logical caliber.

[0092] For steps 202 and 203 of the embodiment, while displaying the prompt information that the technical logic caliber is to be synchronized, the technical logic maintenance page receives the prompt information that the technical logic caliber is to be synchronized, and the technical logic caliber administrator can click the "Synchronize Change" button to receive the instruction to synchronize the technical logic caliber, change the technical logic caliber according to the changed business logic caliber, and obtain the changed technical logic caliber, which can be updated one by one or in batches.

[0093] Preferably, for step 202 of the embodiment, the business reporting department, business reporting personnel, business reporting date, business version number, etc. can be automatically generated according to the operation information of the business logic administrator and the configured rules.

[0094] For step 203 of the embodiment, changing the technical logic caliber according to the changed business logic caliber includes: matching the technical logic caliber corresponding to the changed business logic caliber from the metadata management system, and replacing the technical logic caliber with the technical logic caliber corresponding to the changed business logic caliber.

[0095] For the technical logic caliber corresponding to the changed business logic caliber matched from the metadata management system, specifically, Figure 6 As shown, the value summary field 1 is matched from the metadata management system in the changed business logic caliber, so that the balance in the changed business logic caliber is matched to BAL. Similarly, the corporate loan debit note table in the changed business logic caliber is matched to LN_RCPT_TBL, which will not be repeated here.

[0096] Preferably, for step 203 of the embodiment, the technical reporting source system, the technical reporting personnel, the technical reporting date, the technical version number, etc. can be automatically generated according to the operation information of the technical logic administrator and the configured rules.

[0097] 204. Query the code corresponding to the project requirement, display the prompt information that the code is to be synchronized, receive the instruction to synchronize the code, change the code according to the changed technical logic caliber, and obtain the changed code to complete the synchronization of the business logic caliber, the technical logic caliber and the code of the same project requirement.

[0098] For this embodiment, while displaying the prompt information that the code is to be synchronized, the technical code maintenance page receives the prompt information that the code is to be synchronized. The data developer can click the "Synchronize Changes" button to receive the instruction to synchronize the code, and change the code according to the changed technical logic caliber to obtain the changed code, which can be updated one by one or in batches.

[0099] like Figure 7 As shown, for this embodiment, the code is changed according to the changed technical logic caliber, including: combining the changed technical logic caliber according to preset grammar rules. For example, the preset grammar rule is SQL language, such as automatically matching SELECT / FROM / WHERE / GROUP BY / LEFT JOIN to form a standardized SQL code.

[0100] Preferably, information such as the data developer, code update date, technical code version number, etc. can be automatically generated based on the operation information of the data developer and the configured rules.

[0101] After step 204 of the embodiment, the business logic caliber, technical logic caliber and code can be automatically archived and exported according to conditions. As an implementation method, query / export permission configuration:

[0102] 1) The query results displayed to the business department only contain business logic information;

[0103] 2) Display the business logic, technical logic and code of the query results to the technical department;

[0104] Specifically, Figure 8 As shown, query and export by conditions, the conditions are report number, indicator number, business scope number, business version number, technical version number and business scope;

[0105] Specifically, Fig. 9 As shown, batch query and export of business logic and technical logic are performed according to the same business department;

[0106] Specifically, Fig.10 As shown, historical versions of business logic and technical logic are batch queried and exported in reverse order according to the same indicator.

[0107] Business logic caliber, technical logic caliber and code are archived / queried / exported from different dimensions to meet the needs of system operation and maintenance personnel and relevant personnel of each business department to query the current version of business logic caliber, technical logic caliber and code. The historical versions of business logic caliber, technical logic caliber and code are sorted and archived by business type or business module, and the automatic comparison and display of business logic caliber, technical logic caliber and code are also realized.

[0108] The present invention provides a method and device for synchronizing business logic caliber, technical logic caliber and code. First, a mapping relationship between business logic caliber, technical logic caliber and code corresponding to the same project requirement is constructed; then, in response to a change in the business logic caliber corresponding to any of the project requirements, the technical logic caliber is changed according to the project requirement and the changed business logic caliber to obtain the changed technical logic caliber; finally, the code is changed according to the project requirement and the changed technical logic caliber to obtain the changed code, so as to complete the synchronization of the business logic caliber, the technical logic caliber and the code of the same project requirement. Through the technical solution of the present invention, since the mapping relationship between the business logic caliber, technical logic caliber and code corresponding to the same project requirement is pre-constructed, after any business logic caliber is changed, the technical logic caliber of the same project requirement will be automatically changed according to the changed business logic caliber. Similarly, after the technical logic caliber is changed, the code corresponding to the same project requirement will be automatically changed according to the changed technical logic caliber, so that when the business logic caliber is changed, the technical logic caliber and code corresponding to the same project requirement will be automatically changed synchronously to maintain consistency.

[0109] Further, as Figure 1 and Figure 2 The specific implementation of the method shown in the embodiment of the present invention provides a synchronization device for business logic caliber, technical logic caliber and code, such as Figure 3 As shown, the device includes: a construction module 31, a first modification module 32, and a second modification module 33;

[0110] Construction module 31, used to construct a mapping relationship between business logic caliber, technical logic caliber and code corresponding to the same project requirements;

[0111] A first changing module 32 is used for changing the technical logic caliber according to the project requirement and the changed business logic caliber in response to the change of the business logic caliber corresponding to any of the project requirements, so as to obtain the changed technical logic caliber;

[0112] The second changing module 33 is used to change the code according to the project requirements and the changed technical logic caliber to obtain the changed code to complete the synchronization of the business logic caliber, the technical logic caliber and the code of the same project requirements.

[0113] Correspondingly, in order to change the technical logic caliber according to the project requirements and the changed business logic caliber, the first change module 32 can be specifically used to query the technical logic caliber corresponding to the project requirements; display the prompt information of the technical logic caliber to be synchronized, receive the instruction to synchronize the technical logic caliber, and change the technical logic caliber according to the changed business logic caliber.

[0114] Correspondingly, in order to change the technical logic caliber according to the changed business logic caliber, the first change module 32 can also be used to match the technical logic caliber corresponding to the changed business logic caliber from the metadata management system, and replace the technical logic caliber with the technical logic caliber corresponding to the changed business logic caliber.

[0115] Correspondingly, in order to change the code according to the project requirements and the changed technical logical caliber, the second change module 33 can also be used to query the code corresponding to the project requirements; display the prompt information of the code to be synchronized, receive the instruction to synchronize the code, and change the code according to the changed technical logical caliber.

[0116] Correspondingly, in order to change the code according to the changed technical logic caliber, the second changing module 33 can also be used to combine the changed technical logic caliber according to preset grammar rules.

[0117] In specific application scenarios, such as Figure 4 As shown, a device for synchronizing business logic caliber, technical logic caliber and code, the device also includes: a first review module 34, which can be specifically used to display prompt information on whether the changed technical logic caliber needs manual review; receive an instruction that the changed technical logic caliber needs manual review, receive an instruction to manually adjust the changed technical logic caliber, and obtain the manually adjusted technical logic caliber.

[0118] Accordingly, in order to change the code according to the project requirements and the changed technical logic caliber, the second changing module 34 can also be used to change the code according to the project requirements and the manually adjusted technical logic caliber.

[0119] In specific application scenarios, such as Figure 4 As shown, a device for synchronizing business logic caliber, technical logic caliber and code, the device also includes: a second review module 35, which can be specifically used to display prompt information on whether the changed code needs manual review; receive instructions that the changed code needs manual review, receive instructions to manually adjust the changed code, and obtain the manually adjusted code.

[0120] It should be noted that for other corresponding descriptions of the functional units involved in the synchronization device for a business logic caliber, a technical logic caliber and a code provided in this embodiment, reference can be made to Figure 1 to Figure 2 The corresponding description will not be repeated here.

[0121] Based on the above Figure 1 to Figure 2 The method shown in the embodiment, accordingly, also provides a storage medium, which can be volatile or non-volatile, and stores a computer program, which is executed by a processor to implement the above-mentioned Figure 1 to Figure 2 The synchronization method of business logic caliber, technical logic caliber and code is shown.

[0122] Based on this understanding, the technical solution of the present invention can be embodied in the form of a software product, which can be stored in a storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of various implementation scenarios of the present invention.

[0123] Based on the above Figure 1 to Figure 2 The method shown and Figure 3 , Figure 4 In order to achieve the above-mentioned purpose, the present embodiment further provides a computer device, which includes a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to achieve the above-mentioned Figure 1 to Figure 2 The synchronization method of business logic caliber, technical logic caliber and code is shown.

[0124] Optionally, the computer device may further include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a WI-FI module, etc. The user interface may include a display, an input unit such as a keyboard, etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface), etc.

[0125] Those skilled in the art will appreciate that the computer device structure provided in this embodiment does not constitute a limitation on the physical device, and may include more or fewer components, or a combination of certain components, or different component arrangements.

[0126] The storage medium may also include an operating network communication module. The operating is a program that manages the hardware and software resources of the above-mentioned computer device, supporting the operation of the information processing program and other software and / or programs. The network communication module is used to communicate between the components inside the storage medium, and to communicate with other hardware and software in the information processing entity device.

[0127] Through the description of the above implementation modes, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary general hardware platform, or by hardware.

[0128] The present invention provides a method and device for synchronizing business logic caliber, technical logic caliber and code. First, a mapping relationship between business logic caliber, technical logic caliber and code corresponding to the same project requirement is constructed; then, in response to a change in the business logic caliber corresponding to any of the project requirements, the technical logic caliber is changed according to the project requirement and the changed business logic caliber to obtain the changed technical logic caliber; finally, the code is changed according to the project requirement and the changed technical logic caliber to obtain the changed code, so as to complete the synchronization of the business logic caliber, the technical logic caliber and the code of the same project requirement. Through the technical solution of the present invention, since the mapping relationship between the business logic caliber, technical logic caliber and code corresponding to the same project requirement is pre-constructed, after any business logic caliber is changed, the technical logic caliber of the same project requirement will be automatically changed according to the changed business logic caliber. Similarly, after the technical logic caliber is changed, the code corresponding to the same project requirement will be automatically changed according to the changed technical logic caliber, so that when the business logic caliber is changed, the technical logic caliber and code corresponding to the same project requirement will be automatically changed synchronously to maintain consistency.

[0129] Those skilled in the art will appreciate that the accompanying drawings are only schematic diagrams of a preferred implementation scenario, and the modules or processes in the accompanying drawings are not necessarily necessary for implementing the present invention. Those skilled in the art will appreciate that the modules in the devices in the implementation scenario can be distributed in the devices of the implementation scenario according to the description of the implementation scenario, or can be changed accordingly and located in one or more devices different from the present implementation scenario. The modules of the above-mentioned implementation scenario can be combined into one module, or can be further split into multiple submodules.

[0130] The above serial numbers of the present invention are only for description and do not represent the advantages and disadvantages of the implementation scenarios. The above disclosure is only a few specific implementation scenarios of the present invention, but the present invention is not limited thereto, and any changes that can be thought of by those skilled in the art should fall within the protection scope of the present invention.

Claims

1. A method for synchronizing business logic, technical logic and code, characterized in that: The method comprises: Construct the mapping relationship between business logic, technical logic and code corresponding to the same project requirements; In response to a change in the business logic caliber corresponding to any of the project requirements, the technical logic caliber is changed according to the project requirements and the changed business logic caliber to obtain a changed technical logic caliber; The code is changed according to the project requirements and the changed technical logic caliber to obtain the changed code, so as to complete the synchronization of the business logic caliber, the technical logic caliber and the code of the same project requirements.

2. The method according to claim 1, characterized in that Changing the technical logic caliber according to the project requirements and the changed business logic caliber includes: Query the technical logic caliber corresponding to the project requirements; Display prompt information that the technical logical caliber is to be synchronized, receive an instruction to synchronize the technical logical caliber, and change the technical logical caliber according to the changed business logical caliber.

3. The method according to claim 2, characterized in that Changing the technical logic caliber according to the changed business logic caliber includes: The target technical logic caliber corresponding to the changed business logic caliber is matched from the metadata management system, and the technical logic caliber is replaced by the target technical logic caliber.

4. The method according to claim 1, characterized in that: Changing the code according to the project requirements and the changed technical logic caliber includes: Query the code corresponding to the project requirement; Display prompt information that the code is to be synchronized, receive instructions to synchronize the code, and change the code according to the changed technical logic caliber.

5. The method according to claim 4, characterized in that The step of changing the code according to the changed technical logic caliber includes: The changed technical logic caliber is combined according to preset grammatical rules.

6. The method according to claim 1, characterized in that After the technical logic caliber is changed according to the project requirements and the changed business logic caliber to obtain the changed technical logic caliber, the method further includes: Display prompt information indicating whether the modified technical logic caliber requires manual review; receiving an instruction that the modified technical logic caliber needs to be manually reviewed, receiving an instruction to manually adjust the modified technical logic caliber, and obtaining the manually adjusted technical logic caliber; Changing the code according to the project requirements and the changed technical logic caliber includes: The code is modified according to the project requirements and the technical logic caliber of the manual adjustment.

7. The method according to claim 1, characterized in that After the code is changed according to the project requirements and the changed technical logic caliber to obtain the changed code, the method further includes: Displaying prompt information indicating whether the modified code needs manual review; An instruction that the modified code needs to be manually reviewed is received, and an instruction to manually adjust the modified code is received to obtain the manually adjusted code.

8. A device for synchronizing business logic caliber, technical logic caliber and code, characterized in that: The device comprises: Construction module, used to construct the mapping relationship between business logic caliber, technical logic caliber and code corresponding to the same project requirements; A first changing module, configured to respond to a change in the business logic caliber corresponding to any of the project requirements, change the technical logic caliber according to the project requirements and the changed business logic caliber, and obtain a changed technical logic caliber; The second change module is used to change the code according to the project requirements and the changed technical logic caliber to obtain the changed code to complete the synchronization of the business logic caliber, the technical logic caliber and the code of the same project requirements.

9. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for synchronizing the business logic caliber, technical logic caliber and code as described in any one of claims 1 to 7 is implemented.

10. A computer device comprising a storage medium, a processor, and a computer program stored in the storage medium and executable on the processor, characterized in that: When the processor executes the computer program, the method for synchronizing the business logic caliber, technical logic caliber and code as described in any one of claims 1 to 7 is implemented.