订舱加主单号和租户名称

booking_auth_dev
wanghaomei 2 years ago
parent 6fb3751877
commit 581bf7c6df

@ -591,5 +591,13 @@ namespace Myshipping.Application.Entity
/// 付款方
/// </summary>
public string FREIGHTPAYER { get; set; }
/// <summary>
/// 租户名称
/// </summary>
public string TenantName { get; set; }
/// <summary>
/// 主单ID
/// </summary>
public long? ParentId { get; set; }
}
}

@ -894,6 +894,16 @@
付款方
</summary>
</member>
<member name="P:Myshipping.Application.Entity.BookingOrder.TenantName">
<summary>
租户名称
</summary>
</member>
<member name="P:Myshipping.Application.Entity.BookingOrder.ParentId">
<summary>
主单ID
</summary>
</member>
<member name="T:Myshipping.Application.Entity.BookingTemplate">
<summary>

@ -332,6 +332,10 @@ public static class SqlSugarSetup
if (tenantId == null || tenantId == 0)
entityInfo.SetValue(App.User.FindFirst(ClaimConst.TENANT_ID)?.Value);
}
if (entityInfo.PropertyName == "TenantName")
{
entityInfo.SetValue(App.User.FindFirst(ClaimConst.CLAINM_TENANT_NAME)?.Value);
}
if (entityInfo.PropertyName == "CreatedUserId")
{
var createUserId = ((dynamic)entityInfo.EntityValue).CreatedUserId;

Loading…
Cancel
Save