Data change method, device, equipment, medium and program product
By obtaining data change request instructions and dynamically adjusting the change configuration model, the problem of business and logic coupling during the data change process is solved, the system efficiency and maintainability are improved, and flexible information item processing is achieved.
Patent Information
- Application Number
- CN202111546142.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-16
- Publication Date
- 2025-09-02
- Estimated Expiration
- 2041-12-16
AI Technical Summary
In the process of data change, the existing technology has problems such as serious coupling between business and logic, complex computing, low degree of automation, and poor configurability, resulting in inefficiency of the system and difficulty in maintaining.
By obtaining data change request instructions, the configurable change configuration model is retrieved based on the data source identification and type identification, and the information item model is dynamically adjusted to adapt to different business scenarios to achieve flexible changes and verification of information items.
It realizes decoupling of business and logic, reduces data storage and computing overhead, improves processing efficiency, facilitates subsequent maintenance, and enhances the interpretability and adaptability of data changes.
Smart Images

Figure CN114218240B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the financial field or the database field, and specifically to a data modification method, and more specifically to a data modification method, apparatus, device, medium, and program product. Background Art
[0002] Data changes often involve changes based on different business scenarios. To align with these scenarios, the required information items are typically hard-coded into the change method. For example, when changing asset values in a banking system, there are multiple scenarios requiring changes to different value information items. These changes are typically hard-coded, requiring the required information items to be modified when processing the corresponding business. This approach leads to a severe coupling between business and logic, unclear business scenarios, and the generation of complex calculations and temporary storage, which impacts system efficiency, complicates accounting and changes, and limits data interpretability. Furthermore, since changes to business scenario information require modifications to hard-coded data and re-releases, the system suffers from low automation, poor configurability, and inconvenient future maintenance. Summary of the Invention
[0003] In view of the above problems, the present disclosure provides a configurable data change method, apparatus, device, medium and program product.
[0004] According to a first aspect of the present disclosure, a data change method is provided, comprising: obtaining a data change request instruction, the data change request instruction including a data source identifier and a data change type identifier; obtaining information item data based on the data source identifier; retrieving a change configuration model based on the data change type identifier, wherein the change configuration model is established based on a preset information item model; and obtaining data change information based on the change configuration model and the information item data, wherein the change configuration model is dynamically adjusted based on business rules.
[0005] According to an embodiment of the present disclosure, the preset information item model includes M information item change types, and the change configuration model includes information items and information item change types, wherein the number of information items is Q, each information item corresponds to N information item change types, M and Q are both integers greater than or equal to 1, N satisfies 1≤N≤M and N is an integer.
[0006] According to an embodiment of the present disclosure, the dynamic adjustment of the changed configuration model based on business rules includes: adjusting at least one of information items or information item change types included in the changed configuration model based on business rules.
[0007] According to an embodiment of the present disclosure, the information item change type at least includes after target data is changed.
[0008] According to an embodiment of the present disclosure, the information item change type further includes at least one of original data before change, original data after change, original data change value, target data before change, and target data change value.
[0009] According to an embodiment of the present disclosure, the change configuration model also includes a data change type identifier, an information item to be changed, an information item change subtype, an information item change method, and an information item change value, wherein the information item change subtype is a subset of the information item change type, and the information item change value is associated with the information item change method and the information item data.
[0010] According to an embodiment of the present disclosure, the change configuration model further includes: an information item change auxiliary item, the information item change auxiliary item including at least one of an information item change scenario and an information item change verification, and the information item change auxiliary item is associated with the information item to be changed.
[0011] According to an embodiment of the present disclosure, the acquiring of data change information based on the change configuration model and the information item data includes: matching the information item to be changed based on the data change type identifier; matching the information item change subtype based on the information item to be changed; matching the information item change method based on the information item change subtype; acquiring the information item change value based on the information item change method and the information item data; and acquiring data change information based on the information item change value.
[0012] According to an embodiment of the present disclosure, after matching the information item change subtype based on the information item to be changed, the method further includes: matching the information item change auxiliary item based on the information item change subtype; and matching the information item change method based on the information item change auxiliary item, wherein the information item change auxiliary item includes at least one of an information item change scenario and an information item change verification, and the information item change auxiliary item is associated with the information item to be changed.
[0013] A second aspect of the present disclosure provides a data change device, including: a first acquisition module, configured to obtain a data change request instruction, the request instruction including a data source identifier and a data change type identifier; a second acquisition module, configured to obtain information item data based on the data source identifier; a calling module, configured to call a change configuration model based on the data change type identifier, wherein the change configuration model is established based on an information item model, and the information item model includes an information item change type; and a third acquisition module, configured to obtain data change information based on the change configuration model and the information item data.
[0014] According to an embodiment of the present disclosure, the third acquisition module also includes: a first processing submodule, configured to match the information item to be changed based on the data change type identifier; a second processing submodule, configured to match the information item change subtype based on the information item to be changed; a third processing submodule, configured to match the information item change method based on the information item change subtype; a fourth processing submodule, configured to obtain the information item change value based on the information item change method and the information item data; and a collection submodule, configured to obtain data change information based on the information item change value.
[0015] A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors execute the above method.
[0016] A fourth aspect of the present disclosure further provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to execute the above method.
[0017] The fifth aspect of the present disclosure further provides a computer program product, comprising a computer program, which implements the above method when executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The above contents and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0019] Figure 1 The following schematically illustrates an application scenario of the data modification method and device according to an embodiment of the present disclosure.
[0020] Figure 2 The flowchart of the data modification method according to the embodiment of the present disclosure is schematically shown.
[0021] Figure 3 The flowchart of the method for obtaining data change information according to an embodiment of the present disclosure is schematically shown.
[0022] Figure 4 The flowchart of the method for obtaining data change information according to some other embodiments of the present disclosure is schematically shown.
[0023] Figure 5 The structural block diagram of the data changing device according to an embodiment of the present disclosure is schematically shown.
[0024] Figure 6 The structural block diagram of the third acquisition module according to an embodiment of the present disclosure is schematically shown.
[0025] Figure 7 A block diagram of an electronic device suitable for implementing a data modification method according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0026] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are merely exemplary and are not intended to limit the scope of the present disclosure. In the detailed description below, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0027] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise," "include," etc. used herein indicate the presence of the features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.
[0028] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.
[0029] When expressions such as "at least one of A, B and C, etc." are used, they should generally be interpreted in accordance with the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0030] It should be noted that the data modification methods, apparatuses, devices, media, and program products provided in the embodiments of the present disclosure can be used for data modification in database technology, and can also be used in various fields other than database technology, such as finance. The application fields of the data modification methods, apparatuses, devices, media, and program products provided in the embodiments of the present disclosure are not limited.
[0031] In the technical solution disclosed herein, the acquisition, collection, storage, use, processing, transmission, provision, disclosure and application of data comply with the provisions of relevant laws and regulations, take necessary confidentiality measures, and do not violate public order and good morals.
[0032] An embodiment of the present disclosure provides a data change method, including: obtaining a data change request instruction, the data change request instruction including a data source identifier and a data change type identifier; obtaining information item data based on the data source identifier; retrieving a change configuration model based on the data change type identifier, wherein the change configuration model is established based on a preset information item model; and obtaining data change information based on the change configuration model and the information item data, wherein the change configuration model is dynamically adjusted based on business rules.
[0033] Figure 1 The following schematically illustrates an application scenario of the data modification method and device according to an embodiment of the present disclosure.
[0034] like Figure 1 As shown, the application scenario 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used as a medium for providing a communication link between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired or wireless communication links or optical fiber cables.
[0035] Users can use terminal devices 101, 102, and 103 to interact with server 105 via network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, and 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).
[0036] The terminal devices 101 , 102 , and 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.
[0037] The server 105 may be a server that provides various services, such as a background management server (for example only) that supports websites browsed by users using the terminal devices 101, 102, and 103. The background management server may analyze and process received data such as user requests, and feed back processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.
[0038] It should be noted that the data change method provided in the embodiments of the present disclosure can generally be executed by the server 105. Accordingly, the data change device provided in the embodiments of the present disclosure can generally be set in the server 105. The data change method provided in the embodiments of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105. Accordingly, the data change device provided in the embodiments of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105.
[0039] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is merely illustrative. Any number of terminal devices, networks and servers may be provided as required.
[0040] The following will be based on Figure 1 The scene described by Figures 2 to 4 The data changing method of the embodiment of the present disclosure is described in detail.
[0041] Figure 2 The flowchart of the data modification method according to the embodiment of the present disclosure is schematically shown.
[0042] like Figure 2 As shown, the data changing method of this embodiment includes operations S210 to S240.
[0043] In operation S210 , a data change request instruction is obtained.
[0044] In operation S220 , information item data is acquired based on the data source identifier.
[0045] According to an embodiment of the present disclosure, a data change request instruction can be obtained based on an upstream business system. In a typical data change process, the upstream business system completes the approval of the data change-related business, and the upstream business system then sends a data change request instruction based on the approval result. It can be understood that a unique identifier can be preset based on each upstream business system, and the identifier can be used as a data source identifier. Further, the data change request instruction can include a data source identifier to obtain business data from the corresponding upstream business system, so that specific numerical processing of the data change can be performed, such as obtaining the numerical value of the information item. For example, for a banking system, a typical upstream business system may include an asset procurement system, an asset daily management system, an asset scrapping processing system, etc. Accordingly, a unique code corresponding to the upstream business system can be set, for example: asset procurement system-F1, asset daily management system-F2, asset scrapping processing system-F3.
[0046] It is understood that a data change request can also include a data change type identifier, and the corresponding data change method, such as a configuration model change, can be retrieved based on the data change type identifier. For example, for an asset value change transaction in a banking system, data change types can include asset creation, asset transfer, asset impairment provision, asset depreciation adjustment, and asset original value adjustment. Accordingly, the following can be set: asset creation - T1, asset transfer - T2, asset impairment provision - T3, asset depreciation adjustment - T4, asset original value adjustment - T5, etc. It is understood that data change types can also include multiple subtypes. For example, asset transfers can include different situations such as intra-institutional transfers and inter-institutional transfers. Accordingly, each data change subtype can be assigned a unique identifier and a corresponding data change method. Thus, the data change type identifier can be flexibly adjusted based on the existence of data change subtypes. It can be a single identifier or include a main identifier and sub-identifiers to meet different data analysis needs. Different data change types can be associated with different information items. For example, if the data change type is asset residual value adjustment, the associated information items include original value and residual value. By associating the corresponding upstream business system with the data source identifier, information item data, such as asset original value data and asset residual value data, can be obtained.
[0047] In operation S230 , a change configuration model is retrieved based on the data change type identifier.
[0048] According to embodiments of the present disclosure, the change configuration model can be established based on a preset information item model, which can be dynamically adjusted based on business rules. By introducing a preset, unchanging information item model, the information item change state is abstracted to facilitate efficient data change processing. Furthermore, a configurable change configuration model that can be dynamically adjusted based on business rules is established using the information item model, enabling flexible response to information item changes in diverse business scenarios, reducing data transmission and processing overhead, and improving processing efficiency.
[0049] According to an embodiment of the present disclosure, the preset information item model includes M information item change types, and the change configuration model includes information items and information item change types, wherein the number of information items is Q, each information item corresponds to N information item change types, M and Q are both integers greater than or equal to 1, N satisfies 1≤N≤M and N is an integer.
[0050] According to specific embodiments of the present disclosure, an information item model can be preset based on the possible change states of an information item, and the possible change state types involved can be abstracted into information item change types. It is understood that the information item change type can at least include the specific value of the information item after the target data is changed, that is, after the change.
[0051] In some specific embodiments, the information item change type may also include at least one of: before original data change, after original data change, original data change value, before target data change, and target data change value. For example, in the asset value change of a banking system, when the data change type involves the adjustment of the original value of the asset, it may involve the original value information item, and accordingly, it may involve at least one information item change type of before target data change, after target data change, and target data change value. For another example, in the asset value change of a banking system, when the data change type involves asset transfer, there may be two major categories: the original asset management entity and the current asset management entity. With the original asset management entity as the original data entity and the current asset management entity as the target data entity, after the asset transfer, for the original asset management entity, there may be three information item change types: before original data change, after original data change, and original data change value; for the current asset management entity, there may be three information item change types: before target data change, after target data change, and target data change value. In some specific embodiments, to improve the applicability of the information item model, all information item change types that may be involved in a data change transaction can be configured within the information item model when the information item model is pre-set. It is understood that different data change types may involve different information items, and different information item change types can be established based on the information items. For example, in a banking system, when the data change type involves adjusting the original value of the asset, the original value information item may be involved, but not the residual value information item. When the information item is the original value, the information item change types that may be involved include the target data after the change, and may also involve at least one of the target data before the change, and the target data change value. However, since there is no change in the asset management entity, the original data before the change, the original data after the change, and the original data change value may not be involved. Alternatively, a change configuration model can be established based on the information item model. The change configuration model is associated with the data change type, and different data change types can be configured with different change configuration models. These models can include different information items and information item change types corresponding to each information item. Based on the established information item model, information items and information item change types that are suitable for the current change configuration model can be extracted to enhance the explainability of data changes.
[0052] In embodiments of the present disclosure, at least one of the information items or information item change types included in the change configuration model can be adjusted based on business rules, thereby dynamically adjusting the change configuration model based on business rules. It is understood that different data change types can have different business rules, and business rules can be associated with the information items and information item change types involved in the current data change type. Changes in business rules may involve changes in the type and quantity of information items, as well as the type and quantity of information item change types corresponding to those information items. For example, in an asset value change transaction in a banking system, the original change configuration model only includes the original value information item and the target data after the change. After the business rules are adjusted, two new information item change types, target data before the change and target data after the change, need to be added to the change configuration model. In this case, the corresponding data change types need only be extracted from the information item model and added to the change configuration model, eliminating the need to hard-code the asset value change method. It is understood that the information item model and the change configuration model can be established in the form of data tables to facilitate addition, deletion, query, and modification.
[0053] In some specific embodiments, the change configuration model may further include a data change type identifier, an information item to be changed, an information item change subtype, an information item change method, and an information item change value. It is understood that the change configuration model is associated with a specific data change type. A specific data change type may include a specific information item to be changed, each of which corresponds to a specific information item change subtype. The information item change subtype should be a subset of the information item change types set in the information item model. In some specific examples, this subset may be equal to the full set of information item change types. Furthermore, a specific information item change subtype may correspond to an information item change method. Information item change values may include numeric values and non-numeric values. Information item change values may be associated with information item change methods. In some examples, a default value may be preset based on the information item change method. For example, in an asset value change transaction in a banking system, when the data change type involves asset transfer, the information item may include scrapping. For the scrapping information item, its change method may include a preset default value of N. If scrapping is confirmed, the default value is updated to Y. It can be understood that the changed value of the information item can also be associated with the information item data. For example, in cross-institutional asset transfer data changes, the information item can also include the original value of the asset. For the current asset management entity, the value of the original value information item should be changed to the existing original value of the asset. The specific value can be obtained based on the information item data obtained from the upstream business system based on the preset change method.
[0054] According to specific embodiments of the present disclosure, the change configuration model may further include: information item change assistance items. The information item change assistance items may include at least one of information item change scenarios and information item change verification. The information item change assistance items may be associated with the information item to be changed. The information item change scenario may include a description of the information item change status when the information item is changed. The information item change verification may specify whether a verification is required before the change to ensure the correctness of the change for a specific information item. For example, when a scrapped information item with the subtype of cross-institutional asset transfer change is involved, its change status may include modified, added, and so on. For the original asset manager, the scrapped information item status may be updated from the default value N to Y, indicating a modified status; for the current asset manager, the scrapped information item status may retain the default value N, indicating an added status. It is understood that confirming whether an asset has residual value before scrapping is crucial. Therefore, when scrapping information items belonging to the original asset manager need to be changed, information item change verification is required. However, when scrapping information items belonging to the current asset manager require scrapping, information item change verification is not required. For example, when it comes to the original value information item of the cross-institutional asset transfer change subtype, its information item change scenarios can include modification, addition, etc. For the original asset manager, the status of the original value information item can be updated from the original value to 0, indicating its status is modification; for the current asset manager, the status of the original value information item can be null (process transfer value), indicating its status is addition. It is understandable that because the original value information item contains a specific value, both the original asset manager and the current asset manager must verify the information item before changing it.
[0055] In operation S240 , data change information is acquired based on the changed configuration model and the information item data.
[0056] Figure 3 The flowchart of the method for obtaining data change information according to an embodiment of the present disclosure is schematically shown.
[0057] like Figure 3 As shown, the data changing method of this embodiment includes operations S310 to S350.
[0058] In operation S310 , information items to be changed are matched based on the data change type identifier.
[0059] In operation S320 , the information item change subtype is matched based on the information item to be changed.
[0060] In operation S330, an information item change method is matched based on the information item change subtype.
[0061] In operation S340 , an information item change value is acquired based on the information item change method and the information item data.
[0062] In operation S350 , data change information is acquired based on the changed value of the information item.
[0063] According to an embodiment of the present disclosure, after a change configuration model is constructed based on a preset information item model, data change information may be acquired based on the change configuration model and the information item data.
[0064] The corresponding information item to be changed can be matched based on the data change type identifier agreed upon between the upstream business system and the data change system. The corresponding information item change subtype can then be matched based on the information item to be changed. The corresponding information item change method can then be matched based on the information item change subtype. The specific information item change value can then be obtained based on the information item change method and the information item data. Thus, data change information can be obtained based on the information item change value. Data change information can include both the information item change value and the final data change information obtained by further processing the information item change value. It is understood that data change information can also include intermediate information during the data change process. A typical example is that in an asset value change transaction in a banking system, information item change values can be generated for user query, and accounting entries and transaction history records can also be generated based on the information item change values.
[0065] In some other embodiments of the method for obtaining data change information, when the changed configuration model further includes information item change auxiliary items, operation S330 may be replaced by operation S410 to operation S420 between operations S320 to S340.
[0066] Figure 4 The flowchart of the method for obtaining data change information according to some other embodiments of the present disclosure is schematically shown.
[0067] like Figure 4 As shown, in operation S410, information item change auxiliary items are matched based on the information item change subtype.
[0068] In operation S420, an information item change method is matched based on the information item change auxiliary item.
[0069] According to an embodiment of the present disclosure, when the change configuration model also includes information item change auxiliary items associated with the information item to be changed, such as at least one of an information item change scenario and an information item change verification, since the execution of the information item change method may depend on the information item change auxiliary items, the information item change auxiliary items can be matched based on the information item change subtype, and then the information item change method can be matched based on the information item change auxiliary items. For example, when it comes to the original value information item of the cross-institutional asset transfer change subtype, its information item change scenario can include modification, addition, etc. Different information item change methods can be associated with the modification scenario and the addition scenario respectively. On the other hand, since the original value information item contains a specific numerical value, in order to facilitate accurate calculation, an information item change verification can be performed, and when the verification is correct, the corresponding information item change method can be associated.
[0070] The data change method provided by the embodiment of the present disclosure abstracts the information item model, uniformly processes complex and changeable data changes into information item change types, and at the same time configures a dynamically adjustable change configuration model according to the data change type. The information item model is used in the change configuration model to provide configurable information items, thereby achieving flexible and efficient completion of information item changes according to different business scenarios, enhancing the interpretability of data changes, achieving decoupling of business and logic, reducing the overhead of data storage, calculation and transmission, improving the efficiency of data processing, and facilitating future maintenance.
[0071] Based on the above data change method, the present disclosure also provides a data change device. Figure 5 The device is described in detail.
[0072] Figure 5 The structural block diagram of the data changing device according to an embodiment of the present disclosure is schematically shown.
[0073] like Figure 5 As shown, the data changing device 500 of this embodiment includes a first obtaining module 510 , a second obtaining module 520 , a calling module 530 and a third obtaining module 540 .
[0074] The first acquisition module 510 is configured to acquire a data change request instruction, wherein the request instruction includes a data source identifier and a data change type identifier.
[0075] The second acquisition module 520 is configured to acquire information item data based on the data source identifier.
[0076] The calling module 530 is configured to retrieve a change configuration model based on the data change type identifier, wherein the change configuration model is established based on an information item model, and the information item model includes an information item change type.
[0077] The third acquisition module 540 is configured to acquire data change information based on the changed configuration model and the information item data.
[0078] Figure 6 The structural block diagram of the third acquisition module according to an embodiment of the present disclosure is schematically shown.
[0079] like Figure 6 As shown, the third acquisition module 540 of this embodiment further includes a first processing submodule 5401 , a second processing submodule 5402 , a third processing submodule 5403 , a fourth processing submodule 5404 and a collection submodule 5405 .
[0080] The first processing submodule 5401 is configured to match the information item to be changed based on the data change type identifier.
[0081] The second processing submodule 5402 is configured to match the information item change subtype based on the information item to be changed.
[0082] The third processing submodule 5403 is configured to match an information item change method based on the information item change subtype.
[0083] The fourth processing submodule 5404 is configured to obtain an information item change value based on the information item change method and the information item data.
[0084] The acquisition submodule 5405 is configured to obtain data change information based on the changed value of the information item.
[0085] According to an embodiment of the present disclosure, any multiple modules among the first acquisition module 510, the second acquisition module 520, the calling module 530, the third acquisition module 540, the first processing submodule 5401, the second processing submodule 5402, the third processing submodule 5403, the fourth processing submodule 5404, and the acquisition submodule 5405 can be combined into a single module for implementation, or any one of these modules can be split into multiple modules. Alternatively, at least part of the functionality of one or more of these modules can be combined with at least part of the functionality of other modules and implemented in a single module. According to an embodiment of the present disclosure, at least one of the first acquisition module 510, the second acquisition module 520, the calling module 530, the third acquisition module 540, the first processing sub-module 5401, the second processing sub-module 5402, the third processing sub-module 5403, the fourth processing sub-module 5404 and the acquisition sub-module 5405 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application-specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or can be implemented in any one of the three implementation methods of software, hardware and firmware, or in an appropriate combination of any of them. Alternatively, at least one of the first acquisition module 510, the second acquisition module 520, the calling module 530, the third acquisition module 540, the first processing sub-module 5401, the second processing sub-module 5402, the third processing sub-module 5403, the fourth processing sub-module 5404 and the acquisition sub-module 5405 can be at least partially implemented as a computer program module, and when the computer program module is run, the corresponding function can be performed.
[0086] Figure 7 A block diagram of an electronic device suitable for implementing a data modification method according to an embodiment of the present disclosure is schematically shown.
[0087] like Figure 7 As shown, the electronic device 900 according to an embodiment of the present disclosure includes a processor 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage part 908 into a random access memory (RAM) 903. The processor 901 may, for example, include a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a dedicated microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 901 may also include an onboard memory for caching purposes. The processor 901 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0088] Various programs and data required for the operation of the electronic device 900 are stored in the RAM 903. The processor 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. The processor 901 executes the various operations of the method flow according to the embodiment of the present disclosure by executing the programs in the ROM 902 and / or the RAM 903. It should be noted that the programs may also be stored in one or more memories other than the ROM 902 and the RAM 903. The processor 901 may also execute the various operations of the method flow according to the embodiment of the present disclosure by executing the programs stored in the one or more memories.
[0089] According to an embodiment of the present disclosure, the electronic device 900 may further include an input / output (I / O) interface 905, which is also connected to the bus 904. The electronic device 900 may further include one or more of the following components connected to the I / O interface 905: an input portion 906 including a keyboard, a mouse, etc.; an output portion 907 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage portion 908 including a hard disk, etc.; and a communication portion 909 including a network interface card such as a LAN card or a modem. The communication portion 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the I / O interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed in the drive 910 as needed, so that a computer program read therefrom can be installed into the storage portion 908 as needed.
[0090] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments, or may exist independently and not be incorporated into the device / apparatus / system. The computer-readable storage medium carries one or more programs, and when executed, implements the method according to the embodiments of the present disclosure.
[0091] According to an embodiment of the present disclosure, a computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, it may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, apparatus, or device. For example, according to an embodiment of the present disclosure, a computer-readable storage medium may include the ROM 902 and / or RAM 903 described above and / or one or more memories other than ROM 902 and RAM 903.
[0092] The embodiments of the present disclosure also include a computer program product, which includes a computer program containing program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the method provided by the embodiments of the present disclosure.
[0093] The computer program executes the above functions defined in the system / device of the embodiment of the present disclosure when the processor 901 executes the computer program. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.
[0094] In one embodiment, the computer program may be stored on a tangible storage medium such as an optical storage device or a magnetic storage device. In another embodiment, the computer program may be transmitted and distributed in the form of a signal on a network medium, downloaded and installed via the communication portion 909, and / or installed from a removable medium 911. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to wireless, wired, or any suitable combination thereof.
[0095] In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 909, and / or installed from a removable medium 911. When the computer program is executed by the processor 901, the above-described functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the systems, devices, means, modules, units, etc. described above can be implemented by computer program modules.
[0096] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computer programs can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, languages such as Java, C++, python, "C" or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect via the Internet).
[0097] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the above-mentioned module, program segment, or a part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0098] Those skilled in the art will appreciate that the features described in the various embodiments and / or claims of this disclosure may be combined and / or coupled in various ways, even if such combinations and / or couplings are not explicitly described in this disclosure. In particular, the features described in the various embodiments and / or claims of this disclosure may be combined and / or coupled in various ways without departing from the spirit and teachings of this disclosure. All such combinations and / or couplings are intended to fall within the scope of this disclosure.
[0099] The embodiments of the present disclosure are described above. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although each embodiment has been described separately above, this does not mean that the measures in each embodiment cannot be used in combination to advantage. The scope of the present disclosure is defined by the appended claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make various substitutions and modifications, which should all fall within the scope of the present disclosure.
Claims
1. A data modification method, characterized in that: include: Obtaining a data change request instruction, wherein the data change request instruction includes a data source identifier and a data change type identifier; Acquiring information item data based on the data source identifier; Retrieving a change configuration model based on the data change type identifier, wherein the change configuration model is established based on a preset information item model; and Acquiring data change information based on the change configuration model and the information item data, The change configuration model is dynamically adjusted based on business rules.
2. The method according to claim 1, wherein The preset information item model includes M information item change types, and the change configuration model includes information items and information item change types, wherein the number of information items is Q, each information item corresponds to N information item change types, M and Q are both integers greater than or equal to 1, and N satisfies 1≤N≤M and is an integer.
3. The method according to claim 2, wherein: The dynamic adjustment of the configuration model based on business rules includes: At least one of the information items and information item change types included in the change configuration model is adjusted based on business rules.
4. The method according to claim 2, wherein: The information item change type at least includes target data changed.
5. The method according to claim 4, wherein The information item change type further includes at least one of original data before change, original data after change, original data change value, target data before change, and target data change value.
6. The method according to claim 2, wherein: The change configuration model also includes a data change type identifier, an information item change subtype, an information item change method, and an information item change value, wherein the information item change subtype is a subset of the information item change type, and the information item change value is associated with the information item change method and the information item data.
7. The method according to claim 6, wherein: The change configuration model further includes: an information item change auxiliary item, the information item change auxiliary item including at least one of an information item change scenario and an information item change verification, and the information item change auxiliary item is associated with the information item to be changed.
8. The method according to claim 6, wherein: The acquiring of data change information based on the changed configuration model and the information item data includes: Matching the information item to be changed based on the data change type identifier; matching the information item change subtype based on the information item to be changed; matching the information item change method based on the information item change subtype; Acquiring the information item change value based on the information item change method and the information item data; and Data change information is obtained based on the changed value of the information item.
9. The method according to claim 8, wherein After matching the information item change subtype based on the information item to be changed, the method further includes: matching the information item change auxiliary item based on the information item change subtype; and Matching the information item changing method based on the information item changing auxiliary item, The information item change auxiliary item includes at least one of an information item change scenario and an information item change verification, and the information item change auxiliary item is associated with the information item to be changed.
10. A data changing device, characterized in that: include: A first acquisition module is configured to acquire a data change request instruction, wherein the request instruction includes a data source identifier and a data change type identifier; a second acquisition module configured to acquire information item data based on the data source identifier; a calling module configured to call a change configuration model based on a data change type identifier, wherein the change configuration model is established based on an information item model, and the information item model includes an information item change type; as well as The third acquisition module is configured to acquire data change information based on the changed configuration model and the information item data.
11. The device according to claim 10, wherein The third acquisition module further includes: A first processing submodule is configured to match the information item to be changed based on the data change type identifier; a second processing submodule, configured to match an information item change subtype based on the information item to be changed; a third processing submodule, configured to match an information item change method based on the information item change subtype; a fourth processing submodule, configured to obtain a changed value of the information item based on the information item changing method and the information item data; and The acquisition submodule is configured to obtain data change information based on the changed value of the information item.
12. An electronic device comprising: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors are enabled to perform the method according to any one of claims 1 to 9.
13. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to perform the method according to any one of claims 1 to 9.
14. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.
Citation Information
Patent Citations
Method and device for obtaining data source change information
CN107590158A
Data processing method and apparatus, electronic device and storage medium
CN108829466A