fix(dal): при формировании групповых шорткодов не хватало include GroupType, изменен ключ кэширования
This commit is contained in:
@@ -67,6 +67,7 @@ namespace PARR.API.Controllers.V1
|
||||
|
||||
|
||||
var query = robotConfigurationService.Get()
|
||||
.AsSplitQuery()
|
||||
.Where(t => t.RobotCode == (int)robotCode && t.TaskStatusCode == (int)taskStatusCode);
|
||||
|
||||
switch (robotCode)
|
||||
@@ -85,6 +86,7 @@ namespace PARR.API.Controllers.V1
|
||||
.Include(t => t.Template)
|
||||
.ThenInclude(a => a!.Job)
|
||||
.ThenInclude(t => t!.Group)
|
||||
.ThenInclude(g => g.GroupType)
|
||||
.Include(t => t.Template)
|
||||
.ThenInclude(w => w!.Job)
|
||||
.ThenInclude(t => t!.Tnk)
|
||||
@@ -93,7 +95,7 @@ namespace PARR.API.Controllers.V1
|
||||
|
||||
query = query
|
||||
.Include(t => t.Template)
|
||||
.ThenInclude(t => t.UnitsInTemplate);
|
||||
.ThenInclude(t => t!.UnitsInTemplate);
|
||||
|
||||
break;
|
||||
|
||||
@@ -108,6 +110,10 @@ namespace PARR.API.Controllers.V1
|
||||
.ThenInclude(t => t!.Unit)
|
||||
.ThenInclude(t => t!.UnitValues)
|
||||
.ThenInclude(t => t.Value)
|
||||
.Include(t => t.Template)
|
||||
.ThenInclude(a => a!.Job)
|
||||
.ThenInclude(t => t!.Group)
|
||||
.ThenInclude(g => g.GroupType)
|
||||
.Include(t => t.Template)
|
||||
.ThenInclude(a => a!.Job)
|
||||
.ThenInclude(t => t!.Group)
|
||||
@@ -129,6 +135,7 @@ namespace PARR.API.Controllers.V1
|
||||
}
|
||||
|
||||
// сортируем по NextRun, чтобы те у которых дата след срабатывания ближе к текущей, выполнились скорее
|
||||
//query = query.Where(t => t.Template.Job.GroupId == Guid.Parse("8a75030e-d2dc-4006-a773-002db36ebe27"));
|
||||
query = query.OrderBy(t => t.Template!.NextRun);
|
||||
|
||||
RobotConfiguration? task = null;
|
||||
@@ -203,7 +210,7 @@ namespace PARR.API.Controllers.V1
|
||||
};
|
||||
|
||||
if (shortcodesService.IsAnyShortcodes(robotTaskTemplateResponse.FullDescription))
|
||||
robotTaskTemplateResponse.FullDescription = await shortcodesService.ApplyShortcodesAsync(robotTaskTemplateResponse.FullDescription , templateForShortcodes);
|
||||
robotTaskTemplateResponse.FullDescription = await shortcodesService.ApplyShortcodesAsync(robotTaskTemplateResponse.FullDescription, templateForShortcodes);
|
||||
if (shortcodesService.IsAnyShortcodes(robotTaskTemplateResponse.ShortDescription))
|
||||
robotTaskTemplateResponse.ShortDescription = await shortcodesService.ApplyShortcodesAsync(robotTaskTemplateResponse.ShortDescription, templateForShortcodes);
|
||||
if (shortcodesService.IsAnyShortcodes(robotTaskTemplateResponse.Solution))
|
||||
|
||||
Reference in New Issue
Block a user