package com.ssj.dao.kmt.kmt.dao;


import com.ssj.bean.kmt.kmt.domain.KmtQualityQuestionComment;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface KmtQualityQuestionCommentDao  extends JpaRepository<KmtQualityQuestionComment, String> {

    @Query(nativeQuery = true, value = " SELECT * FROM kmt_quality_question_comment t where t.question_id=?1 limit 1 ")
    KmtQualityQuestionComment findByQuestionId (String questionId);
}
