自动化立体仓库 - WMS系统
#
Junjie
2024-07-17 1b230d7961b2d5068298f0cba13287cabd2fd649
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>