| | |
| | | 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> |