|
@ -2,6 +2,7 @@ package com.epmet.service.evaluationindex.extract.dataToIndex.impl; |
|
|
|
|
|
|
|
|
import com.epmet.commons.tools.constant.NumConstant; |
|
|
import com.epmet.commons.tools.constant.NumConstant; |
|
|
import com.epmet.commons.tools.utils.DateUtils; |
|
|
import com.epmet.commons.tools.utils.DateUtils; |
|
|
|
|
|
import com.epmet.dto.indexcollect.result.CpcIndexCommonDTO; |
|
|
import com.epmet.entity.evaluationindex.indexcoll.FactIndexPartyAblityCpcMonthlyEntity; |
|
|
import com.epmet.entity.evaluationindex.indexcoll.FactIndexPartyAblityCpcMonthlyEntity; |
|
|
import com.epmet.service.evaluationindex.extract.dataToIndex.CalCpcIndexService; |
|
|
import com.epmet.service.evaluationindex.extract.dataToIndex.CalCpcIndexService; |
|
|
import com.epmet.service.evaluationindex.extract.todata.*; |
|
|
import com.epmet.service.evaluationindex.extract.todata.*; |
|
@ -158,12 +159,10 @@ public class CalCpcIndexServiceImpl implements CalCpcIndexService { |
|
|
* @Date 2020/9/18 10:59 |
|
|
* @Date 2020/9/18 10:59 |
|
|
**/ |
|
|
**/ |
|
|
private Map<String, Integer> calCreateTopicCount(String customerId, String monthId) { |
|
|
private Map<String, Integer> calCreateTopicCount(String customerId, String monthId) { |
|
|
List<Map<String, Integer>> mapList = factOriginTopicMainDailyService.selectPartyCreateTopicCount(customerId, monthId); |
|
|
List<CpcIndexCommonDTO> list = factOriginTopicMainDailyService.selectPartyCreateTopicCount(customerId, monthId); |
|
|
Map<String, Integer> resultMap = new HashMap<>(); |
|
|
Map<String, Integer> resultMap = new HashMap<>(); |
|
|
for (Map<String, Integer> map : mapList) { |
|
|
for (CpcIndexCommonDTO cpcIndexCommonDTO: list) { |
|
|
for (Map.Entry<String, Integer> m : map.entrySet()) { |
|
|
resultMap.put(cpcIndexCommonDTO.getUserId(), cpcIndexCommonDTO.getIndexValue()); |
|
|
resultMap.put(m.getKey(), m.getValue()); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
return resultMap; |
|
|
return resultMap; |
|
|
} |
|
|
} |
|
@ -177,12 +176,10 @@ public class CalCpcIndexServiceImpl implements CalCpcIndexService { |
|
|
* @Date 2020/9/18 13:33 |
|
|
* @Date 2020/9/18 13:33 |
|
|
**/ |
|
|
**/ |
|
|
private Map<String, Integer> calJoinTopicCount(String customerId, String monthId) { |
|
|
private Map<String, Integer> calJoinTopicCount(String customerId, String monthId) { |
|
|
List<Map<String, Integer>> mapList = factOriginTopicLogDailyService.selectJoinTopicCount(customerId, monthId); |
|
|
List<CpcIndexCommonDTO> list = factOriginTopicLogDailyService.selectJoinTopicCount(customerId, monthId); |
|
|
Map<String, Integer> resultMap = new HashMap<>(); |
|
|
Map<String, Integer> resultMap = new HashMap<>(); |
|
|
for (Map<String, Integer> map : mapList) { |
|
|
for (CpcIndexCommonDTO cpcIndexCommonDTO : list) { |
|
|
for (Map.Entry<String, Integer> m : map.entrySet()) { |
|
|
resultMap.put(cpcIndexCommonDTO.getUserId(), cpcIndexCommonDTO.getIndexValue()); |
|
|
resultMap.put(m.getKey(), m.getValue()); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
return resultMap; |
|
|
return resultMap; |
|
|
} |
|
|
} |
|
@ -197,12 +194,10 @@ public class CalCpcIndexServiceImpl implements CalCpcIndexService { |
|
|
* @Date 2020/9/18 13:53 |
|
|
* @Date 2020/9/18 13:53 |
|
|
**/ |
|
|
**/ |
|
|
private Map<String, Integer> calShiftIssueCount(String customerId, String monthId) { |
|
|
private Map<String, Integer> calShiftIssueCount(String customerId, String monthId) { |
|
|
List<Map<String, Integer>> mapList = issueExtractService.selectShiftIssueCount(customerId, monthId); |
|
|
List<CpcIndexCommonDTO> list = issueExtractService.selectShiftIssueCount(customerId, monthId); |
|
|
Map<String, Integer> resultMap = new HashMap<>(); |
|
|
Map<String, Integer> resultMap = new HashMap<>(); |
|
|
for (Map<String, Integer> map : mapList) { |
|
|
for (CpcIndexCommonDTO cpcIndexCommonDTO : list) { |
|
|
for (Map.Entry<String, Integer> m : map.entrySet()) { |
|
|
resultMap.put(cpcIndexCommonDTO.getUserId(), cpcIndexCommonDTO.getIndexValue()); |
|
|
resultMap.put(m.getKey(), m.getValue()); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
return resultMap; |
|
|
return resultMap; |
|
|
} |
|
|
} |
|
@ -217,12 +212,10 @@ public class CalCpcIndexServiceImpl implements CalCpcIndexService { |
|
|
**/ |
|
|
**/ |
|
|
private Map<String, Integer> calShiftProjectCount(String customerId, String monthId) { |
|
|
private Map<String, Integer> calShiftProjectCount(String customerId, String monthId) { |
|
|
//查询fact_origin_project_main_daily 表 中议题的议题的状态为 shift_
|
|
|
//查询fact_origin_project_main_daily 表 中议题的议题的状态为 shift_
|
|
|
List<Map<String, Integer>> mapList = factOriginProjectMainDailyService.selectShiftProjectCount(customerId, monthId); |
|
|
List<CpcIndexCommonDTO> list = factOriginProjectMainDailyService.selectShiftProjectCount(customerId, monthId); |
|
|
Map<String, Integer> resultMap = new HashMap<>(); |
|
|
Map<String, Integer> resultMap = new HashMap<>(); |
|
|
for (Map<String, Integer> map : mapList) { |
|
|
for (CpcIndexCommonDTO cpcIndexCommonDTO : list) { |
|
|
for (Map.Entry<String, Integer> m : map.entrySet()) { |
|
|
resultMap.put(cpcIndexCommonDTO.getUserId(), cpcIndexCommonDTO.getIndexValue()); |
|
|
resultMap.put(m.getKey(), m.getValue()); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
return resultMap; |
|
|
return resultMap; |
|
|
} |
|
|
} |
|
@ -337,12 +330,10 @@ public class CalCpcIndexServiceImpl implements CalCpcIndexService { |
|
|
数据来源:话题表。 |
|
|
数据来源:话题表。 |
|
|
计算方法:从话题表中统计党员自建群i的话题总数;对所有自建群话题数累加。 |
|
|
计算方法:从话题表中统计党员自建群i的话题总数;对所有自建群话题数累加。 |
|
|
对评价结果的影响:正向。*/ |
|
|
对评价结果的影响:正向。*/ |
|
|
List<Map<String, Integer>> mapList = factOriginTopicLogDailyService.selectGroupTopicCount(customerId, monthId); |
|
|
List<CpcIndexCommonDTO> list = factOriginTopicLogDailyService.selectGroupTopicCount(customerId, monthId); |
|
|
Map<String, Integer> resultMap = new HashMap<>(); |
|
|
Map<String, Integer> resultMap = new HashMap<>(); |
|
|
for (Map<String, Integer> map : mapList) { |
|
|
for (CpcIndexCommonDTO dto : list) { |
|
|
for (Map.Entry<String, Integer> m : map.entrySet()) { |
|
|
resultMap.put(dto.getUserId(), dto.getIndexValue()); |
|
|
resultMap.put(m.getKey(), m.getValue()); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
return resultMap; |
|
|
return resultMap; |
|
|
} |
|
|
} |
|
|