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

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;
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;

@Transactional
@Service
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);
	}

	

}
