|
|
@@ -176,8 +176,6 @@ public interface UserRepo extends JpaRepository<User, Long>, JpaSpecificationExe
|
|
|
|
|
|
long countAllByAuthoritiesContainsAndDelFalse(Authority authority);
|
|
|
|
|
|
- List<User> findAllByCreatedAtBetweenAndAuthoritiesContains(LocalDateTime start, LocalDateTime end, Authority authorities);
|
|
|
-
|
|
|
List<User> findAllByCreatedAtIsAfterAndAuthoritiesContains(LocalDateTime createdAt, Authority authorities);
|
|
|
|
|
|
List<User> findBySettleAccountIdIsNotNull();
|
|
|
@@ -210,4 +208,12 @@ public interface UserRepo extends JpaRepository<User, Long>, JpaSpecificationExe
|
|
|
void updateAllByInvitor(Collection<Long> ids);
|
|
|
|
|
|
List<User> findAllByCollectionId(Long collectionId);
|
|
|
+
|
|
|
+ @Query(value = "update showroom join user on showroom.user_id = user.id " +
|
|
|
+ "set showroom.nickname = user.nickname " +
|
|
|
+ "where user.id = ?1 ", nativeQuery = true)
|
|
|
+ @Modifying
|
|
|
+ @Transactional
|
|
|
+ void updateShowroomToUser(Long userId);
|
|
|
+
|
|
|
}
|