feat(api): оптимизированы поля запроса JobGroup
This commit is contained in:
@@ -16,15 +16,15 @@
|
||||
|
||||
public DateTimeOffset ReferenceDate { get; set; }
|
||||
|
||||
public bool IsAutoDistributionEnabled { get; set; }
|
||||
//public bool IsAutoDistributionEnabled { get; set; }
|
||||
|
||||
public bool IsAgent { get; set; }
|
||||
//public bool IsAgent { get; set; }
|
||||
|
||||
public string? AgentName { get; set; }
|
||||
//public string? AgentName { get; set; }
|
||||
|
||||
public int? AgentTimeOutSec { get; set; }
|
||||
//public int? AgentTimeOutSec { get; set; }
|
||||
|
||||
public string? AgentScript { get; set; }
|
||||
//public string? AgentScript { get; set; }
|
||||
|
||||
public List<EsppSchValueRequest> Schedule { get; set; } = new List<EsppSchValueRequest>();
|
||||
}
|
||||
|
||||
@@ -124,11 +124,11 @@ namespace PARR.API.Controllers.V1
|
||||
Solution = request.Solution.Trim(),
|
||||
TemplateDuration = request.TemplateDuration.Trim(),
|
||||
ReferenceDate = request.ReferenceDate,
|
||||
IsAutoDistributionEnabled = request.IsAutoDistributionEnabled,
|
||||
IsAgent = request.IsAgent,
|
||||
AgentName = request.AgentName,
|
||||
AgentTimeOutSec = request.AgentTimeOutSec,
|
||||
AgentScript = request.AgentScript
|
||||
//IsAutoDistributionEnabled = request.IsAutoDistributionEnabled,
|
||||
//IsAgent = request.IsAgent,
|
||||
//AgentName = request.AgentName,
|
||||
//AgentTimeOutSec = request.AgentTimeOutSec,
|
||||
//AgentScript = request.AgentScript
|
||||
};
|
||||
|
||||
//Добавляем настройки планировщика
|
||||
@@ -192,11 +192,11 @@ namespace PARR.API.Controllers.V1
|
||||
orig.Solution = request.Solution.Trim();
|
||||
orig.TemplateDuration = request.TemplateDuration.Trim();
|
||||
orig.ReferenceDate = request.ReferenceDate;
|
||||
orig.IsAutoDistributionEnabled = request.IsAutoDistributionEnabled;
|
||||
orig.IsAgent = request.IsAgent;
|
||||
orig.AgentName = request.AgentName;
|
||||
orig.AgentTimeOutSec = request.AgentTimeOutSec;
|
||||
orig.AgentScript = request.AgentScript;
|
||||
//orig.IsAutoDistributionEnabled = request.IsAutoDistributionEnabled;
|
||||
//orig.IsAgent = request.IsAgent;
|
||||
//orig.AgentName = request.AgentName;
|
||||
//orig.AgentTimeOutSec = request.AgentTimeOutSec;
|
||||
//orig.AgentScript = request.AgentScript;
|
||||
orig.DateModified = DateTimeOffset.UtcNow;
|
||||
|
||||
//обновляем планировщик
|
||||
@@ -300,8 +300,8 @@ namespace PARR.API.Controllers.V1
|
||||
if (request.Schedule.Count() != orig.EsppSchValues.Count())
|
||||
isScheduleChanged = true;
|
||||
|
||||
if (request.IsAutoDistributionEnabled != orig.IsAutoDistributionEnabled)
|
||||
isScheduleChanged = true;
|
||||
//if (request.IsAutoDistributionEnabled != orig.IsAutoDistributionEnabled)
|
||||
// isScheduleChanged = true;
|
||||
|
||||
request.Schedule.ForEach(requestSchedule =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user