|  | @@ -904,10 +904,10 @@
 | 
	
		
			
				|  |  |          </if>
 | 
	
		
			
				|  |  |          <if test="locationId != null">
 | 
	
		
			
				|  |  |              and QQL.GRID_ID = #{locationId}
 | 
	
		
			
				|  |  | -            ORDER BY QQL.IS_VIP DESC NULLS LAST ,"listNodeOrder",QQL.ENTRY_SURE_TIME DESC
 | 
	
		
			
				|  |  | +            ORDER BY QQL.ENTRY_SURE_TIME ASC NULLS FIRST,QQL.IS_VIP DESC NULLS LAST ,"listNodeOrder"
 | 
	
		
			
				|  |  |          </if>
 | 
	
		
			
				|  |  |          <if test="locationId == null">
 | 
	
		
			
				|  |  | -            ORDER BY QQL.IS_VIP DESC NULLS LAST ,"listNodeOrder",QQL.ENTRY_SURE_TIME DESC
 | 
	
		
			
				|  |  | +            ORDER BY QQL.ENTRY_SURE_TIME ASC NULLS FIRST,QQL.IS_VIP DESC NULLS LAST ,"listNodeOrder"
 | 
	
		
			
				|  |  |          </if>
 | 
	
		
			
				|  |  |          ) P0
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -968,7 +968,7 @@
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      <select id="getQueueListByQueueUpSpelling" parameterType="map" resultType="java.util.LinkedHashMap">
 | 
	
		
			
				|  |  | -        SELECT * FROM (select QQR.RESULT_ID "resultId",
 | 
	
		
			
				|  |  | +        select QQR.RESULT_ID "resultId",
 | 
	
		
			
				|  |  |          QQR.RESULT_TOTAL_ID "resultTotalId",
 | 
	
		
			
				|  |  |          QQR.RESULT_START_TIME "resultStartTime",
 | 
	
		
			
				|  |  |          RC.CAPACITY_NUMBER "capacityNumber",
 | 
	
	
		
			
				|  | @@ -1029,11 +1029,11 @@
 | 
	
		
			
				|  |  |              </if>
 | 
	
		
			
				|  |  |              <if test="locationId != null">
 | 
	
		
			
				|  |  |                  and QQSL.SPELILING_NUM  = #{locationId}
 | 
	
		
			
				|  |  | -                ORDER BY QQSL.IS_VIP DESC NULLS LAST,"listNodeOrder",QQSL.ENTRY_SURE_TIME DESC
 | 
	
		
			
				|  |  | +                ORDER BY QQSL.ENTRY_SURE_TIME ASC NULLS FIRST ,QQSL.IS_VIP DESC NULLS LAST,"listNodeOrder"
 | 
	
		
			
				|  |  |              </if>
 | 
	
		
			
				|  |  |              <if test="locationId == null">
 | 
	
		
			
				|  |  | -                ORDER BY QQSL.IS_VIP DESC NULLS LAST,"listNodeOrder",QQSL.ENTRY_SURE_TIME DESC
 | 
	
		
			
				|  |  | -            </if>)
 | 
	
		
			
				|  |  | +                ORDER BY QQSL.ENTRY_SURE_TIME ASC NULLS FIRST ,QQSL.IS_VIP DESC NULLS LAST,"listNodeOrder"
 | 
	
		
			
				|  |  | +            </if>
 | 
	
		
			
				|  |  |      </select>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      <select id="getMaterialId" resultType="java.util.Map">
 |