From 31b0da47ee920cb470a3fc06f03fdbf47316cca4 Mon Sep 17 00:00:00 2001 From: jianghaiqing Date: Sun, 23 Apr 2023 17:58:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B4=BE=E8=BD=A6=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E4=BF=9D=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TaskManagePlat/TaskManageTruckService.cs | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/Myshipping.Application/Service/TaskManagePlat/TaskManageTruckService.cs b/Myshipping.Application/Service/TaskManagePlat/TaskManageTruckService.cs index e0d7c89f..36eff43a 100644 --- a/Myshipping.Application/Service/TaskManagePlat/TaskManageTruckService.cs +++ b/Myshipping.Application/Service/TaskManagePlat/TaskManageTruckService.cs @@ -165,12 +165,21 @@ namespace Myshipping.Application entity.UpdatedUserId = UserManager.UserId; entity.UpdatedUserName = UserManager.Name; - await _taskTruckRepository.AsUpdateable(entity).UpdateColumns(it => new + await _taskTruckRepository.AsUpdateable(entity).IgnoreColumns(it => new { it.TenantId, - it.UpdatedTime, - it.UpdatedUserId, - it.UpdatedUserName, + it.TenantName, + it.CreatedTime, + it.CreatedUserId, + it.CreatedUserName, + it.IsDeleted, + it.BookingId, + it.TruckId, + it.TruckName, + it.TruckCode, + it.Status, + it.TruckFlowNo, + it.TaskNo }).ExecuteCommandAsync(); await _taskTruckContaRepository.DeleteAsync(x => x.P_ID == model.PK_ID);