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