From 96e1d3074a08d43f66aaa2d30ef150fbdf41a8c4 Mon Sep 17 00:00:00 2001 From: jianghaiqing Date: Fri, 9 Aug 2024 10:31:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BF=90=E8=BE=93=E8=AE=A1?= =?UTF-8?q?=E5=88=92=E5=8F=98=E6=9B=B4=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TaskTransPlanHasChangeShowDto.cs | 2 +- .../TaskTransPlanHasChangeService.cs | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/ds-wms-service/DS.WMS.Core/TaskPlat/Dtos/TransPlanHasChange/TaskTransPlanHasChangeShowDto.cs b/ds-wms-service/DS.WMS.Core/TaskPlat/Dtos/TransPlanHasChange/TaskTransPlanHasChangeShowDto.cs index 25105fc2..e79a011b 100644 --- a/ds-wms-service/DS.WMS.Core/TaskPlat/Dtos/TransPlanHasChange/TaskTransPlanHasChangeShowDto.cs +++ b/ds-wms-service/DS.WMS.Core/TaskPlat/Dtos/TransPlanHasChange/TaskTransPlanHasChangeShowDto.cs @@ -14,7 +14,7 @@ namespace DS.WMS.Core.TaskPlat.Dtos /// /// 主任务ID /// - public string TaskPkId { get; set; } + public long TaskPkId { get; set; } /// /// 业务主键 diff --git a/ds-wms-service/DS.WMS.Core/TaskPlat/Method/TransplanHasChange/TaskTransPlanHasChangeService.cs b/ds-wms-service/DS.WMS.Core/TaskPlat/Method/TransplanHasChange/TaskTransPlanHasChangeService.cs index 3c274278..3c4c1c94 100644 --- a/ds-wms-service/DS.WMS.Core/TaskPlat/Method/TransplanHasChange/TaskTransPlanHasChangeService.cs +++ b/ds-wms-service/DS.WMS.Core/TaskPlat/Method/TransplanHasChange/TaskTransPlanHasChangeService.cs @@ -91,6 +91,19 @@ namespace DS.WMS.Core.TaskPlat.Method if (queryList.Count == 0) throw new Exception(string.Format(MultiLanguageConst.GetDescription(nameof(MultiLanguageConst.TaskBaseInfoFromTaskIdNull)), taskPKId)); + var planInfo = queryList.FirstOrDefault().Plan; + + dto.BillNo = planInfo.MBL_NO; + dto.BookingNo = planInfo.BOOKING_NO; + dto.Carrier = planInfo.CARRIER; + dto.OrigBillNo = planInfo.ORIG_MBL_NO; + dto.TaskPkId = planInfo.TASK_ID; + dto.Id = planInfo.Id; + dto.BookingId = planInfo.BOOKING_ID; + dto.ChangeReasonNotes = planInfo.CHANGE_REASON; + dto.GroupBatchNo = planInfo.GROUP_BATCH_NO; + dto.IsLast = planInfo.IS_LAST == 1 ? true : false; + var parentIdList = queryList.Select(a => a.Plan.Id).ToList(); var detailList = await tenantDb.Queryable()