<?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.wms.mapper.stock.StockWaitMapper">
    <select id="getPage1" resultType="com.fjhx.wms.entity.stock.vo.StockWaitVo">
        SELECT
            sw.id,
            swd.id stockWaitDetailsId,
            sw.type,
            sw.business_id,
            sw.business_code,
            sw.business_type,
            swd.product_id,
            swd.quantity,
            swd.receipt_quantity,
            sw.`status`,
            sw.create_user,
            sw.create_time,
            sw.update_user,
            sw.update_time,
            sw.victoriatourist_json
        FROM
            stock_wait sw
                JOIN stock_wait_details swd ON swd.stock_wait_id = sw.id
            ${ew.customSqlSegment}
    </select>

    <select id="getPage" resultType="com.fjhx.wms.entity.stock.vo.StockWaitVo">
        SELECT
            sw.id,
            sw.type,
            sw.business_id,
            sw.business_code,
            sw.business_type,
            sw.`status`,
            sw.create_user,
            sw.create_time,
            sw.update_user,
            sw.update_time,
            sw.company_id
        FROM
            stock_wait sw
            ${ew.customSqlSegment}
    </select>

</mapper>
