代码优化
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
namespace SimpleAdmin.Application;
|
||||
|
||||
/// <summary>
|
||||
/// 入职业务岗位档案,保存岗位默认合同期限、试用期及业务参数。
|
||||
/// 入职业务岗位档案,保存岗位所属部门、默认合同期限、试用期及业务参数。
|
||||
/// </summary>
|
||||
[SugarTable("ob_position", TableDescription = "入职业务岗位")]
|
||||
[Tenant(SqlSugarConst.DB_DEFAULT)]
|
||||
@@ -22,6 +22,12 @@ public class ObPosition : BaseEntity
|
||||
/// </summary>
|
||||
public long CompanyId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 所属入职业务部门 Id。
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true)]
|
||||
public long? DepartmentId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 岗位业务编码。
|
||||
/// </summary>
|
||||
@@ -51,4 +57,16 @@ public class ObPosition : BaseEntity
|
||||
/// 业务备注。
|
||||
/// </summary>
|
||||
public string Remark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 所属公司名称 (展示用)
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public string CompanyName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 所属部门名称 (展示用)
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public string DepartmentName { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user