libin 3 сар өмнө
parent
commit
ebcfe676e1

+ 5 - 2
src/Hotline.Application/Planlibrary/PlanApplication.cs

@@ -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)

+ 3 - 3
src/Hotline.Share/Dtos/Planlibrary/PlanDataDto.cs

@@ -164,18 +164,18 @@ namespace Hotline.Share.Dtos.Planlibrary
         /// <summary>
         /// 预案库类型ID
         /// </summary>
-        public string PlanTypeId { get; set; }
+        public string Id { get; set; }
 
         /// <summary>
         /// 预案库类型名称
         /// </summary>
-        public string PlanTypeName { get; set; }
+        public string Name { get; set; }
 
 
         /// <summary>
         /// 预案库类型名称
         /// </summary>
-        public string PlanTypeSpliceName { get; set; }
+        public string SpliceName { get; set; }
     }
 
     public record PlanRelationTypeDto2