|
@@ -46,33 +46,33 @@ public class StatisticalServiceImpl implements IStatisticalService {
|
46
|
46
|
|
47
|
47
|
|
48
|
48
|
@Override
|
49
|
|
- public ResponseBean indexStatistical() {
|
|
49
|
+ public ResponseBean indexStatistical(Integer orgId) {
|
50
|
50
|
|
51
|
51
|
ResponseBean responseBean = new ResponseBean();
|
52
|
52
|
Map<String,Object> map = new HashMap<>();
|
53
|
53
|
|
54
|
54
|
// 总用户数
|
55
|
|
- Integer selectUserCount = taPersonMapper.selectUserCount(CommConstant.PERSON_REALTY_CONSULTANT);
|
|
55
|
+ Integer selectUserCount = taPersonMapper.selectUserCount(orgId, CommConstant.PERSON_REALTY_CONSULTANT);
|
56
|
56
|
|
57
|
57
|
// 注册数
|
58
|
|
- Integer selectRegisteredCount = taPersonMapper.selectRegisteredCount(CommConstant.PERSON_REALTY_CONSULTANT);
|
|
58
|
+ Integer selectRegisteredCount = taPersonMapper.selectRegisteredCount(orgId, CommConstant.PERSON_REALTY_CONSULTANT);
|
59
|
59
|
|
60
|
60
|
// 最近七天
|
61
|
|
- Integer selectRecentlyCount = taPersonMapper.selectRecentlyCount(CommConstant.PERSON_REALTY_CONSULTANT, null, null);
|
|
61
|
+ Integer selectRecentlyCount = taPersonMapper.selectRecentlyCount(orgId, CommConstant.PERSON_REALTY_CONSULTANT, null, null);
|
62
|
62
|
|
63
|
63
|
// 用户行为
|
64
|
|
- List<PersonPO> selectUserBehavior = taPersonMapper.selectUserBehavior(CommConstant.PERSON_REALTY_CONSULTANT, null, null, null, null, null, null);
|
|
64
|
+ List<PersonPO> selectUserBehavior = taPersonMapper.selectUserBehavior(orgId, CommConstant.PERSON_REALTY_CONSULTANT, null, null, null, null, null, null);
|
65
|
65
|
|
66
|
66
|
// 用户活跃数
|
67
|
|
- List<Map<String, Object>> selectActiveUserCount = taPersonMapper.selectActiveUserCount(CommConstant.PERSON_REALTY_CONSULTANT, CommConstant.DAY, null, null);
|
|
67
|
+ List<Map<String, Object>> selectActiveUserCount = taPersonMapper.selectActiveUserCount(orgId, CommConstant.PERSON_REALTY_CONSULTANT, CommConstant.DAY, null, null);
|
68
|
68
|
|
69
|
69
|
// 新增用户数
|
70
|
|
- List<Map<String, Object>> selectNewsUserCount = taPersonMapper.selectNewsUserCount(CommConstant.PERSON_REALTY_CONSULTANT, null, null);
|
|
70
|
+ List<Map<String, Object>> selectNewsUserCount = taPersonMapper.selectNewsUserCount(orgId, CommConstant.PERSON_REALTY_CONSULTANT, null, null);
|
71
|
71
|
|
72
|
72
|
// 性别比例
|
73
|
73
|
// 1 男 2 女
|
74
|
|
- Integer selectSexMale = taPersonMapper.selectSexUser(CommConstant.PERSON_REALTY_CONSULTANT, CommConstant.SEX_MALE);
|
75
|
|
- Integer selectSexFemale = taPersonMapper.selectSexUser(CommConstant.PERSON_REALTY_CONSULTANT, CommConstant.SEX_FEMALE);
|
|
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);
|
76
|
76
|
Map<String, Object> selectSexMaleMap = new HashMap<>();
|
77
|
77
|
selectSexMaleMap.put("name", "男");
|
78
|
78
|
selectSexMaleMap.put("value", selectSexMale);
|
|
@@ -84,21 +84,21 @@ public class StatisticalServiceImpl implements IStatisticalService {
|
84
|
84
|
selectSexUser.add(selectSexFemaleMap);
|
85
|
85
|
|
86
|
86
|
// 城市比例
|
87
|
|
- List<Map<String, Object>> selectCityUser = taPersonMapper.selectCityUser(CommConstant.PERSON_REALTY_CONSULTANT);
|
|
87
|
+ List<Map<String, Object>> selectCityUser = taPersonMapper.selectCityUser(orgId, CommConstant.PERSON_REALTY_CONSULTANT);
|
88
|
88
|
|
89
|
89
|
// 转化率, 当前 默认项目收藏
|
90
|
|
- Map<String, Object> selectBuildingStatistical = taBuildingMapper.selectBuildingStatistical("save");
|
|
90
|
+ Map<String, Object> selectBuildingStatistical = taBuildingMapper.selectBuildingStatistical(orgId, "save");
|
91
|
91
|
|
92
|
92
|
// ------- 用户来源 start ------------
|
93
|
93
|
|
94
|
94
|
// 用户来源 柱状
|
95
|
|
- List<Map<String, Object>> mapList = taPersonMapper.selectUserSourceColumnar(CommConstant.PERSON_REALTY_CONSULTANT, null, null);
|
|
95
|
+ List<Map<String, Object>> mapList = taPersonMapper.selectUserSourceColumnar(orgId, CommConstant.PERSON_REALTY_CONSULTANT, null, null);
|
96
|
96
|
|
97
|
97
|
// 用户来源 饼状
|
98
|
98
|
// 来源置业顾问, 来源全民经纪人,自由进入
|
99
|
|
- Integer person_realty_consultant = taPersonMapper.selectUserSourcePie(CommConstant.PERSON_REALTY_CONSULTANT, CommConstant.PERSON_REALTY_CONSULTANT);
|
100
|
|
- Integer person_estate_agent = taPersonMapper.selectUserSourcePie(CommConstant.PERSON_ESTATE_AGENT, CommConstant.PERSON_REALTY_CONSULTANT);
|
101
|
|
- Integer person_null = taPersonMapper.selectUserSourcePie(null, CommConstant.PERSON_REALTY_CONSULTANT);
|
|
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
|
102
|
Map<String, Object> pieMap = new HashMap<>();
|
103
|
103
|
pieMap.put("person_realty_consultant", person_realty_consultant);
|
104
|
104
|
pieMap.put("person_estate_agent", person_estate_agent);
|
|
@@ -127,7 +127,7 @@ public class StatisticalServiceImpl implements IStatisticalService {
|
127
|
127
|
}
|
128
|
128
|
|
129
|
129
|
@Override
|
130
|
|
- public ResponseBean selectActiveUserCount(String dateType, LocalDate startDate, LocalDate endDate) {
|
|
130
|
+ public ResponseBean selectActiveUserCount(Integer orgId, String dateType, LocalDate startDate, LocalDate endDate) {
|
131
|
131
|
ResponseBean responseBean = new ResponseBean();
|
132
|
132
|
|
133
|
133
|
String type = null;
|
|
@@ -142,7 +142,7 @@ public class StatisticalServiceImpl implements IStatisticalService {
|
142
|
142
|
}
|
143
|
143
|
|
144
|
144
|
// 用户活跃数
|
145
|
|
- List<Map<String, Object>> selectActiveUserCount = taPersonMapper.selectActiveUserCount(CommConstant.PERSON_REALTY_CONSULTANT, type, null, null);
|
|
145
|
+ List<Map<String, Object>> selectActiveUserCount = taPersonMapper.selectActiveUserCount(orgId, CommConstant.PERSON_REALTY_CONSULTANT, type, null, null);
|
146
|
146
|
Map<String, Object> map = new HashMap<>();
|
147
|
147
|
map.put("selectActiveUserCount", selectActiveUserCount);
|
148
|
148
|
responseBean.addSuccess(map);
|
|
@@ -150,11 +150,11 @@ public class StatisticalServiceImpl implements IStatisticalService {
|
150
|
150
|
}
|
151
|
151
|
|
152
|
152
|
@Override
|
153
|
|
- public ResponseBean selectNewsUserCount(LocalDate startDate, LocalDate endDate) {
|
|
153
|
+ public ResponseBean selectNewsUserCount(Integer orgId, LocalDate startDate, LocalDate endDate) {
|
154
|
154
|
ResponseBean responseBean = new ResponseBean();
|
155
|
155
|
|
156
|
156
|
// 新增用户数
|
157
|
|
- List<Map<String, Object>> selectNewsUserCount = taPersonMapper.selectNewsUserCount(CommConstant.PERSON_REALTY_CONSULTANT, startDate, endDate);
|
|
157
|
+ List<Map<String, Object>> selectNewsUserCount = taPersonMapper.selectNewsUserCount(orgId, CommConstant.PERSON_REALTY_CONSULTANT, startDate, endDate);
|
158
|
158
|
|
159
|
159
|
Map<String, Object> map = new HashMap<>();
|
160
|
160
|
map.put("selectNewsUserCount", selectNewsUserCount);
|
|
@@ -165,6 +165,7 @@ public class StatisticalServiceImpl implements IStatisticalService {
|
165
|
165
|
@Override
|
166
|
166
|
public ResponseBean selectUserBehavior(Integer pageNum,
|
167
|
167
|
Integer pageSize,
|
|
168
|
+ Integer orgId,
|
168
|
169
|
LocalDate startDate,
|
169
|
170
|
LocalDate endDate,
|
170
|
171
|
String buildingId,
|
|
@@ -174,7 +175,7 @@ public class StatisticalServiceImpl implements IStatisticalService {
|
174
|
175
|
ResponseBean responseBean = new ResponseBean();
|
175
|
176
|
|
176
|
177
|
// 用户行为
|
177
|
|
- List<PersonPO> selectUserBehavior = taPersonMapper.selectUserBehavior(CommConstant.PERSON_REALTY_CONSULTANT, startDate, endDate, buildingId, eventType, event, activity);
|
|
178
|
+ List<PersonPO> selectUserBehavior = taPersonMapper.selectUserBehavior(orgId, CommConstant.PERSON_REALTY_CONSULTANT, startDate, endDate, buildingId, eventType, event, activity);
|
178
|
179
|
|
179
|
180
|
IPage<TaPersonVisitRecord> page = new Page<>(pageNum, pageSize);
|
180
|
181
|
IPage<TaPersonVisitRecord> visitRecordIPage = taPersonVisitRecordMapper.selectAll(page, startDate, endDate, buildingId, eventType, event, activity);
|
|
@@ -187,7 +188,7 @@ public class StatisticalServiceImpl implements IStatisticalService {
|
187
|
188
|
}
|
188
|
189
|
|
189
|
190
|
@Override
|
190
|
|
- public ResponseBean selectEventAll(String event, String personId) {
|
|
191
|
+ public ResponseBean selectEventAll(Integer orgId, String event, String personId) {
|
191
|
192
|
ResponseBean responseBean = new ResponseBean();
|
192
|
193
|
|
193
|
194
|
List<TaPersonVisitRecord> taPersonVisitRecords = taPersonVisitRecordMapper.selectEventAll(event, personId);
|
|
@@ -196,48 +197,48 @@ public class StatisticalServiceImpl implements IStatisticalService {
|
196
|
197
|
}
|
197
|
198
|
|
198
|
199
|
@Override
|
199
|
|
- public ResponseBean selectConversion(String conversion) {
|
|
200
|
+ public ResponseBean selectConversion(Integer orgId, String conversion) {
|
200
|
201
|
ResponseBean responseBean = new ResponseBean();
|
201
|
202
|
Map<String, Object> result = new HashMap<>();
|
202
|
203
|
|
203
|
204
|
switch (conversion) {
|
204
|
205
|
case CommConstant.BUILDING_SAVE:
|
205
|
|
- Map<String, Object> selectBuildingStatisticalSave = taBuildingMapper.selectBuildingStatistical("save");
|
|
206
|
+ Map<String, Object> selectBuildingStatisticalSave = taBuildingMapper.selectBuildingStatistical(orgId, "save");
|
206
|
207
|
result.put("data_count", selectBuildingStatisticalSave);
|
207
|
208
|
break;
|
208
|
209
|
case CommConstant.BUILDING_SHARE:
|
209
|
|
- Map<String, Object> selectBuildingStatisticalShare = taBuildingMapper.selectBuildingStatistical("share");
|
|
210
|
+ Map<String, Object> selectBuildingStatisticalShare = taBuildingMapper.selectBuildingStatistical(orgId,"share");
|
210
|
211
|
result.put("data_count", selectBuildingStatisticalShare);
|
211
|
212
|
break;
|
212
|
213
|
case CommConstant.ACTIVITY_SAVE:
|
213
|
|
- Map<String, Object> selectBuildingDynamicStatisticalSave = taBuildingDynamicMapper.selectBuildingDynamicStatistical("save");
|
|
214
|
+ Map<String, Object> selectBuildingDynamicStatisticalSave = taBuildingDynamicMapper.selectBuildingDynamicStatistical(orgId, "save");
|
214
|
215
|
result.put("data_count", selectBuildingDynamicStatisticalSave);
|
215
|
216
|
break;
|
216
|
217
|
case CommConstant.ACTIVITY_SHARE:
|
217
|
|
- Map<String, Object> selectBuildingDynamicStatisticalShare = taBuildingDynamicMapper.selectBuildingDynamicStatistical("share");
|
|
218
|
+ Map<String, Object> selectBuildingDynamicStatisticalShare = taBuildingDynamicMapper.selectBuildingDynamicStatistical(orgId, "share");
|
218
|
219
|
result.put("data_count", selectBuildingDynamicStatisticalShare);
|
219
|
220
|
break;
|
220
|
221
|
case CommConstant.NEWS_SAVE:
|
221
|
|
- Map<String, Object> selectNewsStatisticalSave = taNewsMapper.selectNewsStatistical("save");
|
|
222
|
+ Map<String, Object> selectNewsStatisticalSave = taNewsMapper.selectNewsStatistical(orgId, "save");
|
222
|
223
|
result.put("data_count", selectNewsStatisticalSave);
|
223
|
224
|
break;
|
224
|
225
|
|
225
|
226
|
case CommConstant.NEWS_SHARE:
|
226
|
|
- Map<String, Object> selectNewsStatisticalShare = taNewsMapper.selectNewsStatistical("share");
|
|
227
|
+ Map<String, Object> selectNewsStatisticalShare = taNewsMapper.selectNewsStatistical(orgId, "share");
|
227
|
228
|
result.put("data_count", selectNewsStatisticalShare);
|
228
|
229
|
break;
|
229
|
230
|
|
230
|
231
|
case CommConstant.ACTIVITY_SIGN:
|
231
|
|
- Map<String, Object> selectBuildingDynamicEnlistStatistical = taBuildingDynamicMapper.selectBuildingDynamicEnlistStatistical();
|
|
232
|
+ Map<String, Object> selectBuildingDynamicEnlistStatistical = taBuildingDynamicMapper.selectBuildingDynamicEnlistStatistical(orgId);
|
232
|
233
|
result.put("data_count", selectBuildingDynamicEnlistStatistical);
|
233
|
234
|
break;
|
234
|
235
|
|
235
|
236
|
case CommConstant.AUTHORIZATION_PHONE:
|
236
|
237
|
// 总用户数
|
237
|
|
- Integer selectUserCount = taPersonMapper.selectUserCount(CommConstant.PERSON_REALTY_CONSULTANT);
|
|
238
|
+ Integer selectUserCount = taPersonMapper.selectUserCount(orgId, CommConstant.PERSON_REALTY_CONSULTANT);
|
238
|
239
|
|
239
|
240
|
// 注册数
|
240
|
|
- Integer selectRegisteredCount = taPersonMapper.selectRegisteredCount(CommConstant.PERSON_REALTY_CONSULTANT);
|
|
241
|
+ Integer selectRegisteredCount = taPersonMapper.selectRegisteredCount(orgId, CommConstant.PERSON_REALTY_CONSULTANT);
|
241
|
242
|
Map<String, Object> userMap = new HashMap<>();
|
242
|
243
|
userMap.put("pvNum", selectUserCount);
|
243
|
244
|
userMap.put("registeredCount", selectRegisteredCount);
|
|
@@ -251,23 +252,23 @@ public class StatisticalServiceImpl implements IStatisticalService {
|
251
|
252
|
|
252
|
253
|
|
253
|
254
|
@Override
|
254
|
|
- public ResponseBean selectUserResource(LocalDate startDate, LocalDate endDate) {
|
|
255
|
+ public ResponseBean selectUserResource(Integer orgId, LocalDate startDate, LocalDate endDate) {
|
255
|
256
|
ResponseBean responseBean = new ResponseBean();
|
256
|
257
|
// 用户来源 柱状
|
257
|
|
- List<Map<String, Object>> mapList = taPersonMapper.selectUserSourceColumnar(CommConstant.PERSON_REALTY_CONSULTANT, startDate, endDate);
|
|
258
|
+ List<Map<String, Object>> mapList = taPersonMapper.selectUserSourceColumnar(orgId, CommConstant.PERSON_REALTY_CONSULTANT, startDate, endDate);
|
258
|
259
|
|
259
|
260
|
// 用户来源饼状
|
260
|
261
|
// 来源置业顾问, 来源全民经纪人,自由进入
|
261
|
|
- Integer person_realty_consultant = taPersonMapper.selectUserSourcePie(CommConstant.PERSON_REALTY_CONSULTANT, CommConstant.PERSON_REALTY_CONSULTANT);
|
262
|
|
- Integer person_estate_agent = taPersonMapper.selectUserSourcePie(CommConstant.PERSON_ESTATE_AGENT, CommConstant.PERSON_REALTY_CONSULTANT);
|
263
|
|
- Integer person_null = taPersonMapper.selectUserSourcePie(null, CommConstant.PERSON_REALTY_CONSULTANT);
|
|
262
|
+ Integer person_realty_consultant = taPersonMapper.selectUserSourcePie(orgId, CommConstant.PERSON_REALTY_CONSULTANT, CommConstant.PERSON_REALTY_CONSULTANT);
|
|
263
|
+ Integer person_estate_agent = taPersonMapper.selectUserSourcePie(orgId, CommConstant.PERSON_ESTATE_AGENT, CommConstant.PERSON_REALTY_CONSULTANT);
|
|
264
|
+ Integer person_null = taPersonMapper.selectUserSourcePie(orgId, null, CommConstant.PERSON_REALTY_CONSULTANT);
|
264
|
265
|
Map<String, Object> map = new HashMap<>();
|
265
|
266
|
map.put("person_realty_consultant", person_realty_consultant);
|
266
|
267
|
map.put("person_estate_agent", person_estate_agent);
|
267
|
268
|
map.put("person_null", person_null);
|
268
|
269
|
|
269
|
270
|
// 用户来源 数据列表
|
270
|
|
- List<Map<String, Object>> selectUserSourceData = taPersonMapper.selectUserSourceData(CommConstant.PERSON_ESTATE_AGENT, startDate, endDate);
|
|
271
|
+ List<Map<String, Object>> selectUserSourceData = taPersonMapper.selectUserSourceData(orgId, CommConstant.PERSON_ESTATE_AGENT, startDate, endDate);
|
271
|
272
|
|
272
|
273
|
Map<String, Object> result = new HashMap<>();
|
273
|
274
|
result.put("columnar", mapList);
|
|
@@ -280,10 +281,10 @@ public class StatisticalServiceImpl implements IStatisticalService {
|
280
|
281
|
|
281
|
282
|
|
282
|
283
|
@Override
|
283
|
|
- public ResponseBean selectUserCount() {
|
|
284
|
+ public ResponseBean selectUserCount(Integer orgId) {
|
284
|
285
|
ResponseBean responseBean = new ResponseBean();
|
285
|
286
|
// 总用户数
|
286
|
|
- Integer selectUserCount = taPersonMapper.selectUserCount(CommConstant.PERSON_REALTY_CONSULTANT);
|
|
287
|
+ Integer selectUserCount = taPersonMapper.selectUserCount(orgId, CommConstant.PERSON_REALTY_CONSULTANT);
|
287
|
288
|
Map<String, Object> map = new HashMap<>();
|
288
|
289
|
map.put("selectUserCount", selectUserCount);
|
289
|
290
|
responseBean.addSuccess(map);
|
|
@@ -291,10 +292,10 @@ public class StatisticalServiceImpl implements IStatisticalService {
|
291
|
292
|
}
|
292
|
293
|
|
293
|
294
|
@Override
|
294
|
|
- public ResponseBean selectRegisteredCount() {
|
|
295
|
+ public ResponseBean selectRegisteredCount(Integer orgId) {
|
295
|
296
|
ResponseBean responseBean = new ResponseBean();
|
296
|
297
|
// 注册数
|
297
|
|
- Integer selectRegisteredCount = taPersonMapper.selectRegisteredCount(CommConstant.PERSON_REALTY_CONSULTANT);
|
|
298
|
+ Integer selectRegisteredCount = taPersonMapper.selectRegisteredCount(orgId, CommConstant.PERSON_REALTY_CONSULTANT);
|
298
|
299
|
Map<String, Object> map = new HashMap<>();
|
299
|
300
|
map.put("selectRegisteredCount", selectRegisteredCount);
|
300
|
301
|
responseBean.addSuccess(map);
|
|
@@ -302,10 +303,10 @@ public class StatisticalServiceImpl implements IStatisticalService {
|
302
|
303
|
}
|
303
|
304
|
|
304
|
305
|
@Override
|
305
|
|
- public ResponseBean selectRecentlyCount(LocalDate startDate, LocalDate endDate) {
|
|
306
|
+ public ResponseBean selectRecentlyCount(Integer orgId, LocalDate startDate, LocalDate endDate) {
|
306
|
307
|
ResponseBean responseBean = new ResponseBean();
|
307
|
308
|
// 最近七天
|
308
|
|
- Integer selectRecentlyCount = taPersonMapper.selectRecentlyCount(CommConstant.PERSON_REALTY_CONSULTANT, startDate, endDate);
|
|
309
|
+ Integer selectRecentlyCount = taPersonMapper.selectRecentlyCount(orgId, CommConstant.PERSON_REALTY_CONSULTANT, startDate, endDate);
|
309
|
310
|
Map<String, Object> map = new HashMap<>();
|
310
|
311
|
map.put("selectRecentlyCount", selectRecentlyCount);
|
311
|
312
|
responseBean.addSuccess(map);
|
|
@@ -313,13 +314,13 @@ public class StatisticalServiceImpl implements IStatisticalService {
|
313
|
314
|
}
|
314
|
315
|
|
315
|
316
|
@Override
|
316
|
|
- public ResponseBean selectSexUser() {
|
|
317
|
+ public ResponseBean selectSexUser(Integer orgId) {
|
317
|
318
|
ResponseBean responseBean = new ResponseBean();
|
318
|
319
|
|
319
|
320
|
// 性别比例
|
320
|
321
|
// 1 男 2 女
|
321
|
|
- Integer selectSexMale = taPersonMapper.selectSexUser(CommConstant.PERSON_REALTY_CONSULTANT, CommConstant.SEX_MALE);
|
322
|
|
- Integer selectSexFemale = taPersonMapper.selectSexUser(CommConstant.PERSON_REALTY_CONSULTANT, CommConstant.SEX_FEMALE);
|
|
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);
|
323
|
324
|
Map<String, Object> selectSexMaleMap = new HashMap<>();
|
324
|
325
|
selectSexMaleMap.put("name", "男");
|
325
|
326
|
selectSexMaleMap.put("value", selectSexMale);
|
|
@@ -337,11 +338,11 @@ public class StatisticalServiceImpl implements IStatisticalService {
|
337
|
338
|
}
|
338
|
339
|
|
339
|
340
|
@Override
|
340
|
|
- public ResponseBean selectCityUser() {
|
|
341
|
+ public ResponseBean selectCityUser(Integer orgId) {
|
341
|
342
|
ResponseBean responseBean = new ResponseBean();
|
342
|
343
|
|
343
|
344
|
// 城市比例
|
344
|
|
- List<Map<String, Object>> selectCityUser = taPersonMapper.selectCityUser(CommConstant.PERSON_REALTY_CONSULTANT);
|
|
345
|
+ List<Map<String, Object>> selectCityUser = taPersonMapper.selectCityUser(orgId, CommConstant.PERSON_REALTY_CONSULTANT);
|
345
|
346
|
Map<String, Object> map = new HashMap<>();
|
346
|
347
|
map.put("selectCityUser", selectCityUser);
|
347
|
348
|
responseBean.addSuccess(map);
|
|
@@ -349,11 +350,11 @@ public class StatisticalServiceImpl implements IStatisticalService {
|
349
|
350
|
}
|
350
|
351
|
|
351
|
352
|
@Override
|
352
|
|
- public ResponseBean selectIntentionUser(Integer pageNum, Integer pageSize, String buildingId) {
|
|
353
|
+ public ResponseBean selectIntentionUser(Integer pageNum, Integer pageSize, Integer orgId, String buildingId) {
|
353
|
354
|
ResponseBean responseBean = new ResponseBean();
|
354
|
355
|
|
355
|
356
|
IPage<Map<String,Object>> pg = new Page<>(pageNum, pageSize);
|
356
|
|
- IPage<Map<String, Object>> page = taPersonIntentionRecordMapper.selectIntentionUser(pg, buildingId);
|
|
357
|
+ IPage<Map<String, Object>> page = taPersonIntentionRecordMapper.selectIntentionUser(pg, orgId, buildingId);
|
357
|
358
|
|
358
|
359
|
responseBean.addSuccess(page);
|
359
|
360
|
return responseBean;
|