package com.ssj.service.sys.feedback.service.impl;

import com.ssj.bean.sys.feedback.domain.SconKnowFeedbackDetail;
import com.ssj.dao.sys.feedback.dao.FeedbackQueryDao;
import com.ssj.dao.sys.feedback.dao.SconKnowFeedbackDetailDao;
import com.ssj.framework.core.common.service.BaseServiceImpl;
import com.ssj.service.sys.feedback.service.SconKnowFeedbackDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/** 
 * @author  ZhangCaibao 
 * @version 2018年5月11日 下午3:48:32 
 * 类说明 
 */
@Service
@Transactional
public class SconKnowFeedbackDetailServiceImpl extends BaseServiceImpl<SconKnowFeedbackDetail, String> implements SconKnowFeedbackDetailService{
	@Autowired
	private SconKnowFeedbackDetailDao  dao;
	@Autowired
	private FeedbackQueryDao queryDao;
	@Override
	public PagingAndSortingRepository<SconKnowFeedbackDetail, String> getDao() {
		return dao;
	}
	@Override
	public List<SconKnowFeedbackDetail> findByFeedbackId(String feedbackId) {
		return dao.findByFeedbackId(feedbackId);
	}

	public List<Map<String, Object>> findKnowledgeFeedbakList (String pid){
		return queryDao.findKnowFeedbackByProblemId(pid);
	}

}
