package com.iamberry.wechat.service.mq.dao.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.iamberry.wechat.core.entity.mq.MQMessage;
import com.iamberry.wechat.service.mapper.MQMapper;
import com.iamberry.wechat.service.mq.dao.MQDao;
/**
 * @author:何秀刚
 * @description: dao 实现
 * @createDate:2016年5月25日
 */
@Repository
public class MQDaoImpl implements MQDao {
	
	@Autowired
	private MQMapper mqMapper;

	@Override
	public List<MQMessage> selectWaitHandlerMessage() {
		// TODO Auto-generated method stub
		return mqMapper.selectWaitHandlerMessage();
	}

	@Override
	public Integer updateBatchMessage(List<MQMessage> messages) {
		// TODO Auto-generated method stub
		return mqMapper.updateBatchMessage(messages);
	}

	@Override
	public Integer insertOneMQMessage(MQMessage message) {
		// TODO Auto-generated method stub
		return mqMapper.insertOneMQMessage(message);
	}

	@Override
	public Integer judgeMessageIsExist(MQMessage message) {
		// TODO Auto-generated method stub
		return mqMapper.judgeMessageIsExist(message);
	}

	@Override
	public Integer updateMessageOne(MQMessage message) {
		// TODO Auto-generated method stub
		return mqMapper.updateMessageOne(message);
	}

	@Override
	public Integer insertOneMQMessageContainError(MQMessage message) {
		// TODO Auto-generated method stub
		return mqMapper.insertOneMQMessageContainError(message);
	}
}
