package com.ssj.dao.sys.analysis.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import com.ssj.bean.sys.analysis.bean.AnalysisCount;

/**
 * @author Mount Liu
 * @date 2019/3/17
 */
@Repository
public interface AnalysisCountDao extends JpaRepository<AnalysisCount, String> {

	@Query(nativeQuery = true,value = "SELECT * from tb_analysis_count t WHERE t.lib_id=?1 AND t.source=?2 AND t.type=?3 AND t.day_time=?4 LIMIT 1 ")
	AnalysisCount getAnalysisCountByDay(String libId,Integer source,Integer type,String dayTime);
	
	
}
