feat(api): Логика смены статусов для заданий робота. RobotTaskController
This commit is contained in:
@@ -11,7 +11,7 @@ namespace PARR.EsppTemplateSync.MappingProfiles
|
||||
|
||||
CreateMap<Template, EsppTemplate>()
|
||||
.ForMember(d => d.Name, o => o.MapFrom(s => s.Name))
|
||||
.ForMember(d => d.IsActive, o => o.MapFrom(s => s.IsActive))
|
||||
.ForMember(d => d.IsActive, o => o.MapFrom(s => s.IsActiveTemplate))
|
||||
.ForMember(d => d.WorkGroup, o => o.MapFrom(s => s.Host!.WorkGroup))
|
||||
.ForMember(d => d.ShortDescription, o => o.MapFrom(s => s.ApplicationsInWork!.ShortDescription))
|
||||
.ForMember(d => d.ResponseArea, o => o.MapFrom(s => s.ApplicationsInWork!.ShortDescription))
|
||||
|
||||
@@ -126,7 +126,7 @@ namespace PARR.EsppTemplateSync.Services
|
||||
|
||||
private void SetUpdateStatus(ITemplateService templateService, Template template)
|
||||
{
|
||||
template.StatusCode = (int)StatusTemplateEnum.Updating;
|
||||
template.StatusCode = (int)TaskStatusEnum.Updating;
|
||||
templateService.ChangeRobotStatus(RobotStatusEnum.Wait, ref template);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user