forked from ddrilling/AsbCloudServer
Поменяны параметры запроса:
GeDepth на GtDepth, LeDepth на LtDepth
This commit is contained in:
parent
57d5592250
commit
2b8057bbba
@ -48,13 +48,13 @@ public class ProcessMapPlanBaseRequestWithWell : ProcessMapPlanBaseRequest
|
||||
/// <inheritdoc/>
|
||||
/// </summary>
|
||||
/// <param name="idWell"></param>
|
||||
/// <param name="geDepth"></param>
|
||||
/// <param name="leDepth"></param>
|
||||
public ProcessMapPlanBaseRequestWithWell(int idWell, double? geDepth, double? leDepth)
|
||||
/// <param name="gtDepth"></param>
|
||||
/// <param name="ltDepth"></param>
|
||||
public ProcessMapPlanBaseRequestWithWell(int idWell, double? gtDepth, double? ltDepth)
|
||||
{
|
||||
IdWell = idWell;
|
||||
GeDepth = geDepth;
|
||||
LeDepth = leDepth;
|
||||
GtDepth = gtDepth;
|
||||
LtDepth = ltDepth;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -74,12 +74,12 @@ public class ProcessMapPlanBaseRequestWithWell : ProcessMapPlanBaseRequest
|
||||
public int IdWell { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Меньше или равно глубины забоя
|
||||
/// Меньше глубины забоя
|
||||
/// </summary>
|
||||
public double? LeDepth { get; set; }
|
||||
public double? LtDepth { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Больше или равно глубине забоя
|
||||
/// Больше глубине забоя
|
||||
/// </summary>
|
||||
public double? GeDepth { get; set; }
|
||||
public double? GtDepth { get; set; }
|
||||
}
|
||||
|
@ -34,14 +34,14 @@ public class ProcessMapPlanBaseRepository<TEntity, TDto> : ChangeLogRepositoryAb
|
||||
query = query.Where(e => e.Creation >= from || e.Obsolete >= from);
|
||||
}
|
||||
|
||||
if (request.GeDepth.HasValue)
|
||||
if (request.GtDepth.HasValue)
|
||||
{
|
||||
query = query.Where(e => e.DepthEnd > request.GeDepth);
|
||||
query = query.Where(e => e.DepthEnd > request.GtDepth);
|
||||
}
|
||||
|
||||
if (request.LeDepth.HasValue)
|
||||
if (request.LtDepth.HasValue)
|
||||
{
|
||||
query = query.Where(e => e.DepthStart < request.LeDepth);
|
||||
query = query.Where(e => e.DepthStart < request.LtDepth);
|
||||
}
|
||||
|
||||
return query;
|
||||
|
Loading…
Reference in New Issue
Block a user