forked from ddrilling/AsbCloudServer
Фикс
This commit is contained in:
parent
19820b79ec
commit
36ec92f055
@ -149,8 +149,8 @@ public class AutoGeneratedDailyReportService : IAutoGeneratedDailyReportService
|
||||
|
||||
return new DatesRangeDto
|
||||
{
|
||||
From = factOperations.First().DateStart,
|
||||
To = factOperations.Last().DateStart
|
||||
From = factOperations.Min(o => o.DateStart),
|
||||
To = factOperations.Max(o => o.DateStart)
|
||||
};
|
||||
}
|
||||
|
||||
@ -209,7 +209,7 @@ public class AutoGeneratedDailyReportService : IAutoGeneratedDailyReportService
|
||||
});
|
||||
}
|
||||
|
||||
private Task<IEnumerable<WellOperationDto>> GetFactOperationsAsync(int idWell, DateTime? startDate,
|
||||
private async Task<IOrderedEnumerable<WellOperationDto>> GetFactOperationsAsync(int idWell, DateTime? startDate,
|
||||
DateTime? finishDate, CancellationToken cancellationToken)
|
||||
{
|
||||
var request = new WellOperationRequest
|
||||
@ -221,7 +221,8 @@ public class AutoGeneratedDailyReportService : IAutoGeneratedDailyReportService
|
||||
SortFields = new[] { "DateStart asc" },
|
||||
};
|
||||
|
||||
return wellOperationRepository.GetAsync(request, cancellationToken);
|
||||
return (await wellOperationRepository.GetAsync(request, cancellationToken))
|
||||
.OrderBy(w => w.DateStart);
|
||||
}
|
||||
|
||||
private Task<IEnumerable<SubsystemStatDto>?> GetSubsystemStatsAsync(int idWell, DateTime startDate,
|
||||
|
Loading…
Reference in New Issue
Block a user