package com.cloudcross.ssp.service.impl;

import java.util.List;
import java.util.Map;

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

import com.cloudcross.ssp.model.MessageRead;
import com.cloudcross.ssp.service.IMessageReadService;
import com.cloudcross.ssp.base.dao.GenericIBatisDao;
import com.cloudcross.ssp.common.utils.Pager;
@Service("back.messageReadService")
public class MessageReadService implements IMessageReadService{
	
	@Autowired
	private GenericIBatisDao myBatisDao;
	
	@Override
	public MessageRead findById(Long id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int countByParams(Map<String, Object> paramMap) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<MessageRead> findByParams(Map<String, Object> paramMap,
			Pager pager) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public boolean add(MessageRead t) {	
		myBatisDao.save("messageReadSqlMapper.addMessageRead", t);
		return true;
	}

	@Override
	public boolean edit(MessageRead t) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean updateStatus(List<Long> idList, int status) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public List<Long> selectByAccountId(Long accountId) {
		return myBatisDao.getList("messageReadSqlMapper.selectByAccountId", accountId);

	}

}
