<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.fjhx.victoriatourist.mapper.stock.StockTransferDetailsMapper">
    <select id="getPage" resultType="com.fjhx.victoriatourist.entity.stock.vo.StockTransferDetailsVo">
        SELECT
            std.id,
            std.stock_transfer_id,
            std.product_id,
            std.out_quantity,
            std.in_quantity,
            std.create_user,
            std.create_time,
            std.update_user,
            std.update_time,
            st.`code`,
            st.in_warehouse_id,
            st.out_warehouse_id
        FROM
            stock_transfer st
                LEFT JOIN stock_transfer_details std ON std.stock_transfer_id = st.id
            ${ew.customSqlSegment}
    </select>

</mapper>
