| | |
| | | <mapper namespace="com.zy.asrs.wms.asrs.mapper.ViewLocDetlMapper">
|
| | |
|
| | | <select id="queryStock" resultType="map">
|
| | | select * from view_man_loc_detl ld
|
| | | where matnr = #{matnr}
|
| | | and freeze = 0
|
| | | and batch = #{batch}
|
| | | SELECT * FROM
|
| | | (
|
| | | SELECT id, loc_id, loc_no, mat_id, IFNULL(type_id, 4) AS type_id, work_qty, matnr, order_no, batch, anfme, host_id, memo,deleted, freeze
|
| | | FROM
|
| | | view_man_loc_detl
|
| | | ) t
|
| | | WHERE t.deleted = 0 AND t.freeze = 0
|
| | | <if test="matnr != null and matnr != ''">
|
| | | AND t.matnr = #{matnr}
|
| | | </if>
|
| | | <if test="batch != null and batch != ''">
|
| | | AND t.batch = #{batch}
|
| | | </if>
|
| | | <if test="param!=null and param.size()>0">
|
| | | <foreach item="item" collection="param" index="index">
|
| | | <if test="item.value!=null and item.value != ''">
|