From 39f19e192c1c7f0d38888d7fe4b4437cadab87d7 Mon Sep 17 00:00:00 2001 From: wet <1034391973@qq.com> Date: Fri, 5 May 2023 14:14:57 +0800 Subject: [PATCH] 1 --- .../Service/DataSync/DataSyncService.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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 {