|  |  | @ -1083,7 +1083,7 @@ | 
			
		
	
		
			
				
					|  |  |  |         FROM | 
			
		
	
		
			
				
					|  |  |  |             fact_origin_project_main_daily | 
			
		
	
		
			
				
					|  |  |  |         WHERE | 
			
		
	
		
			
				
					|  |  |  |             ORIGIN = 'agency' | 
			
		
	
		
			
				
					|  |  |  |         (ORIGIN = 'agency' OR ORIGIN = 'resi_event') | 
			
		
	
		
			
				
					|  |  |  |           AND CUSTOMER_ID = #{customerId} | 
			
		
	
		
			
				
					|  |  |  |         <if test='null != dateId and "" != dateId'> | 
			
		
	
		
			
				
					|  |  |  |           AND DATE_ID = #{dateId} | 
			
		
	
	
		
			
				
					|  |  | @ -1101,7 +1101,7 @@ | 
			
		
	
		
			
				
					|  |  |  |         FROM | 
			
		
	
		
			
				
					|  |  |  |         fact_origin_project_main_daily | 
			
		
	
		
			
				
					|  |  |  |         WHERE | 
			
		
	
		
			
				
					|  |  |  |         ORIGIN = 'agency' | 
			
		
	
		
			
				
					|  |  |  |         (ORIGIN = 'agency' OR ORIGIN = 'resi_event') | 
			
		
	
		
			
				
					|  |  |  |         AND CUSTOMER_ID = #{customerId} | 
			
		
	
		
			
				
					|  |  |  |         <if test='null != dateId and "" != dateId'> | 
			
		
	
		
			
				
					|  |  |  |             AND DATE_ID <= #{dateId} | 
			
		
	
	
		
			
				
					|  |  | 
 |