Browse Source

Merge branch 'master' of http://110.188.24.182:10023/Fengwo/hotline

田爽 1 year ago
parent
commit
1d58b49c12
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/Hotline/Settings/SystemOrganize.cs

+ 4 - 0
src/Hotline/Settings/SystemOrganize.cs

@@ -3,6 +3,7 @@ using SqlSugar;
 using System.ComponentModel;
 using System.ComponentModel;
 using XF.Domain.Exceptions;
 using XF.Domain.Exceptions;
 using XF.Domain.Repository;
 using XF.Domain.Repository;
+using XF.Utility.EnumExtensions;
 
 
 namespace Hotline.Settings;
 namespace Hotline.Settings;
 
 
@@ -72,6 +73,9 @@ public class SystemOrganize : CreationSoftDeleteEntity
     [SugarColumn(IsIgnore = true)] 
     [SugarColumn(IsIgnore = true)] 
     public List<SystemOrganize> Children { get; set; }
     public List<SystemOrganize> Children { get; set; }
 
 
+    [SugarColumn(IsIgnore = true)]
+    public string OrgTypeText => OrgType.GetDescription();
+
     public void InitOrgLevel() => Level = Id.CalcOrgLevel();
     public void InitOrgLevel() => Level = Id.CalcOrgLevel();
 
 
     /// <summary>
     /// <summary>