|
@@ -52,10 +52,10 @@ public class StatisticalServiceImpl implements IStatisticalService {
|
52
|
52
|
Map<String,Object> map = new HashMap<>();
|
53
|
53
|
|
54
|
54
|
// 总用户数
|
55
|
|
- Integer selectUserCount = taPersonMapper.selectUserCount(orgId, CommConstant.PERSON_REALTY_CONSULTANT);
|
|
55
|
+ Integer selectUserCount = taPersonMapper.selectUserCount(orgId);
|
56
|
56
|
|
57
|
57
|
// 注册数
|
58
|
|
- Integer selectRegisteredCount = taPersonMapper.selectRegisteredCount(orgId, CommConstant.PERSON_REALTY_CONSULTANT);
|
|
58
|
+ Integer selectRegisteredCount = taPersonMapper.selectRegisteredCount(orgId);
|
59
|
59
|
|
60
|
60
|
// 最近七天
|
61
|
61
|
Integer selectRecentlyCount = taPersonMapper.selectRecentlyCount(orgId, CommConstant.PERSON_REALTY_CONSULTANT, null, null);
|
|
@@ -71,8 +71,8 @@ public class StatisticalServiceImpl implements IStatisticalService {
|
71
|
71
|
|
72
|
72
|
// 性别比例
|
73
|
73
|
// 1 男 2 女
|
74
|
|
- Integer selectSexMale = taPersonMapper.selectSexUser(orgId, CommConstant.PERSON_REALTY_CONSULTANT, CommConstant.SEX_MALE);
|
75
|
|
- Integer selectSexFemale = taPersonMapper.selectSexUser(orgId, CommConstant.PERSON_REALTY_CONSULTANT, CommConstant.SEX_FEMALE);
|
|
74
|
+ Integer selectSexMale = taPersonMapper.selectSexUser(orgId, CommConstant.SEX_MALE);
|
|
75
|
+ Integer selectSexFemale = taPersonMapper.selectSexUser(orgId, CommConstant.SEX_FEMALE);
|
76
|
76
|
Map<String, Object> selectSexMaleMap = new HashMap<>();
|
77
|
77
|
selectSexMaleMap.put("name", "男");
|
78
|
78
|
selectSexMaleMap.put("value", selectSexMale);
|
|
@@ -84,7 +84,7 @@ public class StatisticalServiceImpl implements IStatisticalService {
|
84
|
84
|
selectSexUser.add(selectSexFemaleMap);
|
85
|
85
|
|
86
|
86
|
// 城市比例
|
87
|
|
- List<Map<String, Object>> selectCityUser = taPersonMapper.selectCityUser(orgId, CommConstant.PERSON_REALTY_CONSULTANT);
|
|
87
|
+ List<Map<String, Object>> selectCityUser = taPersonMapper.selectCityUser(orgId);
|
88
|
88
|
|
89
|
89
|
// 转化率, 当前 默认项目收藏
|
90
|
90
|
Map<String, Object> selectBuildingStatistical = taBuildingMapper.selectBuildingStatistical(orgId, "save");
|
|
@@ -235,10 +235,10 @@ public class StatisticalServiceImpl implements IStatisticalService {
|
235
|
235
|
|
236
|
236
|
case CommConstant.AUTHORIZATION_PHONE:
|
237
|
237
|
// 总用户数
|
238
|
|
- Integer selectUserCount = taPersonMapper.selectUserCount(orgId, CommConstant.PERSON_REALTY_CONSULTANT);
|
|
238
|
+ Integer selectUserCount = taPersonMapper.selectUserCount(orgId);
|
239
|
239
|
|
240
|
240
|
// 注册数
|
241
|
|
- Integer selectRegisteredCount = taPersonMapper.selectRegisteredCount(orgId, CommConstant.PERSON_REALTY_CONSULTANT);
|
|
241
|
+ Integer selectRegisteredCount = taPersonMapper.selectRegisteredCount(orgId);
|
242
|
242
|
Map<String, Object> userMap = new HashMap<>();
|
243
|
243
|
userMap.put("pvNum", selectUserCount);
|
244
|
244
|
userMap.put("registeredCount", selectRegisteredCount);
|
|
@@ -284,7 +284,7 @@ public class StatisticalServiceImpl implements IStatisticalService {
|
284
|
284
|
public ResponseBean selectUserCount(Integer orgId) {
|
285
|
285
|
ResponseBean responseBean = new ResponseBean();
|
286
|
286
|
// 总用户数
|
287
|
|
- Integer selectUserCount = taPersonMapper.selectUserCount(orgId, CommConstant.PERSON_REALTY_CONSULTANT);
|
|
287
|
+ Integer selectUserCount = taPersonMapper.selectUserCount(orgId);
|
288
|
288
|
Map<String, Object> map = new HashMap<>();
|
289
|
289
|
map.put("selectUserCount", selectUserCount);
|
290
|
290
|
responseBean.addSuccess(map);
|
|
@@ -295,7 +295,7 @@ public class StatisticalServiceImpl implements IStatisticalService {
|
295
|
295
|
public ResponseBean selectRegisteredCount(Integer orgId) {
|
296
|
296
|
ResponseBean responseBean = new ResponseBean();
|
297
|
297
|
// 注册数
|
298
|
|
- Integer selectRegisteredCount = taPersonMapper.selectRegisteredCount(orgId, CommConstant.PERSON_REALTY_CONSULTANT);
|
|
298
|
+ Integer selectRegisteredCount = taPersonMapper.selectRegisteredCount(orgId);
|
299
|
299
|
Map<String, Object> map = new HashMap<>();
|
300
|
300
|
map.put("selectRegisteredCount", selectRegisteredCount);
|
301
|
301
|
responseBean.addSuccess(map);
|
|
@@ -319,8 +319,8 @@ public class StatisticalServiceImpl implements IStatisticalService {
|
319
|
319
|
|
320
|
320
|
// 性别比例
|
321
|
321
|
// 1 男 2 女
|
322
|
|
- Integer selectSexMale = taPersonMapper.selectSexUser(orgId, CommConstant.PERSON_REALTY_CONSULTANT, CommConstant.SEX_MALE);
|
323
|
|
- Integer selectSexFemale = taPersonMapper.selectSexUser(orgId, CommConstant.PERSON_REALTY_CONSULTANT, CommConstant.SEX_FEMALE);
|
|
322
|
+ Integer selectSexMale = taPersonMapper.selectSexUser(orgId, CommConstant.SEX_MALE);
|
|
323
|
+ Integer selectSexFemale = taPersonMapper.selectSexUser(orgId, CommConstant.SEX_FEMALE);
|
324
|
324
|
Map<String, Object> selectSexMaleMap = new HashMap<>();
|
325
|
325
|
selectSexMaleMap.put("name", "男");
|
326
|
326
|
selectSexMaleMap.put("value", selectSexMale);
|
|
@@ -342,7 +342,7 @@ public class StatisticalServiceImpl implements IStatisticalService {
|
342
|
342
|
ResponseBean responseBean = new ResponseBean();
|
343
|
343
|
|
344
|
344
|
// 城市比例
|
345
|
|
- List<Map<String, Object>> selectCityUser = taPersonMapper.selectCityUser(orgId, CommConstant.PERSON_REALTY_CONSULTANT);
|
|
345
|
+ List<Map<String, Object>> selectCityUser = taPersonMapper.selectCityUser(orgId);
|
346
|
346
|
Map<String, Object> map = new HashMap<>();
|
347
|
347
|
map.put("selectCityUser", selectCityUser);
|
348
|
348
|
responseBean.addSuccess(map);
|