| 
					
				 | 
			
			
				@@ -35,6 +35,9 @@ public class CategoryStrategy implements ScoreStrategy { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @ApolloJsonValue("${accountCategoryWeightConfig:{}}") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private Map<String, AccountCategoryWeightConfig[]> accountCategoryWeightConfigMap; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @Value("${category.active.version:1}") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    private Integer activeVersion; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Override 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public List<Score> score(ScoreParam param) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         long start = System.currentTimeMillis(); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -42,8 +45,8 @@ public class CategoryStrategy implements ScoreStrategy { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (CollectionUtils.isEmpty(param.getContents())) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return scores; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        List<AccountCategory> accountCategoryList = accountCategoryRepository.getByGhIdAndStatus( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                param.getGhId(), StatusEnum.ONE.getCode()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        List<AccountCategory> accountCategoryList = accountCategoryRepository.getByGhIdAndStatusAndVersion( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                param.getGhId(), StatusEnum.ONE.getCode(), activeVersion); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (CollectionUtils.isEmpty(accountCategoryList)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return scores; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 |