Skip to content

Commit

Permalink
Merge pull request #256 from gutanbug/dev_deploy
Browse files Browse the repository at this point in the history
fix : 상세 조회 시 관리자에 의해서 삭제된 글을 제외하고 모두 다 조회할 수 있도록 수정
  • Loading branch information
gutanbug authored Oct 27, 2024
2 parents 19fdd6b + 23b8222 commit 904ba03
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ public interface WithDankookRepository<T extends WithDankook> extends JpaReposit
@Query("select w from WithDankook w " +
"join fetch w.masterUser u " +
"join fetch u.major " +
"where w.id=:id and w.withDankookStatus ='ACTIVE' ")
"where w.id=:id and w.withDankookStatus != 'DELETED_BY_ADMIN' ")
Optional<T> findById(@Param("id") Long id);
@Query("select w from WithDankook w " +
"join fetch w.masterUser u " +
"join fetch u.major " +
"where w.id=:withDankookId and (w.withDankookStatus='CLOSED' or w.withDankookStatus='ACTIVE')")
"where w.id=:withDankookId")
Optional<T> findWithClosedById(@Param("withDankookId") Long withDankookId);

@Query("select w from WithDankook w " +
"join fetch w.masterUser u " +
"join fetch u.major " +
"where w.id=:withDankookId and (w.withDankookStatus='CLOSED' or w.withDankookStatus='FULL' or w.withDankookStatus='ACTIVE')")
"where w.id=:withDankookId and w.withDankookStatus != 'DELETED_BY_ADMIN'")
Optional<T> findWithNotDeletedById(@Param("withDankookId") Long withDankookId);

@Query("select w from WithDankook w " +
Expand Down

0 comments on commit 904ba03

Please sign in to comment.