feat: 新增 AgvPoint 点位表及客户端,支持点位编码与接驳台绑定

This commit is contained in:
SunYF
2026-11-03 10:17:49 +08:00
parent fd2f0e2767
commit 2ccf9bb9ca
62 changed files with 5501 additions and 238 deletions
+6
View File
@@ -341,6 +341,12 @@ func applyColumnPatches(ctx context.Context) {
// 备份记录:强制清理留痕(姓名/手机号),带默认值;存量表补全
`ALTER TABLE backup_record ADD COLUMN IF NOT EXISTS ack_name varchar(64) NOT NULL DEFAULT ''`,
`ALTER TABLE backup_record ADD COLUMN IF NOT EXISTS ack_phone varchar(32) NOT NULL DEFAULT ''`,
// 出库单作废(2026-11-03 断头路补全,对齐入库作废):仅通用/科技项目出库可作废,
// 回滚库存+标记保留记录;voided 带默认值,voided_at 可空,存量库补列幂等。
`ALTER TABLE outbound_orders ADD COLUMN IF NOT EXISTS voided boolean NOT NULL DEFAULT false`,
`ALTER TABLE outbound_orders ADD COLUMN IF NOT EXISTS void_reason text`,
`ALTER TABLE outbound_orders ADD COLUMN IF NOT EXISTS voided_by text`,
`ALTER TABLE outbound_orders ADD COLUMN IF NOT EXISTS voided_at bigint`,
}
for _, s := range stmts {
if _, err := rawDB.ExecContext(ctx, s); err != nil {