From 130170cfd53d953a1577fc07a0e98e20b7417506 Mon Sep 17 00:00:00 2001 From: snoop Date: Fri, 23 Jun 2017 20:09:21 +0900 Subject: [PATCH] fixed findAllByDomain --- .../overflow/module/noauthprobe/dao/NoAuthProbeDAO.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/loafle/overflow/module/noauthprobe/dao/NoAuthProbeDAO.java b/src/main/java/com/loafle/overflow/module/noauthprobe/dao/NoAuthProbeDAO.java index 8277673..db6d15a 100644 --- a/src/main/java/com/loafle/overflow/module/noauthprobe/dao/NoAuthProbeDAO.java +++ b/src/main/java/com/loafle/overflow/module/noauthprobe/dao/NoAuthProbeDAO.java @@ -19,7 +19,7 @@ public interface NoAuthProbeDAO extends JpaRepository { // @Query("SELECT n FROM NoAuthProbe n WHERE n.tempProbeKey = :tempProbeKey") NoAuthProbe findByTempProbeKey(String tempProbeKey); - -// @Query("SELECT n FROM NoAuthProbe n WHERE n.domain.id = :domainId") - List findAllByDomain(Domain domain); +// @Query("select m from Member m WHERE m.email = :#{#m2.email}") + @Query("SELECT n FROM NoAuthProbe n WHERE n.domain.id = :#{#domain.id} and n.status = 'P'") + List findAllByDomain(@Param("domain") Domain domain); }