自动化立体仓库 - WMS系统
13
zhang
2025-09-22 290b752cab63b7e813dcb493b5110b09829eff58
src/main/resources/mapper/LocDetlMapper.xml
@@ -64,6 +64,15 @@
        where 1=1
        and loc_no = #{locNo}
        and matnr = #{matnr}
--         and (batch IS NULL OR batch = '')
        <choose>
            <when test="batch != null and batch != ''">
                and batch = #{batch}
            </when>
            <!--            <otherwise>-->
            <!--                and (supp_code IS NULL OR supp_code = '')-->
            <!--            </otherwise>-->
        </choose>
        <choose>
            <when test="suppCode != null and suppCode != ''">
                and supp_code = #{suppCode}
@@ -403,4 +412,12 @@
        and loc_no = #{locNo}
        and matnr = #{matnr}
    </update>
    <update id="updateNewMatnr">
        update asr_loc_detl
        set matnr = #{matnrNew}
          , modi_time = getdate()
        where 1=1
          and matnr = #{matnrOld}
    </update>
</mapper>