Invoicing method and device based on polymorphic application, electronic equipment and storage medium

By dividing the database in a temporal manner and using polymorphic applications, the problem of insufficient isolation between operation invoice issuance and grid operation monitoring is solved, the accuracy of invoice is achieved and the accuracy of grid operation monitoring is improved, and the safety of grid operation is improved sex.

CN119180446AActive Publication Date: 2024-12-24GUANGDONG POWER GRID CO LTD +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411213663.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2024-12-24
Estimated Expiration
2044-08-30

AI Technical Summary

Technical Problem

In the prior art, there is no isolation between the operation invoice issuance and the power grid operation monitoring, which causes changes in the operating equipment status involved in the invoice issuance to affect the monitoring accuracy, and thus affect the power grid operation safety.

Method used

By dividing the database in a temporal manner, a polymorphic application is generated, the invoice model is imported into the running application, and the application data is synchronized to the research application. After receiving the invoice instruction, select the appropriate target invoice model based on the temporal requirements to call the research application generation Operate tickets to ensure isolation between invoice billing operations and grid operation monitoring.

Benefits of technology

It improves the accuracy of invoice billing operations and the accuracy of grid operation monitoring, ensures that invoice billing operations do not interfere with the real-time monitoring system, and enhances the safety of grid operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119180446A_ABST
    Figure CN119180446A_ABST
Patent Text Reader

Abstract

The invention discloses an invoicing method and device based on polymorphic applications, electronic equipment and a storage medium, and relates to the technical field of intelligent distribution networks of power systems or other related fields, and the method comprises the steps: carrying out the temporal division of a database, and obtaining the polymorphic applications; importing the invoicing model into a running state application in the polymorphic applications; after the model is imported, synchronizing application data of the running-state application to a research-state application in the polymorphic applications; receiving an invoicing instruction, and selecting a target invoicing model used by the invoicing operation based on an invoicing tense demand carried by the invoicing instruction; and responding to the invoicing instruction, calling the research state application corresponding to the target invoicing model through the target invoicing model, and generating a target operation ticket. According to the invention, the technical problem that the operation ticket issuing and the power grid operation monitoring are not isolated, so that the monitoring accuracy is influenced by the state change of the operation equipment involved in the ticket issuing action, and the power grid operation safety is influenced in the related technology is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of intelligent distribution network of power system, and in particular to an invoicing method and device based on polymorphic application, electronic equipment and storage medium. Background Art

[0002] For operations involving changes in line operating status, it is necessary to issue an operation ticket based on the equipment model information and topology conditions after the line operating status is changed before the line operating status is actually changed, as the basis for the actual change operation.

[0003] In the prior art, the method of manually modifying the content of the operation ticket is time-consuming and prone to errors. In addition, the invoicing process involves changes in the operating status of the equipment, such as switch position changes, which will affect the monitoring results of the actual operating status of the power grid by the power operation monitoring and dispatching end. The invoicing method in the prior art will greatly reduce the work efficiency of the dispatcher and the accuracy of the power grid operation monitoring, and it is very easy to cause misjudgment or misoperation of the power grid operation status, thereby threatening the safety of the power grid operation.

[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present invention provide an invoicing method and device, an electronic device, and a storage medium based on polymorphic applications, so as to at least solve the technical problem in the related art that due to the lack of isolation between the issuance of operation tickets and the monitoring of power grid operation, the changes in the status of the operating equipment involved in the invoicing action affect the monitoring accuracy, thereby affecting the safety of power grid operation.

[0006] According to one aspect of an embodiment of the present invention, there is provided an invoicing method based on a polymorphic application, comprising: performing temporal division on a database to obtain a polymorphic application, wherein the polymorphic application refers to a data application corresponding to a variety of temporal requirements for an invoicing model; importing the invoicing model into a running application in the polymorphic application, wherein the invoicing model comprises: a red graph model and a black graph model, and the running application comprises: a red graph application and a black graph application; after the model import is completed, synchronizing the application data of the running application to the research application in the polymorphic application, wherein the research application comprises: a red graph research application and a black graph research application; receiving an invoicing instruction, and selecting a target invoicing model used for this invoicing operation based on the invoicing temporal requirements carried by the invoicing instruction; responding to the invoicing instruction, calling the research application corresponding to the target invoicing model through the target invoicing model, and generating a target operation ticket.

[0007] Furthermore, the running state application and the research state application have a one-to-one correspondence, including: the red state application corresponds to the red state application, the black state application corresponds to the black state application, and the database table relationships and structures used by the data applications having the corresponding relationships are consistent.

[0008] Furthermore, the step of importing the invoicing model into the running application in the polymorphic application includes: obtaining model import parameters and calling a model import program, wherein the model import parameters include: red map model import parameters and black map model import parameters; inputting the red map model import parameters into the model import program to obtain a red map import program; importing the red map model into the red map state application through the red map import program; inputting the black map model import parameters into the model import program to obtain a black map import program; importing the black map model into the black map state application through the black map import program.

[0009] Furthermore, after the model import is completed, the step of synchronizing the application data of the running application to the research application in the polymorphic application includes: after the model import is completed, based on the preset data synchronization method and corresponding relationship, synchronizing the red image application data to the red image research application, and synchronizing the black image application data to the black image research application, wherein the preset data synchronization method is: one-way data synchronization.

[0010] Furthermore, the invoicing instruction is obtained through the following steps: receiving a graphic click action through an interactive interface to obtain graphic click information, wherein the interactive interface is used to display graphic controls to be selected, each of the graphic controls to be selected corresponds to an invoicing model, and the graphic controls to be selected include at least: a red graphic control and a black graphic control; based on the graphic click information, determining the invoicing temporal requirements of the current invoicing operation, and generating the invoicing instruction.

[0011] Furthermore, the step of determining the invoicing temporal requirement of the current invoicing operation based on the graphic click information includes: when the graphic click information indicates that the red graphic control is clicked, determining that the invoicing temporal requirement is a future state; when the graphic click information indicates that the black graphic control is clicked, determining that the invoicing temporal requirement is a real-time state.

[0012] Furthermore, the step of selecting the target invoicing model used for this invoicing operation based on the invoicing temporal requirement carried by the invoicing instruction includes: when the invoicing temporal requirement is in the future state, selecting the red image model as the target invoicing model; or, when the invoicing temporal requirement is in the real-time state, selecting the black image model as the target invoicing model.

[0013] Furthermore, the step of generating a target operation ticket by calling the research state application corresponding to the target invoicing model through the target invoicing model includes: when the target invoicing model is the red map model, calling the red map research state application and obtaining the future state power grid topology information in the red map research state application data; performing a topology check on the future state power grid topology information based on the red map model to obtain a first check result, and generating the target operation ticket based on the first check result; or, when the target invoicing model is the black map model, calling the black map research state application and obtaining the real-time power grid topology information in the black map research state application data; performing a topology check on the real-time power grid topology information based on the black map model to obtain a second check result, and generating the target operation ticket based on the second check result.

[0014] According to another aspect of an embodiment of the present invention, there is also provided an invoicing device based on a polymorphic application, comprising: a partitioning unit, for performing temporal partitioning on a database to obtain a polymorphic application, wherein the polymorphic application refers to a data application corresponding to a variety of temporal requirements for an invoicing model; an importing unit, for importing the invoicing model into a running application in the polymorphic application, wherein the invoicing model comprises: a red graph model and a black graph model, and the running application comprises: a red graph application and a black graph application; a synchronization unit, for synchronizing the application data of the running application to the research application in the polymorphic application after the model import is completed, wherein the research application comprises: a red graph research application and a black graph research application; a receiving unit, for receiving an invoicing instruction, and selecting a target invoicing model used for this invoicing operation based on the invoicing temporal requirements carried by the invoicing instruction; a responding unit, for responding to the invoicing instruction, calling the research application corresponding to the target invoicing model through the target invoicing model, and generating a target operation ticket.

[0015] Furthermore, the running state application and the research state application have a one-to-one correspondence, including: the red state application corresponds to the red state application, the black state application corresponds to the black state application, and the database table relationships and structures used by the data applications having the corresponding relationships are consistent.

[0016] Further, the import unit includes: an acquisition module, used to acquire model import parameters and call a model import program, wherein the model import parameters include: red image model import parameters and black image model import parameters; a first input module, used to input the red image model import parameters into the model import program to obtain a red image import program; a first import module, used to import the red image model into the red image state application through the red image import program; a second input module, used to input the black image model import parameters into the model import program to obtain a black image import program; a second import module, used to import the black image model into the black image state application through the black image import program.

[0017] Furthermore, the synchronization unit includes: a synchronization module, which is used to synchronize the red image application data to the red image research application, and synchronize the black image application data to the black image research application based on a preset data synchronization method and corresponding relationship after the model import is completed, wherein the preset data synchronization method is: one-way data synchronization.

[0018] Furthermore, the invoicing device based on polymorphic applications also includes: a receiving module, used to receive graphic click actions through an interactive interface to obtain graphic click information, wherein the interactive interface is used to display graphic controls to be selected, each of the graphic controls to be selected corresponds to one of the invoicing models, and the graphic controls to be selected include at least: a red graphic control and a black graphic control; a determination module, used to determine the invoicing temporal requirements of the current invoicing operation based on the graphic click information, and generate the invoicing instruction.

[0019] Furthermore, the determination module includes: a first determination sub-module, used to determine that the invoicing temporal requirement is a future state when the graphic click information indicates that the red image control is clicked; and a second determination sub-module, used to determine that the invoicing temporal requirement is a real-time state when the graphic click information indicates that the black image control is clicked.

[0020] Furthermore, the receiving unit includes: a first selection module, used to select the red graph model as the target invoicing model when the invoicing temporal requirement is in the future state; and a second selection module, used to select the black graph model as the target invoicing model when the invoicing temporal requirement is in the real-time state.

[0021] Further, the response unit includes: a first calling module, used to call the red map research application and obtain the future power grid topology information in the red map research application data when the target invoicing model is the red map model; a first generating module, used to perform a topology check on the future power grid topology information based on the red map model to obtain a first check result, and generate the target operation ticket based on the first check result; a second calling module, used to call the black map research application and obtain the real-time power grid topology information in the black map research application data when the target invoicing model is the black map model; a second generating module, used to perform a topology check on the real-time power grid topology information based on the black map model to obtain a second check result, and generate the target operation ticket based on the second check result.

[0022] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is further provided, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute any one of the above-mentioned invoicing methods based on polymorphic applications.

[0023] According to another aspect of an embodiment of the present invention, there is also provided an electronic device, comprising one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement any one of the above-mentioned invoicing methods based on polymorphic applications.

[0024] In the present invention, an invoicing method based on polymorphic application is proposed, which first performs temporal division on the database to obtain polymorphic application, wherein the polymorphic application refers to data application corresponding to various temporal requirements for the invoicing model, and then imports the invoicing model into the running application in the polymorphic application, wherein the invoicing model includes: a red graph model and a black graph model, and the running application includes: a red graph application and a black graph application. After the model is imported, the application data of the running application is synchronized to the research application in the polymorphic application, wherein the research application includes: a red graph research application and a black graph research application, and then receives the invoicing instruction, and selects the target invoicing model used for this invoicing operation based on the invoicing temporal requirements carried by the invoicing instruction, and finally responds to the invoicing instruction, calls the research application corresponding to the target invoicing model through the target invoicing model, and generates the target operation ticket.

[0025] In the present invention, data timeliness is ensured by temporally dividing the database to generate polymorphic applications. The temporal isolation characteristics of the data application can support invoicing processing according to different time requirements, and the invoicing models (red graph model and black graph model) representing different invoicing requirements are imported into the running application, and then the application data of the running application is synchronized to the corresponding research application (red graph research application and black graph research application). This ensures the data validity and invoicing timeliness of the research application used to analyze invoicing. After receiving the invoicing instruction, the appropriate target invoicing model is selected based on the invoicing temporal requirements to call the corresponding research application to generate the target operation ticket, and complete the invoicing operation, thereby ensuring that the invoicing operation and the generated operation ticket meet the requirements and will not interfere with the real-time monitoring system.

[0026] Compared with the prior art, the above steps utilize polymorphic applications (operational applications and research applications) to isolate the data applications used for invoicing operations and grid operation monitoring, and limit the operating equipment status changes involved in the invoicing action to the research application, without affecting the operating data in the operation application, and minimize the impact on real-time monitoring, thereby improving the monitoring accuracy and the safety of grid operation, and achieving the technical effect of improving the accuracy of invoicing operations and the accuracy of grid operation monitoring through the hierarchical structure of polymorphic applications, thereby solving the technical problem in the related technology that due to the lack of isolation between the issuance of operation tickets and the monitoring of grid operation, the operating equipment status changes involved in the invoicing action affect the monitoring accuracy, thereby affecting the safety of grid operation. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0028] Figure 1 is a flow chart of an optional invoicing method based on polymorphic application according to an embodiment of the present invention;

[0029] Figure 2 is a flow chart of an optional red-black graph model invoicing method based on polymorphic application according to an embodiment of the present invention;

[0030] Figure 3 is a schematic diagram of an optional invoicing device based on polymorphic applications according to an embodiment of the present invention;

[0031] Figure 4 The present invention is a hardware structure block diagram of an electronic device (or mobile device) for a polymorphic application-based invoicing method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0032] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0033] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0034] The following embodiments of the present invention can be applied to various systems / applications / devices that need to issue invoices using the red and black graph model, and can implement red and black graph model-based invoicing based on polymorphic applications, thereby ensuring that the invoicing operation and the generated operation ticket meet the requirements while not interfering with the accuracy of the real-time monitoring system. The present invention generates polymorphic applications by temporally partitioning the database, and then imports the invoicing models (red graph model and black graph model) representing different invoicing requirements into the running state application, and synchronizes the application data of the running state application to the corresponding research state application (red graph research state application and black graph research state application). After receiving the invoicing instruction, the appropriate target invoicing model is selected based on the invoicing temporal requirements to call the corresponding research state application to generate the target operation ticket.

[0035] The present invention utilizes polymorphic applications (operational applications and research applications) to isolate the data applications used for billing operations and power grid operation monitoring, thereby limiting the state changes of operating equipment involved in the billing action to the research application, without affecting the operating data in the operation application, and minimizing the impact on real-time monitoring.

[0036] The present invention is described in detail below in conjunction with various embodiments.

[0037] Embodiment 1

[0038] According to an embodiment of the present invention, an embodiment of an invoicing method based on a polymorphic application is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0039] Figure 1 is a flow chart of an optional invoicing method based on polymorphic application according to an embodiment of the present invention, such as Figure 1 As shown, the method comprises the following steps:

[0040] Step S101, temporally partitioning the database to obtain polymorphic applications, wherein the polymorphic applications refer to data applications corresponding to various temporal requirements of the invoicing model.

[0041] Step S102, importing the invoicing model into the running state application in the polymorphic application, wherein the invoicing model includes: a red graph model and a black graph model, and the running state application includes: a red graph state application and a black graph state application.

[0042] Step S103, after the model is imported, the application data of the running application is synchronized to the research application in the multi-state application, wherein the research application includes: a red-image research application and a black-image research application.

[0043] Step S104: receiving an invoicing instruction, and selecting a target invoicing model used in this invoicing operation based on the invoicing temporal requirement carried in the invoicing instruction.

[0044] Step S105, responding to the invoicing instruction, calling the research application corresponding to the target invoicing model through the target invoicing model to generate a target operation ticket.

[0045] Through the above steps, the database can be temporally divided first to obtain polymorphic applications, wherein polymorphic applications refer to data applications corresponding to various temporal requirements for the invoicing model, and then the invoicing model is imported into the running application in the polymorphic application, wherein the invoicing model includes: a red graph model and a black graph model, and the running application includes: a red graph application and a black graph application. After the model import is completed, the application data of the running application is synchronized to the research application in the polymorphic application, wherein the research application includes: a red graph research application and a black graph research application, and then the invoicing instruction is received, and the target invoicing model used for this invoicing operation is selected based on the invoicing temporal requirements carried by the invoicing instruction, and finally the invoicing instruction is responded to, and the research application corresponding to the target invoicing model is called through the target invoicing model to generate the target operation ticket.

[0046] In an embodiment of the present invention, data timeliness is ensured by temporally partitioning the database to generate polymorphic applications. The temporal isolation characteristics of the data application can support invoicing processing according to different time requirements, and the invoicing models (red graph model and black graph model) representing different invoicing requirements are imported into the running application, and then the application data of the running application is synchronized to the corresponding research application (red graph research application and black graph research application). This ensures the data validity and invoicing timeliness of the research application used to analyze invoicing. After receiving the invoicing instruction, the appropriate target invoicing model is selected based on the invoicing temporal requirements to call the corresponding research application to generate a target operation ticket to complete the invoicing operation, thereby ensuring that the invoicing operation and the generated operation ticket meet the requirements and will not interfere with the real-time monitoring system.

[0047] Compared with the prior art, the above steps utilize polymorphic applications (operational applications and research applications) to isolate the data applications used for invoicing operations and grid operation monitoring, and limit the operating equipment status changes involved in the invoicing action to the research application, without affecting the operating data in the operation application, and minimize the impact on real-time monitoring, thereby improving the monitoring accuracy and the safety of grid operation, and achieving the technical effect of improving the accuracy of invoicing operations and the accuracy of grid operation monitoring through the hierarchical structure of polymorphic applications, thereby solving the technical problem in the related technology that due to the lack of isolation between the issuance of operation tickets and the monitoring of grid operation, the operating equipment status changes involved in the invoicing action affect the monitoring accuracy, thereby affecting the safety of grid operation.

[0048] The embodiment of the present invention is described in detail below in combination with the above steps.

[0049] The implementing entity of the embodiment of the present invention can be an electric power system distribution network system, or an electric power system operation and maintenance center, or a distribution network system dispatching center. In combination with the polymorphic application obtained after the temporal division of the database, different import parameters are used to import the red graph model and the black graph model into the corresponding polymorphic application respectively, so as to realize the storage of the red graph model data and the black graph model data in the database by separate applications, and synchronize the model data of the red graph state and the black graph state to the red graph research state application and the black graph research state application by one-way, so as to facilitate the implementing entity to flexibly select the data application when issuing invoices by the invoicing model and flexibly switch the invoicing mode.

[0050] Step S101, performing temporal division on the database to obtain polymorphic applications.

[0051] It should be noted that in the field of intelligent power distribution network, dividing the database into different temporal applications usually means storing and managing data according to the time dimension. For example, real-time data, historical data and forecast data are stored and processed separately to optimize data access and improve system performance.

[0052] The polymorphic application in the embodiment of the present invention refers to a data application corresponding to various temporal requirements of the invoicing model. The types of polymorphic applications include at least: operating state applications and research state applications, which correspond to the two invoicing models used in the present invention: the red graph model and the black graph model. The operating state applications include at least: red graph application and black graph application. Corresponding to the operating state applications, the research state applications include at least: red graph research state applications and black graph research state applications.

[0053] It should be noted that in the power system, black-image applications and red-image applications refer to different state monitoring and management methods for power grid operation. Black-image applications focus on the real-time power grid operation mode and current real-time data (such as the latest power load, power generation, voltage, current, equipment status, etc.), involving real-time monitoring and fault detection, with the focus on instant analysis of the current operating status. Red-image applications focus on the future state of power grid operation. In addition to real-time data, they usually pay additional attention to historical data, trend analysis, forecast data and records of abnormal events, involving abnormal conditions or early warnings, with the focus on dealing with emergencies or potential system risks.

[0054] In the prior art, a red-graph application is called when an operation ticket is issued using a red-graph model as the invoicing model, and a black-graph application is called when an operation ticket is issued using a black-graph model as the invoicing model. Data isolation is implemented in the database to ensure that the real-time monitoring system and the fault warning system independently process the required data, avoid data conflicts and impacts, and ensure a certain level of data access efficiency and application reliability.

[0055] However, the processing methods in the existing technology are not perfect enough. Changes in the status of equipment during the invoicing process (such as starting and stopping equipment, switching, adjusting loads, and changing switch positions, etc.) may cause data errors in the red and black diagram application, resulting in reduced accuracy of other tasks supported by the red and black diagram application (such as real-time monitoring and fault analysis), and even lead to misjudgment and misoperation of the power system operating status, threatening the security of the power grid.

[0056] The concepts of running state application and research state application are proposed in the embodiment of the present invention. Through data copying / data mirroring, red image research state application and black image research state application are established, which are specially used for invoicing operation calls, and the invoicing operation is isolated from other power grid operations to eliminate the influence of each other.

[0057] Optionally, there is a one-to-one correspondence between running state applications and research state applications, including: red state applications correspond to red research state applications, black state applications correspond to black research state applications, and the database table relationships and database table structures used by the corresponding data applications are consistent. Specifically, the database table relationships and table structures of red state applications and red research state applications are consistent, and the database table relationships and table structures of black state applications and black research state applications are consistent.

[0058] Step S102, importing the invoicing model into the running state application in the polymorphic application, wherein the invoicing model includes: a red graph model and a black graph model, and the running state application includes: a red graph state application and a black graph state application.

[0059] Specifically, in the scenario of issuing operation tickets, the red map model and the black map model have the following differences:

[0060] The Red Chart model is used for planning and forecasting the future state of the power grid, helping to formulate future operation plans and operation strategies for the power grid to cope with expected load changes and system expansion. Operation tickets issued based on the Red Chart model usually involve forecasting and planning for future power grid states, including adjustments to future system configurations, load management, and possible equipment upgrades or changes.

[0061] The black graph model is used for real-time power grid monitoring and management, providing information on the current power grid status for real-time operation and fault handling. The operation tickets issued based on the black graph model involve the implementation of real-time operations, such as real-time equipment adjustment, fault handling, load scheduling, etc. These operation tickets need to quickly respond to the actual operation of the power grid to ensure the stability and safety of the system.

[0062] Optionally, step S102 includes: obtaining model import parameters and calling a model import program, wherein the model import parameters include: red image model import parameters and black image model import parameters; inputting the red image model import parameters into the model import program to obtain a red image import program; importing the red image model into a red image state application through the red image import program; inputting the black image model import parameters into the model import program to obtain a black image import program; importing the black image model into a black image state application through the black image import program.

[0063] In the embodiment of the present invention, detailed import parameters are usually obtained from the model specification document or the model user manual, and the import of the red map model and the black map model are processed separately through the import parameters dedicated to each model (red map and black map), thereby reducing the probability of errors and conflicts, improving the import efficiency and accuracy, and enabling the dispatching center to adapt to various temporal requirements and improve the flexibility and applicability of the power system.

[0064] Step S103, after the model is imported, the application data of the running application is synchronized to the research application in the multi-state application, wherein the research application includes: a red-image research application and a black-image research application.

[0065] Optionally, step S103 includes: after the model import is completed, based on the preset data synchronization method and corresponding relationship, synchronizing the red image application data to the red image research application, and synchronizing the black image application data to the black image research application, wherein the preset data synchronization method is: one-way data synchronization.

[0066] The purpose of data synchronization in the embodiment of the present invention is to copy the current operating information in the running application to the research application, so as to facilitate the issuance of operation tickets for the power grid (equipment) in the research application. The reason for selecting one-way synchronization is to ensure that data can be synchronized from the running application to the research application to ensure the accuracy and availability of invoicing, but data cannot be updated reversely from the research application to the running application to avoid the displacement data in the invoicing process affecting the source data.

[0067] In an optional embodiment, in the data synchronization operation after the model import is completed, the preset data synchronization method can also be: automated one-way data synchronization, which can achieve the technical effect of reducing the workload of manual intervention and data migration, thereby improving operational efficiency and accuracy.

[0068] Step S104: receiving an invoicing instruction, and selecting a target invoicing model used in this invoicing operation based on the invoicing temporal requirement carried in the invoicing instruction.

[0069] In order to improve the operational efficiency and accuracy of users (i.e., dispatchers), the interaction between users and the dispatching system can be simplified through interactive interfaces and graphic controls, so that users can intuitively select the required invoicing model. Optionally, the invoicing instruction is obtained through the following steps: receiving a graphic click action through the interactive interface to obtain graphic click information, wherein the interactive interface is used to display the graphic controls to be selected, each graphic control to be selected corresponds to an invoicing model, and the graphic controls to be selected include at least: a red graphic control and a black graphic control; based on the graphic click information, the invoicing temporal requirements of this invoicing operation are determined, and an invoicing instruction is generated.

[0070] The embodiment of the present invention automates the process of generating invoicing instructions by clicking on graphics, reduces the possibility of manual input and errors, and improves operational efficiency and accuracy.

[0071] Optionally, the step of determining the invoicing temporal requirement of this invoicing operation based on the graphic click information includes: when the graphic click information indicates that the red graphic control is clicked, determining the invoicing temporal requirement is a future state; when the graphic click information indicates that the black graphic control is clicked, determining the invoicing temporal requirement is a real-time state. Through clear control mapping, the system can accurately determine the temporal state of the invoicing requirement, adapt to different business scenarios, and ensure that the invoicing operation meets the actual needs of the user; by clicking on the graphic instead of manually entering the temporal requirement, the possibility of input errors is reduced, and the accuracy of the invoicing operation is improved.

[0072] In order to select a suitable invoicing model, optionally, the step of selecting the target invoicing model used for this invoicing operation based on the invoicing temporal requirement carried by the invoicing instruction in step S104 includes: when the invoicing temporal requirement is in the future state, selecting the red map model as the target invoicing model; or, when the invoicing temporal requirement is in the real-time state, selecting the black map model as the target invoicing model.

[0073] The embodiment of the present invention ensures that the system can efficiently handle different types of invoicing requirements by selecting a suitable invoicing model (red graph model or black graph model) according to the invoicing temporal requirements (future state or real time state). This selection mechanism not only improves the adaptability and processing efficiency of the system, but also simplifies user operations, supports multiple business scenarios, and reduces operational errors.

[0074] Step S105, responding to the invoicing instruction, calling the research application corresponding to the target invoicing model through the target invoicing model to generate a target operation ticket.

[0075] Optionally, in step S105, the step of calling the research state application corresponding to the target invoicing model through the target invoicing model to generate a target operation ticket includes: when the target invoicing model is a red map model, calling the red map research state application and obtaining the future state power grid topology information in the red map research state application data; performing a topology check on the future state power grid topology information based on the red map model to obtain a first check result, and generating the target operation ticket based on the first check result; or, when the target invoicing model is a black map model, calling the black map research state application and obtaining the real-time power grid topology information in the black map research state application data; performing a topology check on the real-time power grid topology information based on the black map model to obtain a second check result, and generating the target operation ticket based on the second check result.

[0076] In the embodiment of the present invention, topology verification is used to ensure that the structure of the power grid meets the operating standards in the future or at the current moment, thereby avoiding potential errors and risks; verification is used to prevent structural problems that may cause accidents in the future or current power grid state, thereby ensuring the stability and safety of the power grid; verification can also ensure that the operation of the power grid complies with the prescribed technical standards and business processes, thereby avoiding compliance issues caused by improper operation.

[0077] Specifically, the first verification result refers to the result of the verification of the red map model based on the topology data of the future power grid, including whether it meets the standards and safety requirements of future plans; the second verification result refers to the result of the verification of the black map model based on the topology data of the real-time power grid, including whether it meets the standards and safety requirements of current operations.

[0078] If and only if the first or second verification result meets the requirements, a target operation ticket will be generated, and the generated target operation ticket includes the verified data and decision, indicating the specific operation or modification that can be performed. The present invention is described below in conjunction with another specific embodiment.

[0079] The embodiment of the present invention proposes a red-black graph model invoicing method based on polymorphic applications, which divides the power monitoring system into multiple temporal applications, including red graph state, red graph research state, black graph state and black graph research state; the red graph model and the black graph model use different import parameters to realize the application-by-application storage of the red graph model data and the black graph model data in the database; the red graph state and the black graph state model data are automatically copied to the red graph research and the black graph research state in one direction respectively. Based on the embodiment of the present invention, the dispatcher can be supported to flexibly switch the invoicing mode by manually switching the graphic application.

[0080] Figure 2 is a flowchart of an optional red-black graph model invoicing method based on polymorphic application according to an embodiment of the present invention, such as Figure 2 As shown, the method comprises the following steps:

[0081] S1 polymorphic application partitioning;

[0082] S2 model import;

[0083] S3 model data copy;

[0084] S4 Graphics Application Selection;

[0085] S5 operation ticket generation.

[0086] Regarding the polymorphic application division step in S1, the main operation is to divide the database storing model data into different temporal applications. The resulting polymorphic applications include: red graph application, red graph research application, black graph application, and black graph research application. The database table relationships and table structures between different data applications need to be consistent.

[0087] Regarding the model import step in S2, the implementation method of the present invention uses different model startup parameters to start the model import program to distinguish between the red map model and the black map model, and then imports the invoicing model into the corresponding red map application and black map application in the database respectively.

[0088] Regarding the model data copying step in S3, after the model is imported in S2, the red image application data and the black image application data are automatically copied to the red image research application and the black image research application respectively.

[0089] The data synchronization between the red image application and the red image research application, and between the black image application and the black image research application is one-way synchronization. That is, any data changes in the red image application and the black image application will be synchronized to the red image research application and the black image research application, but any data changes in the red image research application and the black image research application will not be synchronized to the red image application and the black image application.

[0090] The above-mentioned one-way synchronous data synchronization method ensures that the dispatching center obtains the correct model information during the invoicing operation using the research state application, while ensuring that operations such as switch changes caused by the invoicing operation will not affect the dispatching center's monitoring accuracy of the actual operating status of the power grid equipment.

[0091] Regarding the graphic application selection step in S4, the dispatch center is supported to select the grid operation mode by switching the graphic application on the graphic control provided in the interactive interface, and to choose to issue invoices for the red or black graph.

[0092] Regarding the operation ticket generation step in S5, when the dispatch center issues the ticket, it automatically performs topology verification on the power grid / system topology diagram corresponding to the different power grid operation modes represented by the black graph research state application and the red graph research state application based on the graphic application selection result in S4.

[0093] The implementation mode of the present invention also supports the selection of the traditional point-by-point invoicing method or the intelligent invoicing method to generate an operation ticket, and the generated operation ticket includes the following contents: operation task, operation steps, serial number, order-receiving unit, and operation content.

[0094] The beneficial effects brought about by the implementation methods of the present invention are that the proposed red-black graph model invoicing method based on polymorphic applications expands the database structure hierarchy, divides the model data information through multiple temporal applications, and realizes different invoicing methods based on polymorphic applications calling the red-black graph model, which provides more options for dispatching invoicing while reducing the dispatching workload and improving the safety of power grid operation.

[0095] The present invention is described below in conjunction with another optional embodiment.

[0096] Embodiment 2

[0097] The invoicing device based on polymorphic application provided in this embodiment includes multiple implementation units, and each implementation unit corresponds to each implementation step in the above-mentioned embodiment 1.

[0098] Figure 3 is a schematic diagram of an optional invoicing device based on polymorphic applications according to an embodiment of the present invention, such as Figure 3 As shown, the device may include: a dividing unit 31, an importing unit 32, a synchronization unit 33, a receiving unit 34, and a responding unit 35.

[0099] The partitioning unit 31 is used to perform temporal partitioning on the database to obtain polymorphic applications, wherein the polymorphic applications refer to data applications corresponding to various temporal requirements of the invoicing model.

[0100] The importing unit 32 is used to import the invoicing model into the running state application in the polymorphic application, wherein the invoicing model includes: a red graph model and a black graph model, and the running state application includes: a red graph state application and a black graph state application.

[0101] The synchronization unit 33 is used to synchronize the application data of the running state application to the research state application in the multi-state application after the model is imported, wherein the research state application includes: a red-image research state application and a black-image research state application.

[0102] The receiving unit 34 is used to receive the invoicing instruction and select the target invoicing model used for the current invoicing operation based on the invoicing temporal requirement carried in the invoicing instruction.

[0103] The response unit 35 is used to respond to the invoicing instruction, call the research application corresponding to the target invoicing model through the target invoicing model, and generate a target operation ticket.

[0104] The above-mentioned invoicing device based on polymorphic application can first perform temporal division on the database through the division unit 31 to obtain polymorphic application, wherein the polymorphic application refers to the data application corresponding to various temporal requirements of the invoicing model, and then import the invoicing model into the running application in the polymorphic application through the import unit 32, wherein the invoicing model includes: red picture model and black picture model, and the running application includes: red picture application and black picture application. After the model import is completed, the application data of the running application is synchronized to the research application in the polymorphic application through the synchronization unit 33, wherein the research application includes: red picture research application and black picture research application, and then receive the invoicing instruction through the receiving unit 34, and select the target invoicing model used for this invoicing operation based on the invoicing temporal requirements carried by the invoicing instruction, and finally respond to the invoicing instruction through the response unit 35, call the research application corresponding to the target invoicing model through the target invoicing model, and generate the target operation ticket.

[0105] In an embodiment of the present invention, data timeliness is ensured by temporally partitioning the database to generate polymorphic applications. The temporal isolation characteristics of the data application can support invoicing processing according to different time requirements, and the invoicing models (red graph model and black graph model) representing different invoicing requirements are imported into the running application, and then the application data of the running application is synchronized to the corresponding research application (red graph research application and black graph research application). This ensures the data validity and invoicing timeliness of the research application used to analyze invoicing. After receiving the invoicing instruction, the appropriate target invoicing model is selected based on the invoicing temporal requirements to call the corresponding research application to generate the target operation ticket, and complete the invoicing operation. This ensures that the invoicing operation and the generated operation ticket meet the requirements and will not interfere with the real-time monitoring system.

[0106] Compared with the prior art, the above steps utilize polymorphic applications (operational applications and research applications) to isolate the data applications used for invoicing operations and grid operation monitoring, and limit the operating equipment status changes involved in the invoicing action to the research application, without affecting the operating data in the operation application, and minimize the impact on real-time monitoring, thereby improving the monitoring accuracy and the safety of grid operation, and achieving the technical effect of improving the accuracy of invoicing operations and the accuracy of grid operation monitoring through the hierarchical structure of polymorphic applications, thereby solving the technical problem in the related technology that due to the lack of isolation between the issuance of operation tickets and the monitoring of grid operation, the operating equipment status changes involved in the invoicing action affect the monitoring accuracy, thereby affecting the safety of grid operation.

[0107] Optionally, there is a one-to-one correspondence between running state applications and research state applications, including: red state applications correspond to red state applications, black state applications correspond to black state applications, and the database tables used by the corresponding data applications have consistent relationships and consistent database table structures.

[0108] Optionally, the import unit includes: an acquisition module, used to acquire model import parameters and call a model import program, wherein the model import parameters include: red image model import parameters and black image model import parameters; a first input module, used to input the red image model import parameters into the model import program to obtain a red image import program; a first import module, used to import the red image model into a red image state application through the red image import program; a second input module, used to input the black image model import parameters into the model import program to obtain a black image import program; a second import module, used to import the black image model into a black image state application through the black image import program.

[0109] Optionally, the synchronization unit includes: a synchronization module, which is used to synchronize the red image application data to the red image research application, and synchronize the black image application data to the black image research application based on a preset data synchronization method and corresponding relationship after the model import is completed, wherein the preset data synchronization method is: one-way data synchronization.

[0110] Optionally, the invoicing device based on polymorphic applications also includes: a receiving module, used to receive graphic click actions through an interactive interface to obtain graphic click information, wherein the interactive interface is used to display graphic controls to be selected, each graphic control to be selected corresponds to an invoicing model, and the graphic controls to be selected include at least: a red graphic control and a black graphic control; a determination module, used to determine the invoicing temporal requirements of this invoicing operation based on the graphic click information, and generate an invoicing instruction.

[0111] Optionally, the determination module includes: a first determination submodule, used to determine that the invoicing temporal requirement is a future state when the graphic click information indicates that the red graphic control is clicked; and a second determination submodule, used to determine that the invoicing temporal requirement is a real-time state when the graphic click information indicates that the black graphic control is clicked.

[0112] Optionally, the receiving unit includes: a first selection module, used to select the red graph model as the target invoicing model when the invoicing temporal requirement is in the future state; a second selection module, used to select the black graph model as the target invoicing model when the invoicing temporal requirement is in the real-time state.

[0113] Optionally, the response unit includes: a first calling module, which is used to call the red map research application and obtain the future power grid topology information in the red map research application data when the target invoicing model is the red map model; a first generating module, which is used to perform a topology check on the future power grid topology information based on the red map model to obtain a first check result, and generate a target operation ticket based on the first check result; a second calling module, which is used to call the black map research application and obtain the real-time power grid topology information in the black map research application data when the target invoicing model is the black map model; a second generating module, which is used to perform a topology check on the real-time power grid topology information based on the black map model to obtain a second check result, and generate a target operation ticket based on the second check result.

[0114] The above-mentioned invoicing device based on polymorphic applications may also include a processor and a memory. The above-mentioned division unit 31, import unit 32, synchronization unit 33, receiving unit 34, response unit 35, etc. are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize corresponding functions.

[0115] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set to respond to the invoicing instruction by adjusting kernel parameters, and call the research application corresponding to the target invoicing model through the target invoicing model to generate the target operation ticket.

[0116] The above-mentioned memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one storage chip.

[0117] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that initializes the following method steps: temporally partitioning the database to obtain polymorphic applications, wherein the polymorphic application refers to a data application corresponding to multiple temporal requirements for the invoicing model; importing the invoicing model into a running application in the polymorphic application, wherein the invoicing model includes: a red graph model and a black graph model, and the running application includes: a red graph application and a black graph application; after the model import is completed, synchronizing the application data of the running application to the research application in the polymorphic application, wherein the research application includes: a red graph research application and a black graph research application; receiving an invoicing instruction, and selecting a target invoicing model used for this invoicing operation based on the invoicing temporal requirements carried by the invoicing instruction; responding to the invoicing instruction, calling the research application corresponding to the target invoicing model through the target invoicing model, and generating a target operation ticket.

[0118] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is further provided, the computer-readable storage medium including a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute any one of the polymorphic application-based invoicing methods in the above-mentioned embodiment 1.

[0119] According to another aspect of an embodiment of the present invention, there is also provided an electronic device, comprising one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by one or more processors, the one or more processors implement the polymorphic application-based invoicing method of any one of the above-mentioned embodiments one.

