feat(bll,dal,common): в common - DateResolver - проверка даты на текущие сутки относительно часового пояса МСК. Dal - EsppScheduleTransformService - рассчет NextRun с учетом выходных дней

This commit is contained in:
Mikhail Trubnikov
2024-09-18 16:32:45 +10:00
parent 9987626478
commit 60c0ba9ec8
24 changed files with 181 additions and 29 deletions

View File

@@ -55,6 +55,8 @@
public const string IsWorkDay = Base + "/tests/is-work-day/";
public const string GetWorkDay = Base + "/tests/get-work-day/{date}";
public const string paramDate = "{lastRunDate}";
public const string paramApplicationInWorkId = "{applicationInWorkId}";
}

View File

@@ -103,6 +103,15 @@ namespace PARR.API.Controllers.V1
}
//[HttpGet(ApiRoutes.Test.GetWorkDay)]
//public async Task<IActionResult> GetWorkDay([FromRoute] DateTimeOffset date)
//{
// var result = await esppScheduleTransformService.GetWorkDayAsync(date);
// return Ok(result);
//}
}
public class CaheRequestTest

View File

@@ -12,6 +12,7 @@ COPY ["CHANGELOG.md", "PARR.API/"]
COPY ["PARR.BLL/PARR.BLL.csproj", "PARR.BLL/"]
COPY ["PARR.DAL/PARR.DAL.csproj", "PARR.DAL/"]
COPY ["PARR.Constants/PARR.Constants.csproj", "PARR.Constants/"]
COPY ["PARR.Common/PARR.Common.csproj", "PARR.Common/"]
RUN dotnet restore "PARR.API/PARR.API.csproj"
COPY . .
WORKDIR "/src/PARR.API"