|
|
@@ -2202,7 +2202,7 @@
|
|
|
trade_order_room_model t1
|
|
|
LEFT JOIN resource_room_model t2 ON t1.room_model_id = t2.id and t2.deleted = 0
|
|
|
LEFT JOIN trade_visitor t3 ON t1.room_index_id = t3.room_index_id and t3.deleted = 0
|
|
|
- LEFT JOIN trade_detail t5 on t3.id = t5.visitor_id and t5.deleted =0
|
|
|
+ LEFT JOIN trade_detail t5 on t3.id = t5.visitor_id and t5.deleted =0 and t5.product_type = 0
|
|
|
LEFT JOIN area t4 ON t3.nationality = t4.id
|
|
|
WHERE
|
|
|
t1.order_id = #{orderId}
|