From 8db2a059e54bc4f1986a0c827109878e0d617b9e Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 26 Aug 2026 23:58:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20pipeline=5Fhuman=5Ftasks=20=E6=B4=BB?= =?UTF-8?q?=E8=A1=A8=E6=97=A0=20comments=20=E5=88=97=EF=BC=8C=E6=94=B9?= =?UTF-8?q?=E7=94=A8=20qc=5Fcomment=EF=BC=88=E4=BB=A5=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E6=B4=BB=E8=A1=A8=20schema=20=E4=B8=BA?= =?UTF-8?q?=E5=87=86=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pipeline_bidding/bid_flow.py | 2 +- pipeline_bidding/bid_tender_capability.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pipeline_bidding/bid_flow.py b/pipeline_bidding/bid_flow.py index 68f58e6..d7c6c01 100644 --- a/pipeline_bidding/bid_flow.py +++ b/pipeline_bidding/bid_flow.py @@ -65,7 +65,7 @@ async def _auto_close_file_upload_task(sor, project_id): return False await sor.sqlExe( "UPDATE pipeline_human_tasks SET status='done', qc_status='passed', " - "comments='招标文件已上传,系统自动完成', submitted_at=NOW() WHERE id=${h}$", + "qc_comment='招标文件已上传,系统自动完成', submitted_at=NOW() WHERE id=${h}$", {"h": ht.get("id")}) await sor.sqlExe("COMMIT", {}) logger.info("bid_flow: auto-closed tender_file_upload task project=%s", project_id) diff --git a/pipeline_bidding/bid_tender_capability.py b/pipeline_bidding/bid_tender_capability.py index 22b8089..3a0004d 100644 --- a/pipeline_bidding/bid_tender_capability.py +++ b/pipeline_bidding/bid_tender_capability.py @@ -324,9 +324,9 @@ async def _close_approval_task(sor, tender_id, status, comment=""): if not hid: return await sor.sqlExe( - "UPDATE pipeline_human_tasks SET status=${st}$, comments=${cm}$, " + "UPDATE pipeline_human_tasks SET status=${st}$, qc_comment=${cm}$, " "submitted_at=NOW() WHERE id=${hid}$ AND status='pending'", - {"st": status, "cm": (comment or "")[:2000], "hid": hid}) + {"st": status, "cm": (comment or "")[:480], "hid": hid}) await sor.sqlExe("COMMIT", {})