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", {})