自动化立体仓库 - WMS系统
pang.jiabao
2024-03-15 c6fc22023760e3237d082854bac8c2c7b0d43110
src/main/resources/mapper/MatMapper.xml
@@ -55,9 +55,10 @@
        LEFT JOIN (
            select
            matnr,
            sum(anfme) as amount
            sum(anfme) as amount,
            batch
            from man_loc_detl
            group by matnr
            group by matnr,batch
        ) as mld on mld.matnr = mm.matnr
        WHERE 1=1
        and (mm.memo is null or mm.memo != '打包上线')
@@ -68,6 +69,9 @@
        <if test="maktx != null and maktx != ''">
            and mm.maktx like concat('%',#{maktx},'%')
        </if>
        <if test="batch != null and batch != ''">
            and mld.batch like concat('%',#{batch},'%')
        </if>
        ORDER BY mm.create_time DESC
    </select>