|
|
@ -39,18 +39,13 @@ public class ScheduleDetailsDto implements Serializable {
|
|
|
|
|
|
|
|
|
|
|
|
public boolean match(int min, int delay) {
|
|
|
|
public boolean match(int min, int delay) {
|
|
|
|
int cal = this.calMinute();
|
|
|
|
int cal = this.calMinute();
|
|
|
|
if (cal == min) {
|
|
|
|
int r = Math.abs(min - cal);
|
|
|
|
return true;
|
|
|
|
if (r <= delay) {
|
|
|
|
} else if (cal > min) {
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
if (cal + delay >= min) {
|
|
|
|
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public boolean isWrong() {
|
|
|
|
public boolean isWrong() {
|
|
|
|
if (timeList.size() == 1) {
|
|
|
|
if (timeList.size() == 1) {
|
|
|
|