| 
						
						
							
								
							
						
						
					 | 
					@ -352,47 +352,46 @@ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    <select id="selectSubStreetByAreaCode" parameterType="map" resultType="com.epmet.evaluationindex.screen.dto.result.SubAgencyIndexRankResultDTO"> | 
					 | 
					 | 
					    <select id="selectSubStreetByAreaCode" parameterType="map" resultType="com.epmet.evaluationindex.screen.dto.result.SubAgencyIndexRankResultDTO"> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        SELECT | 
					 | 
					 | 
					        SELECT | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            sca.AGENCY_NAME AS NAME, | 
					 | 
					 | 
					            sca.AGENCY_NAME AS NAME, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					            sy.govern_ablity AS governAbility, | 
					 | 
					 | 
					            sy.govern_ablity * sy.GOVERN_ABLITY_WEIGHT AS governAbility, | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					            sy.party_dev_ablity AS partyDevAbility, | 
					 | 
					 | 
					            sy.party_dev_ablity * sy.PARTY_DEV_WEIGHT AS partyDevAbility, | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					            sy.service_ablity AS serviceAbility, | 
					 | 
					 | 
					            sy.service_ablity * sy.SERVICE_ABLITY_WEIGHT AS serviceAbility, | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					            sy.ORG_ID as orgId, | 
					 | 
					 | 
					            sy.ORG_ID as orgId, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            sca.area_code as areaCode | 
					 | 
					 | 
					            sca.area_code as areaCode | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        FROM screen_customer_agency sca | 
					 | 
					 | 
					        FROM screen_customer_agency sca | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					        left join screen_index_data_yearly sy | 
					 | 
					 | 
					        left join screen_index_data_monthly sy | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					        on(sca.AGENCY_ID=sy.ORG_ID | 
					 | 
					 | 
					         on(sca.AGENCY_ID=sy.ORG_ID | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					            and sy.DEL_FLAG='0' | 
					 | 
					 | 
					           and sy.DEL_FLAG='0' | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					            and sy.ORG_TYPE != 'department' | 
					 | 
					 | 
					           and sy.MONTH_ID=#{monthId} | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					            and sy.YEAR_ID=#{yearId} | 
					 | 
					 | 
					           ) | 
				
			
			
				
				
			
		
	
		
		
			
				
					 | 
					 | 
					         ) | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					        WHERE | 
					 | 
					 | 
					        WHERE | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					                sca.del_flag = '0' | 
					 | 
					 | 
					            sca.del_flag = '0' | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					                AND sca.PARENT_AREA_CODE=#{areaCode} | 
					 | 
					 | 
					          AND sca.PARENT_AREA_CODE=#{areaCode} | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					                and sy.CUSTOMER_ID=#{customerId} | 
					 | 
					 | 
					          and sy.CUSTOMER_ID=#{customerId} | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					        ORDER BY (sy.govern_ablity+sy.party_dev_ablity+sy.service_ablity) DESC | 
					 | 
					 | 
					        ORDER BY (sy.govern_ablity+sy.party_dev_ablity+sy.service_ablity) DESC | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					        LIMIT #{topNum} | 
					 | 
					 | 
					            LIMIT #{topNum} | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					    </select> | 
					 | 
					 | 
					    </select> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    <select id="selectSubGridByAreaCode" parameterType="map" resultType="com.epmet.evaluationindex.screen.dto.result.SubAgencyIndexRankResultDTO"> | 
					 | 
					 | 
					    <select id="selectSubGridByAreaCode" parameterType="map" resultType="com.epmet.evaluationindex.screen.dto.result.SubAgencyIndexRankResultDTO"> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        SELECT | 
					 | 
					 | 
					        SELECT | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            scg.GRID_NAME AS NAME, | 
					 | 
					 | 
					            scg.GRID_NAME AS NAME, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					            sy.govern_ablity AS governAbility, | 
					 | 
					 | 
					            sy.govern_ablity * sy.GOVERN_ABLITY_WEIGHT AS governAbility, | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					            sy.party_dev_ablity AS partyDevAbility, | 
					 | 
					 | 
					            sy.party_dev_ablity * sy.PARTY_DEV_WEIGHT AS partyDevAbility, | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					            sy.service_ablity AS serviceAbility, | 
					 | 
					 | 
					            sy.service_ablity * sy.SERVICE_ABLITY_WEIGHT AS serviceAbility, | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					            sy.ORG_ID as orgId, | 
					 | 
					 | 
					            sy.ORG_ID as orgId, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            scg.area_code as areaCode | 
					 | 
					 | 
					            scg.area_code as areaCode | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        FROM screen_customer_grid  scg | 
					 | 
					 | 
					        FROM screen_customer_grid  scg | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					        left join screen_index_data_yearly sy | 
					 | 
					 | 
					        left join screen_index_data_monthly sy | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					            on(scg.GRID_ID=sy.ORG_ID | 
					 | 
					 | 
					           on(scg.GRID_ID=sy.ORG_ID | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					                and sy.DEL_FLAG='0' | 
					 | 
					 | 
					               and sy.DEL_FLAG='0' | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					                and sy.ORG_TYPE != 'department' | 
					 | 
					 | 
					               and sy.ORG_TYPE != 'department' | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					                and sy.YEAR_ID=#{yearId} | 
					 | 
					 | 
					                and sy.MONTH_ID=#{monthId} | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					            ) | 
					 | 
					 | 
					               ) | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					        WHERE | 
					 | 
					 | 
					        WHERE | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					                scg.del_flag = '0' | 
					 | 
					 | 
					            scg.del_flag = '0' | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					                AND scg.AREA_CODE like CONCAT(#{areaCode},'%') | 
					 | 
					 | 
					          AND scg.AREA_CODE like CONCAT(#{areaCode},'%') | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					                and sy.CUSTOMER_ID=#{customerId} | 
					 | 
					 | 
					          and sy.CUSTOMER_ID={customerId} | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					        ORDER BY (sy.govern_ablity+sy.party_dev_ablity+sy.service_ablity) DESC | 
					 | 
					 | 
					        ORDER BY (sy.govern_ablity+sy.party_dev_ablity+sy.service_ablity) DESC | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					                LIMIT #{topNum} | 
					 | 
					 | 
					            LIMIT #{topNum} | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					    </select> | 
					 | 
					 | 
					    </select> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    <select id="selectKczSubAgencyOrGridIndexMonthlyRank" parameterType="com.epmet.evaluationindex.screen.dto.form.SubAgencyIndexRankYMFormDTO" | 
					 | 
					 | 
					    <select id="selectKczSubAgencyOrGridIndexMonthlyRank" parameterType="com.epmet.evaluationindex.screen.dto.form.SubAgencyIndexRankYMFormDTO" | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |