package com.qmth.qrzk.repository.user.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import com.qmth.qrzk.dao.IQuestionImportHistoryDao;
import com.qmth.qrzk.repository.service.query.QueryParams;
import com.qmth.qrzk.repository.user.model.QuestionImportHistory;
import com.qmth.qrzk.repository.user.service.IQuestionImportHistoryService;

@Service("questionImportHistoryServiceImpl")
public class QuestionImportHistoryServiceImpl implements
		IQuestionImportHistoryService {
	@Autowired
	@Qualifier("questionImportHistoryDaoImpl")
	private IQuestionImportHistoryDao questionImportHistoryDao;
	
	@Override
	public int findByUUId(String id) {
		// TODO Auto-generated method stub
		return questionImportHistoryDao.queryByUUId(id);
	}

	@Override
	public void saveQuestionImportHistory(QuestionImportHistory qih) {
		// TODO Auto-generated method stub
		questionImportHistoryDao.insertQuestionImportHistory(qih);
	}

	@Override
	public List<QuestionImportHistory> queryHistories(QueryParams queryParams) {
		// TODO Auto-generated method stub
		return questionImportHistoryDao.queryHistories(queryParams);
	}

	@Override
	public int getCount(QueryParams queryParams) {
		// TODO Auto-generated method stub
		return questionImportHistoryDao.queryHistoriesCount(queryParams);
	}

}
