平安校园
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

SysOrg.cs 2.1 KiB

4 months ago
4 months ago
4 months ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. 
  2. namespace SafeCampus.System;
  3. /// <summary>
  4. /// 组织
  5. ///</summary>
  6. [SugarTable("sys_org", TableDescription = "组织")]
  7. [Tenant(SqlSugarConst.DB_DEFAULT)]
  8. [CodeGen]
  9. [IgnoreInitTable]
  10. public class SysOrg : BaseEntity
  11. {
  12. /// <summary>
  13. /// 父id
  14. ///</summary>
  15. [SugarColumn(ColumnName = "ParentId", ColumnDescription = "父id")]
  16. public long ParentId { get; set; }
  17. [SugarColumn(ColumnName = "ParentIdList", ColumnDescription = "父id列表", IsNullable = true, IsJson = true)]
  18. public List<long> ParentIdList { get; set; } = new List<long>();
  19. /// <summary>
  20. /// 主管ID
  21. ///</summary>
  22. [SugarColumn(ColumnName = "DirectorId", ColumnDescription = "主管ID", IsNullable = true)]
  23. public long? DirectorId { get; set; }
  24. /// <summary>
  25. /// 名称
  26. ///</summary>
  27. [SugarColumn(ColumnName = "Name", ColumnDescription = "名称", Length = 200)]
  28. public string Name { get; set; }
  29. /// <summary>
  30. /// 全称
  31. ///</summary>
  32. [SugarColumn(ColumnName = "Names", ColumnDescription = "全称", Length = 500)]
  33. public string Names { get; set; }
  34. /// <summary>
  35. /// 编码
  36. ///</summary>
  37. [SugarColumn(ColumnName = "Code", ColumnDescription = "编码", Length = 200)]
  38. public string Code { get; set; }
  39. /// <summary>
  40. /// 分类
  41. ///</summary>
  42. [SugarColumn(ColumnName = "Category", ColumnDescription = "分类", Length = 200)]
  43. public string Category { get; set; }
  44. /// <summary>
  45. /// 排序码
  46. ///</summary>
  47. [SugarColumn(ColumnName = "SortCode", ColumnDescription = "排序码", IsNullable = true)]
  48. public int? SortCode { get; set; }
  49. /// <summary>
  50. /// 主管信息
  51. /// </summary>
  52. [SugarColumn(IsIgnore = true)]
  53. public UserSelectorOutPut DirectorInfo { get; set; }
  54. /// <summary>
  55. /// 子节点
  56. /// </summary>
  57. [SugarColumn(IsIgnore = true)]
  58. public List<SysOrg> Children { get; set; }
  59. /// <summary>
  60. /// 设置为叶子节点(设置了loadData时有效)
  61. /// </summary>
  62. [SugarColumn(IsIgnore = true)]
  63. public bool? Leaf { get; set; }
  64. }