@ -21,6 +21,9 @@ public class ScheduleDetailsDto implements Serializable {
public void initMinute(int min) {
hour = min / 60;
minute = min - hour * 60;
if (hour >= 24) {
hour = hour - 24;
}
public int calMinute() {
@ -91,6 +91,9 @@ public class CameraScheduleServiceImpl implements CameraScheduleService {
int interval = first.getHour() * 60 + first.getMinute();
int start = second.getHour() * 60 + second.getMinute();
int end = third.getHour() * 60 + third.getMinute();
if (end < start) {
end = end + 24 * 60;
List<ScheduleDetailsDto> result = new ArrayList<>();
while (start < end) {