Skip to content

Commit

Permalink
refactor : supportPolicyType 이 Set 자료형으로 수정돼 신청일이 임박한 정책을 찾는 쿼리 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
LHS-11 committed Dec 23, 2023
1 parent b67e1e5 commit f8d93a8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public interface PolicyRepository extends JpaRepository<Policy, Long> {

// jpql
@Query("SELECT p FROM Policy p " +
"WHERE p.supportPolicyTypes in (:policyType) " +
"WHERE (:policyType) MEMBER OF p.supportPolicyTypes " +
"AND p.applyEndDate >= :currentDate " +
"AND NOT EXISTS (SELECT up FROM UserPolicy up WHERE up.policy = p AND up.user.userId = :userId AND up.applyFlag=true) " +
"ORDER BY p.applyEndDate ASC ")
Expand Down

0 comments on commit f8d93a8

Please sign in to comment.