hotfix: get_product_by_serial补全func导入 — 修复500错误

This commit is contained in:
2026-08-13 09:01:34 +08:00
parent 997e16d9ba
commit abc8999358

View File

@ -102,6 +102,7 @@ async def get_product_by_serial(db: AsyncSession, serial_number: str) -> Product
creator_map: dict[uuid.UUID, str] = {}
if all_task_ids:
from app.models.task_log import TaskLog
from sqlalchemy import func
# 每个 task 取最早的 create 日志的 operator_id
sub = (
select(