diff --git a/internal/store/postgres/account_store.go b/internal/store/postgres/account_store.go index cc75ac7..94764c0 100644 --- a/internal/store/postgres/account_store.go +++ b/internal/store/postgres/account_store.go @@ -261,8 +261,9 @@ func (s *AccountStore) GetPrimaryAccountsByShopIDs(ctx context.Context, shopIDs var accounts []*model.Account query := s.db.WithContext(ctx). Where("shop_id IN ? AND is_primary = ?", shopIDs, true) - // 应用数据权限过滤 - query = middleware.ApplyShopFilter(ctx, query) + // 注意:此处不再应用数据权限过滤 + // 因为调用方(Service 层)已经保证了 shopIDs 的合法性 + // 在 ListShopFundSummary 场景中,店铺列表已由 Service 层过滤 if err := query.Find(&accounts).Error; err != nil { return nil, err }