添加查询条件，updated both.