parent
c3a76e62be
commit
fd52484673
@ -1,16 +0,0 @@
|
|||||||
package com.softegg.freetogo;
|
|
||||||
|
|
||||||
import org.apache.ibatis.annotations.Param;
|
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
|
||||||
import org.springframework.data.jpa.repository.Query;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
/**
|
|
||||||
* @description:继承Jpa数据库接口类
|
|
||||||
* @author:zhanglinhao
|
|
||||||
* @date:2024/5/8 8:50
|
|
||||||
*/
|
|
||||||
public interface UsersRepository extends JpaRepository<Users, Integer> {
|
|
||||||
// @Query(value = "select * from users where phone = ?1",nativeQuery = true)
|
|
||||||
Users findByPhone(String phone);
|
|
||||||
}
|
|
Loading…
Reference in new issue