|
|
|
|
60
|
// 最近七天
|
60
|
// 最近七天
|
61
|
Integer selectRecentlyCount = taPersonMapper.selectRecentlyCount(orgId, CommConstant.PERSON_REALTY_CONSULTANT, null, null);
|
61
|
Integer selectRecentlyCount = taPersonMapper.selectRecentlyCount(orgId, CommConstant.PERSON_REALTY_CONSULTANT, null, null);
|
62
|
|
62
|
|
63
|
- // 用户行为
|
|
|
64
|
- List<PersonPO> selectUserBehavior = taPersonMapper.selectUserBehavior(orgId, CommConstant.PERSON_REALTY_CONSULTANT, null, null, null, null, null, null);
|
|
|
65
|
-
|
|
|
66
|
- // 用户活跃数
|
|
|
67
|
- List<Map<String, Object>> selectActiveUserCount = taPersonMapper.selectActiveUserCount(orgId, CommConstant.PERSON_REALTY_CONSULTANT, CommConstant.DAY, null, null);
|
|
|
68
|
-
|
|
|
69
|
- // 新增用户数
|
|
|
70
|
- List<Map<String, Object>> selectNewsUserCount = taPersonMapper.selectNewsUserCount(orgId, CommConstant.PERSON_REALTY_CONSULTANT, null, null);
|
|
|
71
|
-
|
|
|
72
|
- // 性别比例
|
|
|
73
|
- // 1 男 2 女
|
|
|
74
|
- Integer selectSexMale = taPersonMapper.selectSexUser(orgId, CommConstant.SEX_MALE);
|
|
|
75
|
- Integer selectSexFemale = taPersonMapper.selectSexUser(orgId, CommConstant.SEX_FEMALE);
|
|
|
76
|
- Map<String, Object> selectSexMaleMap = new HashMap<>();
|
|
|
77
|
- selectSexMaleMap.put("name", "男");
|
|
|
78
|
- selectSexMaleMap.put("value", selectSexMale);
|
|
|
79
|
- Map<String, Object> selectSexFemaleMap = new HashMap<>();
|
|
|
80
|
- selectSexFemaleMap.put("name", "女");
|
|
|
81
|
- selectSexFemaleMap.put("value", selectSexFemale);
|
|
|
82
|
- List<Map<String, Object>> selectSexUser = new ArrayList<>();
|
|
|
83
|
- selectSexUser.add(selectSexMaleMap);
|
|
|
84
|
- selectSexUser.add(selectSexFemaleMap);
|
|
|
85
|
-
|
|
|
86
|
- // 城市比例
|
|
|
87
|
- List<Map<String, Object>> selectCityUser = taPersonMapper.selectCityUser(orgId);
|
|
|
88
|
-
|
|
|
89
|
- // 转化率, 当前 默认项目收藏
|
|
|
90
|
- Map<String, Object> selectBuildingStatistical = taBuildingMapper.selectBuildingStatistical(orgId, "save");
|
|
|
91
|
-
|
|
|
92
|
- // ------- 用户来源 start ------------
|
|
|
93
|
-
|
|
|
94
|
- // 用户来源 柱状
|
|
|
95
|
- List<Map<String, Object>> mapList = taPersonMapper.selectUserSourceColumnar(orgId, CommConstant.PERSON_REALTY_CONSULTANT, null, null);
|
|
|
96
|
-
|
|
|
97
|
- // 用户来源 饼状
|
|
|
98
|
- // 来源置业顾问, 来源全民经纪人,自由进入
|
|
|
99
|
- Integer person_realty_consultant = taPersonMapper.selectUserSourcePie(orgId, CommConstant.PERSON_REALTY_CONSULTANT, CommConstant.PERSON_REALTY_CONSULTANT);
|
|
|
100
|
- Integer person_estate_agent = taPersonMapper.selectUserSourcePie(orgId, CommConstant.PERSON_ESTATE_AGENT, CommConstant.PERSON_REALTY_CONSULTANT);
|
|
|
101
|
- Integer person_null = taPersonMapper.selectUserSourcePie(orgId, null, CommConstant.PERSON_REALTY_CONSULTANT);
|
|
|
102
|
- Map<String, Object> pieMap = new HashMap<>();
|
|
|
103
|
- pieMap.put("person_realty_consultant", person_realty_consultant);
|
|
|
104
|
- pieMap.put("person_estate_agent", person_estate_agent);
|
|
|
105
|
- pieMap.put("person_null", person_null);
|
|
|
106
|
-
|
|
|
107
|
- Map<String, Object> result = new HashMap<>();
|
|
|
108
|
- result.put("columnar", mapList);
|
|
|
109
|
- result.put("pie", pieMap);
|
|
|
110
|
-
|
|
|
111
|
// ------- 用户来源 end ------------
|
63
|
// ------- 用户来源 end ------------
|
112
|
|
64
|
|
113
|
map.put("selectUserCount", selectUserCount);
|
65
|
map.put("selectUserCount", selectUserCount);
|
114
|
map.put("selectRegisteredCount", selectRegisteredCount);
|
66
|
map.put("selectRegisteredCount", selectRegisteredCount);
|
115
|
map.put("selectRecentlyCount", selectRecentlyCount);
|
67
|
map.put("selectRecentlyCount", selectRecentlyCount);
|
116
|
- map.put("selectUserBehavior", selectUserBehavior);
|
|
|
117
|
- map.put("selectActiveUserCount", selectActiveUserCount);
|
|
|
118
|
- map.put("selectNewsUserCount", selectNewsUserCount);
|
|
|
119
|
- map.put("selectSexUser", selectSexUser);
|
|
|
120
|
- map.put("selectCityUser", selectCityUser);
|
|
|
121
|
- map.put("selectBuildingStatistical", selectBuildingStatistical);
|
|
|
122
|
- map.put("selectUserSource", result);
|
|
|
123
|
|
68
|
|
124
|
responseBean.addSuccess(map);
|
69
|
responseBean.addSuccess(map);
|
125
|
|
70
|
|