Skip to content

Commit

Permalink
fix: 낫투두 7개 제한 startDate 조건 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
sunga08 committed Sep 17, 2023
1 parent d5819e8 commit 1888953
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public interface UserNotToDoJpaRepository extends JpaRepository<UserNotToDo, Lon
@Query("select count(n) from UserNotToDo n where n.user.id = :userId and n.useYn = true")
int countUserNotToDoByUserIdAndUseYn(Long userId);

@Query("select count(n) from UserNotToDo n where n.user.id = :userId and n.useYn = true and n.endDate >= current_date")
@Query("select count(n) from UserNotToDo n where n.user.id = :userId and n.useYn = true and n.endDate >= current_date and n.startDate <= current_date ")
int countUserNotToDoLimitCheck(Long userId);

@Query("select n from UserNotToDo n " +
Expand Down

0 comments on commit 1888953

Please sign in to comment.