Skip to content

Commit

Permalink
Merge pull request #257 from EveryUniv/dev
Browse files Browse the repository at this point in the history
Release dev_deploy
  • Loading branch information
gutanbug authored Oct 27, 2024
2 parents 84e1a88 + 904ba03 commit fec8914
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 fec8914

Please sign in to comment.