|
|
@ -2,6 +2,7 @@ package com.epmet.service.evaluationindex.extract.impl; |
|
|
|
|
|
|
|
import com.epmet.commons.dynamic.datasource.annotation.DataSource; |
|
|
|
import com.epmet.commons.tools.constant.NumConstant; |
|
|
|
import com.epmet.commons.tools.utils.DateUtils; |
|
|
|
import com.epmet.constant.DataSourceConstant; |
|
|
|
import com.epmet.constant.IndexCalConstant; |
|
|
|
import com.epmet.dao.evaluationindex.extract.FactOriginGroupMainDailyDao; |
|
|
@ -62,6 +63,8 @@ public class CalCpcIndexServiceImpl implements CalCpcIndexService { |
|
|
|
log.info("dim_customer_partymember do not any records"); |
|
|
|
return; |
|
|
|
} |
|
|
|
String quarterId= DateUtils.getQuarterId(monthId); |
|
|
|
String yearId=DateUtils.getYearId(monthId); |
|
|
|
//2、删除之前统计过的
|
|
|
|
deleteFactIndexPartyAblityCpcMonthly(customerId, monthId); |
|
|
|
|
|
|
@ -89,6 +92,9 @@ public class CalCpcIndexServiceImpl implements CalCpcIndexService { |
|
|
|
|
|
|
|
//3、计算实际值,更新
|
|
|
|
for (FactIndexPartyAblityCpcMonthlyEntity indexPartyAblityCpcEntity : indexPartyAblityCpcList) { |
|
|
|
indexPartyAblityCpcEntity.setMonthId(monthId); |
|
|
|
indexPartyAblityCpcEntity.setQuarterId(quarterId); |
|
|
|
indexPartyAblityCpcEntity.setYearId(yearId); |
|
|
|
//1、党员提出话题数
|
|
|
|
if (createTopicCountMap.containsKey(indexPartyAblityCpcEntity.getUserId())) { |
|
|
|
indexPartyAblityCpcEntity.setCreateTopicCount(createTopicCountMap.get(indexPartyAblityCpcEntity.getUserId())); |
|
|
|