|
@@ -216,10 +216,11 @@ public class StatisticalServiceImpl implements IStatisticalService {
|
216
|
216
|
List<Map<String, Object>> mapList = taPersonMapper.selectUserSourceColumnar(orgId, CommConstant.PERSON_REALTY_CONSULTANT, startDate, endDate);
|
217
|
217
|
|
218
|
218
|
// 用户来源饼状
|
219
|
|
- // 来源置业顾问, 来源全民经纪人,自由进入
|
220
|
|
- Integer person_realty_consultant = taPersonMapper.selectUserSourcePie(orgId, CommConstant.PERSON_REALTY_CONSULTANT, CommConstant.PERSON_REALTY_CONSULTANT);
|
221
|
|
- Integer person_estate_agent = taPersonMapper.selectUserSourcePie(orgId, CommConstant.PERSON_ESTATE_AGENT, CommConstant.PERSON_REALTY_CONSULTANT);
|
222
|
|
- Integer person_null = taPersonMapper.selectUserSourcePie(orgId, null, CommConstant.PERSON_REALTY_CONSULTANT);
|
|
219
|
+ // 来源置业顾问, 来源客户,其他
|
|
220
|
+ Integer total = taPersonMapper.selectFromNum(orgId, null) ;
|
|
221
|
+ Integer person_realty_consultant = taPersonMapper.selectFromNum(orgId, CommConstant.PERSON_REALTY_CONSULTANT);
|
|
222
|
+ Integer person_estate_agent = taPersonMapper.selectFromNum(orgId, CommConstant.PERSON_ESTATE_CUSTOMER);
|
|
223
|
+ Integer person_null = total - person_realty_consultant - person_estate_agent;
|
223
|
224
|
Map<String, Object> map = new HashMap<>();
|
224
|
225
|
map.put("person_realty_consultant", person_realty_consultant);
|
225
|
226
|
map.put("person_estate_agent", person_estate_agent);
|