package com.ssj.dao.weixin.story.dao;

import com.ssj.bean.weixin.story.bean.StoryCardPraise;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;


/** 
 * @author  ZhangCaibao 
 * @version 2018年3月22日 下午3:13:12 
 * 类说明 
 */
@Repository
public interface StoryCardPraiseDao extends JpaRepository<StoryCardPraise, String> {

	
	 @Query(nativeQuery = true, value =" SELECT   *  from  tb_story_card_praise  where  user_id=?1 and story_card_id=?2 ")
	StoryCardPraise findByUserIdAndStoryCardId(String userId,String storyCardId);
}
