| 
						
						
							
								
							
						
						
					 | 
					@ -53,6 +53,7 @@ import com.epmet.service.IssueVoteDetailService; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.service.IssueVoteStatisticalService; | 
					 | 
					 | 
					import com.epmet.service.IssueVoteStatisticalService; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.utils.ModuleConstants; | 
					 | 
					 | 
					import com.epmet.utils.ModuleConstants; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import org.apache.commons.collections4.CollectionUtils; | 
					 | 
					 | 
					import org.apache.commons.collections4.CollectionUtils; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					import org.apache.commons.collections4.ListUtils; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import org.apache.commons.lang3.StringUtils; | 
					 | 
					 | 
					import org.apache.commons.lang3.StringUtils; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import org.springframework.beans.BeanUtils; | 
					 | 
					 | 
					import org.springframework.beans.BeanUtils; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import org.springframework.beans.factory.annotation.Autowired; | 
					 | 
					 | 
					import org.springframework.beans.factory.annotation.Autowired; | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -334,7 +335,10 @@ public class IssueVoteStatisticalServiceImpl extends BaseServiceImpl<IssueVoteSt | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                            dto.setCreatedBy(ModuleConstants.CREATED_BY_SYSTEM);dto.setUpdatedBy(ModuleConstants.CREATED_BY_SYSTEM); | 
					 | 
					 | 
					                            dto.setCreatedBy(ModuleConstants.CREATED_BY_SYSTEM);dto.setUpdatedBy(ModuleConstants.CREATED_BY_SYSTEM); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                            return dto; | 
					 | 
					 | 
					                            return dto; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                        }).collect(Collectors.toList()); | 
					 | 
					 | 
					                        }).collect(Collectors.toList()); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					                    if(!CollectionUtils.isEmpty(collect)) toInsert.addAll(collect);} | 
					 | 
					 | 
					                        if(!CollectionUtils.isEmpty(collect)) { | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                            toInsert.addAll(collect); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                    } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                  /* | 
					 | 
					 | 
					                  /* | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                    List<IssueAttitudeCountResultDTO> summaryList = issueVoteDetailDao.getVotingSummaryList(notExistedIds); | 
					 | 
					 | 
					                    List<IssueAttitudeCountResultDTO> summaryList = issueVoteDetailDao.getVotingSummaryList(notExistedIds); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -427,8 +431,11 @@ public class IssueVoteStatisticalServiceImpl extends BaseServiceImpl<IssueVoteSt | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                List<IssueVoteStatisticalDTO> listToUpdate = new ArrayList<>(); | 
					 | 
					 | 
					                List<IssueVoteStatisticalDTO> listToUpdate = new ArrayList<>(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                setVotableCountsAndUpdateCache(listToUpdate,issues,votableCountMap); | 
					 | 
					 | 
					                setVotableCountsAndUpdateCache(listToUpdate,issues,votableCountMap); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					                //  listToUpdate批量更新
 | 
					 | 
					 | 
					                //  listToUpdate批量更新 todo 暂时解决下 分批插入
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					                baseDao.updateBatchByIssueId(listToUpdate); | 
					 | 
					 | 
					                if (CollectionUtils.isNotEmpty(listToUpdate)) { | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                    ListUtils.partition(listToUpdate, NumConstant.ONE_HUNDRED) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                            .forEach(part -> baseDao.updateBatchByIssueId(part)); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        } | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    }else{ | 
					 | 
					 | 
					    }else{ | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -550,8 +557,12 @@ public class IssueVoteStatisticalServiceImpl extends BaseServiceImpl<IssueVoteSt | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                IssueVoteStatisticalDTO vote = new IssueVoteStatisticalDTO(); | 
					 | 
					 | 
					                IssueVoteStatisticalDTO vote = new IssueVoteStatisticalDTO(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                vote.setIssueId(issue.getId()); | 
					 | 
					 | 
					                vote.setIssueId(issue.getId()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                VoteRedisFormDTO cache = issueVoteDetailRedis.getVoteStatistical(issue.getId()); | 
					 | 
					 | 
					                VoteRedisFormDTO cache = issueVoteDetailRedis.getVoteStatistical(issue.getId()); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					                if(null == cache) continue; | 
					 | 
					 | 
					                if(null == cache) { | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					                if(StringUtils.isBlank(cache.getIssueId())) cache.setIssueId(issue.getId()); | 
					 | 
					 | 
					                    continue; | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                if(StringUtils.isBlank(cache.getIssueId())) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                    cache.setIssueId(issue.getId()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                vote.setCreatedBy(ModuleConstants.CREATED_BY_SYSTEM); | 
					 | 
					 | 
					                vote.setCreatedBy(ModuleConstants.CREATED_BY_SYSTEM); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                vote.setUpdatedBy(ModuleConstants.CREATED_BY_SYSTEM); | 
					 | 
					 | 
					                vote.setUpdatedBy(ModuleConstants.CREATED_BY_SYSTEM); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                vote.setSupportCount(cache.getSupportAmount()); | 
					 | 
					 | 
					                vote.setSupportCount(cache.getSupportAmount()); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |