|
@@ -15,10 +15,7 @@ import org.springframework.stereotype.Service;
|
15
|
15
|
|
16
|
16
|
import java.time.LocalDate;
|
17
|
17
|
import java.time.LocalDateTime;
|
18
|
|
-import java.util.Date;
|
19
|
|
-import java.util.HashMap;
|
20
|
|
-import java.util.List;
|
21
|
|
-import java.util.Map;
|
|
18
|
+import java.util.*;
|
22
|
19
|
|
23
|
20
|
/**
|
24
|
21
|
* 数据统计
|
|
@@ -70,7 +67,18 @@ public class StatisticalServiceImpl implements IStatisticalService {
|
70
|
67
|
List<Map<String, Object>> selectNewsUserCount = taPersonMapper.selectNewsUserCount(CommConstant.PERSON_REALTY_CONSULTANT, null, null);
|
71
|
68
|
|
72
|
69
|
// 性别比例
|
73
|
|
- List<Map<String, Object>> selectSexUser = taPersonMapper.selectSexUser(CommConstant.PERSON_REALTY_CONSULTANT);
|
|
70
|
+ // 1 男 2 女
|
|
71
|
+ Integer selectSexMale = taPersonMapper.selectSexUser(CommConstant.PERSON_REALTY_CONSULTANT, CommConstant.SEX_MALE);
|
|
72
|
+ Integer selectSexFemale = taPersonMapper.selectSexUser(CommConstant.PERSON_REALTY_CONSULTANT, CommConstant.SEX_FEMALE);
|
|
73
|
+ Map<String, Object> selectSexMaleMap = new HashMap<>();
|
|
74
|
+ selectSexMaleMap.put("name", "男");
|
|
75
|
+ selectSexMaleMap.put("value", selectSexMale);
|
|
76
|
+ Map<String, Object> selectSexFemaleMap = new HashMap<>();
|
|
77
|
+ selectSexFemaleMap.put("name", "女");
|
|
78
|
+ selectSexFemaleMap.put("value", selectSexFemale);
|
|
79
|
+ List<Map<String, Object>> selectSexUser = new ArrayList<>();
|
|
80
|
+ selectSexUser.add(selectSexMaleMap);
|
|
81
|
+ selectSexUser.add(selectSexFemaleMap);
|
74
|
82
|
|
75
|
83
|
// 城市比例
|
76
|
84
|
List<Map<String, Object>> selectCityUser = taPersonMapper.selectCityUser(CommConstant.PERSON_REALTY_CONSULTANT);
|