|
|
|
@ -24,7 +24,6 @@ import java.util.HashMap; |
|
|
|
|
import java.util.List; |
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @className: UserTeamController |
|
|
|
|
* @author: HuRui |
|
|
|
@ -61,29 +60,28 @@ 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("", ""); |
|
|
|
|
today.put("", ""); |
|
|
|
|
today.put("newFriend", ""); |
|
|
|
|
today.put("activeFriend", ""); |
|
|
|
|
active.put("today", today); |
|
|
|
|
|
|
|
|
|
// 昨日
|
|
|
|
|
Map<String,Object> yesterday = new HashMap<>(); |
|
|
|
|
yesterday.put("", ""); |
|
|
|
|
yesterday.put("", ""); |
|
|
|
|
yesterday.put("newFriend", ""); |
|
|
|
|
yesterday.put("activeFriend", ""); |
|
|
|
|
active.put("yesterday", yesterday); |
|
|
|
|
|
|
|
|
|
// 本月
|
|
|
|
|
Map<String,Object> thisMonth = new HashMap<>(); |
|
|
|
|
thisMonth.put("", ""); |
|
|
|
|
thisMonth.put("", ""); |
|
|
|
|
thisMonth.put("newFriend", ""); |
|
|
|
|
thisMonth.put("activeFriend", ""); |
|
|
|
|
active.put("thisMonth", thisMonth); |
|
|
|
|
|
|
|
|
|
// 上月
|
|
|
|
|
Map<String,Object> lastMonth = new HashMap<>(); |
|
|
|
|
lastMonth.put("", ""); |
|
|
|
|
lastMonth.put("", ""); |
|
|
|
|
lastMonth.put("newFriend", ""); |
|
|
|
|
lastMonth.put("activeFriend", ""); |
|
|
|
|
active.put("lastMonth", lastMonth); |
|
|
|
|
|
|
|
|
|
map.put("active", active); |
|
|
|
|