From 55a71c2dde411ad7bf0c1258b0342e4114e5de87 Mon Sep 17 00:00:00 2001 From: cjy Date: Wed, 6 Nov 2024 20:25:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E9=85=8D=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Op/Method/SeaExportRefundService.cs | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/ds-wms-service/DS.WMS.Core/Op/Method/SeaExportRefundService.cs b/ds-wms-service/DS.WMS.Core/Op/Method/SeaExportRefundService.cs index 51072a7d..b9e933aa 100644 --- a/ds-wms-service/DS.WMS.Core/Op/Method/SeaExportRefundService.cs +++ b/ds-wms-service/DS.WMS.Core/Op/Method/SeaExportRefundService.cs @@ -329,9 +329,10 @@ namespace DS.WMS.Core.Op.Method { item.OUT_BS_NO = newKey; item.STATUS = TaskStatusEnum.Cancel.ToString(); + item.STATUS_NAME = TaskStatusEnum.Cancel.EnumDescription(); } if (taskbaseList.Count > 0) - await tenantDb.Updateable(taskbaseList).UpdateColumns(x => new { x.OUT_BS_NO, x.STATUS }).ExecuteCommandAsync(); + await tenantDb.Updateable(taskbaseList).UpdateColumns(x => new { x.OUT_BS_NO, x.STATUS,x.STATUS_NAME }).ExecuteCommandAsync(); } var ids = taskbaseList.Select(x => x.Id); //任务台任务分配表 @@ -342,9 +343,10 @@ namespace DS.WMS.Core.Op.Method { item.BusinessId = newKey; item.Status = TaskStatusEnum.Cancel.ToString(); + item.StatusName = TaskStatusEnum.Cancel.EnumDescription(); } if (taskAllocationList.Count > 0) - await tenantDb.Updateable(taskAllocationList).UpdateColumns(x => new { x.BusinessId, x.Status }).ExecuteCommandAsync(); + await tenantDb.Updateable(taskAllocationList).UpdateColumns(x => new { x.BusinessId, x.Status,x.StatusName }).ExecuteCommandAsync(); } #endregion //更新原单信息 @@ -499,9 +501,10 @@ namespace DS.WMS.Core.Op.Method foreach (var item in taskbaseList) { item.STATUS = TaskStatusEnum.Pending.ToString(); + item.STATUS_NAME = TaskStatusEnum.Pending.EnumDescription(); } if (taskbaseList.Count > 0) - await tenantDb.Updateable(taskbaseList).UpdateColumns(x => new { x.STATUS }).ExecuteCommandAsync(); + await tenantDb.Updateable(taskbaseList).UpdateColumns(x => new { x.STATUS,x.STATUS_NAME }).ExecuteCommandAsync(); } var ids = taskbaseList.Select(x => x.Id); //任务台任务分配表 @@ -511,9 +514,10 @@ namespace DS.WMS.Core.Op.Method foreach (var item in taskAllocationList) { item.Status = TaskStatusEnum.Pending.ToString(); + item.StatusName = TaskStatusEnum.Pending.EnumDescription(); } if (taskAllocationList.Count > 0) - await tenantDb.Updateable(taskAllocationList).UpdateColumns(x => new { x.Status }).ExecuteCommandAsync(); + await tenantDb.Updateable(taskAllocationList).UpdateColumns(x => new { x.Status,x.StatusName }).ExecuteCommandAsync(); } await seaComService.SetGoodsStatus("YFTC", req.Id, tenantDb); @@ -609,9 +613,10 @@ namespace DS.WMS.Core.Op.Method foreach (var item in taskbaseList) { item.STATUS = TaskStatusEnum.Cancel.ToString(); + item.STATUS_NAME = TaskStatusEnum.Cancel.EnumDescription(); } if (taskbaseList.Count > 0) - await tenantDb.Updateable(taskbaseList).UpdateColumns(x => new { x.STATUS }).ExecuteCommandAsync(); + await tenantDb.Updateable(taskbaseList).UpdateColumns(x => new { x.STATUS,x.STATUS_NAME }).ExecuteCommandAsync(); } var ids = taskbaseList.Select(x => x.Id); //任务台任务分配表 @@ -621,9 +626,10 @@ namespace DS.WMS.Core.Op.Method foreach (var item in taskAllocationList) { item.Status = TaskStatusEnum.Cancel.ToString(); + item.StatusName = TaskStatusEnum.Cancel.EnumDescription(); } if (taskAllocationList.Count > 0) - await tenantDb.Updateable(taskAllocationList).UpdateColumns(x => new { x.Status }).ExecuteCommandAsync(); + await tenantDb.Updateable(taskAllocationList).UpdateColumns(x => new { x.Status,x.StatusName }).ExecuteCommandAsync(); } await seaComService.SaveSeaExportLogAsync(new SeaExportSaveLog() { @@ -656,9 +662,10 @@ namespace DS.WMS.Core.Op.Method foreach (var item in taskbaseList) { item.STATUS = TaskStatusEnum.Create.ToString(); + item.STATUS_NAME = TaskStatusEnum.Create.EnumDescription(); } if (taskbaseList.Count > 0) - await tenantDb.Updateable(taskbaseList).UpdateColumns(x => new { x.STATUS }).ExecuteCommandAsync(); + await tenantDb.Updateable(taskbaseList).UpdateColumns(x => new { x.STATUS,x.STATUS_NAME }).ExecuteCommandAsync(); } var ids = taskbaseList.Select(x=>x.Id); //任务台任务分配表 @@ -668,9 +675,10 @@ namespace DS.WMS.Core.Op.Method foreach (var item in taskAllocationList) { item.Status = TaskStatusEnum.Create.ToString(); + item.StatusName = TaskStatusEnum.Create.EnumDescription(); } if (taskAllocationList.Count > 0) - await tenantDb.Updateable(taskAllocationList).UpdateColumns(x => new { x.Status }).ExecuteCommandAsync(); + await tenantDb.Updateable(taskAllocationList).UpdateColumns(x => new { x.Status,x.StatusName }).ExecuteCommandAsync(); } await seaComService.SetGoodsStatus("TCBH", callback.BusinessId, tenantDb); }