| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -583,19 +583,29 @@ public class CalCpcIndexServiceImpl implements CalCpcIndexService { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                map.put(partyMember.getUserId(), NumConstant.ZERO); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                continue; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            //todo 可以先把本月内评论的用户+本月内表决过的用户 集合查询出来。避免循环查询
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            //可以先把本月内评论的用户+本月内表决过的用户 集合查询出来。避免循环查询
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            List<String> commentTopicUserIds=factOriginTopicLogDailyService.queryCommentTopicUserIds(customerId,monthId); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            List<String> voteUserIds=issueExtractService.queryVoteUserIds(customerId,monthId); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            //3、判断每个成员是否 “活跃”
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            for (String memberId : memberIdList) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                //注释2022.03.02
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                //1、判断成员在本月内是否评论过
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                Integer topicCommentCount = factOriginTopicLogDailyService.selectUserCommentCount(memberId, customerId, monthId); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                /*Integer topicCommentCount = factOriginTopicLogDailyService.selectUserCommentCount(memberId, customerId, monthId); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                if (topicCommentCount > 0) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    groupActiveUserCount++; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    continue; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                }*/ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                //2、判断成员在本月内是否表决过(支持or反对)议题
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                Integer voteCount = issueExtractService.selectCountUserVote(memberId, customerId, monthId); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                /*Integer voteCount = issueExtractService.selectCountUserVote(memberId, customerId, monthId); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                if (voteCount > 0) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    groupActiveUserCount++; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                }*/ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                if (CollectionUtils.isNotEmpty(commentTopicUserIds) && commentTopicUserIds.contains(memberId)) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    groupActiveUserCount++; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    continue; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                if (CollectionUtils.isNotEmpty(voteUserIds) && voteUserIds.contains(memberId)) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    groupActiveUserCount++; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            //赋值每个党员的 -- 党员自建群活跃群众人数
 | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |