+3
-3
@@ -336,12 +336,12 @@ public class ApiStatsMinuteService
|
|||||||
|
|
||||||
if (StringUtils.isNotBlank(search.getSearchEndDateTime())) {
|
if (StringUtils.isNotBlank(search.getSearchEndDateTime())) {
|
||||||
endDateTime = LocalDateTime.parse(search.getSearchEndDateTime(), DATE_TIME_FORMATTER);
|
endDateTime = LocalDateTime.parse(search.getSearchEndDateTime(), DATE_TIME_FORMATTER);
|
||||||
// 1시간(60분) 초과 시 시작시간 기준 1시간 후로 강제 설정
|
// 1시간(60분) 초과 시 시작시간 기준 1시간치(정시~59분, statTime 조건이 양끝 포함이므로 -1분)로 강제 설정
|
||||||
if (java.time.Duration.between(startDateTime, endDateTime).toMinutes() > MAX_MINUTES) {
|
if (java.time.Duration.between(startDateTime, endDateTime).toMinutes() > MAX_MINUTES) {
|
||||||
endDateTime = startDateTime.plusMinutes(MAX_MINUTES);
|
endDateTime = startDateTime.plusMinutes(MAX_MINUTES - 1);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
endDateTime = startDateTime.plusMinutes(MAX_MINUTES);
|
endDateTime = startDateTime.plusMinutes(MAX_MINUTES - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
search.setParsedStartDateTime(startDateTime);
|
search.setParsedStartDateTime(startDateTime);
|
||||||
|
|||||||
Reference in New Issue
Block a user