fix(distribution): 统一分销订单租户管理口径

This commit is contained in:
yml
2026-11-24 22:12:52 +08:00
parent 3ac4052ac5
commit 3cc61615f9
20 changed files with 462 additions and 101 deletions
@@ -308,8 +308,7 @@ func applyRentalOrderTenantScope(db *gorm.DB, tenantID uint64) *gorm.DB {
return db
}
return db.
Where("(buyer_tenant_id = ? OR source_tenant_id = ?)", tenantID, tenantID).
Where("(distribution_site_id IS NULL OR distribution_site_id = 0)")
Where("(buyer_tenant_id = ? OR source_tenant_id = ?)", tenantID, tenantID)
}
type dailyDisbursementSourceRow struct {