package com.ssj.service.course.service.impl;

import com.ssj.bean.course.domain.CourseLearn;
import com.ssj.dao.course.dao.CourseLearnDao;
import com.ssj.framework.core.common.service.BaseServiceImpl;
import com.ssj.service.course.service.CourseLearnService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;



/** 
 * @author  wuwen 
 * @version 2018年12月12日11:21:45
 * 类说明 
 */
@Transactional
@Service
public class CourseLearnServiceImpl extends BaseServiceImpl<CourseLearn, String> implements CourseLearnService {

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

	@Override
    @Transactional(propagation = Propagation.NOT_SUPPORTED)
	public CourseLearn findCourseLearnByFlowId(String courseName, String vipId) {
		return dao.findCourseLearnByFlowId(courseName, vipId);
	}
	
	
	
}
