package com.ssj.service.sys.train.service.impl;

import java.util.List;

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 com.ssj.bean.sys.train.bean.ExamInfo;
import com.ssj.dao.sys.train.dao.ExamInfoDao;
import com.ssj.dao.sys.train.dao.TrainQueryDao;
import com.ssj.framework.core.common.service.BaseServiceImpl;
import com.ssj.service.sys.train.service.ExamInfoService;

@Service
@Transactional
public class ExamInfoServiceImpl extends BaseServiceImpl<ExamInfo, String> implements ExamInfoService {

    @Autowired
    private ExamInfoDao examInfoDao;
    
    @Autowired
    private TrainQueryDao trainQueryDao;

    @Override
	public PagingAndSortingRepository<ExamInfo, String> getDao() {
		return examInfoDao;
	}

	@Override
	public List<ExamInfo> findExamInfoByVideoId(String videoId) {
		return examInfoDao.findExamInfoByVideoId(videoId);
	}

}
