diff --git a/Src/Dlhis.Basic/Places/Services/Implements/BusinessPlaceService.cs b/Src/Dlhis.Basic/Places/Services/Implements/BusinessPlaceService.cs index 23508ed8..901fd89c 100644 --- a/Src/Dlhis.Basic/Places/Services/Implements/BusinessPlaceService.cs +++ b/Src/Dlhis.Basic/Places/Services/Implements/BusinessPlaceService.cs @@ -55,15 +55,12 @@ public class BusinessPlaceService : IBusinessPlaceService public async Task> GetOpenedListAsync(Guid? placeCode = null, string tenant = null) { - var myCodes = await GetMyBusinessPlaceCodesAsync(); - var list = await _dbContext.Queryable() .LeftJoin((x, ps) => x.Code == ps.PlaceCode) .LeftJoin((x, ps, s) => s.Code == ps.ShiftCode) .Where(x => x.Status == CanteenBusinessPlaceStatusEnumType.Opened) .WhereIF(placeCode.HasValue, x => x.Code == placeCode) .WhereIF(tenant.IsPresent(), x => x.TenantId == tenant) - .Where(x => myCodes.Contains(x.Code)) .Select((x, ps, s) => new BusinessPlaceListResponse { Id = x.Id,