feat(api,dal): в модель JobGroupType добавлено поле description. В job контроллерах убрано поле isUmbrella, добавлено JobType.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user