fix 组织架构树调整

This commit is contained in:
2024-03-07 15:17:40 +08:00
parent 12215fdfd7
commit 1de6bc6c0f
5 changed files with 78 additions and 24 deletions

View File

@@ -1,4 +1,6 @@
namespace Dlhis.Basic.Organization.Response;
using Newtonsoft.Json;
namespace Dlhis.Basic.Organization.Response;
public class DepartmentTreeResponse
{
@@ -17,8 +19,24 @@ public class DepartmentTreeResponse
/// </summary>
public string Name { get; set; }
public string Tenant { get; set; }
/// <summary>
/// 下级部门
/// </summary>
public List<DepartmentTreeResponse> Next { get; set; } = new List<DepartmentTreeResponse>();
[JsonIgnore]
public List<DepartmentTreeResponse> _Next { get; set; } = new List<DepartmentTreeResponse>();
/// <summary>
/// 下级部门
/// </summary>
public List<DepartmentTreeResponse> Next
{
get
{
_Next.ForEach(x => x.Tenant = Tenant);
return _Next;
}
}
}