|
@@ -23,11 +23,13 @@ import com.huiju.estateagents.entity.*;
|
23
|
23
|
import com.huiju.estateagents.mapper.*;
|
24
|
24
|
import com.huiju.estateagents.service.*;
|
25
|
25
|
import org.apache.commons.collections.CollectionUtils;
|
|
26
|
+import org.apache.commons.collections.map.HashedMap;
|
26
|
27
|
import org.springframework.beans.factory.annotation.Autowired;
|
27
|
28
|
import org.springframework.stereotype.Service;
|
28
|
29
|
|
29
|
30
|
import java.time.LocalDateTime;
|
30
|
31
|
import java.util.ArrayList;
|
|
32
|
+import java.util.Iterator;
|
31
|
33
|
import java.util.List;
|
32
|
34
|
import java.util.Map;
|
33
|
35
|
import java.util.stream.Collectors;
|
|
@@ -94,6 +96,18 @@ public class TaUserServiceImpl extends ServiceImpl<TaUserMapper, TaUser> impleme
|
94
|
96
|
@Override
|
95
|
97
|
public IPage<Map<String,Object>> getPageList(IPage pg, Integer channelId) {
|
96
|
98
|
List<Map<String,Object>> taUserList = taUserMapper.getPageList(pg, channelId);
|
|
99
|
+
|
|
100
|
+ for (Map map : taUserList){
|
|
101
|
+ if (map.get("orgId") == null){
|
|
102
|
+ map.put("userCount", 0);
|
|
103
|
+ map.put("registeredCount", 0);
|
|
104
|
+ continue;
|
|
105
|
+ }
|
|
106
|
+ Integer userCount = taPersonMapper.selectChannelUserCount(map.get("orgId").toString());
|
|
107
|
+ Integer registeredCount = taPersonMapper.selectChannelRegisteredCount(map.get("orgId").toString());
|
|
108
|
+ map.put("userCount", userCount);
|
|
109
|
+ map.put("registeredCount", registeredCount);
|
|
110
|
+ }
|
97
|
111
|
pg.setRecords(taUserList);
|
98
|
112
|
return pg;
|
99
|
113
|
}
|