| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -428,10 +428,10 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        ) agency ON grid.PID = agency.ID | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					       WHERE | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					           grid.del_flag = 0 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					       AND | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					           grid.area_code LIKE CONCAT(#{areaCode},'%') | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					       AND | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					           grid.customer_id = #{customerId} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <if test='areaCode != "" and areaCode != null'> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					               AND grid.area_code LIKE CONCAT(#{areaCode},'%') | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            </if> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            AND grid.customer_id = #{customerId} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					       ORDER BY | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					           grid.customer_id, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					           CONVERT ( gridName USING gbk ) ASC | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -468,7 +468,9 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                ) agency ON a.PID = agency.ID | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                WHERE | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    a.del_flag = 0 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                <if test='areaCode != "" and areaCode != null'> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        AND a.area_code = #{areaCode} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                </if> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                AND a.customer_id = #{customerId} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                ORDER BY | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                  CONVERT ( gridName USING gbk ) ASC | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -501,7 +503,9 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    b.del_flag = 0 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                AND b.customer_id = #{customerId} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                AND b.area_code LIKE CONCAT(#{cityCode},'%') | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                <if test='areaCode != "" and areaCode != null'> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    AND  <![CDATA[ b.area_code <> #{areaCode}]]> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                </if> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                ORDER BY | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    b.area_code DESC ,CONVERT ( gridName USING gbk ) ASC | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                LIMIT 0,999999999999 | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |