|
|
@ -810,27 +810,25 @@ namespace SiNan.Business |
|
|
|
var adSkuGoi_AggregationDate_PopularizeLevel = aggregationDate_PopularizeLevelList.FirstOrDefault(x => x.Sku == adSku.Sku && x.BusinessType == adSku.BusinessType); |
|
|
|
var adSkuGoi_AggregationDate_ProductLevel = aggregationDate_ProductLevelList.FirstOrDefault(x => x.Sku == adSku.Sku && x.BusinessType == adSku.BusinessType); |
|
|
|
|
|
|
|
if (adSkuGoi_AggregationDate_PopularizeLevel != null || adSkuGoi_AggregationDate_ProductLevel != null) |
|
|
|
var adSkuDailyAggregation = new AggregationJDPopularizeAdSkuDaily() |
|
|
|
{ |
|
|
|
var adSkuDailyAggregation = new AggregationJDPopularizeAdSkuDaily() |
|
|
|
{ |
|
|
|
Id = idGenerator.NewLong(), |
|
|
|
CreateTime = DateTime.Now, |
|
|
|
Date = aggregationDate, |
|
|
|
ShopId = shopId, |
|
|
|
Cost = adSkuGoi_AggregationDate_PopularizeLevel?.Cost ?? 0M, |
|
|
|
PopularizeLevelProfit = adSkuGoi_AggregationDate_PopularizeLevel?.Profit ?? 0M, |
|
|
|
PopularizeLevelGOI = adSkuGoi_AggregationDate_PopularizeLevel?.GOI ?? 0M, |
|
|
|
ProductLevelProfit = adSkuGoi_AggregationDate_ProductLevel?.Profit ?? 0M, |
|
|
|
ProductLevelGOI = adSkuGoi_AggregationDate_ProductLevel?.GOI ?? 0M, |
|
|
|
AdGroupId = adSku.AdGroupId, |
|
|
|
CampaignId = adSku.CampaignId, |
|
|
|
BusinessType = adSku.BusinessType, |
|
|
|
SkuId = adSku.Sku, |
|
|
|
AdId = adSku.AdId |
|
|
|
}; |
|
|
|
insertAggregationAdSkuDailyList.Add(adSkuDailyAggregation); |
|
|
|
} |
|
|
|
Id = idGenerator.NewLong(), |
|
|
|
CreateTime = DateTime.Now, |
|
|
|
Date = aggregationDate, |
|
|
|
ShopId = shopId, |
|
|
|
Cost = adSkuGoi_AggregationDate_PopularizeLevel?.Cost ?? 0M, |
|
|
|
PopularizeLevelProfit = adSkuGoi_AggregationDate_PopularizeLevel?.Profit ?? 0M, |
|
|
|
PopularizeLevelGOI = adSkuGoi_AggregationDate_PopularizeLevel?.GOI ?? 0M, |
|
|
|
ProductLevelProfit = adSkuGoi_AggregationDate_ProductLevel?.Profit ?? 0M, |
|
|
|
ProductLevelGOI = adSkuGoi_AggregationDate_ProductLevel?.GOI ?? 0M, |
|
|
|
AdGroupId = adSku.AdGroupId, |
|
|
|
CampaignId = adSku.CampaignId, |
|
|
|
BusinessType = adSku.BusinessType, |
|
|
|
SkuId = adSku.Sku, |
|
|
|
AdId = adSku.AdId |
|
|
|
}; |
|
|
|
insertAggregationAdSkuDailyList.Add(adSkuDailyAggregation); |
|
|
|
|
|
|
|
#endregion
|
|
|
|
} |
|
|
|
|
|
|
|