[0120] Figure 4 1 is a hardware structure block diagram of an electronic device (or mobile device) for a polymorphic application-based invoicing method according to an embodiment of the present invention. Figure 4 As shown, the electronic device may include one or more ( Figure 4402a, 402b, ..., 402n are used to illustrate) processor 402 (processor 402 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), memory 404 for storing data. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the I / O interface), a network interface, a keyboard, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 4 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 4 More or fewer components as shown, or with Figure 4 Different configurations are shown.

[0121] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0122] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0123] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0124] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0125] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0126] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0127] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for issuing invoices based on polymorphic applications, characterized in that: include: Perform temporal division on the database to obtain polymorphic applications, wherein the polymorphic applications refer to data applications corresponding to various temporal requirements of the invoicing model; Importing the invoicing model into the running state application in the polymorphic application, wherein the invoicing model includes: a red graph model and a black graph model, and the running state application includes: a red graph state application and a black graph state application; After the model is imported, the application data of the running state application is synchronized to the research state application in the polymorphic application, wherein the research state application includes: a red image research state application and a black image research state application; Receive an invoicing instruction, and select a target invoicing model used for the current invoicing operation based on the invoicing temporal requirement carried by the invoicing instruction; In response to the invoicing instruction, the research application corresponding to the target invoicing model is called through the target invoicing model to generate a target operation ticket.

2. The invoicing method according to claim 1, characterized in that: The running state application and the research state application have a one-to-one correspondence, including: the red state application corresponds to the red state application, the black state application corresponds to the black state application, and the database table relationships and structures used by the data applications having the corresponding relationships are consistent.

3. The invoicing method according to claim 1, characterized in that: The step of importing the invoicing model into the running application in the polymorphic application comprises: Obtain model import parameters and call a model import program, wherein the model import parameters include: red image model import parameters and black image model import parameters; Inputting the red map model import parameters into the model import program to obtain the red map import program; Importing the red map model into the red map state application through the red map import program; Inputting the black image model importing parameters into the model importing program to obtain a black image importing program; The black image model is imported into the black image application through the black image importing program.

4. The invoicing method according to claim 1, characterized in that: After the model is imported, the step of synchronizing the application data of the running application to the research application in the polymorphic application includes: After the model is imported, based on the preset data synchronization method and corresponding relationship, the red image application data is synchronized to the red image research application, and the black image application data is synchronized to the black image research application, wherein the preset data synchronization method is: one-way data synchronization.

5. The invoicing method according to claim 1, characterized in that: The invoicing instruction is obtained through the following steps: Receiving a graphic click action through an interactive interface to obtain graphic click information, wherein the interactive interface is used to display graphic controls to be selected, each of the graphic controls to be selected corresponds to one of the invoicing models, and the graphic controls to be selected include at least: a red graphic control and a black graphic control; The invoicing temporal requirement of the current invoicing operation is determined based on the graphic click information, and the invoicing instruction is generated.

6. The invoicing method according to claim 5, characterized in that: The step of determining the invoicing temporal requirement of the current invoicing operation based on the graphic click information includes: When the graphic click information indicates that the red graphic control is clicked, determining that the invoicing tense requirement is a future tense; When the graphic click information indicates that the black graphic control is clicked, it is determined that the invoicing temporal requirement is in real time.

7. The invoicing method according to claim 1, characterized in that: The step of selecting a target invoicing model used for the current invoicing operation based on the invoicing temporal requirement carried by the invoicing instruction includes: When the invoicing temporal requirement is in the future state, the red chart model is selected as the target invoicing model; or, When the invoicing temporal requirement is real-time, the black graph model is selected as the target invoicing model.

8. The invoicing method according to claim 1, characterized in that: The step of calling the research application corresponding to the target invoicing model through the target invoicing model to generate a target operation ticket includes: In the case where the target invoicing model is the red map model, calling the red map research state application and obtaining future state power grid topology information in the red map research state application data; Performing a topology check on the future power grid topology information based on the red map model to obtain a first check result, and generating the target operation ticket based on the first check result; or, In the case where the target invoicing model is the black graph model, calling the black graph research state application and obtaining the real-time power grid topology information in the black graph research state application data; A topology check is performed on the real-time power grid topology information based on the black graph model to obtain a second check result, and the target operation ticket is generated based on the second check result.

9. A billing device based on polymorphic application, characterized in that: include: A partitioning unit, used for temporally partitioning the database to obtain polymorphic applications, wherein the polymorphic applications refer to data applications corresponding to various temporal requirements of the invoicing model; An importing unit, used for importing the invoicing model into a running state application in the polymorphic application, wherein the invoicing model includes: a red graph model and a black graph model, and the running state application includes: a red graph state application and a black graph state application; A synchronization unit, used for synchronizing the application data of the running state application to the research state application in the polymorphic application after the model is imported, wherein the research state application includes: a red image research state application and a black image research state application; A receiving unit, configured to receive an invoicing instruction and select a target invoicing model used for the current invoicing operation based on the invoicing temporal requirement carried by the invoicing instruction; The response unit is used to respond to the invoicing instruction, call the research application corresponding to the target invoicing model through the target invoicing model, and generate a target operation ticket.

10. An electronic device, characterized in that: It includes one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the invoicing method based on polymorphic applications as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Gridding-based power distribution network top-down load prediction information method

    CN111210058A

  • Red-black image updating method and device, equipment and medium

    CN115203876A

  • Graph database-based power grid multi-tense modeling method and apparatus, and electronic device

    CN116756115A

  • System and method for electric power system data abbreviation

    KR101375282B1