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)
.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));

Loading…
Cancel
Save