package com.qmth.qrzk.dao.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import com.qmth.qrzk.dao.IQuestionImportHistoryDao;
import com.qmth.qrzk.repository.common.mapper.QuestionImportHistoryMapper;
import com.qmth.qrzk.repository.service.query.QueryParams;
import com.qmth.qrzk.repository.user.model.QuestionImportHistory;

@Repository("questionImportHistoryDaoImpl")
@Transactional
public class QuestionImportHistoryDaoImpl implements IQuestionImportHistoryDao {

	@Autowired
	@Qualifier("questionImportHistoryMapper")
	private QuestionImportHistoryMapper questionImportHistoryMapper;
	
	@Override
	public int queryByUUId(String id) {
		// TODO Auto-generated method stub
		return questionImportHistoryMapper.queryByUUId(id);
	}

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

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

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

	
}
