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();
response.ExceptionCount = fsql.Select<Order, OrderCost>().LeftJoin((o, oc) => o.Id == oc.OrderId)
.Where((o, oc) => o.ShopId == shopId && o.StartTime >= startDate &&
o.StartTime <= endDate &&
o.StorageType != null && o.StorageType != Enums.StorageType.SD &&
(oc.PurchaseAmount == 0M ||
oc.PurchaseAmount +
oc.DeliveryExpressFreight >
o.OrderSellerPrice +
o.FreightPrice)).Count();
.Where((o, oc) => o.ShopId == shopId && o.StartTime >= startDate && o.StartTime <= endDate &&
o.OrderState != Enums.OrderState. &&
((o.StorageType != Enums.StorageType.SD && o.StorageType != null && oc.PurchaseAmount == 0M) ||
(o.StorageType != Enums.StorageType.SD && oc.PurchaseAmount + oc.DeliveryExpressFreight > o.OrderSellerPrice + o.FreightPrice) ||
(o.StorageType == null && o.OrderState != Enums.OrderState.))).Count();
return response;
}
}

Loading…
Cancel
Save