CN114331074A - Execution method, device, equipment and medium for orderly power utilization scheme - Google Patents
Execution method, device, equipment and medium for orderly power utilization scheme Download PDFInfo
- Publication number
- CN114331074A CN114331074A CN202111576865.9A CN202111576865A CN114331074A CN 114331074 A CN114331074 A CN 114331074A CN 202111576865 A CN202111576865 A CN 202111576865A CN 114331074 A CN114331074 A CN 114331074A
- Authority
- CN
- China
- Prior art keywords
- scheme
- power utilization
- day
- execution
- plan
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 89
- 238000012545 processing Methods 0.000 claims description 13
- 238000013524 data verification Methods 0.000 claims description 9
- 230000005540 biological transmission Effects 0.000 claims description 8
- 238000012795 verification Methods 0.000 claims description 7
- 238000004590 computer program Methods 0.000 claims description 6
- 230000005611 electricity Effects 0.000 claims description 5
- 238000012546 transfer Methods 0.000 claims description 5
- 239000000463 material Substances 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 238000006243 chemical reaction Methods 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The embodiment of the invention discloses an execution method, device, equipment and medium of an orderly power utilization scheme. The method comprises the following steps: determining the scheme name of each orderly power utilization scheme, and determining the scheme execution day of each orderly power utilization scheme according to each scheme name; the method comprises the steps of judging whether a scheme execution day of a current ordered power utilization scheme is a working day or not according to a scheme execution day of each ordered power utilization scheme, if not, determining a previous working day corresponding to the scheme execution day of the current ordered power utilization scheme, taking the previous working day as a scheme baseline day of the current ordered power utilization scheme, and executing the current ordered power utilization scheme in the scheme baseline day.
Description
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to an execution method, device, equipment and medium for an orderly power utilization scheme.
Background
With the rapid development of economy and the continuous improvement of living standard of people in China, the demand of electric power is rapidly increased. The orderly power utilization is one of effective means for power demand side management, and becomes a key for solving the problems of power grid safety meeting the peak in summer and winter. Therefore, the determination of the base line day of the orderly power utilization scheme is particularly important, and the base line day of the orderly power utilization scheme in the execution method of the orderly power utilization scheme at present is generally determined in a manual mode, so that a large amount of manpower and material resources are required, and the accuracy of the determination of the base line day of the orderly power utilization scheme is low, so that the working efficiency of executing the orderly power utilization scheme is low.
Disclosure of Invention
The embodiment of the invention provides an execution method, device, equipment and medium of an orderly power utilization scheme, which are used for more accurately and quickly determining the baseline date of the orderly power utilization scheme, so that the cost of a large amount of manpower and material resources is avoided, and the technical effect of improving the working efficiency of executing the orderly power utilization scheme is achieved.
In a first aspect, an embodiment of the present invention provides an execution method of an orderly power utilization scheme, where the method includes:
determining the scheme name of each orderly power utilization scheme, and determining the scheme execution day of each orderly power utilization scheme according to each scheme name;
and judging whether the scheme execution day of the current ordered power utilization scheme is a working day or not according to the scheme execution day of each ordered power utilization scheme, if not, determining the previous working day corresponding to the scheme execution day of the current ordered power utilization scheme, taking the previous working day as the scheme baseline day of the current ordered power utilization scheme, and executing the current ordered power utilization scheme on the scheme baseline day.
Optionally, the determining the plan execution day of each ordered power utilization plan according to each plan name includes: transmitting the scheme name of the current ordered power utilization scheme to an entry parameter of a predefined scheme execution day determination method aiming at the scheme name of each ordered power utilization scheme; and when the transfer is completed, calling the scheme execution day determining method to determine the scheme execution day of the current ordered power utilization scheme.
Optionally, the step of calling the scheme execution day determination method to determine the scheme execution day of the current orderly power utilization scheme includes: calling a date regular expression execution statement in the scheme execution date determination method, and matching each field contained in the scheme name of the current ordered power utilization scheme; and taking the successfully matched field as the scheme execution day of the current orderly power utilization scheme.
Optionally, after determining the plan execution date of each orderly power utilization plan, the method further includes: and converting the date format of the scheme execution date of each ordered power utilization scheme into a preset date format.
Optionally, the determining whether the scheme execution day of the current orderly power utilization scheme is a working day includes: transmitting the scheme execution date of the current ordered power utilization scheme to an entry parameter of a predefined working day judgment method; and when the transmission is finished, judging whether the scheme execution day of the current ordered power utilization scheme is the working day by the working day judging method.
Optionally, after determining the plan name of each orderly power utilization plan, the method further includes: carrying out data verification processing on the scheme names of the ordered power utilization schemes and determining whether the verification is successful, if not, generating prompt information for prompting data verification failure;
and if so, executing the scheme execution daily operation for determining each ordered power utilization scheme according to each scheme name.
Optionally, the method further includes: and if the scheme execution day of the current orderly power utilization scheme is a working day, taking the working day as the orderly power utilization day of the current orderly power utilization scheme.
In a second aspect, an embodiment of the present invention further provides an apparatus for executing an orderly power utilization scheme, where the apparatus includes:
the scheme execution date determining module is used for determining the scheme name of each ordered power utilization scheme and determining the scheme execution date of each ordered power utilization scheme according to each scheme name;
and the scheme baseline day determining module is used for judging whether the scheme execution day of the current ordered power utilization scheme is a working day or not according to the scheme execution day of each ordered power utilization scheme, if not, determining the previous working day corresponding to the scheme execution day of the current ordered power utilization scheme, taking the previous working day as the scheme baseline day of the current ordered power utilization scheme, and executing the current ordered power utilization scheme on the scheme baseline day.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
storage means for storing one or more programs;
when executed by the processor, the program causes the processor to implement the method for executing the orderly power usage scheme as provided by any embodiment of the invention.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for executing the orderly power utilization scheme provided in any embodiment of the present invention.
According to the technical scheme of the embodiment of the invention, the scheme name of each orderly power utilization scheme is determined, and the scheme execution date of each orderly power utilization scheme is determined according to each scheme name. After determining that each scheme is executed, for each scheme execution day of the orderly power utilization scheme, whether the scheme execution day of the current orderly power utilization scheme is a working day or not can be judged, and if not, the previous working day corresponding to the plan execution day of the current ordered power utilization plan can be determined, the previous working day is taken as the plan baseline day of the current ordered power utilization plan, and the current ordered power utilization plan is executed in the plan baseline day, so that the technical problem that the ordered power utilization plan baseline day is determined in a manual mode in the execution method of the current ordered power utilization plan, the accuracy is low is solved, the ordered power utilization plan baseline day can be determined more accurately and rapidly, and then carry out the orderly power consumption scheme in the base line day of the orderly power consumption scheme, not only avoided spending a large amount of manpower and materials, but also reached the technical effect who has improved work efficiency.
Drawings
In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, a brief description is given below of the drawings used in describing the embodiments. It should be clear that the described figures are only views of some of the embodiments of the invention to be described, not all, and that for a person skilled in the art, other figures can be derived from these figures without inventive effort.
FIG. 1 is a flow chart illustrating an execution method of an orderly power utilization scheme according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating an execution method of an orderly power utilization scheme according to a second embodiment of the present invention;
FIG. 3 is a schematic structural diagram of an execution device for an orderly power utilization scheme according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart illustrating a method for executing an orderly power utilization scheme according to an embodiment of the present invention, where the embodiment is applicable to a case of determining a scheme baseline day of the orderly power utilization scheme, and the method may be executed by an execution device of the orderly power utilization scheme, and the execution device of the orderly power utilization scheme may be implemented by software and/or hardware, and may be integrated in an electronic device such as a computer or a server.
As shown in fig. 1, the method of the present embodiment includes:
and S110, determining the scheme name of each orderly power utilization scheme, and determining the scheme execution day of each orderly power utilization scheme according to each scheme name.
Wherein, the number of the orderly power utilization schemes can be one or more. The scheme name can be understood as an identification name of the orderly power utilization scheme. The project plan name may include fields for a unit name, a project plan type, a project plan execution date, etc. For example, the name of the solution may be XX bureau 2021, 5 months, 19 days peak shift solution. The plan execution date can be understood as the specific execution date of the ordered electricity usage plan.
Specifically, the plan name of each orderly power utilization plan may be determined from a database for storing the plan names of the orderly power utilization plans, or the plan name of each orderly power utilization plan may be determined from stored information of the grid metering automation system. After the plan names of the ordered power utilization plans are determined, the plan names can be analyzed. The day of execution of the schema contained in each schema name, i.e., the day of execution of the schema for each ordered schema, may then be determined.
It should be noted that the correspondence between the orderly power utilization scheme and the scheme name may be one-to-one. The correspondence between the plan name and the plan execution day may be one-to-one.
In order to improve the working efficiency, after the scheme names of the ordered power utilization schemes are determined, data verification processing can be carried out on the scheme names of the ordered power utilization schemes, whether verification is successful or not is determined, and if not, prompt information for prompting data verification failure is generated; if yes, executing the scheme execution daily operation for determining each ordered power utilization scheme according to the scheme name.
The prompt information may be information generated when the scheme name of the ordered power utilization scheme is not successfully verified after data verification processing.
Specifically, after the plan name of each orderly power utilization plan is determined, data verification processing may be performed on the plan name of each orderly power utilization plan. And then the verification result can be obtained. And then whether the verification of each scheme name is successful can be determined based on the verification result. If the scheme names are not verified successfully, prompt information for prompting that the data verification fails can be generated and displayed. If the plan name verification is successful, a plan execution day for each of the orderly power usage plans may be determined based on each plan name.
In order to facilitate faster and more accurate scheme baseline date of each orderly power utilization scheme, the date format of the scheme execution date of each orderly power utilization scheme can be converted into a preset date format after the scheme execution date of each orderly power utilization scheme is determined.
The preset date format may be a date format preset according to actual requirements of the user. It should be noted that the default date format is not limited herein, and for example, the default date format may be YYYY-MM-DD (e.g., 2021-01-02) or YYYY/MM/DD (e.g., 2021/01/02).
Specifically, a date format is set in advance. After the plan execution date of each orderly power utilization plan is determined, the date format of the plan execution date of each orderly power utilization plan can be converted into the preset date format.
Illustratively, the preset date format is YYYY-MM-DD, the schedule execution date of the orderly power utilization scheme 1 is 2021, 1, 10 days, and the schedule execution date of the orderly power utilization scheme 2 is 2020/4/3. Then 1 month 10 days 2021 to 2021-01-10 and 2020/4/3 to 2020-04-03.
In order to more effectively convert the date format of the execution day of each orderly power utilization scheme into the preset date format, the date format of the scheme execution day of each orderly power utilization scheme may be determined after the scheme execution day of each orderly power utilization scheme is determined. And further, whether the date format of each plan execution day conforms to the preset date format can be judged. If the date format of the plan execution day does not conform to the preset date format, the date format of the plan execution day which does not conform to the preset date format can be converted into the preset date format.
Optionally, after determining the date format of the plan execution date of each ordered power utilization plan, the plan execution date of each ordered power utilization plan may be stored in a first storage space of a preset plan execution date for storage. After the storage is finished, the format of each case execution day stored in the first storage space can be converted into a preset date format.
And further, the working efficiency and the format conversion accuracy are improved, and after the date format of the scheme execution day of each ordered power utilization scheme is determined, the date format which is not in line with the preset date format is stored in the preset storage space for storing the scheme execution day which is not in line with the preset date format. And after the storage is finished, converting the date format of each execution date which does not accord with the preset date format scheme in the storage space into the preset date format.
And S120, judging whether the scheme execution day of the current ordered power utilization scheme is a working day or not according to the scheme execution day of each ordered power utilization scheme, if not, determining the previous working day corresponding to the scheme execution day of the current ordered power utilization scheme, taking the previous working day as the scheme baseline day of the current ordered power utilization scheme, and executing the current ordered power utilization scheme on the scheme baseline day.
Wherein a workday is to be understood as a date other than a statutory vacation date. The previous working day is understood to be the previous working day adjacent to the non-working day.
Specifically, on the scheme execution day of each orderly power utilization scheme, it may be determined whether the scheme execution day of the current orderly power utilization scheme is a working day for each scheme execution day of the orderly power utilization scheme. If the scheme execution day of the current orderly power utilization scheme is not the working day, the previous working day corresponding to the scheme execution day of the current orderly power utilization scheme can be determined. And then the previous working day can be used as the scheme baseline day of the current orderly power utilization scheme, so that the current orderly power utilization scheme can be executed on the scheme baseline day.
Illustratively, when the schedule execution date of the orderly power utilization scheme is 2021-11-06, since 2021-11-06 is saturday, the schedule execution date of the orderly power utilization scheme is a non-working day. Because 2021-11-06 corresponds to the previous working day of 2021-11-05, the scheduled baseline day for the orderly power usage schedule is 2021-11-05. When the plan execution day of the orderly power utilization plan is 2021-11-07, the plan execution day of the orderly power utilization plan is a non-working day because 2021-11-07 is a sunday. Since 2021-11-07 corresponds to the previous work day being 2021-11-05, the schedule baseline day for this orderly power usage schedule is 2021-11-05.
Optionally, whether the scheme execution day of the current orderly power utilization scheme is a working day is judged by the following method:
and transmitting the scheme execution date of the current ordered power utilization scheme to the entry parameter of the predefined working day judgment method. And when the transmission is finished, judging whether the scheme execution day of the current orderly power utilization scheme is the working day by a working day judgment method.
The working day judging method may be a method defined in advance for judging whether the plan execution day is a working day. The entry parameters of the workday decision method can be understood as form parameters of the workday decision method.
Specifically, a working day determination method is predefined. And transmitting the scheme execution date of the current orderly power utilization scheme as an actual parameter to a form parameter of the working day judgment method. After the parameter transmission is finished, whether the scheme execution day of the current orderly power utilization scheme is a working day can be judged through the execution work judgment method. It may further be determined whether the plan execution day of the current orderly power usage plan is a weekday.
On the basis, if the scheme execution day of the current ordered power utilization scheme is a working day, the working day is used as the ordered power utilization day of the current ordered power utilization scheme.
The sequential electricity utilization day can be understood as an actual working day corresponding to the plan execution day when the plan execution day is a working day.
Specifically, for each plan execution day of the ordered power utilization plan, if the plan execution day of the current ordered power utilization plan is a working day, the working day corresponding to the plan execution day of the current ordered power utilization plan can be used as the ordered power utilization day of the current ordered power utilization plan.
Illustratively, the schedule execution day of the current orderly power usage schedule is 2021-11-02, and 2021-11-02 is a workday because 2021-11-02 is tuesday. Then the ordered electricity usage day of the current ordered electricity usage plan can be determined to be 2021-11-02.
According to the technical scheme of the embodiment of the invention, the scheme name of each orderly power utilization scheme is determined, and the scheme execution date of each orderly power utilization scheme is determined according to each scheme name. After determining that each scheme is executed, for each scheme execution day of the orderly power utilization scheme, whether the scheme execution day of the current orderly power utilization scheme is a working day or not can be judged, and if not, the previous working day corresponding to the plan execution day of the current ordered power utilization plan can be determined, the previous working day is taken as the plan baseline day of the current ordered power utilization plan, and the current ordered power utilization plan is executed in the plan baseline day, so that the technical problem that the ordered power utilization plan baseline day is determined in a manual mode in the execution method of the current ordered power utilization plan, the accuracy is low is solved, the ordered power utilization plan baseline day can be determined more accurately and rapidly, and then carry out the orderly power consumption scheme in the base line day of the orderly power consumption scheme, not only avoided spending a large amount of manpower and materials, but also reached the technical effect who has improved work efficiency.
Example two
Fig. 2 is a schematic flow chart of an execution method of the orderly power utilization scheme according to a second embodiment of the present invention, and on the basis of the foregoing embodiment, optionally, the determining, according to each scheme name, a scheme execution day of each orderly power utilization scheme includes: transmitting the scheme name of the current ordered power utilization scheme to an entry parameter of a predefined scheme execution day determination method aiming at the scheme name of each ordered power utilization scheme; and when the transfer is completed, calling the scheme execution day determining method to determine the scheme execution day of the current ordered power utilization scheme. The technical terms that are the same as or corresponding to the above embodiments are not repeated herein.
As shown in fig. 2, the method of the embodiment may specifically include:
and S210, determining the scheme name of each sequential power utilization scheme.
S220, aiming at the scheme name of each orderly power utilization scheme, transmitting the scheme name of the current orderly power utilization scheme to an entry parameter of a predefined scheme execution day determination method.
The scheme execution day determination method may be a predefined scheme execution day for determining each ordered power utilization scheme. The entry parameters of the plan execution day determination method may be understood as form parameters of the plan execution day determination method.
Specifically, after the plan names of the ordered power consumption plans are determined, the plan name of the current plan may be used as an actual parameter and transmitted to a form parameter of the plan execution day determination method for each ordered power consumption plan, that is, the plan name of the current ordered power consumption plan is transmitted to an entry parameter of the predefined plan execution day determination method.
And S230, calling a scheme execution day determining method to determine the scheme execution day of the current ordered power utilization scheme when the transmission is finished.
Specifically, after the parameter is passed, a plan execution day determination method, that is, an execution plan execution day determination method, may be called. And then the plan execution day of the current orderly power utilization plan can be determined by the execution plan execution day determining method.
Optionally, the plan execution day of the current orderly power utilization plan is determined by:
and calling a date regular expression execution statement in the scheme execution date determination method, and matching each field contained in the scheme name of the current ordered power utilization scheme. And taking the successfully matched field as the scheme execution date of the current orderly power utilization scheme.
The date regular expression execution statement may be a regular expression execution statement defined in advance in the scheme execution day determination method, and may be used to determine the scheme execution day of each ordered power utilization scheme. For example, the date regular expression execution statement may be regex. pattern ═ "(\ d {1,2} month \ d {1,2} day. Each field included in the recipe name may be understood as a unit name, a recipe execution date, an operator name, and the like included in the recipe name.
Specifically, a date regular expression execution statement is defined in advance in the scheme execution day determination method. After the parameter transmission is completed, a date regular expression execution statement can be called, and each field contained in the scheme name of the current ordered power utilization scheme is matched. After matching, the successfully matched field can be used as the scheme execution date of the current orderly power utilization scheme.
In order to improve the accuracy of the matching process, the matching process may be performed on each field included in the plan name of the current ordered power utilization plan in the following manner:
each field contained in the scheme name of the current ordered power utilization scheme can be converted into a corresponding character string, and then each character in each character string is matched through a date regular expression execution statement.
S240, after the scheme execution date of each ordered power utilization scheme is determined, judging whether the scheme execution date of the current ordered power utilization scheme is a working date or not according to the scheme execution date of each ordered power utilization scheme, if not, determining the previous working date corresponding to the scheme execution date of the current ordered power utilization scheme, taking the previous working date as the scheme baseline date of the current ordered power utilization scheme, and executing the current ordered power utilization scheme on the scheme baseline date.
According to the technical scheme of the embodiment of the invention, the scheme name of the current ordered power utilization scheme is transferred to the entry parameter of the predefined scheme execution day determination method according to the scheme name of each ordered power utilization scheme. When the transmission is completed, the scheme execution day determining method is called to determine the scheme execution day of the current ordered power utilization scheme, so that the scheme execution day of the ordered power utilization scheme can be determined more accurately and quickly, the ordered power utilization scheme can be quickly executed on the scheme execution day of the ordered power utilization scheme, a large amount of manpower and material resources are avoided being consumed, and the technical effect of improving the working efficiency of executing the ordered power utilization scheme is achieved.
EXAMPLE III
Fig. 3 is a schematic structural diagram of an execution device of an orderly power utilization scheme according to a third embodiment of the present invention, and the present invention provides an execution device of an orderly power utilization scheme, including: a regimen execution day determination module 310 and a regimen baseline day determination module 320.
The plan execution date determining module 310 is configured to determine a plan name of each orderly power utilization plan, and determine a plan execution date of each orderly power utilization plan according to each plan name; the scheme baseline day determining module 320 is configured to determine, for each scheme execution day of the ordered power consumption scheme, whether a scheme execution day of the current ordered power consumption scheme is a working day, if not, determine a previous working day corresponding to the scheme execution day of the current ordered power consumption scheme, use the previous working day as the scheme baseline day of the current ordered power consumption scheme, and execute the current ordered power consumption scheme on the scheme baseline day.
According to the technical scheme, the scheme execution date determining module is used for determining the scheme name of each orderly power utilization scheme, and the scheme execution date of each orderly power utilization scheme is determined according to each scheme name. After each scheme is determined to be executed, the scheme baseline day determination module is used for judging whether the scheme execution day of the current ordered power utilization scheme is a working day or not aiming at the scheme execution day of each ordered power utilization scheme, if not, the previous working day corresponding to the plan execution day of the current ordered power utilization plan can be determined, the previous working day is taken as the plan baseline day of the current ordered power utilization plan, and the current ordered power utilization plan is executed in the plan baseline day, so that the technical problem that the ordered power utilization plan baseline day is determined in a manual mode in the execution method of the current ordered power utilization plan, the accuracy is low is solved, the ordered power utilization plan baseline day can be determined more accurately and rapidly, and then carry out the orderly power consumption scheme in the base line day of the orderly power consumption scheme, not only avoided spending a large amount of manpower and materials, but also reached the technical effect who has improved work efficiency.
Optionally, the plan execution day determining module 310 is configured to, for each plan name of each ordered power consumption plan, transfer the plan name of the current ordered power consumption plan to an entry parameter of a predefined plan execution day determining method; and when the transfer is completed, calling the scheme execution day determining method to determine the scheme execution day of the current ordered power utilization scheme.
Optionally, the scheme execution day determining module 310 is configured to call a date regular expression execution statement in the scheme execution day determining method, and perform matching processing on each field included in the scheme name of the current ordered power consumption scheme; and taking the successfully matched field as the scheme execution day of the current orderly power utilization scheme.
Optionally, after determining the plan execution date of each orderly power utilization plan, the apparatus further includes: and the date format conversion module is used for converting the date format of the scheme execution date of each ordered power utilization scheme into a preset date format.
Optionally, the scheme baseline date determining module 320 is configured to transmit the scheme execution date of the current orderly power utilization scheme to an entry parameter of a predefined working day judgment method; and when the transmission is finished, judging whether the scheme execution day of the current ordered power utilization scheme is the working day by the working day judging method.
Optionally, after determining the plan name of each orderly power utilization plan, the apparatus further includes: the scheme name checking module is used for carrying out data checking processing on the scheme names of the ordered power utilization schemes and determining whether the checking is successful or not, and if not, prompt information for prompting data checking failure is generated; and if so, executing the scheme execution daily operation for determining each ordered power utilization scheme according to each scheme name.
Optionally, the apparatus further comprises: and the ordered power utilization day determining module is used for taking the working day as the ordered power utilization day of the current ordered power utilization scheme if the scheme execution day of the current ordered power utilization scheme is the working day.
The device can execute the execution method of the orderly power utilization scheme provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method of the orderly power utilization scheme.
It should be noted that, the units and modules included in the execution device of the above-mentioned orderly power utilization scheme are merely divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the embodiment of the invention.
Example four
Fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention. FIG. 4 illustrates a block diagram of an exemplary electronic device 12 suitable for use in implementing any of the embodiments of the present invention. The electronic device 12 shown in fig. 4 is only an example and should not bring any limitation to the function and the scope of use of the embodiment of the present invention. The device 12 is typically an electronic device that undertakes the processing of configuration information.
As shown in FIG. 4, electronic device 12 is embodied in the form of a general purpose computing device. The components of electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a memory 28, and a bus 18 that couples the various components (including the memory 28 and the processing unit 16).
The processing unit 16 executes various functional applications and data processing by executing programs stored in the memory 28, for example, an execution method of the orderly power utilization scheme provided by the above-described embodiment of the present invention is implemented, and the method includes:
determining the scheme name of each orderly power utilization scheme, and determining the scheme execution day of each orderly power utilization scheme according to each scheme name;
and judging whether the scheme execution day of the current ordered power utilization scheme is a working day or not according to the scheme execution day of each ordered power utilization scheme, if not, determining the previous working day corresponding to the scheme execution day of the current ordered power utilization scheme, and taking the previous working day as the scheme baseline day of the current ordered power utilization scheme.
Of course, those skilled in the art can understand that the processor can also implement the technical solution of the method for executing the orderly power utilization scheme provided by any embodiment of the present invention.
EXAMPLE five
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor, and is characterized in that, when the program is executed by the processor, for example, the method for executing the orderly power utilization scheme provided by the foregoing embodiment of the present invention includes:
determining the scheme name of each orderly power utilization scheme, and determining the scheme execution day of each orderly power utilization scheme according to each scheme name;
and judging whether the scheme execution day of the current ordered power utilization scheme is a working day or not according to the scheme execution day of each ordered power utilization scheme, if not, determining the previous working day corresponding to the scheme execution day of the current ordered power utilization scheme, and taking the previous working day as the scheme baseline day of the current ordered power utilization scheme.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (10)
1. A method for executing an orderly power usage scenario, comprising:
determining the scheme name of each orderly power utilization scheme, and determining the scheme execution day of each orderly power utilization scheme according to each scheme name;
and judging whether the scheme execution day of the current ordered power utilization scheme is a working day or not according to the scheme execution day of each ordered power utilization scheme, if not, determining the previous working day corresponding to the scheme execution day of the current ordered power utilization scheme, taking the previous working day as the scheme baseline day of the current ordered power utilization scheme, and executing the current ordered power utilization scheme on the scheme baseline day.
2. The method of claim 1, wherein determining the plan execution day for each of the ordered electricity usage plans based on each of the plan names comprises:
transmitting the scheme name of the current ordered power utilization scheme to an entry parameter of a predefined scheme execution day determination method aiming at the scheme name of each ordered power utilization scheme;
and when the transfer is completed, calling the scheme execution day determining method to determine the scheme execution day of the current ordered power utilization scheme.
3. The method of claim 2, wherein said invoking the plan execution day determination method to determine the plan execution day of the current orderly power usage plan comprises:
calling a date regular expression execution statement in the scheme execution date determination method, and matching each field contained in the scheme name of the current ordered power utilization scheme;
and taking the successfully matched field as the scheme execution day of the current orderly power utilization scheme.
4. The method of claim 1, wherein after determining a schedule execution day for each orderly power usage schedule, the method further comprises:
and converting the date format of the scheme execution date of each ordered power utilization scheme into a preset date format.
5. The method of claim 1, wherein the determining whether the plan execution day of the current orderly power utilization plan is a workday comprises:
transmitting the scheme execution date of the current ordered power utilization scheme to an entry parameter of a predefined working day judgment method;
and when the transmission is finished, judging whether the scheme execution day of the current ordered power utilization scheme is the working day by the working day judging method.
6. The method of claim 1, wherein after determining the plan name for each orderly power usage plan, the method further comprises:
carrying out data verification processing on the scheme names of the ordered power utilization schemes and determining whether the verification is successful, if not, generating prompt information for prompting data verification failure;
and if so, executing the scheme execution daily operation for determining each ordered power utilization scheme according to each scheme name.
7. The method of claim 1, further comprising:
and if the scheme execution day of the current orderly power utilization scheme is a working day, taking the working day as the orderly power utilization day of the current orderly power utilization scheme.
8. An apparatus for executing an orderly power usage scenario, comprising:
the scheme execution date determining module is used for determining the scheme name of each ordered power utilization scheme and determining the scheme execution date of each ordered power utilization scheme according to each scheme name;
and the scheme baseline day determining module is used for judging whether the scheme execution day of the current ordered power utilization scheme is a working day or not according to the scheme execution day of each ordered power utilization scheme, if not, determining the previous working day corresponding to the scheme execution day of the current ordered power utilization scheme, taking the previous working day as the scheme baseline day of the current ordered power utilization scheme, and executing the current ordered power utilization scheme on the scheme baseline day.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the processor, cause the processor to implement the method of execution of the orderly power usage plan of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method of execution of the orderly power usage scheme according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111576865.9A CN114331074A (en) | 2021-12-22 | 2021-12-22 | Execution method, device, equipment and medium for orderly power utilization scheme |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111576865.9A CN114331074A (en) | 2021-12-22 | 2021-12-22 | Execution method, device, equipment and medium for orderly power utilization scheme |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114331074A true CN114331074A (en) | 2022-04-12 |
Family
ID=81055242
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111576865.9A Pending CN114331074A (en) | 2021-12-22 | 2021-12-22 | Execution method, device, equipment and medium for orderly power utilization scheme |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114331074A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013157765A1 (en) * | 2012-04-19 | 2013-10-24 | 에스케이씨앤씨 주식회사 | Task scheduling method using regular expressions and electronic device applying same |
CN112116315A (en) * | 2020-08-28 | 2020-12-22 | 泰康保险集团股份有限公司 | Date determination device and electronic apparatus |
CN113076297A (en) * | 2021-03-31 | 2021-07-06 | 中国建设银行股份有限公司 | Data processing method, device and storage medium |
-
2021
- 2021-12-22 CN CN202111576865.9A patent/CN114331074A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013157765A1 (en) * | 2012-04-19 | 2013-10-24 | 에스케이씨앤씨 주식회사 | Task scheduling method using regular expressions and electronic device applying same |
CN112116315A (en) * | 2020-08-28 | 2020-12-22 | 泰康保险集团股份有限公司 | Date determination device and electronic apparatus |
CN113076297A (en) * | 2021-03-31 | 2021-07-06 | 中国建设银行股份有限公司 | Data processing method, device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110245110A (en) | Data processing method, device and storage medium | |
US20180329399A1 (en) | Robotic process automation for supply chain management operations | |
CN114564294A (en) | Intelligent service arranging method and device, computer equipment and storage medium | |
CN112364145A (en) | Work order processing method and device, electronic equipment and storage medium | |
CN110955481A (en) | Label task generation method and device, storage medium and electronic equipment | |
CN112631751A (en) | Task scheduling method and device, computer equipment and storage medium | |
CN112181835A (en) | Automatic testing method and device, computer equipment and storage medium | |
CN115936895A (en) | Risk assessment method, device and equipment based on artificial intelligence and storage medium | |
CN116069300A (en) | Workflow control code generation method and device, electronic equipment and storage medium | |
CN113159453B (en) | Resource data prediction method, device, equipment and storage medium | |
CN114358742A (en) | Workflow execution method, device, equipment and storage medium | |
CN113570083A (en) | Operation and maintenance flow determination method and device for equipment, electronic equipment and storage medium | |
CN117314139A (en) | Modeling method and device for business process, terminal equipment and storage medium | |
CN109726224B (en) | Data sharing method and device between application programs, terminal, server and medium | |
CN114331074A (en) | Execution method, device, equipment and medium for orderly power utilization scheme | |
CN110837463A (en) | Automatic testing method, device, equipment and storage medium applied to iOS system | |
CN113515413B (en) | Data management method and device, electronic equipment and storage medium | |
CN114418535A (en) | Business expansion worksheet data processing method, device, equipment and storage medium | |
CN114217790A (en) | Interface scheduling method and device, electronic equipment and medium | |
CN110334328B (en) | Automatic generation method and device for object list based on machine learning | |
CN113392014A (en) | Test case generation method and device, electronic equipment and medium | |
CN112667116A (en) | Work order execution method and device, electronic equipment and storage medium | |
CN112819602A (en) | Piece wage calculation method and device, terminal equipment and readable storage medium thereof | |
CN113393209B (en) | Data accounting method, device, system, equipment and medium | |
CN114282618A (en) | Method, device, equipment and medium for determining user information with abnormal electricity utilization |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |