package com.ssj.dao.weixin.library.dao;

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

import com.ssj.bean.weixin.libmy.domain.TbLibWeeklyRecord;


@Repository
public interface LibWeeklyRecordDao extends JpaRepository<TbLibWeeklyRecord, String>{

	@Query(nativeQuery = true, value = " SELECT * FROM `tb_lib_weekly_record` t where t.vip_id=?1 and t.start_time=?2 limit 1 ")
	TbLibWeeklyRecord findByVipIdAndStartTime(String vipId, String startTime);
	
}
