fix: 增加总数

dev
huangfeng 2 months ago
parent e57ad74e5f
commit 5be6a9fcc7

@ -12,6 +12,7 @@ import java.util.List;
public class StatPreset {
Integer presetId;
Integer delay;
Integer total = 0;
List<ScheduleDetailsDto> scheduleList = new ArrayList<>();
List<Date> timeList = new ArrayList<>();
@ -21,6 +22,7 @@ public class StatPreset {
int hour = calendar.get(Calendar.HOUR_OF_DAY);
int minute = calendar.get(Calendar.MINUTE);
minute = hour * 60 + minute;
total++;
for (ScheduleDetailsDto detail : scheduleList) {
if (detail.match(minute, delay)) {
detail.getTimeList().add(photo.getPhotoTime());

Loading…
Cancel
Save