|
|
@ -35,8 +35,8 @@ namespace SiNan.Business |
|
|
|
.InnerJoin((ocd, o) => ocd.OrderId == o.Id) |
|
|
|
.Where((ocd, o) => skuIdList.Contains(ocd.SkuId) && |
|
|
|
ocd.IsEnabled && |
|
|
|
ocd.CreateTime >= startDate && |
|
|
|
ocd.CreateTime <= endDate && |
|
|
|
o.StartTime >= startDate && |
|
|
|
o.StartTime <= endDate && |
|
|
|
o.OrderState != Enums.OrderState.已取消) |
|
|
|
.GroupBy((ocd, o) => ocd.SkuId) |
|
|
|
.ToList(g => new |
|
|
@ -107,8 +107,8 @@ namespace SiNan.Business |
|
|
|
.InnerJoin((ocd, o) => ocd.OrderId == o.Id) |
|
|
|
.Where((ocd, o) => o.ShopId == shopId && |
|
|
|
ocd.IsEnabled && |
|
|
|
ocd.CreateTime >= startDate && |
|
|
|
ocd.CreateTime <= endDate && |
|
|
|
o.StartTime >= startDate && |
|
|
|
o.StartTime <= endDate && |
|
|
|
o.OrderState != Enums.OrderState.已取消) |
|
|
|
.ToAggregate((ocd, o) => ocd.Sum(ocd.Key.SkuGrossProfit)); |
|
|
|
|
|
|
|