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

import com.ssj.bean.weixin.libmy.domain.LibBookSwitch;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;


@Repository
public interface IBookSwitchDao extends JpaRepository<LibBookSwitch, String> {

	@Query(nativeQuery=true,value="select * from tb_lib_book_switch where lib_id=?1 order by create_time desc limit 1")
	LibBookSwitch findSwitchInfo(String libId);

}
