package cn.reghao.tnb.search.esapp.db.repository;

import cn.reghao.tnb.search.esapp.model.po.WenshuDoc;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * @author reghao
 * @date 2025-08-21 09:29:18
 */
public interface WenshuDocRepository extends JpaRepository<WenshuDoc, Integer>, JpaSpecificationExecutor<WenshuDoc> {
    Page<WenshuDoc> findByRegion(String region, Pageable pageable);
    Page<WenshuDoc> findByCourt(String court, Pageable pageable);
    WenshuDoc findByWenshuId(long wenshuId);
}
