Specific embodiment
It is the effect for further illustrating the technology taken of the invention manually and obtain, it is below in conjunction with the accompanying drawings and preferably real
Example is applied, to technical scheme, clear and complete description is carried out.
As shown in figure 1, a kind of monitoring method of the online rate index of terminal based on metering automation system, including step:
S110, the file named with preset format that metering automation system is uploaded is obtained, the file is stored with terminal
Actual online number of times and terminal answer online number of times;
S120, integrity checking is carried out to the file according to the name of the file;
If S130, the file check the actual online number of times of terminal and the end of the file storage by integrity checking
End answers whether online number of times is not sky;
If S140, not being sky, the actual online number of times of terminal and terminal stored according to the file answer online number of times to obtain
Obtain the online rate index of terminal.
The present embodiment method can realize that program is operated in net level electric energy data platform by corresponding program.This
Embodiment method carries out integrity checking and the inspection to the data item in file by the file for uploading, and can send out in time
Existing data of problems, so that related personnel rectifies and improves to problematic data in time, improve the accuracy of data.
For a better understanding of the present invention, below from the verification mode of the file to automatically generating and uploading automatically, and
Two aspects of verification mode of file to manually generating and uploading manually describe in detail.It should be noted that for area
File in the case of dividing automatically and manually, " first ", " second " etc. are named as by corresponding document, and those skilled in the art should manage
Two kinds of files of solution are substantially identical, and such as first day online rate file and the online rate file of second day are substantially day online rate text
Part.
First, the verification mode of the file to automatically generating and uploading automatically:
File generally comprises day online rate file, the moon online rate file and supplier monitoring file etc., and file is stored with
The actual online number of times of terminal and terminal answer online number of times, and it is number of terminals and the product of sampling number that terminal answers online number of times.Below
The monitoring flow to three kinds of files describes in detail respectively.
(1) day online rate file:
In one embodiment, the file includes online rate file (this day online rate file) on the firstth.By metering
Automated system is acquired to the terminal online data of a certain area (such as some province) every day, then according to every day
Terminal online data generation day online rate file, according to every day terminal online data generation day online rate file it is specific
Mode can be realized according to existing mode in the prior art.
In order to be beneficial to the management to continuous data, to day, the generation time of online rate file is specified.In a reality
Apply in example, online rate file is automatically generated in the first daily Preset Time within described first day.For example, file automatically generates the time
It is set at daily 6 points, when reaching the time, automatic triggering, day, online rate file was automatically generated according to interface specification.Work as setting
During one time point, 1 next day online rate file is only generated daily, it is necessary to explanation, the present invention is not to day online rate file
The number of times of generation is defined.
In order to be beneficial to that continuous data is managed, and to file verification, to day, the name of online rate file is specified.
In one embodiment, the name of online rate file in described first day can be included:Regional unit encoding, generation time, day, number
According to time, online rate and serial number.The name of online rate file in described first day is further included in the file of line rate index
Any one in mark, upload mark and file format or any combination.It should be noted that the present invention does not exist to day
The name form of line rate file is defined, and those skilled in the art make other changes on the basis of can also being named above
Shape.
In a specific embodiment, the name of day online rate file can be:Provincial unit encoding _ SOEINFO is (online
The file identification of rate index) _ generation time _ upload mark _ Day (my god) _ data time _ ONLINE (online rate) _ serial number
.xml.Provincial company's coding is named according to certain rule, such as Guangdong 44, Guangxi 45, Yunnan 53, Guizhou 52, Hainan
46, Guangzhou 4401, Shenzhen 4403.The generation time makes a living into system time during file, and form can be
YYYYMMDDHH24MMSS, the generation time of current file must be identical.Data time is the time of data in file, and form can
Think YYYYMMDDHH24MMSS, Hour Minute Second is 00.Serial number can be defined according to being actually needed, such as serial number definition
It is 001,002 etc..It is that, in order to distinguish automatic upload or upload manually, it is voluntarily fixed to be needed according to user to upload mark
Justice, for example, upload and be masked as:First (on schedule automatic).
In order to be beneficial to the management to continuous data, to day, the uplink time of online rate file is specified.In a reality
Apply in example, online rate file is uploaded automatically in the second daily Preset Time within described first day, and second Preset Time is later than
First Preset Time.For example, automatic uplink time is set at daily 7 points, when reaching the time, automatic triggering exists day
Line rate file is uploaded automatically.When a time point is set, only 1 next day online rate file is uploaded daily, it is necessary to illustrate, this
Number of times of the invention not to day online rate files passe is defined.What if the problems such as because of system or passage, can not trigger automatically,
Flow processing is passed using mending.
As shown in Fig. 2 metering automation system (such as the metering automation system of certain provincial company) automatically generates specification
File after, file is uploaded to net level electric energy data platform automatically (described briefly below is net level platform).Net level platform is to upper
The file of biography carries out integrity checking and data item inspection.The time point for carrying out integrity checking and data item inspection is typically set
After the time point that file is uploaded automatically, such as 7 points of uploads of file, platform 7 point scanning in 5 minutes uploads file directory, and point province
Carry out data integrity inspection and data item inspection.
In one embodiment, if the file is described first day online rate file, the name according to the file is right
The step of file carries out integrity checking can include:
S121a, check the file data time whether be current date the previous day;
Check whether data time is current according to file name, be such as 2 when the day before yesterday, data time should be 1;
Whether within a preset range the difference of S122a, the uplink time for checking the file and second Preset Time;
It is the file attribute for checking net level platform operating system to files passe time check.Preset range can be according to reality
Border need be configured, the automatic uplink time of such as file is set at daily 7 points, then the actual uplink time of file should 7 points 0 minute
To 7: 10/.
S123a, the generation time for checking the file and first Preset Time difference whether within a preset range;
Preset range can be configured according to actual needs, and such as file automatically generates set of time for daily 6 points, then
File actually generate the time should 6 points 10 0 minute to 6:;
By the verification of step S122a and step S123a, it is ensured that data are initial data.
Whether S124a, the quantity of documents uploaded according to the serial number of file inspection metering automation system are first
Predetermined number;
First predetermined number be this area should upload day online rate file quantity, set according to actual conditions
It is fixed.
If S125a, the result of all inspections are and are, determine that the file, by integrity checking, otherwise determines described
File is not over integrity checking;
Inspection passes through:4 of S121a to step S124a must be full by inspection, and next link of being allowed for access is processed;
Inspection does not pass through:Any one or a few Xiang Wei in 4 of S121a to step S124a is by checking, it is determined that being somebody's turn to do
File is not over integrity checking.Any one or a few in following operation can be taken:Generate a class questionnaire (it is required that
Solve to implement in 2 working days and automatically generate file and the exploitation of automatic upload function), while the staged files are to abnormal document mesh
Record, log, monitoring personnel reporting by telephone operating officer, and issue bulletin.
If file is checked this document one by one by integrity checking, net level platform according to following rule, rule bag
Contain:
1st, terminal answers the actual online number of times of online number of times, terminal:It is not sky
If it is not sky that terminal answers online number of times and the actual online number of times of terminal, inspection passes through, and can carry out next note
Record is checked;After all record is qualified, this file can be put in storage.
If terminal has one to be sky for sky, or both in answering online number of times and the actual online number of times of terminal, check not
Pass through, any one or a few in following operation can be taken:A class questionnaire is generated (it is required that solving in 2 working days
Real data source systematic function is developed), the staged files to abnormal document catalogue, log, while interrupting presents treatment, monitoring
Personnel reporting by telephone operating officer, and issue bulletin.
If file is put in storage this document by integrity checking and data item inspection, platform, according to the end stored in file
The actual online number of times in end answers the ratio of online number of times to obtain the online rate index of terminal with terminal.Net level platform completes file warehousing
Afterwards, record storage daily record, the staged files to backup directory simultaneously compress.
(2) moon online rate file:
In one embodiment, the file includes first month online rate file (front-month online rate file).By metering
Automated system is acquired to the terminal online data of a certain area (such as some province) per January, then according to per January
Terminal online data generation the online rate file of the moon, according to per January terminal online data generation the online rate file of the moon it is specific
Mode can be realized according to existing mode in the prior art.
In order to be beneficial to the management to continuous data, to the moon, the generation time of online rate file is specified.In a reality
Apply in example, described first month online rate file was automatically generated in first Preset Time of monthly the N days, and N is fixed value.N can be with
Be configured according to actual needs, the 1st day of such as every month, or the 2nd day etc. of every month, due to every month number of days not
Certain identical, in order to the data for ensureing every month are normally automatically generated, N should be set smaller than the numerical value equal to 28.For side
Just the management of continuous data, the first Preset Time can be identical with the first Preset Time of day online rate file.For example, file is certainly
Dynamic generation set of time is monthly 6 points on the 1st, when reaching the time, automatic triggering, the moon online rate file according to interface specification certainly
Dynamic generation.When a time point is set, 1 month online rate file is monthly only generated, it is necessary to explanation, of the invention not right
The number of times of month online rate file generated is defined.
In order to be beneficial to that continuous data is managed, and to file verification, to the moon, the name of online rate file is specified.
In one embodiment, the name of online rate file in described first month can be included:Regional unit encoding, generation time, the moon, number
According to time, online rate and serial number.The name of online rate file in described first month is further included in the file of line rate index
Any one in mark, upload mark and file format or any combination.It should be noted that the present invention does not exist to the moon
The name form of line rate file is defined, and other deformations are made on the basis of can also being named above.
In a specific embodiment, the moon online rate file name can be:Provincial unit encoding _ SOEINFO_ generations
Time _ upload mark _ Mon (moon) _ data time _ ONLINE_ serial numbers .xml.Provincial company's coding enters according to certain rule
Row name, such as Guangdong 44, Guangxi 45, Yunnan 53, Guizhou 52, Hainan 46, Guangzhou 4401, Shenzhen 4403.The generation time makes a living
Into system time during file, form can be YYYYMMDDHH24MMSS, and the generation time of current file must be identical.Data
Time is the time of data in file, and form can be YYYYMMDDHH24MMSS, and Hour Minute Second is 00.Serial number can voluntarily be determined
Justice, such as serial number are 001,002 etc..Upload mark and be in order to distinguish it is automatic upload or upload manually, can according to
Family needs self-defining, for example, upload and be masked as:First (on schedule automatic).
In order to be beneficial to the management to continuous data, to the moon, the uplink time of online rate file is specified.In a reality
Apply in example, described first month online rate file was uploaded automatically in second Preset Time of monthly the N days, second Preset Time
First Preset Time is later than, N is fixed value.For example, automatic uplink time is set to monthly 7 points on the 1st, reached in the time
When, automatic triggering, the moon, online rate file was uploaded automatically.When a time point is set, 1 month online rate text is monthly only uploaded
Part is, it is necessary to illustrate, number of times of the present invention not to the moon online rate files passe is defined.If because system or passage etc. are asked
What topic can not be triggered automatically, pass flow processing using mending.
As shown in Fig. 2 metering automation system (such as the metering automation system of certain provincial company) automatically generates specification
File after, file is uploaded to net level platform automatically.Net level platform carries out integrity checking and data item to the file for uploading
Check.The time point for carrying out integrity checking and data item inspection was generally located on after the time point that file is uploaded automatically, example
Such as file monthly 7 points of uploads on the 1st, platform 7 point scanning in 5 minutes uploads file directory, and point province carries out data integrity and checks sum
According to item inspection.
In one embodiment, if the file is described first month online rate file, the name according to the file is right
The step of file carries out integrity checking can include:
S121b, check the file data time whether be current date the previous moon on the same day;
Check whether data time is current according to file name, be such as 1 day 2 months when the day before yesterday, data time should be January
1 day;
Whether within a preset range the difference of S122b, the uplink time for checking the file and second Preset Time;
It is the file attribute for checking net level platform operating system to files passe time check.Preset range can be according to reality
Border needs to be configured, and the automatic uplink time of such as file is set to monthly 7 points on the 1st, then the actual uplink time of file should be at 7 points
0 point to 7: 10/.
S123b, the generation time for checking the file and first Preset Time difference whether within a preset range;
Preset range can be configured according to actual needs, and it is monthly 1 day 6 that such as file automatically generates set of time
Point, then file actually generate the time should 6 points 10 0 minute to 6:;
By the verification of step S122b and step S123b, it is ensured that data are initial data.
Whether S124b, the quantity of documents uploaded according to the serial number of file inspection metering automation system are second
Predetermined number;
Second predetermined number be this area should upload the moon online rate file quantity, set according to actual conditions
It is fixed.
If S125b, the result of all inspections are and are, determine that the file, by integrity checking, otherwise determines described
File is not over integrity checking;
Inspection passes through:4 of S121b to step S124b must be full by inspection, and next link of being allowed for access is processed;
Inspection does not pass through:Any one or a few Xiang Wei in 4 of S121b to step S124b is by checking, it is determined that being somebody's turn to do
File is not over integrity checking.Any one or a few in following operation can be taken:Generate a class questionnaire (it is required that
Solve to implement in 2 working days and automatically generate file and the exploitation of automatic upload function), while the staged files are to abnormal document mesh
Record, log, monitoring personnel reporting by telephone operating officer, and issue bulletin.
If file is checked this document one by one by integrity checking, net level platform according to following rule, rule bag
Contain:
1st, terminal answers the actual online number of times of online number of times, terminal:It is not sky
If it is not sky that terminal answers online number of times and the actual online number of times of terminal, inspection passes through, and can carry out next note
Record is checked;After all record is qualified, this file can be put in storage.
If terminal has one to be sky for sky, or both in answering online number of times and the actual online number of times of terminal, check not
Pass through, any one or a few in following operation can be taken:A class questionnaire is generated (it is required that solving in 2 working days
Real data source systematic function is developed), the staged files to abnormal document catalogue, log, while interrupting presents treatment, monitoring
Personnel reporting by telephone operating officer, and issue bulletin.
If file is put in storage this document by integrity checking and data item inspection, platform, according to the end stored in file
The actual online number of times in end answers the ratio of online number of times to obtain the online rate index of terminal with terminal.Net level platform completes file warehousing
Afterwards, record storage daily record, the staged files to backup directory simultaneously compress.
(3) supplier's monitoring file:
In one embodiment, the file includes the first supplier monitoring file (i.e. supplier's monitoring file).Supply
Side is producer related in this area, such as Huawei supplier, Samsung supplier etc..By metering automation system to a certain
The terminal online data of area (such as some province) interior supplier is acquired, then the terminal online data according to supplier
Generation supplier's monitoring file, the concrete mode of the terminal online data generation supplier's monitoring file according to supplier can be with root
Realized according to existing mode in the prior art.
In order to be beneficial to the management to continuous data, the generation time to supplier's monitoring file is specified.At one
In embodiment, the first supplier monitoring file was automatically generated in first Preset Time of monthly the N days, and N is fixed value.N
Can be configured according to actual needs, the 1st day of such as every month, or the 2nd day etc. of every month, due to the day of every month
Number is not necessarily identical, and in order to the data for ensureing every month are normally automatically generated, N should be set smaller than the numerical value equal to 28.For
Facilitate the management of continuous data, the first Preset Time can be identical with the first Preset Time of day online rate file.For example, for
File should just be monitored and automatically generate set of time for monthly 6 points on the 1st, when reaching the time, automatic triggering, supplier's monitoring is literary
Part is automatically generated according to interface specification.When a time point is set, monthly only generate 1 supplier and monitor file, it is necessary to say
Bright, number of times of the present invention not to supplier's monitoring file generated is defined.
In order to be beneficial to that continuous data is managed, and to file verification, the name to supplier's monitoring file is advised
It is fixed.In one embodiment, the name of the first supplier monitoring file is included:Regional unit encoding, generation the time, the moon,
Data time, supplier and serial number.The name also file comprising online rate index of the first supplier monitoring file
Any one in mark, upload mark and file format or any combination.It should be noted that the present invention is not to supply
The name form of side's monitoring file is defined, and other deformations are made on the basis of can also being named above.
In a specific embodiment, supplier monitoring file name can be:Provincial unit encoding _ SOEINFO_ lifes
Into time _ upload mark _ Mon_ data time _ SUPPLIER (supplier) _ serial number .xml.Provincial company is encoded according to certain
Rule be named, such as Guangdong 44, Guangxi 45, Yunnan 53, Guizhou 52, Hainan 46, Guangzhou 4401, Shenzhen 4403.Generation
Time makes a living into system time during file, and form can be YYYYMMDDHH24MMSS, and the generation time of current file is necessary
It is identical.Data time is the time of data in file, and form can be YYYYMMDDHH24MMSS, and Hour Minute Second is 00.Serial number
It is the serial number of same type Generating Data File, can be defined as required, such as serial number is 001,002 etc..On
Pass mark primarily to difference be it is automatic upload or upload manually, self-defining can be needed according to user, for example upload
It is masked as:First (on schedule automatic).
In order to be beneficial to the management to continuous data, the uplink time to supplier's monitoring file is specified.At one
In embodiment, the first supplier monitoring file was uploaded automatically in second Preset Time of monthly the N days, and described second presets
Time is later than first Preset Time, and N is fixed value.For example, automatic uplink time is set to monthly 7 points on the 1st, in the time
During arrival, automatic triggering, supplier's monitoring file is uploaded automatically.When a time point is set, 1 supplier is monthly only uploaded
Monitoring file is, it is necessary to explanation, of the invention the number of times that supplier monitors files passe not to be defined.If because of system or
What the problems such as passage, can not trigger automatically, pass flow processing using mending.
As shown in figure 3, metering automation system (such as the metering automation system of certain provincial company) automatically generates specification
File after, file is uploaded to net level platform automatically.Net level platform carries out integrity checking and data item to the file for uploading
Check.The time point for carrying out integrity checking and data item inspection was generally located on after the time point that file is uploaded automatically, example
As file monthly 1 day 7 points upload automatically, the scanning of platform 7 point 5 minutes uploads file directory, and point province carries out data integrity inspection
With data item inspection.
In one embodiment, if the file is first supplier monitors file, according to the name of the file
The step of carrying out integrity checking to the file can include:
S121c, check the file data time whether be current date the previous moon on the same day;
Check whether data time is current according to file name, be such as 1 day 2 months when the day before yesterday, data time should be January
1 day;
Whether within a preset range the difference of S122c, the uplink time for checking the file and second Preset Time;
It is the file attribute for checking net level platform operating system to files passe time check.Preset range can be according to reality
Border needs to be configured, and the automatic uplink time of such as file is set to monthly 7 points on the 1st, then the actual uplink time of file should be at 7 points
0 point to 7: 10/.
S123c, the generation time for checking the file and first Preset Time difference whether within a preset range;
Preset range can be configured according to actual needs, and it is monthly 1 day 6 that such as file automatically generates set of time
Point, then file actually generate the time should 6 points 10 0 minute to 6:;
By the verification of step S122c and step S123c, it is ensured that data are initial data.
Whether S124c, the quantity of documents uploaded according to the serial number of file inspection metering automation system are the 3rd
Predetermined number;
3rd predetermined number is the quantity that the supplier that supplier should upload in this area monitors file, according to actual feelings
Condition is set.
If S125c, the result of all inspections are and are, determine that the file, by integrity checking, otherwise determines described
File is not over integrity checking;
Inspection passes through:4 of S121c to step S124c must be full by inspection, and next link of being allowed for access is processed;
Inspection does not pass through:Any one or a few Xiang Wei in 4 of S121c to step S124c is by checking, it is determined that being somebody's turn to do
File is not over integrity checking.Any one or a few in following operation can be taken:Generate a class questionnaire (it is required that
Solve to implement in 2 working days and automatically generate file and the exploitation of automatic upload function), while the staged files are to abnormal document mesh
Record, log, monitoring personnel reporting by telephone operating officer, and issue bulletin.
In one embodiment, the first supplier monitoring file is also stored with and communicates producer and communication producer volume
Code;If the file is first supplier monitors file, after the file passes through integrity checking, can also include
Step:Whether it is sky when checking communication producer and the different communication producer coding of file storage.If the file storage
The actual online number of times of terminal and terminal to answer online number of times be not sky, and file storage communication producer and communication factory
It is sky when family's coding is different, the actual online number of times of terminal and terminal stored according to the file answer online number of times acquisition terminal to exist
Line rate index.
The data item inspection rule for being set for supplier's monitoring file is included:
1st, terminal answers the actual online number of times of online number of times, terminal:It is not sky;
2nd, communication producer, terminal producer coding:It is asynchronously sky.
Inspection passes through, and can carry out next record check;After all record is qualified, this file can be put in storage.
Inspection does not pass through, and can take any one or a few in following operation:A class questionnaire is generated (it is required that 2
Solve to implement the exploitation of data source systematic function in working day), the staged files to abnormal document catalogue, log, while interrupting
Presents treatment, monitoring personnel reporting by telephone operating officer, and issue bulletin.
If file is put in storage this document by integrity checking and data item inspection, platform, according to the end stored in file
The actual online number of times in end answers the ratio of online number of times to obtain the online rate index of terminal with terminal.Net level platform completes file warehousing
Afterwards, record storage daily record, the staged files to backup directory simultaneously compress.
2nd, the verification mode of the file to manually generating and uploading manually:
If some files fail to upload successfully automatically due to system reason, need to carry out the file for failing automatic upload
Mend manually and pass, the file that benefit is passed manually is typically identical with the automatic file for uploading, also comprising day online rate file, the moon online rate text
Part and supplier's monitoring file etc..The monitoring flow to three kinds of files describes in detail separately below.
(1) day online rate file:
In one embodiment, the file includes the online rate of second day manually generated according to work order comprising the file
File (this day online rate file).What the work order or net level platform that work order can be issued for net level platform were ratified updates the data application
Work order.User manually generates file according to interface specification according to work order.
The day online rate file for uploading manually is identical with the automatic day online rate file designation mode for uploading.In an implementation
In example, the name of the online rate file of second day can be included:Regional unit encoding, generation the time, day, data time,
Line rate and serial number.The name of the online rate file of second day is further included in the file identification of line rate index, uploads
Any one in mark and file format or any combination.It should be noted that the present invention is not to day online rate file
Name form be defined, made on the basis of can also being named above other deformation.
In a specific embodiment, manually upload day online rate file name can be:Provincial unit encoding _
SOEINFO_ generates time _ upload mark _ Day_ data time _ ONLINE_ serial numbers .xml.Provincial company is encoded according to certain
Rule be named, such as Guangdong 44, Guangxi 45, Yunnan 53, Guizhou 52, Hainan 46, Guangzhou 4401, Shenzhen 4403.Generation
Time makes a living into system time during file, and form can be YYYYMMDDHH24MMSS, and the generation time of current file is necessary
It is identical.Data time is the time of data in file, and form can be YYYYMMDDHH24MMSS, and Hour Minute Second is 00.Serial number
It is the serial number of same type Generating Data File, can be voluntarily defined as required, such as since serial number is 001
Coding, must not every time generate and repeats.It is that upload automatically to be distinguished or upload manually to upload mark, can be according to user's need
Self-defining is wanted, for example, is uploaded and is masked as:Second (is mended and passed).
As shown in figure 4, after manually generating the file of specification, file to be uploaded to net level platform manually.Monitoring personnel is artificial
File integrality is checked.So, in one embodiment, if the file is the online rate file of the second day, root
The step of carrying out integrity checking to the file according to the name of the file can include:Detect true according to the work order
Recognize quantity of documents it is complete when to respective file when choosing operation, determine that respective file passes through integrity checking.Monitoring personnel root
According to work order, quantity of documents is checked, if quantity of documents is complete, clicking on the corresponding serial order data file of selection is carried out at next step
Reason, otherwise explains the reason, it is claimed that return work order.
If file checks that the automatic data item one by one to file of rule is entered by integrity checking, net level platform according to following
Row is checked.Rule is included:
1st, terminal answers the actual online number of times of online number of times, terminal:It is not sky
Inspection passes through:Next record check must can be carried out full by inspection;After all record is qualified, this text
Part can be put in storage.
Inspection does not pass through:Explain the reason, it is claimed that return work order.
If file is put in storage automatically as follows by integrity checking and data item inspection:Judged according to work order
Data allow more new range, only to being updated or in-stockroom operation to allowing to update the data.Log after the completion of storage, and turn
Text move part is to backup directory and compresses.Modification questionnaire state is processed, the record rectification deadline.
(2) moon online rate file:
In one embodiment, the file includes second month online rate file (front-month online rate file).Work order can be with
What the work order or net level platform issued for net level platform were ratified updates the data application work order.User is according to interface specification according to work order
Manually generate file.
The moon online rate file for uploading manually is identical with the automatic moon online rate file designation mode for uploading.In an implementation
In example, the name of online rate file in described second month can be included:Regional unit encoding, generation the time, the moon, data time,
Line rate and serial number.The name of online rate file in described second month is further included in the file identification of line rate index, uploads
Any one in mark and file format or any combination.It should be noted that the present invention is not to the moon online rate file
Name form be defined, made on the basis of can also being named above other deformation.
In a specific embodiment, manually upload the moon online rate file name can be:Provincial unit encoding _
SOEINFO_ generates time _ upload mark _ Mon_ data time _ ONLINE_ serial numbers .xml.Provincial company is encoded according to certain
Rule be named, such as Guangdong 44, Guangxi 45, Yunnan 53, Guizhou 52, Hainan 46, Guangzhou 4401, Shenzhen 4403.Generation
Time makes a living into system time during file, and form can be YYYYMMDDHH24MMSS, and the generation time must be identical.During data
Between be the time of data in file, form can be YYYYMMDDHH24MMSS, and Hour Minute Second is 00.Serial number can be as required
Self-defining, such as serial number are 001,002 etc..Upload mark and be in order to distinguish it is automatic upload or upload manually, can be with
Self-defining is needed according to user, for example, is uploaded and is masked as:Second (is mended and passed).
As shown in figure 4, after manually generating the file of specification, file to be uploaded to net level platform manually.Monitoring personnel is artificial
File integrality is checked.So, in one embodiment, if the file is described second month online rate file, root
The step of carrying out integrity checking to the file according to the name of the file can include:Detect true according to the work order
Recognize quantity of documents it is complete when to respective file when choosing operation, determine that respective file passes through integrity checking.Monitoring personnel root
According to work order, quantity of documents is checked, if quantity of documents is complete, clicking on the corresponding serial order data file of selection is carried out at next step
Reason, otherwise explains the reason, it is claimed that return work order.
If file checks that the automatic data item one by one to file of rule is entered by integrity checking, net level platform according to following
Row is checked.Rule is included:
1st, terminal answers the actual online number of times of online number of times, terminal:It is not sky
Inspection passes through:Next record check must can be carried out full by inspection;After all record is qualified, this text
Part can be put in storage.
Inspection does not pass through:Explain the reason, it is claimed that return work order.
If file is put in storage automatically as follows by integrity checking and data item inspection:Judged according to work order
Data allow more new range, only to being updated or in-stockroom operation to allowing to update the data.Log after the completion of storage, and turn
Text move part is to backup directory and compresses.Modification questionnaire state is processed, the record rectification deadline.
(3) supplier's monitoring file:
In one embodiment, the file includes the second supplier monitoring file (i.e. supplier's monitoring file).Work order
What the work order or net level platform that can be issued for net level platform were ratified updates the data application work order.User according to interface specification according to
Work order manually generates file.
The moon online rate file for uploading manually is identical with the automatic moon online rate file designation mode for uploading.In an implementation
In example, the name of the second supplier monitoring file is included:Regional unit encoding, generation time, the moon, data time, supply
Side and serial number.The name of the second supplier monitoring file also file identification comprising online rate index, upload mark
And any one in file format or any combination.It should be noted that the present invention is not to supplier's monitoring file
Name form is defined, and other deformations are made on the basis of can also being named above.
In a specific embodiment, supplier monitoring file name can be:Provincial unit encoding _ SOEINFO_ lifes
Into time _ upload mark _ Mon_ data time _ SUPPLIER_ serial numbers .xml.Provincial company's coding enters according to certain rule
Row name, such as Guangdong 44, Guangxi 45, Yunnan 53, Guizhou 52, Hainan 46, Guangzhou 4401, Shenzhen 4403.The generation time makes a living
Into system time during file, form can be YYYYMMDDHH24MMSS, and the generation time must be identical.Data time is file
The time of middle data, form can be YYYYMMDDHH24MMSS, and Hour Minute Second is 00.Serial number is same type Generating Data File
Serial number, can be defined according to the rules, for example serial number be 001,002 etc..Mark is uploaded primarily to difference
It is automatic upload or upload manually, self-defining can be needed according to user, for example, uploads and be masked as:Second (is mended and passed).
As shown in figure 5, after manually generating the file of specification, file to be uploaded to net level platform manually.Monitoring personnel is artificial
File integrality is checked.So, in one embodiment, if the file is second supplier monitors file,
The step of name according to the file carries out integrity checking to the file can include:Detect according to the work order
Confirm when choosing operation, to determine that respective file passes through integrity checking to respective file when quantity of documents is complete.Monitoring personnel
According to work order, quantity of documents is checked, if quantity of documents is complete, clicking on the corresponding serial order data file of selection carries out next step
Treatment, otherwise explains the reason, it is claimed that return work order.
If file checks that the automatic data item one by one to file of rule is entered by integrity checking, net level platform according to following
Row is checked.In one embodiment, the second supplier monitoring file is also stored with and communicates producer and communication producer coding;
If the file is second supplier monitors file, after the file passes through integrity checking, also including step:Inspection
Whether it is sky when looking into communication producer and the different communication producer coding of file storage;If the terminal reality of the file storage
The online number of times in border and terminal answer online number of times for sky, and the file storage communication producer and communication producer coding not
It is simultaneously sky, the actual online number of times of terminal and terminal stored according to the file answer the online number of times acquisition online rate of terminal to refer to
Mark.I.e. net level platform carries out data item inspection according to following rule:
1st, terminal answers the actual online number of times of online number of times, terminal:It is not sky
2nd, communication producer and terminal producer coding:It is asynchronously sky.
Inspection passes through:Next record check can be carried out;After all record is qualified, this file can be put in storage.
Inspection does not pass through:Explain the reason, it is claimed that return work order.
If file is put in storage automatically as follows by integrity checking and data item inspection:Judged according to work order
Data allow more new range, only to being updated or in-stockroom operation to allowing to update the data.Log after the completion of storage, and turn
Text move part is to backup directory and compresses.Modification questionnaire state is processed, the record rectification deadline.
Understand the online situation of terminal for the ease of personnel, in addition it is also necessary to which the file to being put in storage is issued in interface.In order to
Ensure the reasonability of data, in addition it is also necessary to data are checked according to custom rule, the time of inspection can enter as needed
Row is set, for example, be set at daily 9 points, and when reaching the time, net level platform is automatic automatic to data reasonability according to districts and cities
Checked.
So, in one embodiment, the actual online number of times of terminal and terminal stored according to the file are answered online time
Number is obtained after the online rate index of terminal, can also include step:
S150, according to it is pre-conditioned check obtain the online rate index of terminal it is whether reasonable;
S160, the online rate index of the terminal of acquisition is shown, and the online rate of irrational terminal is referred in display
Mark carries out abnormal mark.
When data reasonability is checked, the online rate file of day month (comprising uploading automatically and upload manually) and supplier supervise
Survey file (being uploaded and upload manually comprising automatic) to require and differ, so being respectively defined for two kinds of files different
Reasonableness check condition, illustrates with reference to two embodiments.
If the file is online rate file on the firstth or the online rate file of second day or first month online rate file or the
February online rate file, in one embodiment, checks whether the online rate index of terminal for obtaining is rational according to pre-conditioned
Step includes following any one or any combination:
Check whether the online rate index of terminal is less than or equal to 1 more than 0;That is online rate desired value≤100% of 0 < terminals;
Check whether within a preset range terminal answers the day ring ratio fluctuation of online number of times;It is determined that the online rate desired value of terminal
When, denominator answers online number of times for terminal, and molecule is the actual online number of times of terminal, so the condition is denominator numerical value day ring and compares ripple
Whether within a preset range to move.Preset range can be configured as needed, but should not set it is too big, can for example set
Within ± 3%;
Whether within a preset range to check the day ring ratio fluctuation of the online rate index of terminal;Preset range can be entered as needed
Row is set, but should not set it is too big, for example could be arranged within ± 5%;
Check the actual online number of times of terminal that whether the actual online number of times of unified terminal be equal to direct-furnish straight tube with it is at county level
The sum of the actual online number of times of the terminal of subsidiary, and unified terminal answers whether online number of times is equal to the terminal of direct-furnish straight tube
Answer online number of times and the terminal of subsidiary at county level answer online number of times and;I.e. unified corresponding molecule is equal to direct-furnish straight tube pair
The molecule answered and the molecule sum corresponding to subsidiary at county level, unified corresponding denominator are equal to the corresponding denominator of direct-furnish straight tube
With the denominator sum corresponding to subsidiary at county level;
Check the actual online number of times of the terminal whether actual online number of times of terminal monthly is equal to all days of the middle of the month of correspondence
With, and terminal monthly answers the terminal whether online number of times is equal to all days of the middle of the month of correspondence to answer the sum of online number of times;Front-month exists
Molecule=day online rate molecule sum (calendar month) of line rate, the moon denominator=day online rate denominator sum of online rate it is (natural
Month);
If corresponding condition is satisfied by, determine that the online rate index of the terminal is reasonable.Otherwise determine the online rate of the terminal
Index is unreasonable, generates two class questionnaires, and two class questionnaires need not report market department.Data are passed for mending, if no longer there is work
Single problem, then it is processed, the record rectification deadline to change questionnaire state.
If the file is the first supplier monitoring file or the second supplier monitoring file, in one embodiment, root
Can include according to the pre-conditioned step for checking whether the online rate index of terminal for obtaining is reasonable:
Check that the terminal whether actual number of times online of terminal monthly is equal to the correspondence middle of the month all suppliers is actual online secondary
Several sums, and terminal monthly answers the terminal whether online number of times is equal to the correspondence middle of the month all suppliers to answer online number of times
With;Front-month online rate molecule be equal to supplier monitoring molecule sum, the moon online rate denominator be equal to supplier monitoring denominator it
With.
If corresponding condition is satisfied by, determine that the online rate index of the terminal is reasonable.Otherwise determine the online rate of the terminal
Index is unreasonable, generates two class questionnaires, and two class questionnaires need not report market department.Data are passed for mending, if no longer there is work
Single problem, then it is processed, the record rectification deadline to change questionnaire state.
Those skilled in the art can also set it is judged that the rational condition of data, the present invention is simultaneously according to actual conditions
Restriction is made not to this.
After daily 10 points of net level platform or benefit pass data loading, the online rate of day month and supply are issued by following rule automatically
Square Monitoring Data, rule is as follows:
1st, the online rate data of day month
(1) it is prefecture-level:If number of data is complete (containing bore), platform is issued automatically, and otherwise all data of the districts and cities are not
Issue;
(2) it is provincial:Collect statistics announced ground DBMS, administrative districts and cities all possess issue condition, can just issue;
(3) net level:The announced province-level data of automatic collect statistics.
2nd, supplier's Monitoring Data
(1) it is prefecture-level:If there are data in producer's monitoring, operator's monitoring, automatic issue;
(2) it is provincial:Collect statistics announced ground DBMS, administrative districts and cities all possess issue condition, can just issue;
(3) net level:The announced province-level data of automatic collect statistics.
If districts and cities do not issue or exist questionnaire because of a variety of causes issuing, net level platform monitoring interface need "!" prompting.Net level
Platform stamps " issue " mark to issue data, and issue data do not allow modification, and monitoring personnel can manually cancel data publication, remove
Pin data publication rule is identical with data publication rule.
Based on same inventive concept, the present invention also provides a kind of online rate index of terminal based on metering automation system
Supervising device, below in conjunction with the accompanying drawings the specific embodiment to apparatus of the present invention be described in detail.
As shown in fig. 6, a kind of supervising device of the online rate index of terminal based on metering automation system, including:
File acquisition module 110, the file named with preset format for obtaining the upload of metering automation system is described
File is stored with, and number of times and terminal answer online number of times to terminal reality online;
Integrity check module 120, integrity checking is carried out for the name according to the file to the file;
Data item checks module 130, the end for when the file passes through integrity checking, checking the file storage
The actual online number of times in end and terminal answer whether online number of times is not sky;
Online rate index obtains module 140, is not sky for answering online number of times in the actual online number of times of terminal and terminal
When, the actual online number of times of terminal and terminal stored according to the file answer online number of times to obtain the online rate index of terminal.
The present embodiment device may operate in net level electric energy data platform.The present embodiment device is by the text to uploading
Part carries out completeness check and the verification to the data item in file, can in time find data of problems, right in time
Problematic data are rectified and improved, and improve the accuracy of data.
In one embodiment, the file includes online rate file on the firstth;The described first day life of online rate file
Name is included:Regional unit encoding, the file identification of online rate index, generation the time, upload mark, day, data time, online
Rate, serial number and file format;Online rate file is automatically generated in the first daily Preset Time within described first day, daily
The second Preset Time upload automatically, second Preset Time is later than first Preset Time.
In one embodiment, the file also includes first month online rate file;Described first month online rate file
Name is included:Regional unit encoding, the file identification of online rate index, generation the time, upload mark, the moon, data time, online
Rate, serial number and file format;Described first month online rate file was automatically generated in first Preset Time of monthly the N days,
The second Preset Time at monthly the N days is uploaded automatically, and second Preset Time is later than first Preset Time, and N is solid
Definite value.
In one embodiment, the file also monitors file comprising the first supplier;The first supplier monitoring text
The name of part is included:Regional unit encoding, the file identification of online rate index, generation the time, upload mark, the moon, data time,
Supplier, serial number and file format;The first supplier monitoring file is automatic in first Preset Time of monthly the N days
Generation, the second Preset Time at monthly the N days is uploaded automatically, and second Preset Time is later than first Preset Time, N
It is fixed value.
In one embodiment, the file comprising the online rate file of second day manually generated according to work order, second month
Online rate file and the second supplier monitoring file.
In one embodiment, the first supplier monitoring file or second supplier monitoring file are also stored with
Communication producer and communication producer coding;The data item checks that module 130 is that the first supplier monitors file in the file
Or during second supplier's monitoring file, it is additionally operable to check whether not the communication producer and communication producer of the file storage encode
It is simultaneously sky.The online rate index obtains module 140 should be in the actual number of times online of the terminal that the file store and terminal
Line number of times is not sky, and is space-time when communication producer and the different communication producer coding of file storage, according to described
The actual online number of times of terminal and terminal of file storage answer online number of times to obtain the online rate index of terminal.
Other technical characteristics of the supervising device of the online rate index of the above-mentioned terminal based on metering automation system with it is above-mentioned
The technical characteristic of the monitoring method of the online rate index of terminal based on metering automation system is identical, will not be described here.
The monitoring method and device of the online rate index of the above-mentioned terminal based on metering automation system, it is mutual with prior art
When comparing, possesses advantages below:
1. formulated clearly data and uploaded flow, step clearly, operation it is specific, net, save two-stage main station monitoring personnel according to
According to above-mentioned monitoring flow, can be grasped by simple training, ease for use is high;
2. pair upper transmitting file carries out effective management and control, it is ensured that in data during storage clear and definite;
3. verified by data, data of problems are found in time, linked up by work order mode, in time
Data are rectified and improved, the accuracy of data is improve.
Each technical characteristic of embodiment described above can be combined arbitrarily, to make description succinct, not to above-mentioned reality
Apply all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, the scope of this specification record is all considered to be.
Embodiment described above only expresses several embodiments of the invention, and its description is more specific and detailed, but simultaneously
Can not therefore be construed as limiting the scope of the patent.It should be pointed out that coming for one of ordinary skill in the art
Say, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection of the invention
Scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.