Browse Source

热点返回

田爽 7 months ago
parent
commit
cce24db4d2
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/Hotline.Api/Controllers/HotSpotController.cs

+ 3 - 2
src/Hotline.Api/Controllers/HotSpotController.cs

@@ -62,6 +62,7 @@ namespace Hotline.Api.Controllers
                     HotSpotFullName = x.HotSpotFullName,
                     ProvinceCode = x.ProvinceCode,
                     HasChild = SqlFunc.Subqueryable<Hotspot>().Where(d=>d.ParentId == x.Id).NotAny(),
+                    TrunkNum = x.TrunkNum,
                 }).ToListAsync();
 
             return list;
@@ -86,8 +87,8 @@ namespace Hotline.Api.Controllers
                 HotSpotFullName = x.HotSpotFullName,
                 ProvinceCode = x.ProvinceCode,
                 HasChild = SqlFunc.Subqueryable<Hotspot>().Where(d => d.ParentId == x.Id).NotAny(),
-
-            }).ToTreeAsync(x => x.Children, it => it.ParentId,"", arr);
+                TrunkNum = x.TrunkNum,
+			}).ToTreeAsync(x => x.Children, it => it.ParentId,"", arr);
         }