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

import com.ssj.bean.kmt.kmt.domain.KmtCourseKnowKdDetail;
import com.ssj.dao.kmt.kmt.dao.KmtCourseKnowKdDetailDao;
import com.ssj.framework.core.common.service.BaseServiceImpl;
import com.ssj.service.kmt.service.KmtCourseKnowKdDetailService;
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;

@Transactional
@Service
public class KmtCourseKnowKdDetailServiceImpl extends BaseServiceImpl<KmtCourseKnowKdDetail, String> implements KmtCourseKnowKdDetailService {
	
	@Autowired
	private KmtCourseKnowKdDetailDao dao;

	@Override
	public PagingAndSortingRepository<KmtCourseKnowKdDetail, String> getDao() {
		return dao;
	}


	@Override
	public List<KmtCourseKnowKdDetail> findByCourseKnowId(String courseKnowId) {
		return dao.findByCourseKnowId(courseKnowId);
	}
}
