diff --git a/Myshipping.Application/Service/DataSync/DataSyncService.cs b/Myshipping.Application/Service/DataSync/DataSyncService.cs index f87e7caa..0dbf2b3a 100644 --- a/Myshipping.Application/Service/DataSync/DataSyncService.cs +++ b/Myshipping.Application/Service/DataSync/DataSyncService.cs @@ -1985,8 +1985,8 @@ namespace Myshipping.Application BookingId = order.Id, TenantId = Convert.ToInt64(UserManager.TENANT_ID), CreatedTime = DateTime.Now, - CreatedUserId = UserManager.UserId, - CreatedUserName = UserManager.Name + CreatedUserId = order.CreatedUserId, + CreatedUserName = order.CreatedUserName }); await _bookinglogdetail.InsertReturnSnowflakeIdAsync(new BookingLogDetail { @@ -2006,8 +2006,8 @@ namespace Myshipping.Application BookingId = order.Id, TenantId = Convert.ToInt64(UserManager.TENANT_ID), CreatedTime = DateTime.Now, - CreatedUserId = UserManager.UserId, - CreatedUserName = UserManager.Name + CreatedUserId = order.CreatedUserId, + CreatedUserName = order.CreatedUserName }); await _bookinglogdetail.InsertReturnSnowflakeIdAsync(new BookingLogDetail { @@ -2026,8 +2026,8 @@ namespace Myshipping.Application BookingId = order.Id, TenantId = Convert.ToInt64(UserManager.TENANT_ID), CreatedTime = DateTime.Now, - CreatedUserId = UserManager.UserId, - CreatedUserName = UserManager.Name + CreatedUserId = order.CreatedUserId, + CreatedUserName = order.CreatedUserName }); await _bookinglogdetail.InsertReturnSnowflakeIdAsync(new BookingLogDetail { @@ -2040,8 +2040,8 @@ namespace Myshipping.Application order.MBLNO = input.MBLNO; order.TMBLNO = input.TMBLNO; order.BOOKINGNO = input.BOOKINGNO; - order.UpdatedUserId = UserManager.UserId; - order.UpdatedUserName = UserManager.Name; + order.UpdatedUserId = order.CreatedUserId; + order.UpdatedUserName = order.CreatedUserName; order.UpdatedTime = DateTime.Now; await _rep.AsUpdateable(order).IgnoreColumns(it => new {