fix 查询优化

This commit is contained in:
2024-03-26 11:57:26 +08:00
parent f9ea61ba49
commit 0a4cf134d8
4 changed files with 18 additions and 17 deletions

View File

@@ -12,7 +12,7 @@ public class DepartmentEntity : SugarBaseEntity
/// <summary>
/// 部门号
/// </summary>
[SugarColumn(ColumnDescription = "部门号", IsNullable = false)]
[SugarColumn(ColumnDescription = "部门号", IsNullable = false, UniqueGroupNameList = new[] { "idx_Department_No" })]
public string No { get; set; }
/// <summary>
@@ -24,6 +24,6 @@ public class DepartmentEntity : SugarBaseEntity
/// <summary>
/// 部门名称
/// </summary>
[SugarColumn(ColumnDescription = "部门名称" , IsNullable = false)]
[SugarColumn(ColumnDescription = "部门名称", IsNullable = false)]
public string Name { get; set; }
}