main
parent
c7eaa22d5d
commit
eef6b9d3bd
|
|
@ -296,10 +296,14 @@ public class AppUserServiceImpl implements IAppUserService {
|
||||||
companylList.sort(Comparator.comparingLong(AppUserDataVo::getFansNum).reversed());
|
companylList.sort(Comparator.comparingLong(AppUserDataVo::getFansNum).reversed());
|
||||||
|
|
||||||
// 好友的好友
|
// 好友的好友
|
||||||
|
List<AppUserDataVo> friendList = null;
|
||||||
|
if (ids == null || ids.size() == 0) {
|
||||||
|
friendList = new ArrayList<>();
|
||||||
|
} else {
|
||||||
List<Long> friendIds = appUserFriendMapper.selectByFriendId(ids);
|
List<Long> friendIds = appUserFriendMapper.selectByFriendId(ids);
|
||||||
entity.setFriendIds(friendIds);
|
entity.setFriendIds(friendIds);
|
||||||
entity.setCompanyName(null);
|
entity.setCompanyName(null);
|
||||||
List<AppUserDataVo> friendList = appUserMapper.selectList(entity);
|
friendList = appUserMapper.selectList(entity);
|
||||||
if (friendList == null || friendList.size() == 0) {
|
if (friendList == null || friendList.size() == 0) {
|
||||||
friendList = new ArrayList<>();
|
friendList = new ArrayList<>();
|
||||||
}
|
}
|
||||||
|
|
@ -308,7 +312,7 @@ public class AppUserServiceImpl implements IAppUserService {
|
||||||
friendList = friendList.subList(0, limit);
|
friendList = friendList.subList(0, limit);
|
||||||
}
|
}
|
||||||
friendList.sort(Comparator.comparingLong(AppUserDataVo::getFansNum).reversed());
|
friendList.sort(Comparator.comparingLong(AppUserDataVo::getFansNum).reversed());
|
||||||
|
}
|
||||||
appUserNetVo.setFriendUserList(friendList);
|
appUserNetVo.setFriendUserList(friendList);
|
||||||
appUserNetVo.setSchoolUserList(schoolList);
|
appUserNetVo.setSchoolUserList(schoolList);
|
||||||
appUserNetVo.setCompanyUserList(companylList);
|
appUserNetVo.setCompanyUserList(companylList);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue