fix(withdrawal): 恢复分销站点用户提现审核可见性

This commit is contained in:
yml
2026-11-26 21:48:14 +08:00
parent 9c1ad51bca
commit 18b54e9f1a
3 changed files with 44 additions and 3 deletions
+2 -2
View File
@@ -17,9 +17,9 @@ import (
// 管理员查询提现列表
func (r *Repository) AdminList(ctx context.Context, query AdminListQuery) (*AdminPaginatedResult, error) {
db := r.db.WithContext(ctx).Model(&model.WithdrawalRequest{})
// distribution_site_id 只表示获客渠道,不能把同租户内分销站点用户的提现挡在财务审核列表外。
if tenantID := tenancy.IDFromContext(ctx); tenantID > 0 {
db = db.Where("tenant_id = ?", tenantID).
Where("distribution_site_id = 0")
db = db.Where("tenant_id = ?", tenantID)
}
if query.Status != "" {