|  | @@ -19,6 +19,7 @@
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      </resultMap>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +<!--    参与 冻结转可用的订单计算-->
 | 
	
		
			
				|  |  |      <select id="queryAllOrder" resultMap="BaseResultMap">
 | 
	
		
			
				|  |  |          select tor.total_price as totalPrice,
 | 
	
		
			
				|  |  |                 ps.cost_price as costPrice,
 | 
	
	
		
			
				|  | @@ -45,10 +46,11 @@
 | 
	
		
			
				|  |  |          where tor.pay_status = 1
 | 
	
		
			
				|  |  |          and toi.distribute_benefit = 0
 | 
	
		
			
				|  |  |          and (toi.after_sale_status = 0 or toi.after_sale_status = 61)
 | 
	
		
			
				|  |  | -        and tor.delivery_time < DATE_SUB(NOW(), INTERVAL 7 DAY)
 | 
	
		
			
				|  |  | +        and tor.pay_time < DATE_SUB(NOW(), INTERVAL 7 DAY)
 | 
	
		
			
				|  |  |  --           and tor.receiving_time < DATE_SUB(NOW(), INTERVAL 7 DAY)
 | 
	
		
			
				|  |  |      </select>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +<!--    参与合赢奖的订单-->
 | 
	
		
			
				|  |  |      <select id="queryDailyOrder" resultMap="BaseResultMap">
 | 
	
		
			
				|  |  |          select tor.total_price as totalPrice,
 | 
	
		
			
				|  |  |                 ps.cost_price as costPrice,
 |