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.IQuestionOperationLogDao;
import com.qmth.qrzk.repository.common.mapper.QuestionOperationLogMapper;
import com.qmth.qrzk.repository.user.model.QuestionOperationLog;

@Repository("questionOperationLogDaoImpl")
@Transactional
public class QuestionOperationLogDaoImpl implements IQuestionOperationLogDao {

	@Autowired
	@Qualifier("questionOperationLogMapper")
	private QuestionOperationLogMapper questionOperationLogMapper;
	
	@Override
	public int insert(QuestionOperationLog qol) {
		return questionOperationLogMapper.saveLog(qol);
	}

	@Override
	public List<QuestionOperationLog> query(QuestionOperationLog qol) {
		// TODO Auto-generated method stub
		return questionOperationLogMapper.queryIds(qol);
	}

	@Override
	public List<QuestionOperationLog> queryLogs(int id) {
		// TODO Auto-generated method stub
		return questionOperationLogMapper.queryLogs(id);
	}

}
