package com.ssj.dao.sys.feedback.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import com.ssj.bean.sys.feedback.domain.SconTextFeedbackDetail;
@Repository
public interface SconTextFeedbackDetailDao extends JpaRepository<SconTextFeedbackDetail, String>{

	public List<SconTextFeedbackDetail> findByFeedbackId(String feedbackId);
	
	public SconTextFeedbackDetail findByFeedbackIdAndType(String feedbackId, String type);

	@Query(nativeQuery = true, value = "select t2.* from scon_feedback t1 left join scon_text_feedback_detail t2 on t1.id = t2.feedback_id where t1.biz_id=?1")
	public List<SconTextFeedbackDetail> findTextByPid (String bizId);
}
