diff --git a/src/main/java/com/bbteam/budgetbuddies/domain/expense/service/ExpenseServiceImpl.java b/src/main/java/com/bbteam/budgetbuddies/domain/expense/service/ExpenseServiceImpl.java index b8779a95..a51df924 100644 --- a/src/main/java/com/bbteam/budgetbuddies/domain/expense/service/ExpenseServiceImpl.java +++ b/src/main/java/com/bbteam/budgetbuddies/domain/expense/service/ExpenseServiceImpl.java @@ -1,6 +1,7 @@ package com.bbteam.budgetbuddies.domain.expense.service; import java.time.LocalDate; +import java.time.LocalTime; import java.util.List; import org.springframework.stereotype.Service; @@ -117,7 +118,7 @@ public MonthlyExpenseResponseDto getMonthlyExpense(Long userId, LocalDate localD User user = userRepository.findById(userId).orElseThrow(() -> new IllegalArgumentException("Invalid user ID")); List expenseSlice = expenseRepository.findAllByUserIdForPeriod(user, - startOfMonth.atStartOfDay(), endOfMonth.atStartOfDay()); + startOfMonth.atStartOfDay(), endOfMonth.atTime(LocalTime.MAX)); return expenseConverter.toMonthlyExpenseResponseDto(expenseSlice, startOfMonth); }