feat: 技术债务清理(支付配置动态化、API文档补全、轮询常量提取、废弃代码清理)
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 7m13s

This commit is contained in:
2026-04-14 11:11:15 +08:00
parent c0b64c9e30
commit 42c5ec912f
63 changed files with 1979 additions and 775 deletions

View File

@@ -0,0 +1,5 @@
-- 回滚:恢复已删除的废弃字段(列结构恢复,历史数据已备份)
ALTER TABLE tb_iot_card ADD COLUMN IF NOT EXISTS first_commission_paid boolean NOT NULL DEFAULT false;
ALTER TABLE tb_iot_card ADD COLUMN IF NOT EXISTS accumulated_recharge bigint NOT NULL DEFAULT 0;
ALTER TABLE tb_device ADD COLUMN IF NOT EXISTS first_commission_paid boolean NOT NULL DEFAULT false;
ALTER TABLE tb_device ADD COLUMN IF NOT EXISTS accumulated_recharge bigint NOT NULL DEFAULT 0;

View File

@@ -0,0 +1,6 @@
-- 删除 tb_iot_card 和 tb_device 表中的废弃分佣追踪字段
-- 这两个字段已被 accumulated_recharge_by_series (JSONB) 字段替代
ALTER TABLE tb_iot_card DROP COLUMN IF EXISTS first_commission_paid;
ALTER TABLE tb_iot_card DROP COLUMN IF EXISTS accumulated_recharge;
ALTER TABLE tb_device DROP COLUMN IF EXISTS first_commission_paid;
ALTER TABLE tb_device DROP COLUMN IF EXISTS accumulated_recharge;