fix(tenant): 收紧双站运营提号与录单边界

This commit is contained in:
yml
2026-11-16 16:12:55 +08:00
parent 1108df195d
commit 1ce9f7aaf5
60 changed files with 1531 additions and 337 deletions
@@ -5,6 +5,7 @@ import "time"
// AdminPickupFinancialAdjustment 保存已完成提号的财务调整,原始结算快照不可修改。
type AdminPickupFinancialAdjustment struct {
ID uint64 `gorm:"primaryKey" json:"id"`
TenantID uint64 `gorm:"not null;default:0;index:idx_pickup_financial_adjustment_tenant" json:"tenant_id"`
PickupID uint64 `gorm:"not null;index" json:"pickup_id"`
ProfitDeltaCent int64 `gorm:"not null;default:0" json:"profit_delta_cent"`
SettleDeltaCent int64 `gorm:"not null;default:0" json:"settle_delta_cent"`