diff --git a/ds-wms-service/DS.WMS.Core/Sys/Method/SysOrgService.cs b/ds-wms-service/DS.WMS.Core/Sys/Method/SysOrgService.cs index d5911c05..b9ea39ed 100644 --- a/ds-wms-service/DS.WMS.Core/Sys/Method/SysOrgService.cs +++ b/ds-wms-service/DS.WMS.Core/Sys/Method/SysOrgService.cs @@ -220,6 +220,11 @@ public class SysOrgService:ISysOrgService foreach (var it in treeNodes) { + var users1 = sugarClient.Queryable().Where(x => x.DeptId == it.Value).Select().ToList(); + if (users1.Count > 0) + { + it.UserList = users; + } if (it.ParentId == treeNode.Value) { treeNode.Children.Add(it);