|
|
@ -1,4 +1,4 @@ |
|
|
|
package com.epmet.service.screen.impl; |
|
|
|
package com.epmet.service.indexcal.impl; |
|
|
|
|
|
|
|
import com.alibaba.druid.util.StringUtils; |
|
|
|
import com.epmet.commons.tools.constant.NumConstant; |
|
|
@ -13,8 +13,8 @@ import com.epmet.dto.screen.FactIndexCommunityScoreDTO; |
|
|
|
import com.epmet.dto.screen.result.*; |
|
|
|
import com.epmet.entity.screen.IndexGroupDetailEntity; |
|
|
|
import com.epmet.eum.IndexCodeEnum; |
|
|
|
import com.epmet.service.indexcal.IndexCalculateCommunityService; |
|
|
|
import com.epmet.service.indexcal.IndexCodeFieldReService; |
|
|
|
import com.epmet.service.screen.IndexCalculateCommunityService; |
|
|
|
import com.epmet.service.screen.IndexGroupDetailService; |
|
|
|
import com.epmet.support.normalizing.*; |
|
|
|
import com.epmet.support.normalizing.batch.BatchScoreCalculator; |
|
|
@ -93,7 +93,7 @@ public class IndexCalculateCommunityServiceImpl implements IndexCalculateCommuni |
|
|
|
}); |
|
|
|
} else { |
|
|
|
// 社区名义发文数量
|
|
|
|
List<Map<String, Object>> mapList = factIndexPartyAblityOrgMonthlyDao.selectPublishArticleCountMap(customerId, monthId); |
|
|
|
List<Map<String, Object>> mapList = factIndexPartyAblityOrgMonthlyDao.selectPublishArticleCountMap(customerId, monthId,IndexCalConstant.COMMUNITY_LEVEL); |
|
|
|
if (CollectionUtils.isEmpty(mapList)) { |
|
|
|
log.error("查询社区名义发文数量集合为空"); |
|
|
|
return; |
|
|
@ -160,7 +160,7 @@ public class IndexCalculateCommunityServiceImpl implements IndexCalculateCommuni |
|
|
|
}); |
|
|
|
} |
|
|
|
} else { |
|
|
|
List<Map<String, Object>> communityGovernAbility = factIndexGovrnAblityOrgMonthlyDao.selectCommunityGovernAbility(customerId, monthId); |
|
|
|
List<Map<String, Object>> communityGovernAbility = factIndexGovrnAblityOrgMonthlyDao.selectCommunityGovernAbility(customerId, monthId,IndexCalConstant.COMMUNITY_LEVEL); |
|
|
|
if (communityGovernAbility.size() == NumConstant.ONE) { |
|
|
|
// TODO
|
|
|
|
} else if (communityGovernAbility.size() > NumConstant.ONE) { |
|
|
@ -228,9 +228,9 @@ public class IndexCalculateCommunityServiceImpl implements IndexCalculateCommuni |
|
|
|
}); |
|
|
|
} |
|
|
|
} else { |
|
|
|
List<Map<String, Object>> communityActivityCountList = factIndexServiceAblityOrgMonthlyDao.selectActivityCountMap(customerId, monthId); |
|
|
|
List<Map<String, Object>> communityActivityCountList = factIndexServiceAblityOrgMonthlyDao.selectActivityCountMap(customerId, monthId,IndexCalConstant.COMMUNITY_LEVEL); |
|
|
|
if (CollectionUtils.isEmpty(communityActivityCountList)) { |
|
|
|
log.error(""); |
|
|
|
log.error("查询社区活动组织次数集合为空"); |
|
|
|
return; |
|
|
|
} |
|
|
|
if (communityActivityCountList.size() == NumConstant.ONE) { |