修改服务流程保存

optimize
jianghaiqing 1 year ago
parent acd1392775
commit 26dca59555

@ -53,7 +53,7 @@ namespace Myshipping.Application.Entity
/// <summary>
/// 所属租户ID
/// </summary>
public string BELONG_TENANT_ID { get; set; }
public long BELONG_TENANT_ID { get; set; }
/// <summary>
/// 所属租户名称

@ -192,6 +192,12 @@ namespace Myshipping.Application
if (entity == null)
throw Oops.Oh($"服务流程不能为空", typeof(InvalidOperationException));
if(entity.BELONG_TENANT_ID == 0)
{
entity.BELONG_TENANT_ID = UserManager.TENANT_ID;
entity.BELONG_TENANT_NAME = UserManager.TENANT_NAME;
}
_logger.LogInformation($"服务流程保存 JSON={JSON.Serialize(entity)} user={UserManager.UserId}");
if (string.IsNullOrWhiteSpace(entity.PK_ID))

Loading…
Cancel
Save