forked from ddrilling/AsbCloudServer
Поле Duration заменено на DurationSec (в Dto и модели для Operation)
This commit is contained in:
parent
61205fa7c1
commit
016522fbd5
@ -3,6 +3,6 @@
|
|||||||
public class OperationDetailsDto
|
public class OperationDetailsDto
|
||||||
{
|
{
|
||||||
public string OperationName { get; set; }
|
public string OperationName { get; set; }
|
||||||
public int Duration { get; set; }
|
public int DurationSec { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -208,7 +208,7 @@ namespace AsbCloudInfrastructure.Services
|
|||||||
Operations = o.Select(opr => new OperationDetailsDto
|
Operations = o.Select(opr => new OperationDetailsDto
|
||||||
{
|
{
|
||||||
OperationName = opr.OperationName,
|
OperationName = opr.OperationName,
|
||||||
Duration = opr.OperationsDuration
|
DurationSec = opr.OperationsDuration
|
||||||
}).ToList()
|
}).ToList()
|
||||||
})
|
})
|
||||||
.OrderBy(ops => ops.IntervalBegin);
|
.OrderBy(ops => ops.IntervalBegin);
|
||||||
|
@ -19,8 +19,8 @@ namespace AsbCloudInfrastructure.Services
|
|||||||
private readonly CacheTable<Well> cacheWells;
|
private readonly CacheTable<Well> cacheWells;
|
||||||
|
|
||||||
public DataService(IAsbCloudDbContext db, ITelemetryService telemetryService,
|
public DataService(IAsbCloudDbContext db, ITelemetryService telemetryService,
|
||||||
IAnalyticsService analyticsService, ISaubDataCache saubDataCache,
|
IAnalyticsService analyticsService, CacheDb cacheDb,
|
||||||
CacheDb cacheDb, MapperConfiguration mapperConfiguration)
|
MapperConfiguration mapperConfiguration)
|
||||||
{
|
{
|
||||||
this.db = db;
|
this.db = db;
|
||||||
this.telemetryService = telemetryService;
|
this.telemetryService = telemetryService;
|
||||||
|
Loading…
Reference in New Issue
Block a user