|
@@ -20,6 +20,7 @@
|
|
|
inner join trade_visitor u on u.credential_no = d.id_card and u.order_id = oz.order_id
|
|
inner join trade_visitor u on u.credential_no = d.id_card and u.order_id = oz.order_id
|
|
|
left join resource_room_model rm on u.room_model_id = rm.id
|
|
left join resource_room_model rm on u.room_model_id = rm.id
|
|
|
left join trade_order_jz_dispatch dj on d.dispatch_id = dj.id
|
|
left join trade_order_jz_dispatch dj on d.dispatch_id = dj.id
|
|
|
|
|
+ inner join trade_detail td on td.order_id = o.id and td.product_id != 2034458675435925505
|
|
|
where d.deleted = 0 and o.voyage_id = #{vo.voyageId}
|
|
where d.deleted = 0 and o.voyage_id = #{vo.voyageId}
|
|
|
<if test="vo.idCard != null">
|
|
<if test="vo.idCard != null">
|
|
|
and d.id_card like concat('%', #{vo.idCard}, '%')
|
|
and d.id_card like concat('%', #{vo.idCard}, '%')
|
|
@@ -50,7 +51,7 @@
|
|
|
<select id="selectVisitorExportList"
|
|
<select id="selectVisitorExportList"
|
|
|
resultType="com.yc.ship.module.trade.dal.dataobject.orderjzdetail.OrderJzDetailDO">
|
|
resultType="com.yc.ship.module.trade.dal.dataobject.orderjzdetail.OrderJzDetailDO">
|
|
|
select distinct d.* , r.direction , rm.name as room_model_name,
|
|
select distinct d.* , r.direction , rm.name as room_model_name,
|
|
|
- SUBSTRING_INDEX(o.order_no, '-', -1) as orderNo, dj.dispatch_no as dispatchNo, dj.group_no as groupNo
|
|
|
|
|
|
|
+ SUBSTRING_INDEX(o.order_no, '-', -1) as orderNo, dj.dispatch_no as dispatchNo, dj.group_no as groupNo, dj.bus_number as busNumber,dj.driver_name as driverName,dj.driver_phone as driverPhone,dj.receiver_name as receiverName,dj.receiver_phone as receiverPhone
|
|
|
from trade_order_jz_detail d
|
|
from trade_order_jz_detail d
|
|
|
inner join trade_order_jz oz on d.jz_id = oz.id
|
|
inner join trade_order_jz oz on d.jz_id = oz.id
|
|
|
inner join trade_order o on o.deleted = 0 and o.id = oz.order_id
|
|
inner join trade_order o on o.deleted = 0 and o.id = oz.order_id
|
|
@@ -59,7 +60,7 @@
|
|
|
inner join trade_visitor u on u.credential_no = d.id_card and u.order_id = oz.order_id
|
|
inner join trade_visitor u on u.credential_no = d.id_card and u.order_id = oz.order_id
|
|
|
left join resource_room_model rm on u.room_model_id = rm.id
|
|
left join resource_room_model rm on u.room_model_id = rm.id
|
|
|
left join trade_order_jz_dispatch dj on d.dispatch_id = dj.id
|
|
left join trade_order_jz_dispatch dj on d.dispatch_id = dj.id
|
|
|
- inner join trade_detail td on td.order_id = o.id and td.product_id = 2034458675435925505
|
|
|
|
|
|
|
+ inner join trade_detail td on td.order_id = o.id and td.product_id != 2034458675435925505
|
|
|
where d.deleted = 0 and o.voyage_id = #{vo.voyageId}
|
|
where d.deleted = 0 and o.voyage_id = #{vo.voyageId}
|
|
|
<if test="vo.idCard != null and vo.idCard != ''">
|
|
<if test="vo.idCard != null and vo.idCard != ''">
|
|
|
and d.id_card like concat('%', #{vo.idCard}, '%')
|
|
and d.id_card like concat('%', #{vo.idCard}, '%')
|
|
@@ -157,7 +158,7 @@
|
|
|
<select id="selectGiftExportList"
|
|
<select id="selectGiftExportList"
|
|
|
resultType="com.yc.ship.module.trade.dal.dataobject.orderjzdetail.OrderJzDetailDO">
|
|
resultType="com.yc.ship.module.trade.dal.dataobject.orderjzdetail.OrderJzDetailDO">
|
|
|
select distinct d.* , r.direction , rm.name as room_model_name,
|
|
select distinct d.* , r.direction , rm.name as room_model_name,
|
|
|
- SUBSTRING_INDEX(o.order_no, '-', -1) as orderNo, dj.dispatch_no as dispatchNo, dj.group_no as groupNo
|
|
|
|
|
|
|
+ SUBSTRING_INDEX(o.order_no, '-', -1) as orderNo, dj.dispatch_no as dispatchNo, dj.group_no as groupNo, dj.bus_number as busNumber,dj.driver_name as driverName,dj.driver_phone as driverPhone,dj.receiver_name as receiverName,dj.receiver_phone as receiverPhone
|
|
|
from trade_order_jz_detail d
|
|
from trade_order_jz_detail d
|
|
|
inner join trade_order_jz oz on d.jz_id = oz.id
|
|
inner join trade_order_jz oz on d.jz_id = oz.id
|
|
|
inner join trade_order o on o.deleted = 0 and o.id = oz.order_id
|
|
inner join trade_order o on o.deleted = 0 and o.id = oz.order_id
|