| | |
| | | <include refid="batchSeq"></include> |
| | | </select> |
| | | |
| | | <select id="selectItem2" resultMap="BaseResultMap"> |
| | | select top 1 * |
| | | from asr_loc_detl |
| | | where 1=1 |
| | | and loc_no = #{locNo} |
| | | and matnr = #{matnr} |
| | | </select> |
| | | |
| | | <delete id="deleteItem"> |
| | | delete from asr_loc_detl |
| | | where 1=1 |
| | |
| | | where 1=1 |
| | | and b.loc_sts = 'F' |
| | | |
| | | <!-- <choose>--> |
| | | <!-- <when test="batch != null and batch != ''">--> |
| | | <!-- and a.batch = #{batch}--> |
| | | <!-- </when>--> |
| | | <!-- <otherwise>--> |
| | | <!-- and (a.batch IS NULL OR a.batch = '')--> |
| | | <!-- </otherwise>--> |
| | | <!-- </choose>--> |
| | | <!-- <choose>--> |
| | | <!-- <when test="batch != null and batch != ''">--> |
| | | <!-- and a.batch = #{batch}--> |
| | | <!-- </when>--> |
| | | <!-- <otherwise>--> |
| | | <!-- and (a.batch IS NULL OR a.batch = '')--> |
| | | <!-- </otherwise>--> |
| | | <!-- </choose>--> |
| | | |
| | | |
| | | <if test="sPgNO != null and sPgNO != ''"> |
| | | and a.pg_no = #{sPgNO} |
| | |
| | | <if test="batch != null and batch != ''"> |
| | | and a.batch = #{batch} |
| | | </if> |
| | | <!-- <if test="orderNo != null and orderNo != ''">--> |
| | | <!-- and a.order_no = #{orderNo}--> |
| | | <!-- </if>--> |
| | | <if test="model != null and model != ''"> |
| | | and a.model = #{model} |
| | | and (a.pg_no is null or LEN(LTRIM(RTRIM(pg_no))) = 0) |
| | | <!-- <choose>--> |
| | | <!-- <when test="batch != null and batch != ''">--> |
| | | <!-- and batch = #{batch}--> |
| | | <!-- </when>--> |
| | | <!-- <otherwise>--> |
| | | <!-- and (batch IS NULL OR batch = '')--> |
| | | <!-- </otherwise>--> |
| | | <!-- </choose>--> |
| | | <!-- <if test="orderNo != null and orderNo != ''">--> |
| | | <!-- and a.order_no = #{orderNo}--> |
| | | <!-- </if>--> |
| | | <if test="matnr != null and matnr != ''"> |
| | | and a.matnr = #{matnr} |
| | | and (a.pg_no is null or LEN(LTRIM(RTRIM(pg_no))) = 0) |
| | | </if> |
| | | |
| | | <if test="locNos != null and locNos.size > 0"> |
| | | and b.loc_no not in |
| | | <foreach item="item" collection="locNos" index="index" separator="," open="(" close=")"> |
| | | <foreach item="item" collection="locNos" index="index" separator="," open="(" close=")"> |
| | | #{item} |
| | | </foreach> |
| | | </if> |