feat(tenant): 增加双站共享货架与跨站下单

This commit is contained in:
yml
2026-11-15 15:45:00 +08:00
parent abf0fce89b
commit 4eb2bc253b
20 changed files with 767 additions and 31 deletions
@@ -70,7 +70,9 @@ func (r *Repository) TransferOwner(ctx context.Context, adminID uint64, listingI
listing.HandoffMode = "owner"
listing.SettlementMode = "owner_wallet"
listing.ManagedAdminID = nil
listing.SourceTenantID = target.TenantID
account.OwnerID = target.ID
account.SourceTenantID = target.TenantID
if err := tx.Save(account).Error; err != nil {
return err
}