| | |
| | | <select id="queryFlatStock" resultType="map">
|
| | | SELECT * FROM
|
| | | (
|
| | | SELECT id, loc_id, loc_no, mat_id, type_id, matnr, order_no, batch, anfme, host_id, memo, freeze
|
| | | SELECT id, loc_id, loc_no, mat_id, type_id, work_qty, matnr, order_no, batch, anfme, host_id, memo, freeze
|
| | | FROM
|
| | | view_man_loc_detl
|
| | | WHERE
|
| | |
| | | ) t
|
| | | WHERE 1 = 1
|
| | | <if test="matnr != null and matnr != ''">
|
| | | AND t.matnr #{matnr}
|
| | | AND t.matnr = #{matnr}
|
| | | </if>
|
| | | <if test="batch != null and batch != ''">
|
| | | AND t.batch = #{batch}
|
| | | </if>
|
| | | <if test="params != null and params.size() > 0">
|
| | | <foreach collection="params" item="item" open="order by " separator="," close=" ">
|
| | | ${item.name} = #{item.value}
|
| | | </foreach>
|
| | | </if>
|
| | | <!-- <if test="params != null and params.size() > 0">-->
|
| | | <!-- <foreach collection="params" item="item" open="in " separator="," close=" ">-->
|
| | | <!-- ${item.name} #{item.value}-->
|
| | | <!-- </foreach>-->
|
| | | <!-- </if>-->
|
| | | </select>
|
| | | </mapper>
|