自动化立体仓库 - WMS系统
#
mrzhssss
2022-11-24 5ae3d9f543b045bd05873e6126793d58837d14dd
src/main/resources/mapper/OrderDetlMapper.xml
@@ -68,7 +68,7 @@
        where 1=1
        and order_no = #{orderNo}
        and matnr = #{matnr}
        <if test="batch!=null and batch!='' ">
        <if test="batch!=null">
            and batch = #{batch}
        </if>
    </select>
@@ -148,11 +148,11 @@
        and order_no = #{orderNo}
        and matnr = #{matnr}
        <choose>
            <when test="batch != null and batch != ''">
            <when test="batch != null">
                and batch = #{batch}
            </when>
            <otherwise>
                and (batch IS NULL OR batch = '')
                and (batch IS NULL )
            </otherwise>
        </choose>
    </update>