|
|
@@ -548,4 +548,16 @@
|
|
|
<delete id="deleteAllByOrderId">
|
|
|
delete from trade_visitor where order_id = #{orderId}
|
|
|
</delete>
|
|
|
+
|
|
|
+ <select id="getValidSimpleVisitorInfoByVoyageIdAndOrderId"
|
|
|
+ resultType="com.yc.ship.module.trade.dal.dataobject.order.TradeVisitorDO">
|
|
|
+ select a.id,a.name
|
|
|
+ from trade_visitor a
|
|
|
+ join trade_order b on a.order_id=b.id
|
|
|
+ where a.deleted=0 and b.deleted=0
|
|
|
+ and b.voyage_id=#{voyageId}
|
|
|
+ and b.order_status in (1,6,9,13,14,15)
|
|
|
+ <if test="orderId != null" >and a.order_id=#{orderId}</if>
|
|
|
+ order by substring_index(b.order_no, '-', -1)*1 ,a.id
|
|
|
+ </select>
|
|
|
</mapper>
|