Поменяны параметры запроса:

GeDepth на GtDepth,
LeDepth на LtDepth
This commit is contained in:
Olga Nemt 2024-09-20 11:03:03 +05:00
parent 57d5592250
commit 2b8057bbba
2 changed files with 13 additions and 13 deletions

View File

@ -48,13 +48,13 @@ public class ProcessMapPlanBaseRequestWithWell : ProcessMapPlanBaseRequest
/// <inheritdoc/> /// <inheritdoc/>
/// </summary> /// </summary>
/// <param name="idWell"></param> /// <param name="idWell"></param>
/// <param name="geDepth"></param> /// <param name="gtDepth"></param>
/// <param name="leDepth"></param> /// <param name="ltDepth"></param>
public ProcessMapPlanBaseRequestWithWell(int idWell, double? geDepth, double? leDepth) public ProcessMapPlanBaseRequestWithWell(int idWell, double? gtDepth, double? ltDepth)
{ {
IdWell = idWell; IdWell = idWell;
GeDepth = geDepth; GtDepth = gtDepth;
LeDepth = leDepth; LtDepth = ltDepth;
} }
/// <summary> /// <summary>
@ -74,12 +74,12 @@ public class ProcessMapPlanBaseRequestWithWell : ProcessMapPlanBaseRequest
public int IdWell { get; set; } public int IdWell { get; set; }
/// <summary> /// <summary>
/// Меньше или равно глубины забоя /// Меньше глубины забоя
/// </summary> /// </summary>
public double? LeDepth { get; set; } public double? LtDepth { get; set; }
/// <summary> /// <summary>
/// Больше или равно глубине забоя /// Больше глубине забоя
/// </summary> /// </summary>
public double? GeDepth { get; set; } public double? GtDepth { get; set; }
} }

View File

@ -34,14 +34,14 @@ public class ProcessMapPlanBaseRepository<TEntity, TDto> : ChangeLogRepositoryAb
query = query.Where(e => e.Creation >= from || e.Obsolete >= from); 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; return query;