조회시간 최대 59분이 되도록 변경
eapim-admin CI / build (push) Waiting to run

This commit is contained in:
eastargh
2026-09-11 17:35:47 +09:00
parent 52e8c3be39
commit e4de8ebc8b
@@ -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);