Browse Source

1

GOIAggregation
sanji 2 years ago
parent
commit
31aeab8919
  1. 8
      SiNan.Business/GOIBusiness.cs

8
SiNan.Business/GOIBusiness.cs

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

Loading…
Cancel
Save