自动化立体仓库 - WMS系统
zhangchao
2024-08-28 7deaef70a6d20a7f1fb86b3af3d58ad76135bc20
src/main/resources/mapper/LocDetlMapper.xml
@@ -64,6 +64,7 @@
        where 1=1
        and loc_no = #{locNo}
        and matnr = #{matnr}
        and (batch IS NULL OR batch = '')
        <choose>
            <when test="suppCode != null and suppCode != ''">
                and supp_code = #{suppCode}
@@ -180,9 +181,12 @@
        ROW_NUMBER() over (order by sum(a.anfme) desc) as row
        , a.matnr
        , sum(a.anfme) as anfme
        , a.maktx
        , a.specs
        , model
        from asr_loc_detl a
        where 1=1
        group by a.matnr
        group by a.matnr,a.maktx,a.specs,model
    </select>
    <select id="selectPakoutByRule" resultMap="BaseResultMap">