forked from ddrilling/AsbCloudServer
фикс фильтрации фактических операций
This commit is contained in:
parent
2dd04d4037
commit
f8c26f1835
@ -16,7 +16,7 @@ namespace AsbCloudApp.Requests
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// фильтр по дате окончания операции
|
/// фильтр по дате окончания операции
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public DateTime? LeDate { get; set; }
|
public DateTime? LtDate { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// фильтр по максимальной глубине скважины
|
/// фильтр по максимальной глубине скважины
|
||||||
@ -71,7 +71,7 @@ namespace AsbCloudApp.Requests
|
|||||||
this.GeDepth = request.GeDepth;
|
this.GeDepth = request.GeDepth;
|
||||||
this.LeDepth = request.LeDepth;
|
this.LeDepth = request.LeDepth;
|
||||||
this.GeDate = request.GeDate;
|
this.GeDate = request.GeDate;
|
||||||
this.LeDate = request.LeDate;
|
this.LtDate = request.LtDate;
|
||||||
|
|
||||||
this.OperationCategoryIds = request.OperationCategoryIds;
|
this.OperationCategoryIds = request.OperationCategoryIds;
|
||||||
this.OperationType = request.OperationType;
|
this.OperationType = request.OperationType;
|
||||||
|
@ -332,10 +332,10 @@ namespace AsbCloudInfrastructure.Repository
|
|||||||
query = query.Where(e => e.DateStart >= geDateOffset);
|
query = query.Where(e => e.DateStart >= geDateOffset);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (request.LeDate.HasValue)
|
if (request.LtDate.HasValue)
|
||||||
{
|
{
|
||||||
var leDateOffset = request.LeDate.Value.ToUtcDateTimeOffset(timezone.Hours);
|
var ltDateOffset = request.LtDate.Value.ToUtcDateTimeOffset(timezone.Hours);
|
||||||
query = query.Where(e => e.DateStart <= leDateOffset);
|
query = query.Where(e => e.DateStart < ltDateOffset);
|
||||||
}
|
}
|
||||||
|
|
||||||
var currentWellOperations = db.WellOperations
|
var currentWellOperations = db.WellOperations
|
||||||
|
Loading…
Reference in New Issue
Block a user