自动化立体仓库 - WMS系统
zc
2024-07-25 b802f67f272e5d14b8d3b9205b55e75e31fb5524
src/main/resources/mapper/LocDetlMapper.xml
@@ -109,6 +109,16 @@
        <if test="specs!=null and specs!='' ">
            and a.specs like '%' + #{specs} + '%'
        </if>
        <if test="sPgNO!=null and sPgNO!='' ">
            and a.pg_no like '%' + #{sPgNO} + '%'
        </if>
        <if test="outOrderNo!=null and outOrderNo!='' ">
            and a.out_order_no like '%' + #{outOrderNo} + '%'
        </if>
        <if test="zpallet!=null and zpallet!='' ">
            and a.zpallet like '%' + #{zpallet} + '%'
        </if>
    </sql>
    <select id="getStockOutPage" resultMap="BaseResultMap">
@@ -427,22 +437,22 @@
            and asrsQty != erpQty
        </if>
        <if test="different != null and different == 0 ">
            and asrsQty = erpQty
        </if>
        <if test="matnr != null and matnr != ''">
            AND matnr like #{matnr}
            AND matnr like '%' +  #{matnr}+ '%'
        </if>
        <if test="maktx != null and maktx != ''">
            AND maktx like #{maktx}
            AND maktx like '%' + #{maktx}+ '%'
        </if>
        <if test="specs != null and specs != ''">
            AND specs like #{specs}
            AND specs like '%' + #{specs}+ '%'
        </if>
        <if test="sPgNO != null">
            AND pgNO like #{sPgNO}
        <if test="sPgNO != null and sPgNO != ''">
            AND pgNO like '%' + #{sPgNO} + '%'
        </if>
        <if test="outOrderNo != null">
            AND outOrderNo like #{outOrderNo}
        <if test="outOrderNo != null and outOrderNo != ''">
            AND outOrderNo like '%' + #{outOrderNo} + '%'
        </if>
        ) d ) e WHERE  1=1  and e.row between ((#{pageNumber}-1)*#{pageSize}+1) and (#{pageNumber}*#{pageSize})
    </select>