package com.ssj.service.kmt.kmt.service.impl;


import com.ssj.bean.kmt.kmt.domain.KmtQualityQuestionComment;
import com.ssj.dao.kmt.kmt.dao.KmtQualityQuestionCommentDao;
import com.ssj.framework.core.common.service.BaseServiceImpl;
import com.ssj.service.kmt.service.KmtQualityQuestionCommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Transactional
@Service
public class KmtQualityQuestionCommentServiceImpl  extends BaseServiceImpl<KmtQualityQuestionComment, String> implements KmtQualityQuestionCommentService {

    @Autowired
    private KmtQualityQuestionCommentDao dao;
    @Override
    public PagingAndSortingRepository<KmtQualityQuestionComment, String> getDao() {
        return dao;
    }

    @Override
    public KmtQualityQuestionComment findByQuestionId(String questionId) {
        return dao.findByQuestionId(questionId);
    }
}
