fix: pipeline_human_tasks 活表无 comments 列,改用 qc_comment(以测试环境活表 schema 为准)
This commit is contained in:
parent
7c21378296
commit
8db2a059e5
@ -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)
|
||||
|
||||
@ -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", {})
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user