自动化立体仓库 - WMS系统
野心家
2023-04-27 c327ae2c32c988c43d6881c9caf196e42bab3f8c
src/main/resources/mapper/OrderDetlMapper.xml
@@ -133,7 +133,14 @@
            and order_no like '%' + #{orderNo} + '%'
        </if>
        and matnr = #{matnr}
        and batch = #{batch}
        <choose>
            <when test="batch != null and batch!=''  ">
                and batch = #{batch}
            </when>
            <otherwise>
                and (batch IS NULL OR batch = '')
            </otherwise>
        </choose>
    </select>
    <update id="increase">