From ccfe49b2e323d017772871d9a4b8e2ea1eb47030 Mon Sep 17 00:00:00 2001 From: jianghaiqing Date: Sun, 23 Apr 2023 15:36:33 +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 --- .../Dtos/TaskManageOrderTruckInfo.cs | 5 +++++ .../TaskManagePlat/TaskManageTruckService.cs | 14 ++++---------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/Myshipping.Application/Service/TaskManagePlat/Dtos/TaskManageOrderTruckInfo.cs b/Myshipping.Application/Service/TaskManagePlat/Dtos/TaskManageOrderTruckInfo.cs index b6849637..f3ea2e7f 100644 --- a/Myshipping.Application/Service/TaskManagePlat/Dtos/TaskManageOrderTruckInfo.cs +++ b/Myshipping.Application/Service/TaskManagePlat/Dtos/TaskManageOrderTruckInfo.cs @@ -168,6 +168,11 @@ namespace Myshipping.Application /// public string DispatcherName { get; set; } + /// + /// 工厂地址 + /// + public string FactoryAddr { get; set; } + /// /// 集装箱列表 /// diff --git a/Myshipping.Application/Service/TaskManagePlat/TaskManageTruckService.cs b/Myshipping.Application/Service/TaskManagePlat/TaskManageTruckService.cs index a340857e..e0d7c89f 100644 --- a/Myshipping.Application/Service/TaskManagePlat/TaskManageTruckService.cs +++ b/Myshipping.Application/Service/TaskManagePlat/TaskManageTruckService.cs @@ -165,18 +165,12 @@ namespace Myshipping.Application entity.UpdatedUserId = UserManager.UserId; entity.UpdatedUserName = UserManager.Name; - await _taskTruckRepository.AsUpdateable(entity).IgnoreColumns(it => new + await _taskTruckRepository.AsUpdateable(entity).UpdateColumns(it => new { it.TenantId, - it.CreatedTime, - it.CreatedUserId, - it.CreatedUserName, - it.IsDeleted, - it.BookingId, - it.TruckId, - it.TruckName, - it.TruckCode, - it.Status, + it.UpdatedTime, + it.UpdatedUserId, + it.UpdatedUserName, }).ExecuteCommandAsync(); await _taskTruckContaRepository.DeleteAsync(x => x.P_ID == model.PK_ID);