update
This commit is contained in:
parent
b995176e7d
commit
490e537483
|
|
@ -232,10 +232,16 @@ class HuobanyunService:
|
||||||
if isinstance(token_key, str):
|
if isinstance(token_key, str):
|
||||||
if token_key.startswith("对公"):
|
if token_key.startswith("对公"):
|
||||||
approval_hint = "public"
|
approval_hint = "public"
|
||||||
key = token_key.replace("对公", "", 1)
|
if self._resolve_field_key(token_key) == token_key:
|
||||||
|
key = token_key.replace("对公", "", 1)
|
||||||
|
else:
|
||||||
|
key = token_key
|
||||||
elif token_key.startswith("对私"):
|
elif token_key.startswith("对私"):
|
||||||
approval_hint = "private"
|
approval_hint = "private"
|
||||||
key = token_key.replace("对私", "", 1)
|
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 ""
|
key = self._resolve_field_key(str(key).strip()) if key else ""
|
||||||
query_value = req.query or req.keyword or ""
|
query_value = req.query or req.keyword or ""
|
||||||
linkage_params = req.linkage_params or raw.get("linkage_params") or {}
|
linkage_params = req.linkage_params or raw.get("linkage_params") or {}
|
||||||
|
|
@ -270,7 +276,7 @@ class HuobanyunService:
|
||||||
base_filters.append(
|
base_filters.append(
|
||||||
{
|
{
|
||||||
"field": project_no_field_id,
|
"field": project_no_field_id,
|
||||||
"query": {"in": [str(linkage_project_no)]},
|
"query": {"eq": str(linkage_project_no)},
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
payload["filter"] = {"and": base_filters}
|
payload["filter"] = {"and": base_filters}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue