|
@@ -561,7 +561,7 @@ public class MonitorDataReportServiceImpl implements MonitorDataReportService {
|
|
|
|
|
|
for (int i = 0; i < 30; i++) {
|
|
|
LocalDate newLocalDate = localDate.plusDays(-i - 1);
|
|
|
- if (i <= deviceWaterSupplies.size()
|
|
|
+ if (i == deviceWaterSupplies.size()
|
|
|
|| !newLocalDate.isEqual(LocalDate.of(deviceWaterSupplies.get(i).getYear(),
|
|
|
deviceWaterSupplies.get(i).getMonth(),
|
|
|
deviceWaterSupplies.get(i).getDay()))) {
|