|
@@ -433,8 +433,6 @@ public class MonitorDataReportServiceImpl implements MonitorDataReportService {
|
|
|
monitorDataChartReportAttributeDto.getMonitorDataChartReportValue() == null) {
|
|
|
continue;
|
|
|
}
|
|
|
- Integer growingBase = 1;
|
|
|
-
|
|
|
String unit = monitorDataChartReportAttributeDto.getUnit();
|
|
|
unit = StringUtils.isNotBlank(unit) ? unit : "";
|
|
|
List<MonitorDataChartReportValueDto> monitorDataChartReportValueDtos = monitorDataChartReportAttributeDto.getMonitorDataChartReportValue();
|
|
@@ -449,13 +447,14 @@ public class MonitorDataReportServiceImpl implements MonitorDataReportService {
|
|
|
monitorDataChartReportValueDto.setDate(dateTime);
|
|
|
monitorDataChartReportValueDto.setDateLabel(i);
|
|
|
monitorDataChartReportValueDto.setMonitorData("");
|
|
|
- monitorDataChartReportValueDtos.add(growingBase-1,monitorDataChartReportValueDto);
|
|
|
+ monitorDataChartReportValueDtos.add(monitorDataChartReportValueDto);
|
|
|
} else {
|
|
|
monitorDataChartReportValueDto.setMonitorData(monitorDataChartReportValueDto.getData()+""+unit);
|
|
|
- LocalDateTime dateTime = monitorDataChartReportValueDto.getDate();
|
|
|
- setDateStringLabel(localDateTime, dateTime, i , monitorDataChartReportValueDto, type, false);
|
|
|
+ LocalDateTime dateTime = yearMonthDay(year,month, i);
|
|
|
+ if (StringUtils.isEmpty(monitorDataChartReportValueDto.getDateStringLabel())){
|
|
|
+ setDateStringLabel(localDateTime, dateTime, i , monitorDataChartReportValueDto, type, false);
|
|
|
+ }
|
|
|
}
|
|
|
- growingBase++;
|
|
|
}
|
|
|
}
|
|
|
}
|