自动化立体仓库 - WMS系统
src/main/resources/mapper/WrkMastLogMapper.xml
@@ -119,4 +119,31 @@
        <include refid="queryWhere"></include>
    </select>
    <select id="inventoryFlowAll" resultType="com.zy.asrs.entity.InventoryFlowDto">
        select
            a.wrk_no wrkNo,
            a.io_type ioType,
            a.io_time ioTime,
            a.wrk_sts wrkSts,
            a.source_loc_no sourceLocNo,
            a.loc_no locNo,
            a.barcode zpallet,
            b.matnr,
            b.maktx,
            b.order_no orderNo,
            b.batch,
            b.anfme,
            b.modi_time modiTime,
            b.modi_user modiUser
        from
            asr_wrk_mast_log a
                inner join asr_wrk_detl_log b on
                        a.wrk_no = b.wrk_no
                    and a.io_time = b.io_time
                    and a.wrk_sts in(5, 15)
                    <include refid="queryWhere"></include>
        order by
            a.modi_time desc
    </select>
</mapper>