and batch = #{batch} and (batch IS NULL OR batch = '') 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 agv_loc_detl set anfme = #{anfme} where 1=1 and loc_no = #{locNo} and matnr = #{matnr} and batch = #{batch} and (batch IS NULL OR batch = '') and three_code = #{csocode} and (three_code IS NULL OR three_code = '') and dead_time = #{isocode} and (dead_time IS NULL OR dead_time = '') delete from agv_loc_detl where 1=1 and loc_no = #{locNo} and matnr = #{matnr} and batch = #{batch} and (batch IS NULL OR batch = '') and three_code = #{csocode} and (three_code IS NULL OR three_code = '') and dead_time = #{isocode} and (dead_time IS NULL OR dead_time = '')