// namespace SafeCampus.System; /// /// 组织 /// [SugarTable("sys_org", TableDescription = "组织")] [Tenant(SqlSugarConst.DB_DEFAULT)] [CodeGen] public class SysOrg : BaseEntity { /// /// 父id /// [SugarColumn(ColumnName = "ParentId", ColumnDescription = "父id")] public long ParentId { get; set; } [SugarColumn(ColumnName = "ParentIdList", ColumnDescription = "父id列表", IsNullable = true, IsJson = true)] public List ParentIdList { get; set; } = new List(); /// /// 主管ID /// [SugarColumn(ColumnName = "DirectorId", ColumnDescription = "主管ID", IsNullable = true)] public long? DirectorId { get; set; } /// /// 名称 /// [SugarColumn(ColumnName = "Name", ColumnDescription = "名称", Length = 200)] public string Name { get; set; } /// /// 全称 /// [SugarColumn(ColumnName = "Names", ColumnDescription = "全称", Length = 500)] public string Names { get; set; } /// /// 编码 /// [SugarColumn(ColumnName = "Code", ColumnDescription = "编码", Length = 200)] public string Code { get; set; } /// /// 分类 /// [SugarColumn(ColumnName = "Category", ColumnDescription = "分类", Length = 200)] public string Category { get; set; } /// /// 排序码 /// [SugarColumn(ColumnName = "SortCode", ColumnDescription = "排序码", IsNullable = true)] public int? SortCode { get; set; } /// /// 主管信息 /// [SugarColumn(IsIgnore = true)] public UserSelectorOutPut DirectorInfo { get; set; } /// /// 子节点 /// [SugarColumn(IsIgnore = true)] public List Children { get; set; } /// /// 设置为叶子节点(设置了loadData时有效) /// [SugarColumn(IsIgnore = true)] public bool? Leaf { get; set; } }