Skip to content

Commit

Permalink
THT-Server-266 [APP] 탈퇴 유저 신규 가입 후 로그인 에러 처리 (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
thalals authored Oct 1, 2024
1 parent f7ce167 commit 09cf7b8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import com.tht.domain.entity.user.repository.querydsl.UserCustomRepository;
import com.tht.enums.EntityState;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.Optional;

Expand All @@ -12,6 +13,7 @@ public interface UserRepository extends JpaRepository<User, Long>, UserCustomRep
boolean existsByUsernameAndStateEquals(final String userName, final EntityState state);
boolean existsByPhoneNumberAndStateEquals(final String phoneNumber, final EntityState state);

@Query("select u from User u where u.phoneNumber=:phoneNumber and u.state = 'ACTIVE'")
Optional<User> findByPhoneNumber(final String phoneNumber);
Optional<User> findByUserUuid(final String userUuid);

Expand Down

0 comments on commit 09cf7b8

Please sign in to comment.