|
|
@ -24,7 +24,6 @@ import java.util.HashMap; |
|
|
|
import java.util.List; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @className: UserTeamController |
|
|
|
* @className: UserTeamController |
|
|
|
* @author: HuRui |
|
|
|
* @author: HuRui |
|
|
@ -61,29 +60,28 @@ public class UserTeamController { |
|
|
|
map.put("teamFriend", subList.stream().filter(o -> o.getRelType().equals(2)).count()); |
|
|
|
map.put("teamFriend", subList.stream().filter(o -> o.getRelType().equals(2)).count()); |
|
|
|
|
|
|
|
|
|
|
|
Map<String,Object> active = new HashMap<>(); |
|
|
|
Map<String,Object> active = new HashMap<>(); |
|
|
|
|
|
|
|
|
|
|
|
// 今日
|
|
|
|
// 今日
|
|
|
|
Map<String,Object> today = new HashMap<>(); |
|
|
|
Map<String,Object> today = new HashMap<>(); |
|
|
|
today.put("", ""); |
|
|
|
today.put("newFriend", ""); |
|
|
|
today.put("", ""); |
|
|
|
today.put("activeFriend", ""); |
|
|
|
active.put("today", today); |
|
|
|
active.put("today", today); |
|
|
|
|
|
|
|
|
|
|
|
// 昨日
|
|
|
|
// 昨日
|
|
|
|
Map<String,Object> yesterday = new HashMap<>(); |
|
|
|
Map<String,Object> yesterday = new HashMap<>(); |
|
|
|
yesterday.put("", ""); |
|
|
|
yesterday.put("newFriend", ""); |
|
|
|
yesterday.put("", ""); |
|
|
|
yesterday.put("activeFriend", ""); |
|
|
|
active.put("yesterday", yesterday); |
|
|
|
active.put("yesterday", yesterday); |
|
|
|
|
|
|
|
|
|
|
|
// 本月
|
|
|
|
// 本月
|
|
|
|
Map<String,Object> thisMonth = new HashMap<>(); |
|
|
|
Map<String,Object> thisMonth = new HashMap<>(); |
|
|
|
thisMonth.put("", ""); |
|
|
|
thisMonth.put("newFriend", ""); |
|
|
|
thisMonth.put("", ""); |
|
|
|
thisMonth.put("activeFriend", ""); |
|
|
|
active.put("thisMonth", thisMonth); |
|
|
|
active.put("thisMonth", thisMonth); |
|
|
|
|
|
|
|
|
|
|
|
// 上月
|
|
|
|
// 上月
|
|
|
|
Map<String,Object> lastMonth = new HashMap<>(); |
|
|
|
Map<String,Object> lastMonth = new HashMap<>(); |
|
|
|
lastMonth.put("", ""); |
|
|
|
lastMonth.put("newFriend", ""); |
|
|
|
lastMonth.put("", ""); |
|
|
|
lastMonth.put("activeFriend", ""); |
|
|
|
active.put("lastMonth", lastMonth); |
|
|
|
active.put("lastMonth", lastMonth); |
|
|
|
|
|
|
|
|
|
|
|
map.put("active", active); |
|
|
|
map.put("active", active); |
|
|
|