fix(withdrawal): 恢复分销站点用户提现审核可见性
This commit is contained in:
@@ -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 != "" {
|
||||
|
||||
Reference in New Issue
Block a user