Ver código fonte

fix: 修改确认单计算国籍人数不准确问题

luofeiyun 12 horas atrás
pai
commit
6048d3bd3d

+ 1 - 1
ship-module-trade/ship-module-trade-biz/src/main/resources/mapper/order/TradeOrderMapper.xml

@@ -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}