|
@ -300,6 +300,7 @@ namespace BBWY.Server.Business |
|
|
|
|
|
|
|
|
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 >= dt && |
|
|
.Where((o, oc) => o.ShopId == shopId && o.StartTime >= dt && |
|
|
|
|
|
o.IsGift == false && |
|
|
o.OrderState != Enums.OrderState.已取消 && |
|
|
o.OrderState != Enums.OrderState.已取消 && |
|
|
((o.StorageType != Enums.StorageType.SD && o.StorageType != null && oc.PurchaseAmount == 0M) || |
|
|
((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 != Enums.StorageType.SD && oc.PurchaseAmount + oc.DeliveryExpressFreight > o.OrderSellerPrice + o.FreightPrice) || |
|
|