feat(api, generatorTemplates, templateDistributor): обновлен esppScheduleResponse. Обновлен метод DistributeTemplate, так же обновлены зависимости в GeneratorTemplates
This commit is contained in:
@@ -57,6 +57,8 @@
|
|||||||
public Guid Id { get; set; }
|
public Guid Id { get; set; }
|
||||||
|
|
||||||
public required string Value { get; set; }
|
public required string Value { get; set; }
|
||||||
|
|
||||||
|
public Guid? DistributionPeriodId { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class EsppScheduleTypeConfigWithDataResponse
|
public class EsppScheduleTypeConfigWithDataResponse
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ namespace PARR.GeneratorTemplates.Services
|
|||||||
var templates = CreateQueryTemplates(groupingHosts, query);
|
var templates = CreateQueryTemplates(groupingHosts, query);
|
||||||
|
|
||||||
//заполняем NextRun
|
//заполняем NextRun
|
||||||
templates = await templateDistributor.DistributeTemplateAsync(templates, appInWorkWg.Id);
|
templates = await templateDistributor.DistributeTemplateAsync(templates, appInWorkWg.Id, (Guid)group.Key!);
|
||||||
|
|
||||||
// сохраняем
|
// сохраняем
|
||||||
foreach (var template in templates)
|
foreach (var template in templates)
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ namespace PARR.TemplateDistributor
|
|||||||
/// <param name="templates"></param>
|
/// <param name="templates"></param>
|
||||||
/// <param name="applicationInWorkId"></param>
|
/// <param name="applicationInWorkId"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task<List<Template>> DistributeTemplateAsync(List<Template> templates, Guid applicationInWorkId);
|
Task<List<Template>> DistributeTemplateAsync(List<Template> templates, Guid applicationInWorkId, Guid workGroupid);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Обновляет расписание запуска шаблонов по РР (сохраняет в БД)
|
/// Обновляет расписание запуска шаблонов по РР (сохраняет в БД)
|
||||||
|
|||||||
@@ -24,7 +24,8 @@ namespace PARR.TemplateDistributor
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
public async Task<List<Template>> DistributeTemplateAsync(List<Template> templates, Guid applicationInWorkId)
|
//public async Task<List<Template>> DistributeTemplateAsync(List<Template> templates, Guid applicationInWorkId)
|
||||||
|
public async Task<List<Template>> DistributeTemplateAsync(List<Template> templates, Guid applicationInWorkId, Guid workGroupid)
|
||||||
{
|
{
|
||||||
//TODO: ЗАГУЛШКА переделать!
|
//TODO: ЗАГУЛШКА переделать!
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user