零、環境
public class Customer {
private Long id;
private String name;
private Integer age;
private String type;
}複製程式碼
public interface CustomerRepository extends JpaRepository<Customer, Long>, JpaSpecificationExecutor<Customer> {複製程式碼
Customer findByPhone(String phone);
Customer findAllByAge(String openId);
}複製程式碼