Merge remote-tracking branch 'origin/master'

master
袁野 1 month ago
commit ee0468d95b
  1. 29
      cweb/src/main/java/com/hfkj/controller/UserTeamController.java

@ -59,32 +59,45 @@ public class UserTeamController {
// 团队好友
map.put("teamFriend", subList.stream().filter(o -> o.getRelType().equals(2)).count());
// 活跃情况
Map<String,Object> active = new HashMap<>();
// 今日
Map<String,Object> today = new HashMap<>();
today.put("newFriend", "");
today.put("activeFriend", "");
today.put("newFriend", "0");
today.put("activeFriend", "0");
active.put("today", today);
// 昨日
Map<String,Object> yesterday = new HashMap<>();
yesterday.put("newFriend", "");
yesterday.put("activeFriend", "");
yesterday.put("newFriend", "0");
yesterday.put("activeFriend", "0");
active.put("yesterday", yesterday);
// 本月
Map<String,Object> thisMonth = new HashMap<>();
thisMonth.put("newFriend", "");
thisMonth.put("activeFriend", "");
thisMonth.put("newFriend", "0");
thisMonth.put("activeFriend", "0");
active.put("thisMonth", thisMonth);
// 上月
Map<String,Object> lastMonth = new HashMap<>();
lastMonth.put("newFriend", "");
lastMonth.put("activeFriend", "");
lastMonth.put("newFriend", "0");
lastMonth.put("activeFriend", "0");
active.put("lastMonth", lastMonth);
map.put("active", active);
// 邀请人
if (userSession.getUser().getInviteUserId() != null) {
// 邀请人数据
BsUser inviteUser = userService.getUser(userSession.getUser().getInviteUserId());
if (inviteUser != null) {
inviteUser.setPhone(null);
}
map.put("inviteUser", inviteUser);
} else {
map.put("inviteUser", null);
}
return ResponseMsgUtil.success(map);
} catch (Exception e) {

Loading…
Cancel
Save