update safe_material set del_flag = 1 where id in #{id} update safe_material total_count = total_count + #{totalCount}, stock_count = stock_count + #{stockCount}, where id = #{id} update safe_material total_count = total_count + #{safeMaterialBO.totalCount}, stock_count = stock_count + #{safeMaterialBO.stockCount} where id = #{safeMaterialBO.id}