feat(api,dal): в таблицу Jobs добавлено поле ResponseAreaMask. В JobController добавлено поле ResponseAreaMask. В TemplateController отображается фактическая РК, ЗО шаблона. RobotTask ЗО отдается согласно ResponseAreaMask. ShortcodeService теперь умеет принимать Template.
This commit is contained in:
@@ -62,10 +62,10 @@ namespace PARR.EsppSync
|
||||
//.AsNoTracking() <- не надо так, а то потом не сохранится
|
||||
.Include(h => h.Unit)
|
||||
.ThenInclude(t => t!.UnitValues)
|
||||
.ThenInclude(t => t.Value)
|
||||
.ThenInclude(t => t.Value)
|
||||
.Include(h => h.Unit)
|
||||
.ThenInclude(t => t!.UnitValues)
|
||||
.ThenInclude(t => t.Field)
|
||||
.ThenInclude(t => t.Field)
|
||||
.Include(t => t.RobotConfigurations)
|
||||
.Include(t => t.Job)
|
||||
.ThenInclude(j => j.Group)
|
||||
@@ -129,7 +129,7 @@ namespace PARR.EsppSync
|
||||
{
|
||||
var value = property.GetValue(dbObjectInEsppObject)?.ToString();
|
||||
|
||||
if (value != null && shortcodesService.IsAnyShortcodes(value))
|
||||
if (value != null)
|
||||
{
|
||||
var processedValue = await shortcodesService.ApplyShortcodesAsync(value, templateForShortcodes);
|
||||
property.SetValue(dbObjectInEsppObject, processedValue);
|
||||
|
||||
Reference in New Issue
Block a user