|
|
@ -215,6 +215,7 @@ public class HydroelectricServiceImpl implements HydroelectricService { |
|
|
|
generates.addAll(device.getGenerates()); |
|
|
|
generates.addAll(device.getGenerates()); |
|
|
|
}); |
|
|
|
}); |
|
|
|
Calendar calendar = Calendar.getInstance(); |
|
|
|
Calendar calendar = Calendar.getInstance(); |
|
|
|
|
|
|
|
calendar.add(Calendar.DAY_OF_MONTH,-1); |
|
|
|
Date end = calendar.getTime(); |
|
|
|
Date end = calendar.getTime(); |
|
|
|
calendar.add(Calendar.HOUR_OF_DAY,-calendar.get(Calendar.HOUR_OF_DAY)); |
|
|
|
calendar.add(Calendar.HOUR_OF_DAY,-calendar.get(Calendar.HOUR_OF_DAY)); |
|
|
|
calendar.add(Calendar.MINUTE,-calendar.get(Calendar.MINUTE)); |
|
|
|
calendar.add(Calendar.MINUTE,-calendar.get(Calendar.MINUTE)); |
|
|
|