Преглед изворни кода

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

田爽 пре 1 година
родитељ
комит
1d58b49c12
1 измењених фајлова са 4 додато и 0 уклоњено
  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 XF.Domain.Exceptions;
 using XF.Domain.Repository;
+using XF.Utility.EnumExtensions;
 
 namespace Hotline.Settings;
 
@@ -72,6 +73,9 @@ public class SystemOrganize : CreationSoftDeleteEntity
     [SugarColumn(IsIgnore = true)] 
     public List<SystemOrganize> Children { get; set; }
 
+    [SugarColumn(IsIgnore = true)]
+    public string OrgTypeText => OrgType.GetDescription();
+
     public void InitOrgLevel() => Level = Id.CalcOrgLevel();
 
     /// <summary>