From abc8999358e0541a82e04493d31f7ef3de249250 Mon Sep 17 00:00:00 2001 From: duxingchen Date: Thu, 13 Aug 2026 09:01:34 +0800 Subject: [PATCH] =?UTF-8?q?hotfix:=20get=5Fproduct=5Fby=5Fserial=E8=A1=A5?= =?UTF-8?q?=E5=85=A8func=E5=AF=BC=E5=85=A5=20=E2=80=94=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D500=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/services/product_service.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/app/services/product_service.py b/backend/app/services/product_service.py index 931cb5f..a01fbf1 100644 --- a/backend/app/services/product_service.py +++ b/backend/app/services/product_service.py @@ -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(