自动化立体仓库 - WMS系统
zc
2025-07-16 c42346453608186971fad5e80ffd08fd58d38d06
src/main/resources/mapper/LocDetlMapper.xml
@@ -53,10 +53,10 @@
    <sql id="batchSeq">
        <choose>
            <when test="batch != null and batch != ''">
                and batch = #{batch}
                and sku = #{batch}
            </when>
            <otherwise>
                and (batch IS NULL OR batch = '')
                and (sku IS NULL OR sku = '')
            </otherwise>
        </choose>
    </sql>
@@ -67,7 +67,14 @@
        where 1=1
        and loc_no = #{locNo}
        and matnr = #{matnr}
        <include refid="batchSeq"></include>
        <choose>
            <when test="batch != null and batch != ''">
                and sku = #{batch}
            </when>
            <otherwise>
                and (sku IS NULL OR sku = '')
            </otherwise>
        </choose>
    </select>
    <delete id="deleteItem">