qiangdanxitong/database/add_product_id_filled.sql
Your Name 96da6c6673 feat: 任务完结状态优化 + 商品ID确认功能 + 子任务交付路径汇总
1. 需求方完结任务显示待填写ID状态,填完商品ID后显示已完结
2. 添加确认商品ID填写完成功能
3. 母卡片展示所有子任务的交付路径汇总
4. 流水线任务:子任务按顺序完成,自动发起下一个子任务审核
5. 母任务编号作为子任务编号前缀
6. 所有子任务完成后母任务才能完结
2026-01-05 14:21:03 +08:00

10 lines
417 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- 添加商品ID填写确认字段
ALTER TABLE task ADD COLUMN product_id_filled TINYINT(1) DEFAULT 0 COMMENT '商品ID是否已填写确认:0-未填写 1-已填写' AFTER reject_deadline;
-- 更新现有已完成任务:如果已有商品ID记录则标记为已填写
UPDATE task t
SET t.product_id_filled = 1
WHERE t.status = 'completed'
AND EXISTS (SELECT 1 FROM task_product tp WHERE tp.task_id = t.id);