| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -280,10 +280,10 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            pd.PARENT_ID AS pid, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            pd.ALL_PARENT_IDS AS pids, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            pc.`LEVEL`, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <if test=' status = "closed" '> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <if test=' status == "closed" '> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                COUNT(DISTINCT pc.PROJECT_ID) AS projectTotal | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            </if> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <if test=' status = "all" '> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <if test=' status == "all" '> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                COUNT(DISTINCT pc.PROJECT_ID) AS closedProjectTotal | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            </if> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        FROM screen_project_data pd | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -296,7 +296,7 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            AND DATE_FORMAT(pd.PROJECT_CREATE_TIME,'%Y%m%d') <![CDATA[ <= ]]> #{dateId} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            AND pd.ORG_TYPE = 'grid' | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            AND pc.level = 2 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <if test=' status = "closed" '> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <if test=' status == "closed" '> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                AND pd.PROJECT_STATUS_CODE IN ('closed','closed_case') | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            </if> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        GROUP BY pd.ORG_ID,pc.CATEGORY_CODE | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -309,10 +309,10 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            pd.PARENT_ID AS pid, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            pd.ALL_PARENT_IDS AS pids, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            1 AS level, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <if test=' status = "closed" '> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <if test=' status == "closed" '> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                COUNT(DISTINCT pc.PROJECT_ID) AS projectTotal | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            </if> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <if test=' status = "all" '> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <if test=' status == "all" '> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                COUNT(DISTINCT pc.PROJECT_ID) AS closedProjectTotal | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            </if> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        FROM screen_project_data pd | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -324,7 +324,7 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            </foreach> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            AND DATE_FORMAT(pd.PROJECT_CREATE_TIME,'%Y%m%d') <![CDATA[ <= ]]> #{dateId} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            AND pd.ORG_TYPE = 'grid' | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <if test=' status = "closed" '> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <if test=' status == "closed" '> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                AND pd.PROJECT_STATUS_CODE IN ('closed','closed_case') | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            </if> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        GROUP BY pd.ORG_ID,categoryCode | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -342,10 +342,10 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                #{a.pids} AS pids, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                #{a.orgType} AS orgType, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                pc.`LEVEL`, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                <if test=' status = "closed" '> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                <if test=' status == "closed" '> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    COUNT(DISTINCT pc.PROJECT_ID) AS projectTotal | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                </if> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                <if test=' status = "all" '> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                <if test=' status == "all" '> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    COUNT(DISTINCT pc.PROJECT_ID) AS closedProjectTotal | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                </if> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            FROM screen_project_data pd | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -354,7 +354,7 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                AND pc.level = 2 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                AND DATE_FORMAT(pd.PROJECT_CREATE_TIME,'%Y%m%d') <![CDATA[ <= ]]> #{dateId} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                AND ALL_PARENT_IDS LIKE #{a.orgId} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                <if test=' status = "closed" '> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                <if test=' status == "closed" '> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    AND pd.PROJECT_STATUS_CODE IN ('closed','closed_case') | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                </if> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            GROUP BY pc.CATEGORY_CODE | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -368,10 +368,10 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                #{a.pids} AS pids, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                #{a.orgType} AS orgType, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                pc.`LEVEL`, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                <if test=' status = "closed" '> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                <if test=' status == "closed" '> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    COUNT(DISTINCT pc.PROJECT_ID) AS projectTotal | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                </if> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                <if test=' status = "all" '> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                <if test=' status == "all" '> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    COUNT(DISTINCT pc.PROJECT_ID) AS closedProjectTotal | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                </if> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            FROM screen_project_data pd | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -379,7 +379,7 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            WHERE pd.DEL_FLAG = '0' | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            AND DATE_FORMAT(pd.PROJECT_CREATE_TIME,'%Y%m%d') <![CDATA[ <= ]]> #{dateId} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            AND ALL_PARENT_IDS LIKE #{a.orgId} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <if test=' status = "closed" '> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <if test=' status == "closed" '> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                AND pd.PROJECT_STATUS_CODE IN ('closed','closed_case') | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            </if> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            GROUP BY categoryCode | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |