Files
oil/server-tp6/qyt_migration_waybill_notify.sql
vipnub fafd3e2c16 1、合作商余额查询
2、分油账户司机可用额度
2026-10-20 23:21:10 +08:00

25 lines
1.5 KiB
SQL
Raw Permalink 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.
-- ============================================================
-- 企油通 3.10「发放结果通知」接入 · 数据库迁移
-- 生成:2026-10-20
-- 执行顺序:排在 qyt_migration_mall.sql 之后(最后一个)
--
-- 背景:
-- 上游新增 3.10 发放结果通知(运单油费 / 企业福利),批次处理完后主动推给我们,
-- 内容与 7.8 查询结果一致。接入后 7.7 的结果以推送为主,7.8 轮询退为安全网
-- (未配置接收地址不推送、推送重试 5 次后放弃、我方接收端宕机都要靠它兜底)。
--
-- 这里只加两列留痕,不改任何既有字段与状态机:
-- 发放态仍然是 yoshop_partners_order.oil_status_zsy(0未提交/1发放中/2成功/3失败),
-- 推和拉走的是同一套条件跃迁(见 app/common/service/QytWaybill.php)。
-- ============================================================
ALTER TABLE `yoshop_partners_order`
ADD COLUMN `qyt_notify_time` int(11) NOT NULL DEFAULT 0 COMMENT '企油通3.10发放结果通知的最近一次 notify_time' AFTER `qyt_query_num`,
ADD COLUMN `qyt_notify_num` int(11) NOT NULL DEFAULT 0 COMMENT '收到3.10发放结果通知的次数(同一批次可能多次推送)' AFTER `qyt_notify_time`;
-- ------------------------------------------------------------
-- 回滚(按需执行)
-- ------------------------------------------------------------
-- ALTER TABLE `yoshop_partners_order`
-- DROP COLUMN `qyt_notify_time`, DROP COLUMN `qyt_notify_num`;