|
@ -244,6 +244,35 @@ namespace SiNan.Business |
|
|
}; |
|
|
}; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public ListResponse<Product360PopularizeAnalysisCampaginRepsonse> QueryProduct360PopularizeGOI(Product360PopularizeAnalysisRequest request) |
|
|
|
|
|
{ |
|
|
|
|
|
if (request.SkuIdList == null || request.SkuIdList.Count() == 0) |
|
|
|
|
|
throw new BusinessException("缺少sku"); |
|
|
|
|
|
List<Product360PopularizeAnalysisCampaginRepsonse> list = new List<Product360PopularizeAnalysisCampaginRepsonse>(); |
|
|
|
|
|
|
|
|
|
|
|
var sourcePopularizeAdSkuList = fsql.Select<JDPopularizeAdSku>() |
|
|
|
|
|
.Where(x => x.ShopId == request.ShopId) |
|
|
|
|
|
.Where(x => x.Date >= request.StartDate && x.Date <= request.EndDate) |
|
|
|
|
|
.WhereIf(request.SkuIdList.Count() == 1, x => x.Sku == request.SkuIdList[0]) |
|
|
|
|
|
.WhereIf(request.SkuIdList.Count() > 1, x => request.SkuIdList.Contains(x.Sku)) |
|
|
|
|
|
.ToList(); |
|
|
|
|
|
|
|
|
|
|
|
var kuaicheCampaignList = sourcePopularizeAdSkuList.Where(x => x.BusinessType == 2).ToList(); |
|
|
|
|
|
var jstCampaignList = sourcePopularizeAdSkuList.Where(x => x.BusinessType == 134217728).ToList(); |
|
|
|
|
|
|
|
|
|
|
|
#region 处理快车
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
#region 处理京速推
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
return new ListResponse<Product360PopularizeAnalysisCampaginRepsonse>() |
|
|
|
|
|
{ |
|
|
|
|
|
ItemList = list, |
|
|
|
|
|
Count = list.Count |
|
|
|
|
|
}; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|