|  | @ -77,7 +77,14 @@ | 
			
		
	
		
		
			
				
					|  |  |         del_flag = '0' |  |  |         del_flag = '0' | 
			
		
	
		
		
			
				
					|  |  |         AND parent_id = #{agencyId} |  |  |         AND parent_id = #{agencyId} | 
			
		
	
		
		
			
				
					|  |  |         AND month_id = #{monthId,jdbcType=VARCHAR} |  |  |         AND month_id = #{monthId,jdbcType=VARCHAR} | 
			
		
	
		
		
			
				
					
					|  |  |         AND ORG_TYPE != 'department' |  |  |         <choose> | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |  |  |  |             <when test="orgType != null and orgType != ''"> | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                 AND ORG_TYPE = #{orgType,jdbcType=VARCHAR} | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             </when> | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             <otherwise> | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                 AND ORG_TYPE != 'department' | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             </otherwise> | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         </choose> | 
			
		
	
		
		
			
				
					|  |  |         <if test="sort == 'asc'"> |  |  |         <if test="sort == 'asc'"> | 
			
		
	
		
		
			
				
					|  |  |             ORDER BY index_total ASC |  |  |             ORDER BY index_total ASC | 
			
		
	
		
		
			
				
					|  |  |         </if> |  |  |         </if> | 
			
		
	
	
		
		
			
				
					|  | 
 |