| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -2,6 +2,7 @@ package com.epmet.service.Issue.impl; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import com.epmet.commons.dynamic.datasource.annotation.DataSource; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import com.epmet.commons.tools.constant.NumConstant; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import com.epmet.commons.tools.constant.StrConstant; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import com.epmet.constant.DataSourceConstant; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import com.epmet.dao.issue.StatsIssueDao; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import com.epmet.dto.extract.result.IssueInfoResultDTO; | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -146,14 +147,22 @@ public class IssueServiceImpl implements IssueService { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        return statsIssueDao.selectIssueVoteStatis(customerId, dateId); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						/** | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						 * @Description 查找项目的分类名称 以-相连,以,分隔, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						 * @param param | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						 * @return java.util.Map<java.lang.String,java.lang.String> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						 * @author wangc | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						 * @date 2021.03.09 00:23 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						 */ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						@Override | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						public Map<String, String> getIntegratedProjectCategory(Map<String, Set<String>> param,String customerId) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							Map<String, String> map = new HashMap<>(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    	param.forEach((projectId,categoryIds) -> { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    		//以下查询只适用于二级分类,如果分类层级变多了要修改此查询
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								List<IssueProjectCategoryDictDTO> categories = statsIssueDao.selectCategory(customerId, categoryIds); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								if(!CollectionUtils.isEmpty(categories)){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									StringBuilder str = new StringBuilder(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									categories.forEach(category -> {str.append(category.getCategoryName()).append("-");}); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									categories.forEach(category -> {str.append(category.getCategoryName()).append(StrConstant.COMMA);}); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									map.put(projectId,str.substring(NumConstant.ZERO,str.length() - NumConstant.TWO)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							}); | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |