袁聪的最后一次完善更新

This commit is contained in:
2026-09-14 18:13:10 +08:00
parent 54055b4328
commit 2548c39c6b
50 changed files with 2818 additions and 267 deletions
+3 -1
View File
@@ -3,7 +3,7 @@ from __future__ import annotations
import re
from collections.abc import Callable
from contextlib import AbstractAsyncContextManager
from datetime import UTC, datetime, timedelta
from datetime import UTC, date, datetime, timedelta
from decimal import Decimal
from typing import Any
@@ -454,6 +454,8 @@ class FinancialNL2SQLService:
converted[key] = str(value)
elif isinstance(value, datetime):
converted[key] = value.isoformat(sep=" ", timespec="seconds")
elif isinstance(value, date):
converted[key] = value.isoformat()
else:
converted[key] = value
return converted