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

import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.repository.PagingAndSortingRepository;

import com.alibaba.dubbo.config.annotation.Service;
import com.ssj.bean.course.domain.CourseReadHis;
import com.ssj.dao.course.dao.ICourseReadHisDao;
import com.ssj.framework.core.common.service.BaseServiceImpl;
import com.ssj.service.course.service.ICourseReadHisService;

@Transactional
@Service(version="1.0")
public class CourseReadHisService extends BaseServiceImpl<CourseReadHis, String> implements ICourseReadHisService {

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

	@Override
    @Transactional(propagation = Propagation.NOT_SUPPORTED)
	public CourseReadHis findOneData(String userId, String libId, String courseDetailId, String onlineType, int state) {
		
		return dao.findOneData(userId,libId,courseDetailId,onlineType,state);
	}

	

}
