@@ -46,4 +46,12 @@ public interface TradeVisitorMapper extends BaseMapperX<TradeVisitorDO> {
* @return
*/
List<TradeVisitorDO> selectShipByOrderIds(@Param("orderIds") List<Long> orderIds);
+
+ /**
+ * 查询该航次所有游客信息
+ * @param voyageId
+ * @return
+ */
+ List<TradeVisitorDO> selectListByVoyageId(@Param("voyageId") String voyageId);
}
@@ -168,4 +168,11 @@
</foreach>
)
</select>
+ <select id="selectListByVoyageId" resultType="com.yc.ship.module.trade.dal.dataobject.order.TradeVisitorDO">
+ select tv.*
+ from trade_visitor tv
+ join trade_order to1 on tv.order_id=to1.id
+ where to1.voyage_id=#{voyageId}
+ </select>
</mapper>