update man_order_detl set qty = qty + #{qty} where 1=1 and order_id = #{orderId} and matnr = #{matnr} and batch = #{batch} and (batch IS NULL OR batch = '')