自动化立体仓库 - WMS系统
lty
5 天以前 6c554723b1dfbd50412e963206032ed7dd50bab9
src/main/resources/mapper/LocDetlMapper.xml
@@ -152,12 +152,21 @@
    <select id="getAnfmeByMatnr" resultType="com.zy.asrs.entity.LocDetl">
        select
            sum(a.anfme) as anfme
        sum(a.anfme) as anfme
        from asr_loc_detl a
        where matnr = #{matnr}
        <where>
            a.matnr = #{matnr}
            <if test="batch != null and batch != ''">
                and a.batch = #{batch}
            </if>
            <if test="specs != null and specs != ''">
                and a.specs = #{specs}
            </if>
        </where>
    </select>
    <select id="getStockStatisCount" parameterType="java.util.Map" resultType="java.lang.Integer">
     select count(1) as count from
        (