package dmp.repository;

import dmp.model.TagCrawlerAppsWandoujia;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * Created by zxy on 2017/12/26.
 */
public interface TagCrawlerAppsWandoujiaRepository extends JpaRepository<TagCrawlerAppsWandoujia, Long>
{
    @Query(value="select * from tag_crawler_apps_wandoujia where SUBSTR(crawler_time,1,10) = ?1",nativeQuery=true)
    List<TagCrawlerAppsWandoujia> findAllByDs(String ds);
}
