and batch = #{batch} and (batch IS NULL OR batch = '') delete from asr_loc_detl where 1=1 and loc_no = #{locNo} and matnr = #{matnr} update asr_loc_detl set anfme = #{anfme} , modi_time = getdate() where 1=1 and loc_no = #{locNo} and matnr = #{matnr} and three_code = #{threeCode} and supp_code = #{suppCode} and dead_time = #{deadTime} and a.loc_no like '%' + #{loc_no} + '%' and a.matnr like '%' + #{matnr} + '%' and a.maktx like '%' + #{maktx} + '%' and a.anfme like '%' + #{anfme} + '%' and a.modi_time between #{startTime} and #{endTime} update asr_loc_detl set stock_freeze = #{stockFreeze} , modi_time = getdate() where 1=1 and loc_no = #{locNo} and matnr = #{matnr}