|
|
@@ -122,7 +122,7 @@ public class VppUnReportServiceImpl implements VppUnReportService {
|
|
|
&& resource.getDeviceId() != null
|
|
|
&& StringUtils.hasText(deviceUnResourceIdMap.get(resource.getDeviceId())))
|
|
|
.count();
|
|
|
- log.info("已提交 RegisterReportRequest,虚拟电厂量测点={},站点量测点={},资源点量测点={}",
|
|
|
+ log.info("已提交 RegisterReportRequest,虚拟电厂量测点={},含负荷预测,站点量测点={},资源点量测点={}",
|
|
|
VppUnRegisterMetricDefinitions.VPP_REGISTER_METRICS.size(), siteMetricCount, resourceMetricCount);
|
|
|
}
|
|
|
|
|
|
@@ -155,14 +155,14 @@ public class VppUnReportServiceImpl implements VppUnReportService {
|
|
|
forecastDate, workday, loadResponseHistoryDates(), requiredCount, LocalDate.now());
|
|
|
|
|
|
LocalDateTime reportTime = LocalDateTime.now();
|
|
|
- List<VppUnRegisterReportIndex.Entry> entries = VppUnRegisterReportIndex.buildEntries(
|
|
|
+ List<VppUnRegisterReportIndex.Entry> entries = VppUnRegisterReportIndex.buildIntervalDataEntries(
|
|
|
properties, sites, resources, deviceUnResourceIdMap);
|
|
|
List<Map<String, Object>> pointCurveData = new ArrayList<>(entries.size());
|
|
|
for (VppUnRegisterReportIndex.Entry entry : entries) {
|
|
|
List<String> deviceUuids = resolveMomentDataDeviceUuids(
|
|
|
entry, tenantPeakDeviceUuids, peakDeviceUuidsBySite, deviceMap);
|
|
|
List<Map<String, Object>> curveValues = VppUnIntervalDataHelper.buildForecastCurveValues(
|
|
|
- vppTsdbQueryService, deviceUuids, referenceDates, forecastDate, entry.getMetric());
|
|
|
+ vppTsdbQueryService, deviceUuids, referenceDates, forecastDate, entry.getDataMetric());
|
|
|
pointCurveData.add(VppUnMessageBuilder.buildIntervalCurveDataEntry(entry.getRid(), curveValues));
|
|
|
}
|
|
|
|
|
|
@@ -196,14 +196,14 @@ public class VppUnReportServiceImpl implements VppUnReportService {
|
|
|
LocalDateTime windowEnd = VppUnMomentDataHelper.resolveWindowEnd(LocalDateTime.now());
|
|
|
LocalDateTime windowStart = VppUnMomentDataHelper.resolveWindowStart(windowEnd);
|
|
|
|
|
|
- List<VppUnRegisterReportIndex.Entry> entries = VppUnRegisterReportIndex.buildEntries(
|
|
|
+ List<VppUnRegisterReportIndex.Entry> entries = VppUnRegisterReportIndex.buildMomentDataEntries(
|
|
|
properties, sites, resources, deviceUnResourceIdMap);
|
|
|
List<Map<String, Object>> pointData = new ArrayList<>(entries.size());
|
|
|
for (VppUnRegisterReportIndex.Entry entry : entries) {
|
|
|
List<String> deviceUuids = resolveMomentDataDeviceUuids(
|
|
|
entry, tenantPeakDeviceUuids, peakDeviceUuidsBySite, deviceMap);
|
|
|
BigDecimal value = VppUnMomentDataHelper.aggregateMetricValue(
|
|
|
- vppTsdbQueryService, deviceUuids, windowStart, windowEnd, entry.getMetric());
|
|
|
+ vppTsdbQueryService, deviceUuids, windowStart, windowEnd, entry.getDataMetric());
|
|
|
pointData.add(VppUnMessageBuilder.buildMomentDataPoint(
|
|
|
entry.getRid(), value, windowEnd, "good"));
|
|
|
}
|