feat(api): В респонс RobotTaskScheduleSchResponse добавлено поле TypeCode

This commit is contained in:
Mikhail Trubnikov
2023-10-12 09:44:44 +10:00
parent 494441dbe6
commit c2c381896b
3 changed files with 10 additions and 0 deletions

View File

@@ -47,6 +47,7 @@
public class RobotTaskScheduleSchResponse public class RobotTaskScheduleSchResponse
{ {
public required string Type { get; set; } public required string Type { get; set; }
public int TypeCode { get; set; }
public required string Value { get; set; } public required string Value { get; set; }
public int Order { get; set; } public int Order { get; set; }
} }

View File

@@ -28,6 +28,7 @@ namespace PARR.API.MappingProfiles.Resolvers
{ {
Order = conf.Order, Order = conf.Order,
Type = conf.EsppSchType!.Name, Type = conf.EsppSchType!.Name,
TypeCode = conf.EsppSchType!.Id,
Value = conf.EsppSchValues.First().EsppSchTypeValue!.Value Value = conf.EsppSchValues.First().EsppSchTypeValue!.Value
}); });

View File

@@ -29,5 +29,13 @@ namespace PARR.DAL.Services.Implementations
.ThenInclude(t => t!.EsppSchTypeValues) .ThenInclude(t => t!.EsppSchTypeValues)
.ThenInclude(t => t!.EsppSchValues); .ThenInclude(t => t!.EsppSchValues);
} }
//public IQueryable<EsppSchTypeConfig> GetScheduleByAppInWorks(Guid applicationInWorksId)
//{
// var configs = GetWithSchIncludes()
// .Where(t => t.EsppSchValues.Any(x => x.ApplicationsInWorkId == applicationInWorksId))
// .ToList();
//}
} }
} }