|
|
@@ -195,7 +195,7 @@
|
|
|
|
|
|
<select id="queryVisitorByVovageId" resultType="java.lang.Integer">
|
|
|
select count(*) from trade_visitor t1 inner join trade_order t2 on t1.order_id=t2.id
|
|
|
- where t1.ceredential_no=#{credentialNo} and t2.voyage_id=#{voyageId}
|
|
|
+ where t1.credential_no=#{credentialNo} and t2.voyage_id=#{voyageId}
|
|
|
</select>
|
|
|
|
|
|
<select id="selectListByVoyageId" resultType="com.yc.ship.module.trade.dal.dataobject.order.TradeVisitorDO">
|
|
|
@@ -216,16 +216,20 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="getExportVisitorList" resultType="com.yc.ship.module.trade.controller.admin.order.vo.order.TradeOrderRespExcelVO">
|
|
|
- select t1.order_no orderNo,t1.group_no groupNo,t1.order_status orderStatus,t1.source_name sourceName,t3.name name,t3.gender gender,t3.credential_no credentialNo,t3.nationality nationality,t3.birthday birthday,t3.mobile mobile,t3.age age,t3.mobile mobile,t5.short_name roomModelName,t3.floor floor,t6.room_num roomName,t2.price price,t3.remark remark
|
|
|
+ select t1.order_no orderNo,t1.group_no groupNo,t1.order_status orderStatus,t1.source_name sourceName,t3.name name,t3.gender gender,t3.credential_no credentialNo,t7.name nationality,t3.birthday birthday,t3.mobile mobile,t3.age age,t3.mobile mobile,t5.short_name roomModelName,t3.floor floor,t6.room_num roomName,t2.price price,t3.remark remark
|
|
|
from trade_order t1 inner join trade_detail t2 on t1.id=t2.order_id and t2.product_type = 0 and t2.deleted = 0
|
|
|
inner join trade_visitor t3 on t2.visitor_id=t3.id and t3.deleted =0
|
|
|
inner join trade_order_room_model t4 on t3.room_index_id=t4.room_index_id and t4.deleted=0
|
|
|
inner join resource_room_model t5 on t4.room_model_id = t5.id and t5.deleted=0
|
|
|
left join resource_room t6 on t3.room_id = t6.id and t6.deleted=0
|
|
|
- where t1.voyage_id=#{vo.voyageId} and t1.order_status in (14, 13, 11, 10, 12, 9, 8, 7, 6, 5, 4, 3, 2, 1)
|
|
|
+ left join area t7 on t3.nationality = t7.id
|
|
|
+ where t1.order_status in (14, 13, 11, 10, 12, 9, 8, 7, 6, 5, 4, 3, 2, 1)
|
|
|
<if test="vo.orderNo != null and vo.orderNo != ''">
|
|
|
AND t1.order_no = #{vo.orderNo}
|
|
|
</if>
|
|
|
+ <if test="vo.voyageId != null and vo.voyageId != ''">
|
|
|
+ AND t1.voyage_id = #{vo.voyageId}
|
|
|
+ </if>
|
|
|
<if test="vo.otaId != null and vo.otaId != ''">
|
|
|
AND t1.source_id = #{vo.otaId}
|
|
|
</if>
|