diff --git a/dbm-ui/backend/db_services/quick_search/handlers.py b/dbm-ui/backend/db_services/quick_search/handlers.py index 088768cec5..03b9012704 100644 --- a/dbm-ui/backend/db_services/quick_search/handlers.py +++ b/dbm-ui/backend/db_services/quick_search/handlers.py @@ -180,8 +180,7 @@ def filter_instance(self, keyword_list: list): def filter_task(self, keyword_list: list): """过滤任务""" - qs = self.generate_filter_for_str("root_id", keyword_list) - objs = FlowTree.objects.filter(qs) + objs = FlowTree.objects.filter(root_id__in=keyword_list) if self.bk_biz_ids: objs = objs.filter(bk_biz_id__in=self.bk_biz_ids)