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

import com.alibaba.dubbo.config.annotation.Service;
import com.ssj.bean.kmt.kmt.domain.KmtCourseKnowDetail;
import com.ssj.framework.core.common.service.BaseServiceImpl;
import com.ssj.dao.kmt.kmt.dao.KmtCourseKnowDetailDao;
import com.ssj.service.kmt.service.KmtCourseKnowDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.repository.PagingAndSortingRepository;

import org.springframework.transaction.annotation.Transactional;
import java.util.List;


@Transactional
@Service(version ="1.0")
public class KmtCourseKnowDetailServiceImpl extends BaseServiceImpl<KmtCourseKnowDetail, String> implements KmtCourseKnowDetailService {
	
	@Autowired
	private KmtCourseKnowDetailDao dao;

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

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