shanji 3 years ago
parent
commit
39eda3ede4
  1. 13
      BBWY.Server.Business/Statistics/StatisticsBusiness.cs

13
BBWY.Server.Business/Statistics/StatisticsBusiness.cs

@ -263,14 +263,11 @@ namespace BBWY.Server.Business
o.OrderState == Enums.OrderState.).Count(); o.OrderState == Enums.OrderState.).Count();
response.ExceptionCount = fsql.Select<Order, OrderCost>().LeftJoin((o, oc) => o.Id == oc.OrderId) response.ExceptionCount = fsql.Select<Order, OrderCost>().LeftJoin((o, oc) => o.Id == oc.OrderId)
.Where((o, oc) => o.ShopId == shopId && o.StartTime >= startDate && .Where((o, oc) => o.ShopId == shopId && o.StartTime >= startDate && o.StartTime <= endDate &&
o.StartTime <= endDate && o.OrderState != Enums.OrderState. &&
o.StorageType != null && o.StorageType != Enums.StorageType.SD && ((o.StorageType != Enums.StorageType.SD && o.StorageType != null && oc.PurchaseAmount == 0M) ||
(oc.PurchaseAmount == 0M || (o.StorageType != Enums.StorageType.SD && oc.PurchaseAmount + oc.DeliveryExpressFreight > o.OrderSellerPrice + o.FreightPrice) ||
oc.PurchaseAmount + (o.StorageType == null && o.OrderState != Enums.OrderState.))).Count();
oc.DeliveryExpressFreight >
o.OrderSellerPrice +
o.FreightPrice)).Count();
return response; return response;
} }
} }

Loading…
Cancel
Save