From 3b4e1c967028122d4d0bfebc8e12b6c3ca4ff162 Mon Sep 17 00:00:00 2001 From: cjy Date: Tue, 19 Nov 2024 17:20:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=B7=E8=BF=90=E5=87=BA=E5=8F=A3=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E8=81=94=E7=B3=BB=E4=BA=BA=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ds-wms-service/DS.WMS.Core/Op/Dtos/SeaExportReq.cs | 2 +- .../DS.WMS.Core/Op/Method/SeaExportService.cs | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ds-wms-service/DS.WMS.Core/Op/Dtos/SeaExportReq.cs b/ds-wms-service/DS.WMS.Core/Op/Dtos/SeaExportReq.cs index 6316a86b..d075d3a6 100644 --- a/ds-wms-service/DS.WMS.Core/Op/Dtos/SeaExportReq.cs +++ b/ds-wms-service/DS.WMS.Core/Op/Dtos/SeaExportReq.cs @@ -22,7 +22,7 @@ public class SeaExportReq /// /// 订单业务联系人 /// - public List OrderContacts { get; set; } + public List OrderContactList { get; set; } /// /// /// 箱型报价信息 diff --git a/ds-wms-service/DS.WMS.Core/Op/Method/SeaExportService.cs b/ds-wms-service/DS.WMS.Core/Op/Method/SeaExportService.cs index 9b4ad09d..2aed545b 100644 --- a/ds-wms-service/DS.WMS.Core/Op/Method/SeaExportService.cs +++ b/ds-wms-service/DS.WMS.Core/Op/Method/SeaExportService.cs @@ -411,12 +411,12 @@ public partial class SeaExportService : ISeaExportService //处理订单联系人信息 2024-11-18 联系人信息改为可以直接修改,不用弹出窗体 //DealBusinessOrderContact(info, tenantDb); - if (req.OrderContacts.IsNotNull() && req.OrderContacts.Count > 0) + if (req.OrderContactList.IsNotNull() && req.OrderContactList.Count > 0) { var contacts = await tenantDb.Queryable().Where(x => x.BusinessId == req.Id).ToListAsync(); var existContacts = contacts.Select(x => x.Id); - var reqContacts = req.OrderContacts.Where(x => x.Id != 0).Select(x => x.Id); + var reqContacts = req.OrderContactList.Where(x => x.Id != 0).Select(x => x.Id); //删除 IEnumerable delContacts = existContacts.AsQueryable().Except(reqContacts); if (delContacts.Count() > 0) @@ -426,7 +426,7 @@ public partial class SeaExportService : ISeaExportService .ExecuteCommandAsync(); } - foreach (var item in req.OrderContacts) + foreach (var item in req.OrderContactList) { if (item.Id == 0) { @@ -758,9 +758,9 @@ public partial class SeaExportService : ISeaExportService //处理订单联系人信息 2024-11-18 联系人信息改为可以直接修改,不用弹出窗体 //DealBusinessOrderContact(info, tenantDb); - if (req.OrderContacts.IsNotNull() && req.OrderContacts.Count > 0) + if (req.OrderContactList.IsNotNull() && req.OrderContactList.Count > 0) { - foreach (var item in req.OrderContacts) + foreach (var item in req.OrderContactList) { var contact = item.Adapt(); contact.BusinessId = entity.Id;