|
|
@ -205,8 +205,9 @@ namespace SiNan.Business |
|
|
|
.ToList(g => new |
|
|
|
{ |
|
|
|
Cost = g.Sum(g.Value.Cost), |
|
|
|
Sku = g.Key.Sku, |
|
|
|
BusinessType = g.Key.BusinessType |
|
|
|
Clicks = g.Sum(g.Value.Clicks), |
|
|
|
g.Key.Sku, |
|
|
|
g.Key.BusinessType |
|
|
|
}); |
|
|
|
|
|
|
|
var profits = fsql.Select<JDOrderPopularizeRelation, OrderCostDetail, Order>() |
|
|
@ -221,7 +222,7 @@ namespace SiNan.Business |
|
|
|
{ |
|
|
|
Profit = g.Sum(g.Value.Item2.SkuGrossProfit), |
|
|
|
Sku = g.Key.PopularizeSku, |
|
|
|
BusinessType = g.Key.BusinessType |
|
|
|
g.Key.BusinessType |
|
|
|
}); |
|
|
|
|
|
|
|
IList<GOIByAdSku> list = new List<GOIByAdSku>(); |
|
|
@ -233,8 +234,9 @@ namespace SiNan.Business |
|
|
|
if (kuaicheCost != null || kuaicheProfit != null) |
|
|
|
{ |
|
|
|
var cost = kuaicheCost?.Cost ?? 0M; |
|
|
|
var clicks = kuaicheCost?.Clicks ?? 0; |
|
|
|
var profit = kuaicheProfit?.Profit ?? 0M; |
|
|
|
var adskuGoi = new GOIByAdSku() { Sku = skuId, Cost = cost, Profit = profit, BusinessType = 2 }; |
|
|
|
var adskuGoi = new GOIByAdSku() { Sku = skuId, Cost = cost, Profit = profit, BusinessType = 2, Clicks = Convert.ToInt32(clicks) }; |
|
|
|
list.Add(adskuGoi); |
|
|
|
} |
|
|
|
} |
|
|
@ -245,8 +247,9 @@ namespace SiNan.Business |
|
|
|
if (zntfCost != null || zntfProfit != null) |
|
|
|
{ |
|
|
|
var cost = zntfCost?.Cost ?? 0M; |
|
|
|
var clicks = zntfCost?.Clicks ?? 0; |
|
|
|
var profit = zntfProfit?.Profit ?? 0M; |
|
|
|
var adskuGoi = new GOIByAdSku() { Sku = skuId, Cost = cost, Profit = profit, BusinessType = 134217728 }; |
|
|
|
var adskuGoi = new GOIByAdSku() { Sku = skuId, Cost = cost, Profit = profit, BusinessType = 134217728, Clicks = Convert.ToInt32(clicks) }; |
|
|
|
list.Add(adskuGoi); |
|
|
|
} |
|
|
|
} |
|
|
|