敏捷工具
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

21 lines
494 B

package com.whn.hellospring.repository;
import com.whn.hellospring.model.CustomerDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import java.util.List;
public interface CustomerRepository extends JpaRepository<CustomerDO,Long> {
/**
* 是否存在该手机号
*/
@Query(value = "select * from t_customer where phone=?1", nativeQuery = true)
List<CustomerDO> isHaveThisPhone(String phone);
}