forked from ddrilling/AsbCloudServer
IDailyReportService, WellInfoService, WellInfoService
This commit is contained in:
parent
15fdfa11ed
commit
feb2623200
@ -57,6 +57,6 @@ namespace AsbCloudApp.Services
|
||||
/// <param name="date"></param>
|
||||
/// <param name="token"></param>
|
||||
/// <returns></returns>
|
||||
Task<Stream> MakeReportAsync(int idWell, DateTime date, CancellationToken token = default);
|
||||
Task<Stream?> MakeReportAsync(int idWell, DateTime date, CancellationToken token = default);
|
||||
}
|
||||
}
|
||||
|
@ -10,7 +10,6 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace AsbCloudInfrastructure.Repository
|
||||
{
|
||||
#nullable enable
|
||||
public class ScheduleRepository : CrudWellRelatedRepositoryBase<ScheduleDto, Schedule>, IScheduleRepository
|
||||
{
|
||||
private readonly IWellService wellService;
|
||||
@ -21,7 +20,7 @@ namespace AsbCloudInfrastructure.Repository
|
||||
this.wellService = wellService;
|
||||
}
|
||||
|
||||
public async Task<DrillerDto?> GetDrillerAsync(int idWell, DateTime workTime, CancellationToken token)
|
||||
public async Task<DrillerDto> GetDrillerAsync(int idWell, DateTime workTime, CancellationToken token)
|
||||
{
|
||||
var hoursOffset = wellService.GetTimezone(idWell).Hours;
|
||||
var date = workTime.ToUtcDateTimeOffset(hoursOffset);
|
||||
@ -64,5 +63,4 @@ namespace AsbCloudInfrastructure.Repository
|
||||
return dto;
|
||||
}
|
||||
}
|
||||
#nullable disable
|
||||
}
|
||||
|
@ -97,7 +97,7 @@ namespace AsbCloudInfrastructure.Services
|
||||
var wellSubsystemStat = subsystemStat.FirstOrDefault(s => s.Well.Id == well.Id);
|
||||
|
||||
double currentDepth = wellLastTelemetryInfo?.WellDepth
|
||||
?? wellLastFactSection?.Fact.WellDepthEnd
|
||||
?? wellLastFactSection?.Fact?.WellDepthEnd
|
||||
?? 0d;
|
||||
|
||||
var wellProcessMaps = processMaps
|
||||
|
Loading…
Reference in New Issue
Block a user