| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -249,7 +249,14 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            screen_difficulty_data diff | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        WHERE | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            diff.DEL_FLAG = '0' | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        <choose> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <when test="orgType != null and orgType == 'grid'"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                AND diff.ORG_ID = #{agencyId,jdbcType=VARCHAR} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            </when> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <otherwise> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                AND diff.ALL_PARENT_IDS LIKE CONCAT('%',#{agencyId},'%') | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            </otherwise> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        </choose> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        <if test="status!= null and status != ''"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            AND diff.EVENT_STATUS_CODE = #{status} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        </if> | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |