|
@@ -297,9 +297,12 @@ namespace Hotline.Application.Planlibrary
|
|
|
{
|
|
|
pList.PlanTypes = dto.PlanTypes.Select(d => new PlanType
|
|
|
{
|
|
|
- Id = d.PlanTypeId,
|
|
|
+ Id = d.Id,
|
|
|
+ Name = d.Name,
|
|
|
+ SpliceName = d.SpliceName
|
|
|
}).ToList();
|
|
|
}
|
|
|
+
|
|
|
await _planListRepository.AddNav(pList)
|
|
|
.Include(d => d.PlanTypes)
|
|
|
.ExecuteCommandAsync();
|
|
@@ -353,7 +356,7 @@ namespace Hotline.Application.Planlibrary
|
|
|
{
|
|
|
plan.PlanTypes = dto.PlanTypes.Select(d => new PlanType
|
|
|
{
|
|
|
- Id = d.PlanTypeId,
|
|
|
+ Id = d.Id,
|
|
|
}).ToList();
|
|
|
|
|
|
await _planListRepository.UpdateNav(plan)
|