package com.yihu.wlyy.repository.doctor;

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

/**
 * Created by Reece on 2017/3/17.
 */
public interface SurveyDimensionDao extends PagingAndSortingRepository<SurveyDimension,Long> {
    @Query("select t.code from SurveyDimension t where t.name = ?1 ")
   String findByName(String name);
}
