平安校园
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

3 months ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. 
  2. //
  3. namespace SafeCampus.System;
  4. /// <summary>
  5. /// 组织
  6. ///</summary>
  7. [SugarTable("sys_org", TableDescription = "组织")]
  8. [Tenant(SqlSugarConst.DB_DEFAULT)]
  9. [CodeGen]
  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. }