diff --git a/Myshipping.Application/Entity/TrackingSystem/ServiceWorkFlowBaseInfo.cs b/Myshipping.Application/Entity/TrackingSystem/ServiceWorkFlowBaseInfo.cs
index 9d479539..81ef769e 100644
--- a/Myshipping.Application/Entity/TrackingSystem/ServiceWorkFlowBaseInfo.cs
+++ b/Myshipping.Application/Entity/TrackingSystem/ServiceWorkFlowBaseInfo.cs
@@ -53,7 +53,7 @@ namespace Myshipping.Application.Entity
///
/// 所属租户ID
///
- public string BELONG_TENANT_ID { get; set; }
+ public long BELONG_TENANT_ID { get; set; }
///
/// 所属租户名称
diff --git a/Myshipping.Application/Service/TrackingSystem/ServiceWorkFlowBaseService.cs b/Myshipping.Application/Service/TrackingSystem/ServiceWorkFlowBaseService.cs
index 4f03a02d..ee9c53d0 100644
--- a/Myshipping.Application/Service/TrackingSystem/ServiceWorkFlowBaseService.cs
+++ b/Myshipping.Application/Service/TrackingSystem/ServiceWorkFlowBaseService.cs
@@ -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))