package com.huimv.video.repo;

import com.huimv.video.domain.SjHkAq;
import com.huimv.video.domain.SjHkPh;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface SjHkPhRepository extends JpaRepository<SjHkPh, Integer>, JpaSpecificationExecutor<SjHkPh> {
	
	@Query(nativeQuery = true ,value = "select * from sj_hk_ph where lqid like %?1% limit ?2 , ?3")
    List<SjHkPh> findAll(String name, Integer startPage, Integer pageSize);

    List<SjHkPh> findByLqidOrderById(Integer LQID);
}
