|
|
@@ -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.credential_no=#{credentialNo} and t2.voyage_id=#{voyageId}
|
|
|
+ where t1.credential_no=#{credentialNo} and t2.voyage_id=#{voyageId} and t2.order_no!=#{orderNo}
|
|
|
</select>
|
|
|
|
|
|
<select id="selectListByVoyageId" resultType="com.yc.ship.module.trade.dal.dataobject.order.TradeVisitorDO">
|
|
|
@@ -223,7 +223,7 @@
|
|
|
left 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
|
|
|
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)
|
|
|
+ where t1.order_status in (15, 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>
|