魏熙美 5 년 전
부모
커밋
82a9a529e3
1개의 변경된 파일0개의 추가작업 그리고 55개의 파일을 삭제
  1. 0
    55
      src/main/java/com/huiju/estateagents/service/impl/StatisticalServiceImpl.java

+ 0
- 55
src/main/java/com/huiju/estateagents/service/impl/StatisticalServiceImpl.java 파일 보기

@@ -60,66 +60,11 @@ public class StatisticalServiceImpl implements IStatisticalService {
60 60
         // 最近七天
61 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 63
         // -------  用户来源 end ------------
112 64
 
113 65
         map.put("selectUserCount", selectUserCount);
114 66
         map.put("selectRegisteredCount", selectRegisteredCount);
115 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 69
         responseBean.addSuccess(map);
125 70