|
@@ -1,28 +1,48 @@
|
|
|
package com.goafanti.user.service.impl;
|
|
package com.goafanti.user.service.impl;
|
|
|
|
|
|
|
|
import com.goafanti.common.dao.UserFollowMapper;
|
|
import com.goafanti.common.dao.UserFollowMapper;
|
|
|
|
|
+import com.goafanti.common.utils.excel.NewExcelUtil;
|
|
|
import com.goafanti.core.mybatis.BaseMybatisDao;
|
|
import com.goafanti.core.mybatis.BaseMybatisDao;
|
|
|
import com.goafanti.core.mybatis.page.Pagination;
|
|
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.bo.outUserFollowList;
|
|
|
import com.goafanti.user.service.UserFollowService;
|
|
import com.goafanti.user.service.UserFollowService;
|
|
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.terracotta.offheapstore.HashingMap;
|
|
import org.terracotta.offheapstore.HashingMap;
|
|
|
|
|
|
|
|
import java.util.HashMap;
|
|
import java.util.HashMap;
|
|
|
|
|
+import java.util.List;
|
|
|
import java.util.Map;
|
|
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 Pagination<outUserFollowList> userFollowList(InputUserFollowList in) {
|
|
public Pagination<outUserFollowList> userFollowList(InputUserFollowList in) {
|
|
|
- Map<String,Object>map=new HashMap<>();
|
|
|
|
|
- if (in.getUserName()!=null)map.put("userName",in.getUserName());
|
|
|
|
|
- if (in.getContactType()!=null)map.put("contactType",in.getContactType());
|
|
|
|
|
- if (in.getDateType()!=null)map.put("dateType",in.getDateType());
|
|
|
|
|
- if (in.getUserType()!=null)map.put("userType",in.getUserType());
|
|
|
|
|
- if (in.getStartTime()!=null)map.put("startTime",in.getStartTime());
|
|
|
|
|
- if (in.getEndTime()!=null)map.put("endTime",in.getEndTime());
|
|
|
|
|
|
|
+ Map<String,Object>map=setParam(in);
|
|
|
|
|
+
|
|
|
return (Pagination<outUserFollowList>) findPage("userFollowList","userFollowCount",map,in.getPageNo(), in.getPageSize());
|
|
return (Pagination<outUserFollowList>) findPage("userFollowList","userFollowCount",map,in.getPageNo(), in.getPageSize());
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ private Map<String,Object> setParam(InputUserFollowList in) {
|
|
|
|
|
+ Map<String,Object>map=new HashMap<>();
|
|
|
|
|
+ if (in.getUserName()!=null) map.put("userName", in.getUserName());
|
|
|
|
|
+ if (in.getContactType()!=null) map.put("contactType", in.getContactType());
|
|
|
|
|
+ if (in.getDateType()!=null) map.put("dateType", in.getDateType());
|
|
|
|
|
+ if (in.getUserType()!=null) map.put("userType", in.getUserType());
|
|
|
|
|
+ if (in.getStartTime()!=null) map.put("startTime", in.getStartTime());
|
|
|
|
|
+ if (in.getEndTime()!=null) map.put("endTime", in.getEndTime());
|
|
|
|
|
+ return map;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public List<outUserFollowList> userFollowListExport(InputUserFollowList in) {
|
|
|
|
|
+ Map<String,Object>map=setParam(in);
|
|
|
|
|
+ List<outUserFollowList>list= (List<outUserFollowList>) findList("userFollowList",map,1,999999);
|
|
|
|
|
+
|
|
|
|
|
+ return list;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|