An information processing system for power marketing business data and its construction method
Through business slicing design and dynamic configuration update mechanism, the existing power marketing business information management system solves the complex problems of logic interference and code changes when responding to regional differentiated needs and specific business models, and achieves efficient power marketing business data Processing and system flexibility and scalability.
Patent Information
- Application Number
- CN202410902620.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-08
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-07-08
AI Technical Summary
When the existing power marketing business information management system responds to regionally differentiated needs and specific business models of different power companies, there are mutual interferences in business logic steps, complex code changes, high modification risks, inability to be developed in parallel by multiple people, and poor expansion capabilities. etc. questions.
Adopting business slicing design, business logic is decomposed into independent processing units, and processed and stored through data loading, business services and data persistence modules. Dynamic configuration update mechanism and object-oriented reflection technology are introduced to achieve flexible configuration of business logic. and extensions.
It achieves decoupling of business logic, reduces project risks, improves development efficiency and system flexibility and scalability, reduces the amount of code changes, and improves system maintainability and security.
Smart Images

Figure CN118444961B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of power marketing business data processing, and in particular to an information processing system for power marketing business data and a construction method thereof. Background Art
[0002] The business data of power marketing is usually highly complex. In the power marketing industry, companies generally tend to build an integrated management system that includes all branches and subsidiaries' power marketing businesses on the same platform to achieve data aggregation and system standardization.
[0003] However, the existing power marketing business information management system usually needs to redesign the entire business logic to cope with regional differentiation needs and adapt to different specific business models in different regions. The changes are extensive and risky, exposing several limitations. The specific problems are summarized as follows:
[0004] (1) The existing system does not achieve effective decoupling between business logic steps, which may cause mutual interference between business logic steps when responding to demand changes of different power companies, and cannot adapt well to the differentiated needs of users of different power companies;
[0005] (2) When new demand processing logic is needed, the source code needs to be manually modified and subsequently deployed and released. This process is not only time-consuming, but may also affect normal business operations for a certain period of time. Modifying the source code may also cause duplication or omission of logic before and after, leading to business processing failures. At the same time, modifying the source code is relatively complex and has a high probability of error. The accumulated business code cannot be reused, which results in a large workload, high risk, low efficiency and high cost.
[0006] (3) When dealing with the differentiated development needs of different power companies, the existing programming model cannot be designed in parallel by a team, which is inefficient;
[0007] (4) The complex business logic of the existing system is encapsulated within the service components, which lacks transparency and does not provide configuration management, which is not conducive to subsequent maintenance, adjustment and flexible expansion.
[0008] Therefore, there is a need for an information processing system for power marketing business data with strong configurability, strong scalability, few code changes, parallel development by multiple people, and high transformation security, as well as a construction method thereof. Summary of the invention
[0009] In order to solve the defects of the existing information processing systems, such as poor configurability, poor expansion capability, large code change range, inability to be developed by multiple people at the same time, and high transformation risk, the present invention provides an information processing system for power marketing business data with strong configurability, strong expansion capability, few code changes, development by multiple people at the same time, and high transformation safety, and a construction method thereof.
[0010] The information processing system of power marketing business data described in the present invention includes a data loading module, a business processing module and a data persistence module;
[0011] The data loading module is used to extract data to be processed;
[0012] The business processing module is used to slice the business logic and decompose it into multiple independent business processing units;
[0013] Each of the business processing units is used to process the data to be processed;
[0014] The data persistence module is used to store the processed data.
[0015] The beneficial effects of adopting the above technical solution are: the core complex businesses are decomposed and sliced, the business logic units are fully decoupled, and the personalized demand adjustment of each power company will not affect other power companies; by introducing the business slicing idea, the differentiated needs of each power company are realized through independent logic units, and parallel development does not affect each other, reducing project risks; at the same time, it promotes collaborative work among team members and improves development efficiency;
[0016] Furthermore: it also includes a data verification module, which is used to verify the data to be processed according to preset verification rules; and eliminate data that does not meet business conditions.
[0017] Furthermore: it also includes a data temporary storage device, which is used to temporarily store data; wherein the stored data includes extracted data to be processed, verified data to be processed and / or processed data.
[0018] Furthermore: the data temporary storage is dynamically created by object-oriented reflection technology, and one or more data temporary storage areas are created in the data temporary storage, and the number of the data temporary storage areas is determined according to the business object to which the data to be processed belongs.
[0019] Further: the business processing unit includes a data adding item, a business service item and a data persistence service item;
[0020] The data loading module extracts the business data according to the data loading items to obtain the data to be processed;
[0021] The business service item is used to process the data to be processed according to preset processing rules;
[0022] The data persistence module stores the processed data according to the data persistence service item.
[0023] Furthermore: each configuration item of the business processing unit corresponds to a business object.
[0024] The beneficial effects of adopting the above technical solution are: by implementing a dynamic configuration update mechanism, business service items can be deactivated and activated without restarting the application, thereby meeting new requirements and achieving seamless transition;
[0025] The method for constructing an information processing system for power marketing business data described in the present invention comprises the following steps:
[0026] S1: Get the basic information of all business objects;
[0027] S2: creating a business processing unit according to the basic information of all the business objects, wherein the business processing unit includes a data loading item, a business service item and a data persistence service item;
[0028] S3: Obtain the data to be processed from the business data according to the data add-in item and fill it into the data temporary register;
[0029] S4: The business service item processes the data to be processed according to preset processing rules;
[0030] S5: Store the processed data according to the data persistence service item.
[0031] Furthermore: the basic information of the business object includes the number of business objects, business object codes, data categories and / or data details.
[0032] Further: in S2, the process of creating a business processing unit includes adding, deleting and / or modifying historical business processing units.
[0033] The beneficial effect of adopting the above technical solution is: abstracting and externalizing the core business logic, and establishing a visual business rule configuration platform, that is, simply configuring the effective companies of business rules, or configuring the business logic through simple operations such as dragging and dropping, so that the business implementation logic can be easily adjusted as needed, greatly reducing the amount of code, thereby improving the flexibility, maintainability and scalability of the system.
[0034] Furthermore: the business service items include data screening, data calculation and / or data summation.
[0035] The beneficial effects of the present invention are:
[0036] The information processing system and construction method of the power marketing business data described in the present invention can achieve that when encountering business changes, only the code related to the business change needs to be changed. The change area is very small, and the amount of code changed is also very small, so the risk of change is also very small; it can improve business cohesion, complete a certain business in one component, and will not affect other businesses and data; realize dynamic configuration, and dynamically remove, add, and replace a certain business slice to meet business requirements through configuration; after component design, the encapsulated business components become business knowledge accumulation, which is a good guarantee for subsequent new projects. Through refined business slice analysis, the analysis of business logic is continuously deepened, so as to build a comprehensive and accurate knowledge base of the power marketing business domain. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 It is a structural diagram of the information processing system of power marketing business data in processing the electricity fee issuance business scenario. DETAILED DESCRIPTION
[0038] The following are only preferred specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a technician familiar with the technical field within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. The embodiments described below are only used to explain the present invention and cannot be interpreted as limitations on the present invention. The protection scope of the present invention should be based on the protection scope of the claims. The embodiments of the present invention are described in detail below. In order to facilitate the description of the present invention and simplify the description, the technical terms used in the specification of the present invention should be interpreted in a broad sense, including but not limited to conventional replacement schemes not mentioned in this application, and also including direct implementation methods and indirect implementation methods.
[0039] Example 1
[0040] Combination Figure 1 This embodiment describes an information processing system for power marketing business data disclosed in this embodiment, including a data loading module, a business processing module and a data persistence module;
[0041] The data loading module is used to extract the data to be processed from the power marketing business data;
[0042] Data loading: By configuring a flexible data loading mechanism and setting up a data loading module, data can be efficiently extracted from externally stored business data and filled into the data register. This process supports dynamic loading of multi-source data, enhancing the adaptability and scalability of the system.
[0043] The business processing module is used to slice the existing business logic and decompose it into multiple independent business processing units; the business logic is formulated according to different business needs. For example, when obtaining electricity data, the electricity data corresponding to the user can be queried in the data to be processed. Other business logics may involve corresponding calculation rules. For example, the calculation of liquidated damages information is based on the number of historical arrears days * arrears amount * calculation ratio (for example, the ratio is set to 0.001). These are all rules set according to actual business and will not be elaborated here.
[0044] Business processing module: In view of the high degree of coupling of existing business processing systems in the face of complex businesses, that is, there are strong correlations between different businesses, which leads to the fact that changes to the code will affect the entire system. Therefore, it is necessary to use the decoupling strategy of slicing the business and subdividing it into multiple independent business processing units as described in this embodiment to simplify complex problems. After decoupling, all codes can be split according to business logic, weakening the close coupling relationship between different businesses, so that each business processing unit can focus on processing a specific data set in the data buffer. After completing their respective tasks, the processing results are written back to the corresponding position in the buffer. This strategy greatly improves processing efficiency and code maintainability.
[0045] Each of the business processing units is used to process the data to be processed;
[0046] The business processing unit includes data loading items, business service items and data persistence service items;
[0047] The data loading module extracts the business data according to the data loading items to obtain the data to be processed;
[0048] The business service item is used to process the data to be processed according to preset processing rules; the preset processing rules are conventional data preprocessing means such as data cleaning and / or data verification, which only need to ensure that the processed data can meet the retrieval and use requirements of each configuration item of the business processing unit. For example, if a certain data is #N / A in the data to be processed, it proves that it is erroneous data that cannot find the target data, and it is necessary to enter and check whether the retrieval formula is wrong. For example, if it is #VALUE, it means that the calculation rule is wrong, and it is necessary to check whether the preset rule is wrong. For example, if it is #REF!, it is necessary to check whether the source data is lost. This is only for explanation and is not a limitation on specific implementation means. Each configuration item of the business processing unit corresponds to a business object; if the current business service item has only one configuration item, it means that this business service item is only effective for one business object. If the current business service item has multiple configuration items, it means that this business service item is effective for business objects corresponding to multiple configuration items. For example, for the configuration item of the data adding item "Loading power data", when it has only configuration item A, it means that only the business data of Company A is loaded; when it configures three configuration items of Company ABC, it means that the data adding item is effective for all three companies ABC. The configuration logic of the business service item and the data persistence service item is the same as above.
[0049] The data persistence module stores the processed data according to the data persistence service item.
[0050] Data persistence: Configure one or more data writing strategies based on actual needs. These strategies are responsible for extracting processed data from the data cache and storing it safely and efficiently in the target external storage medium to ensure long-term data preservation and subsequent access.
[0051] This series of designs not only optimizes the data processing process, but also significantly enhances the flexibility, configurability and scalability of the system. Through refined step-by-step processing, the system's configurability, flexibility and scalability are improved.
[0052] The system also includes a data verification module, which is used to verify the data to be processed according to preset verification rules; and eliminate data that does not meet business conditions.
[0053] Data verification: Before data processing, an independent data verification process is implemented. Users can customize one or more verification rules to ensure that the data meets the business processing requirements. When it does not meet the business conditions, the current task is terminated to avoid potential errors in advance. For example, when creating receivables information, if the power is positive but the receivables are negative, or the power is negative, it means that the data does not meet the business conditions. At this time, the current business should be terminated and an error should be reported, waiting for the operation and maintenance personnel to maintain the data.
[0054] The system also includes a data temporary storage device, which is used to temporarily store data; wherein the stored data includes extracted data to be processed, verified data to be processed and / or processed data.
[0055] Define a data temporary storage: First, create a dedicated data temporary storage area to temporarily store the data to be processed and the processed data. This design reduces the direct dependence on external storage, speeds up data access, and improves the overall response speed of the system. Dynamically create a data temporary storage through object-oriented reflection technology, and create one or more data temporary storage areas in the data temporary storage. The number of data temporary storage areas is determined according to the business object to which the data to be processed belongs.
[0056] Example 2
[0057] This embodiment is described in conjunction with Example 1. This embodiment discloses a method for constructing an information processing system for power marketing business data, including the following steps:
[0058] S1: Get the basic information of all business objects;
[0059] S2: creating a business processing unit according to the basic information of all the business objects, wherein the business processing unit includes a data loading item, a business service item and a data persistence service item;
[0060] S3: Obtain the data to be processed from the business data according to the data add-in item and fill it into the data temporary register;
[0061] S4: The business service item processes the data to be processed according to preset processing rules;
[0062] S5: Store the processed data according to the data persistence service item.
[0063] The basic information of the business object includes the business object quantity, business object code, data category and / or data detailed information.
[0064] In S2, the process of creating a service processing unit includes adding, deleting and / or modifying a historical service processing unit.
[0065] The business service items include data screening, data calculation and / or data summation, as well as data conversion, data grouping, data organization, data calculation, data retrieval, data sorting, data cleaning / preprocessing, etc. Each business processing process will include one or more of the above items.
[0066] Example 3
[0067] This embodiment is explained in conjunction with Example 1. This embodiment discloses a method for constructing an information processing system for power marketing business data. The solution for deleting, modifying and / or expanding the business of a special power company through the following case is as follows:
[0068] (1) Stopping a business service:
[0069] When a certain personalized service of a power company is disabled, it only needs to be removed by modifying the configuration item without stopping the external service;
[0070] (2) Modify a business service:
[0071] When a service of a power company is upgraded, only the corresponding service item needs to be upgraded, and then it can be dynamically configured without stopping the service, without affecting the business of other power companies;
[0072] (3) Adding special services
[0073] If data processing is involved, the data register is expanded and then the old data register is replaced by the expanded data register in the configuration.
[0074] If a data add-in item is added, it is configured in the data add-in item configuration information of a certain power company.
[0075] If a business service item is added, it is configured in the business service item configuration information of a certain power company.
[0076] If a data persistence service item is added, it is configured in the data persistence service item configuration information of a certain power company.
[0077] Example 4
[0078] This embodiment is described in conjunction with Example 1. This embodiment discloses a method for constructing an information processing system for power marketing business data. The specific operation steps are as follows:
[0079] 1. Define a data register, which is obtained through configuration, and the data register can be extended through object-oriented reflection technology;
[0080] Table 1 Data register configuration table
[0081]
[0082] 2. Loading data
[0083] Based on the survey of different users, business service items are obtained, and configuration items are sorted out according to the information that needs to be loaded by the business service items to form a data loading configuration table. The following is a data loading configuration table formed by obtaining the data loading items of the power company corresponding to this business based on the configuration information of the three power companies A, B, and C;
[0084] Table 2 Data loading configuration table
[0085]
[0086] 3. Data Check
[0087] According to the above configuration information, the data inspection service items of the power company corresponding to this business are obtained. Different power companies check the necessary conditions for business processing. If the conditions are not met, the business processing is terminated. Since different power companies involve different business scopes and rules, the inspection items are also different; the following is the data inspection configuration table set according to the configuration items;
[0088] Table 3 Data check configuration table
[0089]
[0090] 4. Business processing
[0091] According to the configuration information, the business service items of the power company corresponding to this business are obtained, and the execution is completed. The data buffer has been filled with data processing results;
[0092] Table 4 Business Configuration Table
[0093]
[0094] 5. Data persistence processing
[0095] According to the configuration information, the data persistence service items of the power company corresponding to this business are obtained; according to the above-mentioned data loading configuration, data checking configuration and business configuration, it can be known which data need to be persisted. The persistence is to permanently save the data in the register to a storage device, such as a hard disk, flash memory and / or network storage device.
[0096] Table 5 Data persistence configuration table
[0097] .
Claims
1. An information processing system for power marketing business data, characterized in that: Includes data loading module, business processing module and data persistence module; The data loading module is used to extract data to be processed; The business processing module is used to slice the business logic and decompose it into multiple independent business processing units; the configuration between business logics is realized by dragging and dropping operations; The business processing unit includes data loading items, business service items and data persistence service items; The data loading module extracts the business data according to the data loading items to obtain the data to be processed; The business service item is used to process the data to be processed according to preset processing rules; The data persistence module stores the processed data according to the data persistence service item; Each configuration item of the business processing unit corresponds to a business object; It also includes a data temporary storage device, which is used to temporarily store data; wherein the stored data includes extracted data to be processed, verified data to be processed and / or processed data; The data temporary storage is dynamically created by object-oriented reflection technology, and one or more data temporary storage areas are created in the data temporary storage, and the number of the data temporary storage areas is determined according to the business object to which the data to be processed belongs; The solutions for deletion, modification and / or expansion of the power company's business are as follows: (1) Stopping a business service: When a certain personalized service of a power company is disabled, it only needs to be removed by modifying the configuration item without stopping the external service; (2) Modify a business service: When a service of a power company is upgraded, only the corresponding service item needs to be upgraded, and then it can be dynamically configured without stopping the service, without affecting the business of other power companies; (3) Increase business: When data processing is involved, the data register is expanded, and then the old data register is replaced with the expanded data register; Each of the business processing units is used to process the data to be processed; the data persistence module is used to store the processed data; It also includes a data verification module, which is used to verify the data to be processed according to preset verification rules and eliminate data that does not meet business conditions.
2. A method for constructing an information processing system for power marketing business data based on claim 1, characterized in that: Constructing an information processing system for power marketing business data as claimed in claim 1 comprises the following steps: S1: Get the basic information of all business objects; S2: creating a business processing unit according to the basic information of all the business objects, wherein the business processing unit includes a data loading item, a business service item and a data persistence service item; S3: Obtain the data to be processed from the business data according to the data add-in item and fill it into the data temporary register; S4: The business service item processes the data to be processed according to preset processing rules; S5: Store the processed data according to the data persistence service item.
3. The method for constructing an information processing system for power marketing business data according to claim 2, characterized in that: The basic information of the business object includes the business object quantity, business object code, data category and / or data detailed information.
4. The method for constructing an information processing system for power marketing business data according to claim 2, characterized in that: In S2, the process of creating a service processing unit includes adding, deleting and / or modifying a historical service processing unit.
5. The method for constructing an information processing system for power marketing business data according to claim 2, characterized in that: The business service items include data screening, data calculation and / or data summation.
