| | |
| | | <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 |
| | |
| | | <!-- </otherwise>--> |
| | | <!-- </choose>--> |
| | | |
| | | <choose> |
| | | <when test="sPgNO != null and sPgNO != ''"> |
| | | and a.pg_no = #{sPgNO} |
| | | </when> |
| | | <otherwise> |
| | | and (pg_no IS NULL OR pg_no = '') |
| | | </otherwise> |
| | | </choose> |
| | | <if test="batch != null and batch != ''"> |
| | | and a.batch = #{batch} |
| | | </if> |
| | | <!-- <choose>--> |
| | | |
| | | <if test="sPgNO != null and sPgNO != ''"> |
| | | and a.pg_no = #{sPgNO} |
| | | </if> |
| | | <if test="batch != null and batch != ''"> |
| | | and a.batch = #{batch} |
| | | </if> |
| | | <!-- <choose>--> |
| | | <!-- <when test="batch != null and batch != ''">--> |
| | | <!-- and batch = #{batch}--> |
| | | <!-- </when>--> |
| | |
| | | <!-- <if test="orderNo != null and orderNo != ''">--> |
| | | <!-- and a.order_no = #{orderNo}--> |
| | | <!-- </if>--> |
| | | <if test="model != null and model != ''"> |
| | | and a.model = #{model} |
| | | <if test="matnr != null and matnr != ''"> |
| | | and a.matnr = #{matnr} |
| | | and (a.pg_no is null or LEN(LTRIM(RTRIM(pg_no))) = 0) |
| | | </if> |
| | | |