using Kurisu.AspNetCore.DataAccess.SqlSugar; using SqlSugar; namespace Dlhis.Entity.Basic.Entity { /// /// 部门 /// [SugarTable(TableName = "Department", TableDescription = "部门")] public class DepartmentEntity : SugarBaseEntity { /// /// 部门号 /// [SugarColumn(IsNullable = false, ColumnDescription = "部门号", UniqueGroupNameList = new[] { "idx_Department_No" })] public string No { get; set; } /// /// 上级部门号 /// [SugarColumn(IsNullable = true, ColumnDescription = "上级部门号")] public string PNo { get; set; } /// /// 部门名称 /// [SugarColumn(IsNullable = false, ColumnDescription = "部门名称")] public string Name { get; set; } /// /// 部门编码 /// [SugarColumn(IsNullable = true, ColumnDescription = "一级部门编码")] public string DepartmentNoFirst { get; set; } /// /// 部门编码 /// [SugarColumn(IsNullable = true, ColumnDescription = "二级部门编码")] public string DepartmentNoSecond { get; set; } } }