feat(api,dal): в модель JobGroupType добавлено поле description. В job контроллерах убрано поле isUmbrella, добавлено JobType.

This commit is contained in:
Mikhail Trubnikov
2025-11-17 12:06:33 +10:00
parent 48c8741395
commit e24ce20d02
15 changed files with 4143 additions and 22 deletions

View File

@@ -131,7 +131,7 @@ namespace PARR.API.MappingProfiles
},
Values = fieldGroup.Select(s => new UnitFieldValueResponse { Id = s.ValueId, Value = s.Value!.Value }).ToList()
}
).OrderBy(o=>o.Field.Name)
).OrderBy(o => o.Field.Name)
));
#endregion
@@ -332,7 +332,8 @@ namespace PARR.API.MappingProfiles
#region JobGroup
CreateMap<JobGroup, JobGroupBaseResponse>()
.Include<JobGroup, JobGroupResponse>();
.Include<JobGroup, JobGroupResponse>()
.ForMember(d => d.GroupType, o => o.MapFrom(s => s.GroupType));
CreateMap<JobGroup, JobGroupBaseResponse>()
.ForMember(d => d.Name, o => o.MapFrom(s => s.GroupName));
@@ -340,6 +341,12 @@ namespace PARR.API.MappingProfiles
CreateMap<JobGroup, JobGroupResponse>();
#endregion
#region JobGroupType
CreateMap<JobGroupType, JobGroupTypeResponse>();
#endregion
#region JobAutoControl