From cc170291673472d3cda8d7ea77f6bd3a3b5dbb83 Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期一, 09 九月 2024 14:06:09 +0800 Subject: [PATCH] 增加了一些统计修改 --- CoreCms.Net.Services/Good/CoreCmsGoodsServices.cs | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/CoreCms.Net.Services/Good/CoreCmsGoodsServices.cs b/CoreCms.Net.Services/Good/CoreCmsGoodsServices.cs index 549ec6a..b8fb661 100644 --- a/CoreCms.Net.Services/Good/CoreCmsGoodsServices.cs +++ b/CoreCms.Net.Services/Good/CoreCmsGoodsServices.cs @@ -552,6 +552,9 @@ if (product == null) return null; good.skuList = await GetCoreCmsProductsView(good, products, userId, isPromotion, type, groupId); + var coutiscut = products.Where(x => x.isCustomizable == true).Count(); + if (coutiscut > 0) + good.isCustomizable = true; } else { @@ -832,8 +835,11 @@ item.price = o.distributionPrice; item.sku_name_arr = o.spesDesc.Split(",").Select(s => s.Split(":")[1]).ToList(); item.stock = o.stock; + item.cutMoney = o.cutMoney; + item.distributionCutMoney = o.distributionCutMoney; item.mktPrice = o.mktprice; item.selPrice = o.price; + item.isCustomizable = o.isCustomizable; if (type == GlobalEnumVars.OrderType.PinTuan.ToString().ToLowerInvariant()) { if (isMaxPinTuanGoodsNums) @@ -886,8 +892,11 @@ //item.price = o.price - gradePrice; //鍑忓幓浼氬憳绛夌骇浠锋牸 item.sku_name_arr = new List<string> { "榛樿" }; item.stock = o.stock; + item.cutMoney = o.cutMoney; + item.distributionCutMoney = o.distributionCutMoney; item.mktPrice = o.mktprice; item.selPrice = o.price; + item.isCustomizable = o.isCustomizable; if (type == GlobalEnumVars.OrderType.PinTuan.ToString().ToLowerInvariant()) { if (isMaxPinTuanGoodsNums) -- Gitblit v1.9.1