Files
junhong_cmp_fiber/migrations/000092_drop_commission_withdrawal_approved_fields.up.sql
huang 15dbf8dc66 feat(03-02): Asset Service 接入 Gateway sync-info(DEVICE-04)
- Service 结构体新增 gatewayClient 字段,New() 追加 gatewayClient 参数
- Refresh device 分支在绑定卡刷新后调用 SyncDeviceInfo,nil guard + Warn 日志不阻断主流程
- 新增 updateDeviceFromSyncInfo 私有函数:更新 5 个 device 字段 + 调用 UpdateIsCurrentByDeviceID
- bootstrap/services.go asset.New() 调用追加 deps.GatewayClient
- go build ./... 零新增编译错误
2026-03-28 11:38:14 +08:00

8 lines
442 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.
-- 删除 tb_commission_withdrawal_request 表中的冗余审批人字段
-- approved_by / approved_at 与 processor_id / processed_at 完全等价:
-- Approve 时两组字段写同一个值Reject 时只写 processor_id。
-- processor_id / processed_at 已覆盖全部场景approved_* 为历史遗留字段。
ALTER TABLE tb_commission_withdrawal_request
DROP COLUMN IF EXISTS approved_by,
DROP COLUMN IF EXISTS approved_at;