This commit is contained in:
Marsway 2026-02-04 14:12:45 +08:00
parent b995176e7d
commit 490e537483
1 changed files with 9 additions and 3 deletions

View File

@ -232,10 +232,16 @@ class HuobanyunService:
if isinstance(token_key, str):
if token_key.startswith("对公"):
approval_hint = "public"
if self._resolve_field_key(token_key) == token_key:
key = token_key.replace("对公", "", 1)
else:
key = token_key
elif token_key.startswith("对私"):
approval_hint = "private"
if self._resolve_field_key(token_key) == token_key:
key = token_key.replace("对私", "", 1)
else:
key = token_key
key = self._resolve_field_key(str(key).strip()) if key else ""
query_value = req.query or req.keyword or ""
linkage_params = req.linkage_params or raw.get("linkage_params") or {}
@ -270,7 +276,7 @@ class HuobanyunService:
base_filters.append(
{
"field": project_no_field_id,
"query": {"in": [str(linkage_project_no)]},
"query": {"eq": str(linkage_project_no)},
}
)
payload["filter"] = {"and": base_filters}