|
|
@ -346,7 +346,8 @@ namespace SiNan.Business |
|
|
|
|
|
|
|
var productList = fsql.Select<Product, AggregationJDPopularizeSpu>() |
|
|
|
.InnerJoin((p, ap) => p.Id == ap.Id) |
|
|
|
.Where((p, ap) => p.State == 8) |
|
|
|
.Where((p, ap) => p.State == 8 && p.ShopId == request.ShopId) |
|
|
|
.Where((p, ap) => ap.Recent7dCost > 0 || ap.Recent30dCost > 0) |
|
|
|
.WhereIf(!string.IsNullOrEmpty(request.SpuTitle), (p, ap) => p.Title.Contains(request.SpuTitle)) |
|
|
|
.WhereIf(!string.IsNullOrEmpty(request.Spu), (p, ap) => p.Id == request.Spu) |
|
|
|
.OrderByDescending((p, ap) => p.CreateTime) |
|
|
@ -414,6 +415,7 @@ namespace SiNan.Business |
|
|
|
.InnerJoin((ps, aps) => ps.Id == aps.Id) |
|
|
|
.Where((ps, aps) => ps.State == 1) |
|
|
|
.Where((ps, aps) => ps.Id == request.Spu) |
|
|
|
.Where((ps, aps) => aps.Recent7dCost > 0 || aps.Recent30dCost > 0) |
|
|
|
.OrderByDescending((ps, aps) => ps.CreateTime) |
|
|
|
.ToList((ps, aps) => new TempProductSku() |
|
|
|
{ |
|
|
|