refactor(backend): optimize usage service and database helpers

This commit is contained in:
fawney19
2025-12-13 22:27:00 +08:00
parent d564842c4d
commit 7d0003e61e
3 changed files with 46 additions and 27 deletions

View File

@@ -2,11 +2,12 @@
数据库方言兼容性辅助函数
"""
from typing import Any
from sqlalchemy import func
from sqlalchemy.sql.elements import ClauseElement
def date_trunc_portable(dialect_name: str, interval: str, column) -> ClauseElement:
def date_trunc_portable(dialect_name: str, interval: str, column: Any) -> Any:
"""
跨数据库的日期截断函数