optimize
wet 2 years ago
parent 7b674f57c6
commit 39f19e192c

@ -1985,8 +1985,8 @@ namespace Myshipping.Application
BookingId = order.Id, BookingId = order.Id,
TenantId = Convert.ToInt64(UserManager.TENANT_ID), TenantId = Convert.ToInt64(UserManager.TENANT_ID),
CreatedTime = DateTime.Now, CreatedTime = DateTime.Now,
CreatedUserId = UserManager.UserId, CreatedUserId = order.CreatedUserId,
CreatedUserName = UserManager.Name CreatedUserName = order.CreatedUserName
}); });
await _bookinglogdetail.InsertReturnSnowflakeIdAsync(new BookingLogDetail await _bookinglogdetail.InsertReturnSnowflakeIdAsync(new BookingLogDetail
{ {
@ -2006,8 +2006,8 @@ namespace Myshipping.Application
BookingId = order.Id, BookingId = order.Id,
TenantId = Convert.ToInt64(UserManager.TENANT_ID), TenantId = Convert.ToInt64(UserManager.TENANT_ID),
CreatedTime = DateTime.Now, CreatedTime = DateTime.Now,
CreatedUserId = UserManager.UserId, CreatedUserId = order.CreatedUserId,
CreatedUserName = UserManager.Name CreatedUserName = order.CreatedUserName
}); });
await _bookinglogdetail.InsertReturnSnowflakeIdAsync(new BookingLogDetail await _bookinglogdetail.InsertReturnSnowflakeIdAsync(new BookingLogDetail
{ {
@ -2026,8 +2026,8 @@ namespace Myshipping.Application
BookingId = order.Id, BookingId = order.Id,
TenantId = Convert.ToInt64(UserManager.TENANT_ID), TenantId = Convert.ToInt64(UserManager.TENANT_ID),
CreatedTime = DateTime.Now, CreatedTime = DateTime.Now,
CreatedUserId = UserManager.UserId, CreatedUserId = order.CreatedUserId,
CreatedUserName = UserManager.Name CreatedUserName = order.CreatedUserName
}); });
await _bookinglogdetail.InsertReturnSnowflakeIdAsync(new BookingLogDetail await _bookinglogdetail.InsertReturnSnowflakeIdAsync(new BookingLogDetail
{ {
@ -2040,8 +2040,8 @@ namespace Myshipping.Application
order.MBLNO = input.MBLNO; order.MBLNO = input.MBLNO;
order.TMBLNO = input.TMBLNO; order.TMBLNO = input.TMBLNO;
order.BOOKINGNO = input.BOOKINGNO; order.BOOKINGNO = input.BOOKINGNO;
order.UpdatedUserId = UserManager.UserId; order.UpdatedUserId = order.CreatedUserId;
order.UpdatedUserName = UserManager.Name; order.UpdatedUserName = order.CreatedUserName;
order.UpdatedTime = DateTime.Now; order.UpdatedTime = DateTime.Now;
await _rep.AsUpdateable(order).IgnoreColumns(it => new await _rep.AsUpdateable(order).IgnoreColumns(it => new
{ {

Loading…
Cancel
Save