自动化立体仓库 - WMS系统
#
whycq
2025-07-03 f9e742b17c47d9f0df3a56caa09f18c8f99aa3f8
src/main/resources/mapper/LocDetlMapper.xml
@@ -250,6 +250,8 @@
        select
        ROW_NUMBER() over (order by sum(a.anfme) desc) as row
        , a.matnr
        , min(a.maktx) as maktx
        , min(a.specs) as specs
        , sum(a.anfme) as anfme
        from asr_loc_detl a
        where 1=1
@@ -301,7 +303,7 @@
<!--                and (a.batch IS NULL OR a.batch = '')-->
<!--            </otherwise>-->
<!--        </choose>-->
        <if test="batch != null">
        <if test="batch != null and batch != ''">
            and a.batch = #{batch}
        </if>
        <if test="orderNo != null and orderNo != ''">
@@ -316,7 +318,7 @@
        </if>
        order by
        DATEPART(yyyy,a.modi_time),DATEPART(mm,a.modi_time),DATEPART(dd,a.modi_time), a.anfme
        DATEPART(yyyy,a.appe_time),DATEPART(mm,a.appe_time),DATEPART(dd,a.appe_time), a.anfme
        desc,
        NEWID(),
        case