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.ICodeBookLogDao;
import com.qmth.qrzk.repository.common.mapper.CodeBookLogMapper;
import com.qmth.qrzk.repository.service.query.CodeBookLogParams;
import com.qmth.qrzk.repository.user.model.CodeBookLog;

@Repository("codeBookLogImpl")
@Transactional
public class CodeBookLogImpl implements ICodeBookLogDao {

	//注入roleMapper提供操作数据库的sql语句
	@Autowired
	@Qualifier("codeBookLogMapper")
	private CodeBookLogMapper codeBookLogMapper;


	@Override
	public int addLog(CodeBookLog cbl) {
		// TODO Auto-generated method stub
		return codeBookLogMapper.addLog(cbl);
	}


	@Override
	public List<CodeBookLog> queryAllLog(CodeBookLogParams params) {
		// TODO Auto-generated method stub
		return codeBookLogMapper.queryAllLog(params);
	}


	@Override
	public int queryAllLogCount(CodeBookLogParams params) {
		// TODO Auto-generated method stub
		return codeBookLogMapper.queryAllLogCount(params);
	}

	

}
