fix(tenant): 收紧双站后台边界并补齐货架管理
This commit is contained in:
@@ -18,7 +18,8 @@ import (
|
||||
func (r *Repository) AdminList(ctx context.Context, query AdminListQuery) (*AdminPaginatedResult, error) {
|
||||
db := r.db.WithContext(ctx).Model(&model.WithdrawalRequest{})
|
||||
if tenantID := tenancy.IDFromContext(ctx); tenantID > 0 {
|
||||
db = db.Where("tenant_id = ?", tenantID)
|
||||
db = db.Where("tenant_id = ?", tenantID).
|
||||
Where("distribution_site_id = 0")
|
||||
}
|
||||
|
||||
if query.Status != "" {
|
||||
|
||||
Reference in New Issue
Block a user