package com.goafanti.user.service.impl;

import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.goafanti.common.dao.JpushEasemobAccountMapper;
import com.goafanti.core.mybatis.BaseMybatisDao;
import com.goafanti.core.mybatis.page.Pagination;
import com.goafanti.user.bo.ClientListBo;
import com.goafanti.user.service.JpushEasemobAccountService;
@Service
public class JpushEasemobAccountServiceImpl extends BaseMybatisDao<JpushEasemobAccountMapper> implements JpushEasemobAccountService{

	@SuppressWarnings("unchecked")
	@Override
	public Pagination<ClientListBo> findJpushClientsByType(Integer type,Integer pageNo,Integer pageSize) {
		// TODO Auto-generated method stub
		if(pageNo==null||pageNo<1)pageNo=1;
		if(pageSize==null||pageSize<1)pageSize=10;
		Map<String, Object>params=new HashMap<>();
		params.put("clientType", type);
		return (Pagination<ClientListBo>) findPage("findJpushClientsByType", "findJpushClientsCountByType", params, pageNo, pageSize);
	}

}
