广告直通车功能 2修复活动勾选问题 3加入发货台功能完成20%
This commit is contained in:
1 parent
a6b36c64b0
commit
e2b37df00b
35 files changed
+6832
-236
No files matched your search
@@ -627,13 +627,14 @@ namespace TemuKJD.KJDForms.ShopForms.Statistics
|
||||
}
|
||||
//---------------------------------------------------------------------------------------
|
||||
//---------------------------------------------------------------------------------------
|
||||
//kjd库,获取商品进货价
|
||||
var purchasePriceList = GetPurchasePrice(subOrderInfoLstTmp.Select(o => o.productId.ParseToString()).ToList());
|
||||
foreach (var pPrice in purchasePriceList)
|
||||
{
|
||||
pPrice.dbSkuPurchasePriceList = JsonHelper.DeserializeJsonToList<TemuDBSkuPurchasePriceInfo>(pPrice.sku_purchase_price_json);
|
||||
if (pPrice.dbSkuPurchasePriceList == null)
|
||||
pPrice.dbSkuPurchasePriceList = new List<TemuDBSkuPurchasePriceInfo>();
|
||||
}
|
||||
//foreach (var pPrice in purchasePriceList)
|
||||
//{
|
||||
// pPrice.dbSkuPurchasePriceList = JsonHelper.DeserializeJsonToList<TemuDBSkuPurchasePriceInfo>(pPrice.sku_purchase_price_json);
|
||||
// if (pPrice.dbSkuPurchasePriceList == null)
|
||||
// pPrice.dbSkuPurchasePriceList = new List<TemuDBSkuPurchasePriceInfo>();
|
||||
//}
|
||||
foreach (var purchasePrice in purchasePriceList)
|
||||
{
|
||||
var order = subOrderInfoLstTmp.FirstOrDefault(o => o.productId.ParseToString() == purchasePrice.spu_id);
|
||||
@@ -874,7 +875,19 @@ namespace TemuKJD.KJDForms.ShopForms.Statistics
|
||||
if (jArr.Count() == 0)
|
||||
return list;
|
||||
|
||||
return JsonHelper.DeserializeJsonToList<TemuDBProductPurchasePriceInfo>(jArr.ToString());
|
||||
list = JsonHelper.DeserializeJsonToList<TemuDBProductPurchasePriceInfo>(jArr.ToString());
|
||||
foreach (var pPrice in list)
|
||||
{
|
||||
pPrice.dbSkuPurchasePriceList = JsonHelper.DeserializeJsonToList<TemuDBSkuPurchasePriceInfo>(pPrice.sku_purchase_price_json);
|
||||
if (pPrice.dbSkuPurchasePriceList == null)
|
||||
pPrice.dbSkuPurchasePriceList = new List<TemuDBSkuPurchasePriceInfo>();
|
||||
else
|
||||
{
|
||||
pPrice.price_text = "¥" + (pPrice.dbSkuPurchasePriceList.Min(s => s.purchasePriceValue) * 0.01).ParseToDecimal().ToString("0.00") + "~"
|
||||
+ "¥" + (pPrice.dbSkuPurchasePriceList.Max(s => s.purchasePriceValue) * 0.01).ParseToDecimal().ToString("0.00");
|
||||
}
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
private void btnSetColumn_Click(object sender, EventArgs e)
|
||||
|
||||
Reference in new issue
Block a user