package com.yihu.wlyy.repository.doctor;

import com.yihu.wlyy.entity.doctor.survey.SurveyQuestionsOptions;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

/**
 * Created by Reece on 2017/3/9.
 */
public interface SurveyQuestionsOptionsDao extends PagingAndSortingRepository<SurveyQuestionsOptions,Long> {
    @Query("select t from  SurveyQuestionsOptions t where  t.questionCode = ?1 ")
    List<SurveyQuestionsOptions> findById(String id);
}
