List<LocalDate> totalDates
= 날짜 데이터
List<Long> count
= 데이터 수
일별 start, end 날짜 구하기
totalDates.forEach(days ->{
LocalDateTime startDatetime = LocalDateTime.of(days, LocalTime.of(0,0,0));
LocalDateTime endDatetime = LocalDateTime.of(days, LocalTime.of(23,59,59));
});
localDateTime을 Date 타입으로 변환
Date start = Date.from(startDatetime.atZone(ZoneId.systemDefault()).toInstant());
Date end = Date.from(endDatetime.atZone(ZoneId.systemDefault()).toInstant());
long mbrCnt = this.mbrRepository.countByDateBetween(start, end);
count.add(mbrCnt);