|  | @@ -591,9 +591,9 @@
 | 
	
		
			
				|  |  |          SELECT MAX(spo.expect_amount_)                                expectAmount,
 | 
	
		
			
				|  |  |                 SUM(IF(g.type_ = 'INSTRUMENT', so.expect_amount_, 0))  musicalFee,
 | 
	
		
			
				|  |  |                 SUM(IF(g.type_ != 'INSTRUMENT', so.expect_amount_, 0)) teachingFee
 | 
	
		
			
				|  |  | -        FROM sell_order so
 | 
	
		
			
				|  |  | +        FROM student_payment_order spo
 | 
	
		
			
				|  |  | +                 LEFT JOIN sell_order so ON spo.id_ = so.order_id_
 | 
	
		
			
				|  |  |                   LEFT JOIN goods g ON g.id_ = so.goods_id_
 | 
	
		
			
				|  |  | -                 LEFT JOIN student_payment_order spo ON spo.id_ = so.order_id_
 | 
	
		
			
				|  |  |          WHERE spo.id_ = #{orderId}
 | 
	
		
			
				|  |  |      </select>
 | 
	
		
			
				|  |  |  </mapper>
 |