Data processing method and device, electronic equipment and readable storage medium
By detecting and modifying conflicting information before merging power grid planning schemes, the infeasibility or inefficiency caused by directly splicing multiple planning schemes is resolved, ensuring the uniqueness and credibility of the merged scheme.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- EAST CHINA BRANCH OF STATE GRID CORP
- Filing Date
- 2023-11-29
- Publication Date
- 2026-06-09
AI Technical Summary
In existing technologies, multiple power grid planning schemes are directly combined and merged, which leads to conflicts and contradictions, making the merging scheme infeasible or inefficient.
Before merging, the type and content of different planning schemes are examined to determine whether the content of the second scheme needs to be modified, especially the uniqueness and time consistency of decommissioned and incremental components, and a target scheme is generated.
Ensure the uniqueness and feasibility of the merger plan, improve its credibility and scientific rigor, avoid conflicts and duplication, and generate a reasonable target plan.
Smart Images

Figure CN117829340B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of power grid planning technology, and in particular to a data processing method, apparatus, electronic device, and readable storage medium. Background Technology
[0002] Power grid planning is a crucial component of power system development, and the quality of this planning directly impacts the future prospects of the power grid. During the power grid planning process, multiple planning schemes typically exist, potentially involving different objectives, technological options, and economic investments. To achieve parallel and coordinated power grid planning, it is necessary to merge these multiple planning schemes.
[0003] In existing technologies, the content of multiple planning schemes is usually directly spliced together to achieve scheme merging. However, different planning schemes contain conflicting and contradictory content, which leads to the final merged scheme being infeasible or inefficient. Summary of the Invention
[0004] In view of this, this application provides a data processing method, apparatus, electronic device, and readable storage medium, the main purpose of which is to solve the technical problem in the prior art where the contents of multiple planning schemes are directly spliced together, and the different planning schemes contain conflicting and contradictory contents, which leads to the infeasibility or inefficiency of the final merged scheme.
[0005] According to a first aspect of this application, a data processing method is provided, the method comprising:
[0006] In response to a merging request for planning schemes, obtain the first scheme type and content of the first scheme to be merged, and the second scheme type and content of the second scheme to be merged, which are included in the merging request.
[0007] Based on the type and content of the first scheme, the type and content of the second scheme, the content of the second scheme is examined to determine whether it needs to be modified.
[0008] If modifications to the second plan are necessary, then modify the content to be modified in the second plan.
[0009] Add the modified second solution to the first solution to generate the target solution.
[0010] Optionally, the scheme types include basic schemes and planning schemes. Based on the first scheme type, the first scheme content, the second scheme type, and the second scheme content, the second scheme is evaluated to determine whether modifications to its content are necessary. This process specifically includes:
[0011] If the first option is a planning option, determine the planning type included in the second option based on the content of the second option;
[0012] In the case of a decommissioning plan, at least one decommissioning time and at least one component name shall be determined according to the content of the second plan;
[0013] For any decommissioned component, based on the component name and the content of the first scheme, determine whether there are identical decommissioned components in the first scheme;
[0014] If it is determined that the same decommissioned components exist in the first scheme, then it is necessary to modify the content of the second scheme.
[0015] Obtain the commissioning time of decommissioned components;
[0016] If the decommissioning time is later than the commissioning time, it will be necessary to modify the content of the second plan.
[0017] Optionally, if the first scheme type is a planning scheme, after determining the planning type included in the second scheme based on the content of the second scheme, the method further includes:
[0018] When the planning type is incremental planning, determine the name of at least one component of at least one incremental component included in the second scheme according to the content of the second scheme;
[0019] For any incremental component, determine whether the first scheme has the same incremental component based on the component name and the content of the first scheme;
[0020] If it is determined that the first scheme has the same incremental components, then it is necessary to modify the content of the second scheme.
[0021] The incremental components include at least one of the following: incremental substation, incremental busbar, incremental substation equipment, incremental inter-substation equipment, and incremental line auxiliary equipment.
[0022] Optionally, the step of detecting the second solution based on the first solution type, the first solution content, the second solution type, and the second solution content, and determining whether the content of the second solution needs to be modified, further includes:
[0023] Given that the first scheme is the basic scheme and the second scheme is the confirmed planning scheme, obtain the data merging method between the first scheme and the second scheme;
[0024] When the data merging method is to merge all component data, the names of multiple components corresponding to multiple first components in the second scheme are determined according to the content of the second scheme.
[0025] For any first component, determine whether there is a duplicate component in the first scheme based on the component name and the content of the first scheme;
[0026] If it is determined that the same components exist in the first scheme, then it is necessary to modify the content of the second scheme.
[0027] Optionally, when the first scheme is the basic scheme and the second scheme is the confirmed planning scheme, after obtaining the data merging method between the first and second schemes, the method further includes:
[0028] When the data merging method is to merge only some data, according to the content of the second scheme, determine the multiple component data corresponding to multiple second components in the second scheme, wherein the component data includes component name and operation data;
[0029] Based on the preset verification rules, multiple component data, and the content of the first scheme, determine whether there are errors in the multiple component data in the content of the second scheme;
[0030] Given the errors in multiple component data, it was determined that modifications to the second solution were necessary.
[0031] Optionally, the steps for modifying the content to be modified in the second solution include:
[0032] Based on the content to be modified in the second solution, generate modification prompt information;
[0033] The modification prompt message will be sent to the terminals of relevant personnel so that they can modify the content of the second plan based on the modification prompt message;
[0034] The modified second scheme content sent by the receiving terminal.
[0035] Optionally, the step of adding the modified second scheme content to the first scheme content to generate the target planning scheme specifically includes:
[0036] Based on the planning types included in the revised second plan, determine the target table format;
[0037] Generate at least one target data table based on the modified second scheme content and the target table format.
[0038] Insert at least one target data table into the content of the first scheme to generate the target scheme.
[0039] According to a second aspect of this application, a data processing apparatus is provided, the apparatus comprising:
[0040] The acquisition module includes, in response to a merging request for a planning scheme, acquiring the first scheme type and content of the first scheme to be merged, and the second scheme type and content of the second scheme to be merged, which are included in the merging request.
[0041] The judgment module is used to detect the content of the second scheme based on the first scheme type, the first scheme content, the second scheme type, and the second scheme content, and to determine whether the content of the second scheme needs to be modified.
[0042] The modification module is used to modify the content to be modified in the second solution when modifications are required.
[0043] The generation module is used to add the modified second scheme content to the first scheme content to generate the target scheme.
[0044] According to a third aspect of this application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of any of the methods in the first aspect.
[0045] According to a fourth aspect of this application, a readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described in any one of the first aspects.
[0046] By employing the above technical solutions, this application provides a data processing method, apparatus, electronic device, and readable storage medium that, before merging solutions, pre-detects the content of the solutions to be merged based on different solution types and contents, determining whether there are identical or conflicting solution contents in the second solution. If duplicate or conflicting content is found, it is modified before the first solution and the second solution can be merged. Compared to the existing technology that directly splices the content of multiple solutions, this embodiment of the invention, through pre-detection, timely discovers and modifies solution content, avoiding conflicts or duplicates, ensuring the uniqueness of each solution, guaranteeing the feasibility of the merged solution, and thus improving the credibility and scientific validity of the merged solution.
[0047] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, specific embodiments of this application are given below. Attached Figure Description
[0048] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the scope of this application. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:
[0049] Figure 1 The diagram shows a schematic flow chart of a data processing method provided in an embodiment of the present invention;
[0050] Figure 2 A schematic diagram of another data processing method provided in an embodiment of the present invention is shown;
[0051] Figure 3 A schematic diagram of the structure of the busbar name provided in an embodiment of the present invention is shown;
[0052] Figure 4 A schematic diagram of the structure of a data processing apparatus provided in an embodiment of the present invention is shown. Detailed Implementation
[0053] Exemplary embodiments of the present application will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this application will be thorough and complete, and will fully convey the scope of the present application to those skilled in the art.
[0054] An embodiment of the present invention provides a data processing method, such as... Figure 1 As shown, the method includes:
[0055] S101. In response to the merging request of the planning schemes, obtain the first scheme type and first scheme content of the first scheme to be merged, and the second scheme type and second scheme content of the second scheme to be merged, which are included in the merging request.
[0056] The data processing method provided in this embodiment of the invention can be applied to a server, which can be a power grid planning platform. Specifically, based on the selection and / or merging of multiple planning schemes and / or basic schemes by relevant personnel in the power grid planning platform, the server performs uniqueness and compliance checks on the content of each scheme and modifies any non-compliant items. Subsequently, the multiple schemes are merged.
[0057] Understandably, a complete power grid planning process begins with an analysis of the current power grid to identify weak points (such as overloaded lines or transformers). Next, relevant personnel propose proposed planning schemes, including decommissioning existing equipment and commissioning future equipment. These schemes are then stored on a power grid planning platform. The incremental equipment data described by different planning schemes are overlaid on the current power grid, and simulations are used to perform safety and stability checks on each scheme to determine whether the current construction plan can solve the existing power grid problems. Finally, by comparing simulation results and calculating the construction costs of each scheme, a recommended construction plan is selected based on a comprehensive evaluation of technical and economic factors.
[0058] The first scheme is the core scheme for this merger, meaning its content remains unchanged. During the merger process, the content of other schemes needs to be adjusted based on the content of the first scheme. The second scheme consists of at least one planning scheme that needs to be merged into the first scheme. Furthermore, the first scheme can be a basic scheme (i.e., a scheme based on the current scale and layout of the power system) or a planning scheme, while the second scheme is a planning scheme.
[0059] In practical applications, when the first scheme is a planning scheme, relevant personnel first evaluate all planning schemes in the power grid planning platform to determine which scheme has relatively stable and reliable data and parameters. If the data and parameters of this planning scheme do not need to be adjusted during the merging process, it can be designated as the first scheme. Subsequently, all other planning schemes in the platform, or one or more schemes selected by relevant personnel, can be designated as the second scheme. If there are multiple second schemes, the merging method of this embodiment can be used to merge each second scheme with the first scheme sequentially.
[0060] S102. Based on the first scheme type, the first scheme content, the second scheme type, and the second scheme content, check the second scheme content to determine whether the second scheme content needs to be modified. If yes, proceed to step S103; otherwise, proceed to step S105.
[0061] Once the first plan is determined, its content remains unchanged. Therefore, the second plan's planned decommissioning or incremental operations are tested against the first plan's content to avoid conflicts. For example, if the first plan plans to decommission a piece of equipment in 2025, while the second plan plans to decommission the same equipment in 2026, a conflict exists, requiring modification of the second plan.
[0062] Therefore, to ensure the accuracy of the data and information in the final merged scheme, this embodiment of the invention proposes that, before merging, it is necessary to determine the items to be verified based on the first scheme type and the second scheme type. Then, the content of the first scheme and the content of the second scheme are used to perform a uniqueness check on the items to be verified to determine whether the content of the second scheme needs to be modified, thus avoiding conflicts and duplications.
[0063] S103. Modify the content to be modified in the second plan.
[0064] S104. Add the modified second scheme content to the first scheme content to generate the target scheme.
[0065] In steps S103 and S104, if the second solution is found to have content that conflicts with or overlaps with the first solution, it needs to be modified. After the modification of the second solution is completed, the modified content of the second solution is inserted into the content of the first solution to obtain a merged target solution.
[0066] S105. Add the content of the second scheme to the content of the first scheme to generate the target scheme.
[0067] In this step, the content of the second scheme is checked. Once it is determined that there are no conflicts or duplicates in the second scheme, there is no need to modify the second scheme. The content of the second scheme is directly inserted into the first scheme to form the merged target scheme.
[0068] The data processing method provided in this invention involves pre-detecting the content of the schemes to be merged based on different scheme types and contents. This detects whether there are identical or conflicting scheme contents in the second scheme. If duplicate or conflicting content is found, it is modified before the first and second schemes can be merged. Compared to the prior art method of directly splicing the contents of multiple schemes, this invention, through pre-detection, promptly identifies and modifies the scheme content, avoiding conflicts or duplicates, ensuring the uniqueness of each scheme, guaranteeing the feasibility of the merged scheme, and thus improving the credibility and scientific validity of the merged scheme.
[0069] Furthermore, as a refinement and extension of the specific implementation methods of the above embodiments, and in order to fully illustrate the specific implementation process of this embodiment, another data processing method is provided for this embodiment of the invention, such as... Figure 2 As shown, the method includes:
[0070] S201. In response to the merging request of the planning schemes, obtain the first scheme type and first scheme content of the first scheme to be merged, and the second scheme type and second scheme content of the second scheme to be merged, which are included in the merging request.
[0071] This step and Figure 1 The steps S101 shown are the same and will not be repeated here.
[0072] S202. Based on the first scheme type, the first scheme content, the second scheme type, and the second scheme content, the second scheme content is checked to determine whether the second scheme content needs to be modified. If yes, proceed to step S203; otherwise, proceed to step S209.
[0073] This step and Figure 1 The method for step S102 shown is the same, and will not be repeated here.
[0074] In this embodiment of the invention, step 202 may specifically include: when the first scheme type is a planning scheme, determining the planning type included in the second scheme according to the content of the second scheme; when the planning type is a decommissioning plan, determining at least one decommissioning time and at least one component name of at least one decommissioned component according to the content of the second scheme; for any decommissioned component, determining whether there is a duplicate decommissioned component in the first scheme according to the component name and the content of the first scheme; if it is determined that there is a duplicate decommissioned component in the first scheme, determining that the content of the second scheme needs to be modified; obtaining the commissioning time of the decommissioned component; if the decommissioning time is later than the commissioning time, determining that the content of the second scheme needs to be modified.
[0075] The first scheme type can be either a basic scheme or a planning scheme. When the first scheme type is a planning scheme, both the first and second schemes can be determined as planning schemes. During the verification of the planning in the second scheme, firstly, the planning type of the second scheme is determined. The planning type includes plans generated from the decommissioning of existing basic equipment and plans generated from the commissioning of new components (such as substations, busbars, and equipment). When the planning in the second scheme is determined to be a decommissioning plan, one or more decommissioning components are selected from the content of the second scheme.
[0076] To ensure the uniqueness of retired components in the merged scheme (target scheme), it is necessary to search the content of the first scheme based on the component name of the retired component to determine whether there are duplicate retired components in the first scheme. Since the content of the first scheme cannot be adjusted, if it is determined that there are also duplicate retired components in the first scheme, it means that the data of that retired component in the second scheme cannot be inserted into the content of the first scheme. That is, before merging, the relevant data of that retired component in the content of the second scheme needs to be deleted.
[0077] Furthermore, to ensure the compliance of the merger plan, it is necessary to check the decommissioning time of the retired components. Specifically, the commissioning time of the retired component is searched in the power grid system platform, and the decommissioning time is compared with the commissioning time. If the decommissioning time is later than the commissioning time, it means that the decommissioning plan for the retired components in the second plan is unreasonable, and the decommissioning time in the content of the second plan needs to be modified.
[0078] Optionally, the decommissioned components include at least one of the following: equipment that can be distinguished into different categories such as power plants, busbars, generators, transformers, parallel capacitor reactors, converters, static var compensators, AC lines, and DC lines.
[0079] The above methods enable the verification of the uniqueness and planning rationality of decommissioned components, effectively enhancing the rationality and feasibility of the merged planning scheme.
[0080] In an embodiment of the present invention, when the first scheme type is a planning scheme, after determining the planning type included in the second scheme according to the content of the second scheme, the method further includes: when the planning type is incremental planning, determining at least one component name of at least one incremental component included in the second scheme according to the content of the second scheme; for any incremental component, determining whether the first scheme has the same incremental component according to the component name and the content of the first scheme; if it is determined that the first scheme has the same incremental component, determining that the content of the second scheme needs to be modified.
[0081] In cases where both the first and second schemes are planning schemes, if the planning type in the second scheme is incremental planning—that is, planning generated for the commissioning of new components (such as substations, busbars, and various equipment)—then the uniqueness of the incremental planning needs to be verified. Specifically, based on the content of the second scheme, one or more incremental components included in the second scheme are identified. For any incremental component, its component name is screened within the content of the first scheme, and based on the screening results, it is determined whether the same incremental component exists in the first scheme. If the same incremental component exists in the first scheme, it indicates that the incremental component is not unique, and the component name of the incremental component in the content of the second scheme needs to be modified.
[0082] Optionally, the incremental components include at least one of the following: incremental substation, incremental busbar, incremental substation equipment, incremental inter-substation equipment, and incremental line auxiliary equipment.
[0083] In practical applications, the order for verifying duplicate names of incremental components is: substation - busbar - in-station equipment - inter-station equipment. Specifically, for incremental substations, the substation name consists of the substation name and a Chinese character label. Therefore, the planning scheme includes new substation plans for the power grid planning platform. If both the first and second schemes include incremental substation plans, the uniqueness of the substation name and Chinese character label between the first and second schemes needs to be verified before merging. If the substation name in the second scheme already exists in the first scheme, the substation name in the second scheme needs to be modified; specifically, the Chinese character label of the substation name in the second scheme needs to be modified.
[0084] Furthermore, for incremental buses, the solution describes equipment connection relationships with bus nodes as the core, requiring verification of the uniqueness of bus names. For example... Figure 3 The diagram shows the structure of the busbar name. The busbar name is 8 characters long. The automatic naming rule for newly created buses is: abbreviation of the plant's geographical area (1 Chinese character or 2 characters) + plant's Chinese label (2 Chinese characters or 4 characters) + busbar voltage level (1 character) + serial number (1 character). If the same incremental busbar can be found in the first scheme based on the busbar name included in the second scheme, the busbar name in the second scheme needs to be modified. Specifically, the serial number in the busbar name can be modified (e.g., changing numbers to other numbers, or numbers to letters, etc.).
[0085] Furthermore, for incremental station equipment, the station equipment includes at least one of the following: transformers, generators, parallel capacitor reactors, converters, and static var compensators. The naming rule for the equipment is: bus name_equipment parallel number. If the bus where the equipment is located is an incremental bus, and the bus name can be guaranteed not to be duplicated during the verification process of the incremental bus, then it can be confirmed that the equipment name of the incremental equipment will not be duplicated. If the bus where the equipment is located is an already operational bus, a uniqueness check of the equipment name needs to be added before merging the schemes. If the equipment name of the incremental station equipment included in the second scheme is duplicated in the first scheme (i.e., both the bus name and the equipment parallel number are duplicated), the equipment name of the incremental station equipment in the second scheme needs to be modified. Specifically, the modified network topology or the equipment parallel number of the equipment can be modified.
[0086] Furthermore, for incremental inter-station equipment, the inter-station equipment includes at least one of the following: AC lines and DC lines. The naming rule for incremental inter-station equipment is: bus name on side i_bus name on side j_line parallel connection number. If either bus on side i or j is an incremental bus, the verification process of the incremental bus ensures that the bus name will not be repeated, thus ensuring that the incremental equipment name will not be repeated. If both buses on sides i and j are already in operation, a uniqueness check of the equipment name needs to be added before merging the schemes. If the equipment name of the incremental inter-station equipment included in the second scheme is repeated in the first scheme (i.e., the bus ID and equipment parallel connection number on both sides i and j are repeated), the equipment name of the incremental inter-station equipment in the second scheme needs to be modified.
[0087] Furthermore, for incremental line auxiliary equipment, the line auxiliary equipment includes at least one of the following: line high-resistance and line series compensation equipment. The naming rule for the equipment is: line installation side bus name_equipment serial number and its associated line code. If the associated line is incremental inter-station equipment, operation by incremental inter-station equipment can ensure that the line name is not duplicated, thus ensuring that the incremental line auxiliary equipment name is also not duplicated. If the associated line is already operational basic equipment, a uniqueness check for the equipment name needs to be added before merging the schemes. If the equipment name of the incremental line auxiliary equipment included in the second scheme is duplicated in the first scheme, the equipment name of the incremental line auxiliary equipment in the second scheme needs to be modified. Specifically, the modified network topology or the equipment parallel number of the equipment can be modified.
[0088] In this embodiment of the invention, step 202 may further include: when the first scheme is the basic scheme and the second scheme is a confirmed planning scheme, obtaining the data merging method between the first scheme and the second scheme; when the data merging method is to merge all component data, determining the multiple component names corresponding to multiple first components in the second scheme according to the content of the second scheme; for any first component, determining whether there are identical components in the first scheme according to the component name and the content of the first scheme; when it is determined that there are identical components in the first scheme, determining that the content of the second scheme needs to be modified.
[0089] In the first scheme, which serves as the foundation, all data within it consists of publicly available, operational data. In this case, relevant personnel can select a certified and reasonable incremental planning scheme as the second scheme and add its content to the foundation scheme. It's important to note that personnel will pre-determine whether to add the planning content of all components from the second scheme to the foundation scheme, or to select only a subset of components. Therefore, if the first scheme is confirmed as the foundation and the second scheme is a confirmed planning scheme, the selected second scheme and data merging method are received. If the data merging method is to merge all component data, the content of the second scheme is iterated, and the component names of all components (i.e., multiple first components) within the second scheme are selected. For any first component, since all planned components in the second scheme are incremental components, to ensure the uniqueness of the merged components, the component name of the first component is searched within the first scheme to determine if a duplicate exists. If a duplicate exists in the first scheme, it indicates that the component is already operational and conflicts with incremental planning; in this case, the component name of the first component needs to be modified within the second scheme.
[0090] Optionally, the components in the second scheme include at least one of the following: substation, busbar, substation equipment, inter-substation equipment, and line auxiliary equipment.
[0091] In this embodiment of the invention, after determining the planning types included in the first scheme and the second scheme based on the content of the first scheme and the content of the second scheme, the method further includes: when the data merging method is partial data merging, determining multiple component data corresponding to multiple second components in the second scheme based on the content of the second scheme, wherein the component data includes component name and running data; determining that multiple component data in the content of the second scheme have errors based on preset verification rules, multiple component data and the content of the first scheme; and determining that the content of the second scheme needs to be modified when multiple component data have errors.
[0092] In this scenario, if the first scheme is the basic scheme and the second scheme is a confirmed planning scheme, the second scheme selected by relevant personnel, along with the data merging method, is received. If the data merging method involves merging data from some components, then the selected components (multiple second components) need to be obtained. Before merging the schemes, the topology integrity of the selected components needs to be verified. Specifically, the component name and operational data of each second component are obtained, including operational status data such as when the equipment is on and off. For any second component, if it is an incremental component, its uniqueness needs to be verified based on its name and the content of the first scheme; if it is a decommissioned component, it needs to be ensured that the first scheme includes the second component. Furthermore, based on the operational status of the second component, the rationality of the operational status needs to be determined. For example, if the second planning scheme indicates that a plant or station is in a closed state at a certain future time, and at the same time any equipment is in an operational state, then the operational status data in the second scheme needs to be modified.
[0093] In practical applications, the basic solution contains common data for branch planning solutions. Incremental data from the planning branch solutions on the basic solution consists of personalized equipment data that does not affect other planning branch solutions. After planning solution authentication (i.e., confirmation of the second solution) is completed, the specified data from the second solution is cut and pasted into the basic solution (first solution) through a "solidification" operation. When only some components are solidified, topology integrity verification is required for the selected components. The verification order is: plant / station - busbar - intra-station equipment - inter-station equipment. That is, when the busbar or line containing the equipment to be solidified is incremental data, it must be ensured that the equipment to be solidified, the incremental busbar, and the incremental line are solidified together into the basic solution; otherwise, the network topology needs to be modified. For incremental components, the uniqueness of each incremental component name must be ensured. For decommissioned components, it must be ensured that the basic solution includes the decommissioned component; otherwise, the decommissioning plan in the second solution needs to be modified.
[0094] S203. Generate modification prompt information based on the content to be modified in the second scheme.
[0095] S204. Send the modification prompt message to the terminal of the relevant personnel so that the relevant personnel can modify the content of the second solution based on the modification prompt message.
[0096] S205, Receive the modified second scheme content sent by the receiving terminal.
[0097] In steps S203 to S205, after verifying the content to be modified in the second solution as described above, a modification prompt message is generated based on the content to be modified, and this message is sent to the terminals of relevant personnel so that they can modify the content of the second solution based on the received prompt message. The modified second solution is then returned to the server, allowing the server to receive it.
[0098] In practical application scenarios, the content to be modified can be one or more items. When there are multiple items to be modified, the system summarizes the multiple items to be modified and writes the original text to be modified in the prompt message, so that relevant personnel can quickly find the corresponding position in the second solution and modify it.
[0099] S206. Determine the target table format based on the planning type included in the revised second scheme.
[0100] S207. Generate at least one target data table based on the modified second scheme content and the target table format.
[0101] S208. Insert at least one target data table into the content of the first scheme to generate the target scheme.
[0102] In steps S206 to S208, each planning component in the planning scheme has a corresponding data table containing the key planning content of that component. After modifying the content of the second scheme, the target table format needs to be determined based on the table format of the data table corresponding to the planning type of each planning component. Subsequently, according to the target table format, the key planning content of each component in the second scheme is filled into the table, generating the target data table corresponding to each component. Finally, one or more generated target data tables are inserted into the content of the first scheme to generate a merged target scheme, facilitating subsequent collaborative demonstration between grid construction schemes of different provinces and regions.
[0103] In practical applications, to ensure that the source planning scheme information remains unchanged, it is only necessary to insert one or more target data tables into the first scheme. Taking decommissioned components as an example, as shown in Table 1, this is the target data table for any decommissioned component to be inserted into the second scheme. The attribute names of the decommissioned component in the data table include the component name, component type (e.g., inter-station equipment for AC lines), second scheme number, and decommissioning time of the decommissioned component. For each attribute, the corresponding specific fields need to be filled in according to the table's preset format. If any attribute contains special remarks, relevant personnel can write the remarks.
[0104] Table 1
[0105] Serial number Attribute Field Remark 1 Component name 2 Component type 3 Scheme number of the second scheme 4 Retirement time
[0106] S209. Add the content of the second scheme to the content of the first scheme to generate the target scheme.
[0107] This step and Figure 1 The method for step S105 shown is the same, and will not be repeated here.
[0108] Furthermore, as Figure 1 To specifically implement the method, an embodiment of the present invention provides a data processing device 300, such as... Figure 4 As shown, the device includes:
[0109] The acquisition module 301 includes, in response to a merging request for a planning scheme, acquiring the first scheme type and first scheme content of the first scheme to be merged, and the second scheme type and second scheme content of the second scheme to be merged, which are included in the merging request.
[0110] The judgment module 302 is used to detect the content of the second scheme based on the first scheme type, the first scheme content, the second scheme type, and the second scheme content, and to determine whether the content of the second scheme needs to be modified.
[0111] Modification module 303 is used to modify the content to be modified in the second scheme when it is necessary to modify the content of the second scheme.
[0112] The generation module 304 is used to add the modified second scheme content to the first scheme content to generate the target scheme.
[0113] Optionally, the scheme types include basic schemes and planning schemes. The judgment module 302 is specifically used for:
[0114] If the first option is a planning option, determine the planning type included in the second option based on the content of the second option;
[0115] In the case of a decommissioning plan, at least one decommissioning time and at least one component name shall be determined according to the content of the second plan;
[0116] For any decommissioned component, based on the component name and the content of the first scheme, determine whether there are identical decommissioned components in the first scheme;
[0117] If it is determined that the same decommissioned components exist in the first scheme, then it is necessary to modify the content of the second scheme.
[0118] Obtain the commissioning time of decommissioned components;
[0119] If the decommissioning time is later than the commissioning time, it will be necessary to modify the content of the second plan.
[0120] Optionally, the device further includes:
[0121] The determination module 305 is used to determine, in the case of incremental planning, at least one component name of at least one incremental component included in the second scheme based on the content of the second scheme.
[0122] Optionally, the determination module 302 is further configured to, for any incremental component, determine whether the first scheme has the same incremental component based on the component name and the content of the first scheme;
[0123] The determination module 305 is also used to determine, if it is determined that the content of the second scheme needs to be modified, when the first scheme has the same incremental component.
[0124] The incremental components include at least one of the following: incremental substation, incremental busbar, incremental substation equipment, incremental inter-substation equipment, and incremental line auxiliary equipment.
[0125] Optionally, the acquisition module 301 is further configured to acquire the data merging method between the first scheme and the second scheme when the first scheme is the basic scheme and the second scheme is a confirmed planning scheme;
[0126] The determining module 305 is also used to determine, in the case where the data merging method is to merge all component data, multiple component names corresponding to multiple first components in the second scheme according to the content of the second scheme;
[0127] The judgment module 302 is also used to, for any first component, determine whether there is a common component in the first scheme based on the component name and the content of the first scheme;
[0128] The determination module 305 is also used to determine, if it is determined that there are identical components in the first scheme, that the content of the second scheme needs to be modified.
[0129] Optionally, the determining module 305 is further configured to, when the data merging method is partial data merging, determine multiple component data corresponding to multiple second components in the second scheme according to the content of the second scheme, wherein the component data includes component name and running data;
[0130] The judgment module 302 is also used to determine whether there are errors in the multiple component data in the content of the second scheme, based on the preset verification rules, multiple component data and the content of the first scheme;
[0131] The determination module 305 is also used to determine whether the content of the second scheme needs to be modified when there are errors in the data of multiple components.
[0132] Optionally, the generation module 304 is further configured to generate modification prompt information based on the content to be modified in the second scheme.
[0133] Optionally, the device further includes:
[0134] The sending module 306 is used to send modification prompt information to the terminal of relevant personnel, so that the relevant personnel can modify the content of the second plan based on the modification prompt information;
[0135] The receiving module 307 is used to receive the modified second scheme content sent by the terminal.
[0136] For the data processing device 300 provided in this embodiment of the invention, before merging the schemes, the content of the schemes to be merged is detected in advance based on different scheme types and scheme content to determine whether there are identical or conflicting scheme content in the second scheme. If duplicate or conflicting content is found, it is modified before the first scheme and the second scheme can be merged. Compared with the existing technology of directly splicing the scheme content of multiple schemes, this embodiment of the invention detects and modifies the scheme content in advance to avoid conflicts or duplicates, ensures the uniqueness of each scheme, guarantees the feasibility of the merged scheme, and thus improves the credibility and scientificity of the merged scheme.
[0137] In an exemplary embodiment, this application also provides an electronic device, including a memory and a processor. The memory stores a computer program, and the processor executes the program stored in the memory to perform the data processing method described in the above embodiments.
[0138] In an exemplary embodiment, this application also provides a readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the data processing method described above.
[0139] Through the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented in hardware or by using software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solution of this application can be embodied in the form of a software product, which can be stored in a non-volatile readable storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) and includes several instructions to cause an electronic device (such as a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0140] Those skilled in the art will understand that the accompanying drawings are merely schematic diagrams of a preferred embodiment, and the modules or processes shown in the drawings are not necessarily essential for implementing this application.
[0141] Those skilled in the art will understand that the modules in the apparatus of the implementation scenario can be distributed within the apparatus of the implementation scenario as described, or they can be located in one or more apparatuses different from this implementation scenario, with corresponding changes. The modules of the above-described implementation scenario can be combined into one module, or they can be further divided into multiple sub-modules.
[0142] The serial numbers in this application are for descriptive purposes only and do not represent the superiority or inferiority of the implementation scenario.
[0143] The above disclosures are only a few specific implementation scenarios of this application. However, this application is not limited to these. Any variations that can be conceived by those skilled in the art should fall within the protection scope of this application.
Claims
1. A data processing method, characterized in that, The method includes: In response to a merging request for planning schemes, the first scheme type and first scheme content of the first scheme to be merged, as well as the second scheme type and second scheme content of the second scheme to be merged, are obtained from the merging request. Based on the first scheme type, the first scheme content, the second scheme type, and the second scheme content, the second scheme content is detected to determine whether the second scheme content needs to be modified. If modifications to the content of the second solution are necessary, the content to be modified in the second solution shall be modified. Add the modified second solution to the first solution to generate the target solution; The scheme types include basic schemes and planning schemes. The step of detecting the second scheme based on the first scheme type, the first scheme content, the second scheme type, and the second scheme content, and determining whether the content of the second scheme needs to be modified, specifically includes: If the first scheme type is the planning scheme, the planning type included in the second scheme is determined according to the content of the second scheme; When the planning type is a decommissioning plan, at least one decommissioning time and at least one component name are determined according to the content of the second plan; For any decommissioned component, based on the component name and the content of the first scheme, determine whether there are identical decommissioned components in the first scheme; If it is determined that the same decommissioned components exist in the first scheme, then it is necessary to modify the content of the second scheme. Obtain the commissioning time of decommissioned components; If the decommissioning time is later than the commissioning time, it is determined that the content of the second plan needs to be modified. When the first scheme type is the planning scheme, after determining the planning type included in the second scheme based on the content of the second scheme, the method further includes: When the planning type is incremental planning, the name of at least one component of at least one incremental component included in the second scheme is determined according to the content of the second scheme. For any incremental component, based on the component name and the content of the first scheme, determine whether the first scheme has the same incremental component; If it is determined that the first scheme has the same incremental components, then it is necessary to modify the content of the second scheme. The incremental components include at least one of the following: incremental substation, incremental busbar, incremental substation equipment, incremental inter-substation equipment, and incremental line auxiliary equipment.
2. The method according to claim 1, characterized in that, The step of detecting the second scheme based on the first scheme type, the first scheme content, the second scheme type, and the second scheme content, and determining whether the content of the second scheme needs to be modified, further includes: When the first scheme is the basic scheme and the second scheme is the confirmed planning scheme, obtain the data merging method between the first scheme and the second scheme; When the data merging method is to merge all component data, the component names corresponding to the multiple first components in the second scheme are determined according to the content of the second scheme; For any first component, determine whether there is a duplicate component in the first scheme based on the component name and the content of the first scheme; If it is determined that the same components exist in the first scheme, then it is necessary to modify the content of the second scheme.
3. The method according to claim 2, characterized in that, When the first scheme is the basic scheme and the second scheme is a confirmed planning scheme, after obtaining the data merging method between the first scheme and the second scheme, the method further includes: When the data merging method is to merge partial data, according to the content of the second scheme, multiple component data corresponding to multiple second components in the second scheme are determined, wherein the component data includes component name and operation data; Based on the preset verification rules, the multiple component data, and the content of the first scheme, determine whether there are errors in the multiple component data in the content of the second scheme; Given the errors in multiple component data, it was determined that modifications to the second solution were necessary.
4. The method according to any one of claims 1 to 3, characterized in that, The steps for modifying the content to be modified in the second solution specifically include: Based on the content to be modified in the second solution, generate modification prompt information; The modification prompt information is sent to the terminal of the relevant personnel so that the relevant personnel can modify the content of the second solution based on the modification prompt information; Receive the modified second scheme content sent by the terminal.
5. The method according to any one of claims 1 to 3, characterized in that, The step of adding the modified second scheme content to the first scheme content to generate the target planning scheme specifically includes: Based on the planning types included in the revised second plan, determine the target table format; The modified second scheme content is used to generate at least one target data table according to the target table format; The at least one target data table is inserted into the content of the first scheme to generate the target scheme.
6. A data processing apparatus, characterized in that, include: The acquisition module includes, in response to a merging request for a planning scheme, acquiring the first scheme type and first scheme content of the first scheme to be merged, and the second scheme type and second scheme content of the second scheme to be merged, as included in the merging request, wherein the scheme type includes a basic scheme and a planning scheme. The judgment module is used to detect the content of the second scheme based on the first scheme type, the first scheme content, the second scheme type, and the second scheme content, and to determine whether the content of the second scheme needs to be modified. The modification module is used to modify the content to be modified in the second solution when it is necessary to modify the content of the second solution. The generation module is used to add the modified second scheme content to the first scheme content to generate the target scheme; The judgment module is specifically used for: If the first option is a planning option, determine the planning type included in the second option based on the content of the second option; In the case of a decommissioning plan, at least one decommissioning time and at least one component name shall be determined according to the content of the second plan; For any decommissioned component, based on the component name and the content of the first scheme, determine whether there are identical decommissioned components in the first scheme; If it is determined that the same decommissioned components exist in the first scheme, then it is necessary to modify the content of the second scheme. Obtain the commissioning time of decommissioned components; If the decommissioning time is later than the commissioning time, it is determined that the content of the second plan needs to be modified. The data processing device further includes: The determination module is used to determine, in the case of incremental planning, at least one component name of at least one incremental component included in the second scheme, based on the content of the second scheme. The judgment module is also used to determine, for any incremental component, whether the first scheme has the same incremental component based on the component name and the content of the first scheme; The determination module is also used to determine, if it is determined that the content of the second scheme needs to be modified when the first scheme has the same incremental components; The incremental components include at least one of the following: incremental substation, incremental busbar, incremental substation equipment, incremental inter-substation equipment, and incremental line auxiliary equipment.
7. An electronic device comprising a memory and a processor, the memory storing a computer program, characterized in that, When the processor executes a computer program, it implements the steps of any one of claims 1 to 5.
8. A readable storage medium having a computer program stored thereon, characterized in that, When a computer program is executed by a processor, it implements the steps of any one of claims 1 to 5.