feat(api): В респонс RobotTaskScheduleSchResponse добавлено поле TypeCode
This commit is contained in:
@@ -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; }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|
||||||
|
//}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user