JpushEasemobAccountServiceImpl.java 1.0 KB

12345678910111213141516171819202122232425262728
  1. package com.goafanti.user.service.impl;
  2. import java.util.HashMap;
  3. import java.util.Map;
  4. import org.springframework.stereotype.Service;
  5. import com.goafanti.common.dao.JpushEasemobAccountMapper;
  6. import com.goafanti.core.mybatis.BaseMybatisDao;
  7. import com.goafanti.core.mybatis.page.Pagination;
  8. import com.goafanti.user.bo.ClientListBo;
  9. import com.goafanti.user.service.JpushEasemobAccountService;
  10. @Service
  11. public class JpushEasemobAccountServiceImpl extends BaseMybatisDao<JpushEasemobAccountMapper> implements JpushEasemobAccountService{
  12. @SuppressWarnings("unchecked")
  13. @Override
  14. public Pagination<ClientListBo> findJpushClientsByType(Integer type,Integer pageNo,Integer pageSize) {
  15. // TODO Auto-generated method stub
  16. if(pageNo==null||pageNo<1)pageNo=1;
  17. if(pageSize==null||pageSize<1)pageSize=10;
  18. Map<String, Object>params=new HashMap<>();
  19. params.put("clientType", type);
  20. return (Pagination<ClientListBo>) findPage("findJpushClientsByType", "findJpushClientsCountByType", params, pageNo, pageSize);
  21. }
  22. }