fix(review): pipeline_human_tasks无updated_at列,取消待办SQL修正(实测schema)

This commit is contained in:
yumoqing 2026-09-16 17:29:25 +08:00
parent bede609b9e
commit ac1b029e24

View File

@ -175,8 +175,9 @@ async def review_chapter(chapter_id, score, max_score="", comments="", detail=""
"WHERE project_id=${pid}$ AND status IN ('draft','reviewing','passed')",
{"pid": pid})
# 交付确认待办同步取消(指向旧版标书,留着=僵尸待办误导用户确认旧版)
# 注pipeline_human_tasks 无 updated_at 列2026-09-16 实测 schema
await sor.sqlExe(
"UPDATE pipeline_human_tasks SET status='cancelled', updated_at=NOW() "
"UPDATE pipeline_human_tasks SET status='cancelled' "
"WHERE project_id=${pid}$ AND task_type=${tt}$ AND status='pending'",
{"pid": pid, "tt": "bid_delivery_confirm"})
await sor.sqlExe("COMMIT", {})