Skip to content

Commit

Permalink
Feat: 게스트 유저의 포인트 내역 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
Taekgil99 committed Dec 1, 2022
1 parent 1400b9b commit f1ed709
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
public interface PointHistoryRepository extends JpaRepository<PointHistory, Long> {
@Query("select p from PointHistory p where p.user.userId = :userId")
PointHistory findByUser(long userId);

void deleteByUser(User user);

@Query("select p from PointHistory p " +
Expand All @@ -21,9 +22,10 @@ public interface PointHistoryRepository extends JpaRepository<PointHistory, Long
List<PointHistory> findPointHistoryList(@Param("userId") Long userId, Pageable pageable);



@Query("select count(p) from PointHistory p " +
"where p.user.userId = :userId"
)
Long countPoint(@Param("userId") Long userId);

void deleteByUser_UserRoleOrUser_UserRole(String guestUserRole, String guestAdminRole);
}

0 comments on commit f1ed709

Please sign in to comment.