自动化立体仓库 - WMS系统
dubin
昨天 2a9f6d72baa207bc91c98d0a5cd2235be9816691
src/main/resources/mapper/LocDetlMapper.xml
@@ -640,4 +640,30 @@
            AND outOrderNo like '%' + #{outOrderNo} + '%'
        </if>
    </select>
    <select id="queryInventoryDetails" parameterType="map" resultMap="BaseResultMap">
        SELECT *
        FROM asr_loc_detl
        <where>
            <if test="locId != null and locId != ''">
                AND loc_id = #{locId}
            </if>
            <if test="matNr != null and matNr != ''">
                AND mat_nr = #{matNr}
            </if>
            <if test="orderNo != null and orderNo != ''">
                AND order_no = #{orderNo}
            </if>
            <if test="planNo != null and planNo != ''">
                AND plan_no = #{planNo}
            </if>
            <if test="batch != null and batch != ''">
                AND batch = #{batch}
            </if>
        </where>
    </select>
    <select id="queryInventorySummary" resultType="java.lang.Double">
        SELECT SUM(anfme) FROM asr_loc_detl WHERE matnr = #{s}
    </select>
</mapper>