自动化立体仓库 - WMS系统
zwl
2025-11-21 d8b7e1ccee37e96e71c9072e53bc6fc736cdad2a
src/main/resources/mapper/asrs/LocDetlMapper.xml
@@ -89,7 +89,7 @@
            and a.loc_no like '%' + #{loc_no} + '%'
        </if>
        <if test="matnr!=null and matnr!='' ">
            and a.matnr like '%' + #{matnr} + '%'
            and a.matnr = #{matnr}
        </if>
        <if test="zpallet!=null and zpallet!='' ">
            and a.zpallet like '%' + #{zpallet} + '%'
@@ -102,6 +102,12 @@
        </if>
        <if test="batch!=null and batch!='' ">
            and a.batch like  '%' + #{batch} + '%'
        </if>
        <if test="brand!=null and brand!=''">
            and a.brand in
            <foreach collection="brand.split(',')" item="item" open="(" close=")" separator=",">
                #{item}
            </foreach>
        </if>
        <if test="startTime!=null and endTime!=null">
            and a.modi_time between #{startTime} and #{endTime}
@@ -123,6 +129,7 @@
        and b.loc_sts = 'F'
        <include refid="stockOutCondition"></include>
        ) t where t.row between ((#{pageNumber}-1)*#{pageSize}+1) and (#{pageNumber}*#{pageSize})
        order by t.batch
    </select>
    <select id="getStockOutPageCount" parameterType="java.util.Map" resultType="java.lang.Integer">