and batch = #{batch} and (batch IS NULL OR batch = '') and barcode = #{barcode} and (barcode IS NULL OR barcode = '') delete from asr_wrk_detl where 1=1 and wrk_no = #{wrkNo} and matnr = #{matnr} update asr_wrk_detl set anfme = #{anfme} , modi_time = getdate() where 1=1 and wrk_no = #{wrkNo} and matnr = #{matnr} update asr_wrk_detl set memo = #{buyerLabel} where order_no = #{orderNo} and barcode = #{barcode} update asr_wrk_detl set inspect = 1 where 1=1 and wrk_no = #{wrkNo} and matnr = #{matnr} update asr_wrk_detl set io_time = #{ioTime} where 1=1 and wrk_no = #{workNo}