| | |
| | | where 1=1 |
| | | and loc_no = #{locNo} |
| | | and matnr = #{matnr} |
| | | -- and (batch IS NULL OR batch = '') |
| | | <choose> |
| | | <when test="batch != null and batch != ''"> |
| | | and batch = #{batch} |
| | | </when> |
| | | <!-- <otherwise>--> |
| | | <!-- and (supp_code IS NULL OR supp_code = '')--> |
| | | <!-- </otherwise>--> |
| | | </choose> |
| | | <choose> |
| | | <when test="suppCode != null and suppCode != ''"> |
| | | and supp_code = #{suppCode} |
| | |
| | | and loc_no = #{locNo} |
| | | and matnr = #{matnr} |
| | | </update> |
| | | |
| | | <update id="updateNewMatnr"> |
| | | update asr_loc_detl |
| | | set matnr = #{matnrNew} |
| | | , modi_time = getdate() |
| | | where 1=1 |
| | | and matnr = #{matnrOld} |
| | | </update> |
| | | </mapper> |