package com.ssj.dao.weixin.grword.dao;

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

import java.util.List;

@Repository
public interface ReadAnswerDao extends JpaRepository<TbReadAnswer, String>{

	@Query(nativeQuery = true, value = " SELECT * from tb_read_answer t where t.score_id=?1 ORDER BY t.sort DESC ")
	List<TbReadAnswer> findReadAnswerByScoreId(String scoreId);
	
	
	
	
}