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

84 lines
2.1 KiB

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