feat(esppSync, esppTemplateSync, esppScheduleSync): обновлена логика синхронизации полей. Если объект в БД деактивирован, то с ЕСПП сравниваются только поля isActive и название объекта.

This commit is contained in:
Mikhail Trubnikov
2024-02-28 10:17:01 +10:00
parent 9e2350374f
commit efc91584b6
4 changed files with 47 additions and 4 deletions

View File

@@ -7,5 +7,25 @@ namespace PARR.EsppSync
public string TemplateName { get; set; }
public RobotsEnum Robot { get; }
public bool IsActive { get; set; }
}
/// <summary>
/// Облегченная модель для сравнения полей, если IsActive==false
/// </summary>
public class EsppLightObject : IEsppObject
{
public EsppLightObject(IEsppObject obj)
{
TemplateName = obj.TemplateName;
IsActive = obj.IsActive;
}
public string TemplateName { get; set; }
public RobotsEnum Robot { get; }
public bool IsActive { get; set; }
}
}