and batch = #{batch} and (batch IS NULL) delete from asr_loc_detl where 1=1 and loc_no = #{locNo} and matnr = #{matnr} and three_code = #{threeCode} and (three_code IS NULL) and bom_code = #{bomCode} and (bom_code IS NULL) 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} 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 (three_code IS NULL) and bom_code = #{bomCode} and (bom_code IS NULL) 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} and a.batch=#{batch} and b.crn_no=#{crnNo} and a.zpallet like '%' + #{zpallet} + '%' and a.bom_code like '%' + #{bomCode} + '%' and a.three_code like '%' + #{threeCode} + '%' and a.order_no like '%' + #{orderNo} + '%'