diff --git a/lyrebird/mock/dm/__init__.py b/lyrebird/mock/dm/__init__.py index 079699ce..467c8df5 100644 --- a/lyrebird/mock/dm/__init__.py +++ b/lyrebird/mock/dm/__init__.py @@ -1208,8 +1208,8 @@ def _delete_remove_from_parent(self, id_): # batch action def delete_by_query(self, query): - node_delete_group_ids = query.get('data', []) - node_delete_data_ids = query.get('groups', []) + node_delete_group_ids = query.get('groups', []) + node_delete_data_ids = query.get('data', []) all_id_list = list(set(node_delete_group_ids + node_delete_data_ids)) times = math.ceil(len(all_id_list) / self.DELETE_STEP)