[FIX] 未達成の履歴がメニューに表示される問題を修正しました。

This commit is contained in:
s-choi
2026-09-29 15:24:56 +09:00
parent ead133ba65
commit bbee55f58f

View File

@@ -429,7 +429,7 @@ public class TransactionController {
UserForm userForm = UserForm.convertFrom(userService.findByUserId(loginUser.getUserId()));
List<GoalForm> resultList = goalForm.stream().filter(goal -> goal.getGoalComplete() == 0)
List<GoalForm> resultList = goalForm.stream().filter(goal -> goal.getGoalComplete() == 0 && goal.getDeadline().isAfter(today) )
.collect(Collectors.toList());
if (!resultList.isEmpty()) {