| 
						
						
							
								
							
						
						
					 | 
					@ -140,11 +140,11 @@ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        inner join screen_customer_grid scg | 
					 | 
					 | 
					        inner join screen_customer_grid scg | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            on(m.ORG_ID=scg.grid_id | 
					 | 
					 | 
					            on(m.ORG_ID=scg.grid_id | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                and scg.DEL_FLAG='0' | 
					 | 
					 | 
					                and scg.DEL_FLAG='0' | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                AND scg.ALL_PARENT_IDS like concat('%',#{agencyId},'%') | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            ) | 
					 | 
					 | 
					            ) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        WHERE | 
					 | 
					 | 
					        WHERE | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            m.DEL_FLAG = '0' | 
					 | 
					 | 
					            m.DEL_FLAG = '0' | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            AND m.DATE_ID = #{dateId} | 
					 | 
					 | 
					            AND m.DATE_ID = #{dateId} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            and m.org_id=#{gridId} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            AND m.TYPE_CODE IN | 
					 | 
					 | 
					            AND m.TYPE_CODE IN | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            <foreach item="typeCode" collection="typeCodeList" open="(" separator="," close=")"> | 
					 | 
					 | 
					            <foreach item="typeCode" collection="typeCodeList" open="(" separator="," close=")"> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                #{typeCode} | 
					 | 
					 | 
					                #{typeCode} | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |