From 63dff373c1ef305faa62247cfba56eec88ea06ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E7=81=B0=E7=81=B0?= Date: Sun, 3 Oct 2021 15:46:58 +0000 Subject: [PATCH] =?UTF-8?q?!137=20=E3=80=90=E4=BF=AE=E5=A4=8D=E3=80=91?= =?UTF-8?q?=E8=AE=A2=E5=8D=95=E5=8F=91=E8=B4=A7=EF=BC=8C=E5=8F=91=E8=B4=A7?= =?UTF-8?q?=E5=8D=95=E6=98=8E=E7=BB=86=E9=87=8D=E5=A4=8D=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20*=20=E3=80=90=E4=BF=AE=E5=A4=8D=E3=80=91=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E5=8F=91=E8=B4=A7=EF=BC=8C=E5=8F=91=E8=B4=A7=E5=8D=95=E6=98=8E?= =?UTF-8?q?=E7=BB=86=E9=87=8D=E5=A4=8D=E9=97=AE=E9=A2=98=20#I4CNLE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Bill/CoreCmsBillDeliveryServices.cs | 40 +++++-------------- 1 file changed, 11 insertions(+), 29 deletions(-) diff --git a/CoreCms.Net.Services/Bill/CoreCmsBillDeliveryServices.cs b/CoreCms.Net.Services/Bill/CoreCmsBillDeliveryServices.cs index 2af3a35..c79c120 100644 --- a/CoreCms.Net.Services/Bill/CoreCmsBillDeliveryServices.cs +++ b/CoreCms.Net.Services/Bill/CoreCmsBillDeliveryServices.cs @@ -165,21 +165,6 @@ namespace CoreCms.Net.Services } //构建发货单明细 - //dInfo.items.ForEach(p => - //{ - // var bdItem = new CoreCmsBillDeliveryItem(); - // bdItem.deliveryId = billDelivery.deliveryId; - // bdItem.orderId = p.orderId; - // bdItem.productId = p.productId; - // bdItem.goodsId = p.goodsId; - // bdItem.bn = p.bn; - // bdItem.sn = p.sn; - // bdItem.weight = p.weight; - // bdItem.name = p.name; - // bdItem.addon = !string.IsNullOrEmpty(p.addon) ? p.addon : ""; - // bdItem.nums = orderItem.nums; - // bdRel.Add(bdItem); - //}); var bdItem = new CoreCmsBillDeliveryItem(); bdItem.deliveryId = billDelivery.deliveryId; bdItem.productId = orderItem.productId; @@ -328,20 +313,17 @@ namespace CoreCms.Net.Services } //构建发货单明细 - dInfo.items.ForEach(p => - { - var bdItem = new CoreCmsBillDeliveryItem(); - bdItem.deliveryId = billDelivery.deliveryId; - bdItem.productId = p.productId; - bdItem.goodsId = p.goodsId; - bdItem.bn = p.bn; - bdItem.sn = p.sn; - bdItem.weight = p.weight; - bdItem.name = p.name; - bdItem.addon = !string.IsNullOrEmpty(p.addon) ? p.addon : ""; - bdItem.nums = orderItem.nums; - bdRel.Add(bdItem); - }); + var bdItem = new CoreCmsBillDeliveryItem(); + bdItem.deliveryId = billDelivery.deliveryId; + bdItem.productId = orderItem.productId; + bdItem.goodsId = orderItem.goodsId; + bdItem.bn = orderItem.bn; + bdItem.sn = orderItem.sn; + bdItem.weight = orderItem.weight; + bdItem.name = orderItem.name; + bdItem.addon = !string.IsNullOrEmpty(orderItem.addon) ? orderItem.addon : ""; + bdItem.nums = item.Value; + bdRel.Add(bdItem); } if (tNum < 1) {