|
@@ -2,7 +2,9 @@ package com.goafanti.user.service.impl;
|
|
|
|
|
|
|
|
import com.goafanti.common.dao.UserFollowMapper;
|
|
import com.goafanti.common.dao.UserFollowMapper;
|
|
|
import com.goafanti.core.mybatis.BaseMybatisDao;
|
|
import com.goafanti.core.mybatis.BaseMybatisDao;
|
|
|
|
|
+import com.goafanti.core.mybatis.page.Pagination;
|
|
|
import com.goafanti.user.bo.InputUserFollowList;
|
|
import com.goafanti.user.bo.InputUserFollowList;
|
|
|
|
|
+import com.goafanti.user.bo.outUserFollowList;
|
|
|
import com.goafanti.user.service.UserFollowService;
|
|
import com.goafanti.user.service.UserFollowService;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.terracotta.offheapstore.HashingMap;
|
|
import org.terracotta.offheapstore.HashingMap;
|
|
@@ -13,7 +15,7 @@ import java.util.Map;
|
|
|
@Service
|
|
@Service
|
|
|
public class UserFollowServiceImpl extends BaseMybatisDao<UserFollowMapper> implements UserFollowService {
|
|
public class UserFollowServiceImpl extends BaseMybatisDao<UserFollowMapper> implements UserFollowService {
|
|
|
@Override
|
|
@Override
|
|
|
- public Object userFollowList(InputUserFollowList in) {
|
|
|
|
|
|
|
+ public Pagination<outUserFollowList> userFollowList(InputUserFollowList in) {
|
|
|
Map<String,Object>map=new HashMap<>();
|
|
Map<String,Object>map=new HashMap<>();
|
|
|
if (in.getUserName()!=null)map.put("userName",in.getUserName());
|
|
if (in.getUserName()!=null)map.put("userName",in.getUserName());
|
|
|
if (in.getContactType()!=null)map.put("contactType",in.getContactType());
|
|
if (in.getContactType()!=null)map.put("contactType",in.getContactType());
|
|
@@ -21,6 +23,6 @@ public class UserFollowServiceImpl extends BaseMybatisDao<UserFollowMapper> imp
|
|
|
if (in.getUserType()!=null)map.put("userType",in.getUserType());
|
|
if (in.getUserType()!=null)map.put("userType",in.getUserType());
|
|
|
if (in.getStartTime()!=null)map.put("startTime",in.getStartTime());
|
|
if (in.getStartTime()!=null)map.put("startTime",in.getStartTime());
|
|
|
if (in.getEndTime()!=null)map.put("endTime",in.getEndTime());
|
|
if (in.getEndTime()!=null)map.put("endTime",in.getEndTime());
|
|
|
- return findPage("userFollowList","userFollowCount",map,in.getPageNo(), in.getPageSize());
|
|
|
|
|
|
|
+ return (Pagination<outUserFollowList>) findPage("userFollowList","userFollowCount",map,in.getPageNo(), in.getPageSize());
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|