and a.matnr like '%' + #{matnr} + '%' and a.vlpla like '%' + #{vlpla} + '%' and (a.maktx like '%' + #{maktx} + '%' or meins like '%' + #{maktx} + '%' or werks like '%' + #{maktx} + '%' or vlpla like '%' + #{maktx} + '%' or nlpla like '%' + #{maktx} + '%' ) update cust_wait_pakout set ems_status = 1 where lgnum=#{lgnum} and tanum = #{tanum} and tapos = #{tapos}