代码优化
This commit is contained in:
@@ -17,6 +17,18 @@ namespace SimpleAdmin.Application;
|
||||
[Tenant(SqlSugarConst.DB_DEFAULT)]
|
||||
public class ObContractTemplate : BaseEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// 合同模板所属入职业务公司 Id。
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true)]
|
||||
public long? CompanyId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 合同模板所属入职业务部门 Id。
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true)]
|
||||
public long? DepartmentId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 合同模板业务编码。
|
||||
/// </summary>
|
||||
@@ -36,4 +48,28 @@ public class ObContractTemplate : BaseEntity
|
||||
/// 模板用途说明。
|
||||
/// </summary>
|
||||
public string Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 所属公司名称,仅用于接口展示。
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public string CompanyName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 所属部门名称,仅用于接口展示。
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public string DepartmentName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 适用岗位 Id 列表,仅用于接口展示和编辑回显。
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public List<long> PositionIds { get; set; } = new();
|
||||
|
||||
/// <summary>
|
||||
/// 适用岗位名称列表,仅用于接口展示。
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public List<string> PositionNames { get; set; } = new();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user