feat(api): оптимизированы поля запроса JobGroup

This commit is contained in:
Mikhail Kuznetsov
2025-09-05 10:33:52 +10:00
parent fdfa0d5e29
commit 0a7e18fcd7
2 changed files with 17 additions and 17 deletions

View File

@@ -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 =>
{