| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -714,10 +714,10 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    </select> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    <select id="getAgencySumProject" resultType="com.epmet.dataaggre.dto.datastats.result.TotalAndIncrResultDTO"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					         SELECT | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            IFNULL(project_total, 0) AS total, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            IFNULL(PROJECT_INCR, 0) AS incr, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            IFNULL(CLOSED_TOTAL, 0) AS total2, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            IFNULL(CLOSED_INCR, 0) AS incr2 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            SUM(project_total) AS total, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            SUM(PROJECT_INCR) AS incr, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            SUM(CLOSED_TOTAL) AS total2, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            SUM(CLOSED_INCR) AS incr2 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        FROM | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            fact_agency_project_daily | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        WHERE | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -738,7 +738,7 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        del_flag = '0' | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        AND topic_status_id in('discussing','closed','hidden')<!-- 讨论中(热议中!=讨论中)、已处理、已屏蔽 --> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        AND date_id = #{dateId} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        <foreach item="agencyId" collection="agencyIds" open="AND (" separator="or" close=")" index=""> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        <foreach item="agencyId" collection="agencyList" open="AND (" separator="or" close=")" index=""> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            agency_id = #{agencyId} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        </foreach> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    </select> | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |