|
@@ -865,7 +865,7 @@ public class OrderApplication : IOrderApplication, IScopeDependency
|
|
|
var query = _orderRepository.Queryable()
|
|
|
.Includes(order => order.OrderPublish)
|
|
|
.LeftJoin<User>((order, user) => order.WaitForPublisherId == user.Id)
|
|
|
- .Where((order, user) => order.CreationTime >= dto.StartTime && order.CreationTime <= dto.EndTime &&
|
|
|
+ .Where((order, user) => order.OrderPublish.CreationTime >= dto.StartTime && order.OrderPublish.CreationTime <= dto.EndTime &&
|
|
|
!string.IsNullOrEmpty(order.WaitForPublisherId))
|
|
|
// .WhereIF(dto.ProcessType != null, (order, user) => order.ProcessType == dto.ProcessType)
|
|
|
.WhereIF(dto.ProcessType != null && dto.ProcessType == EProcessType.Zhiban, (order, user) => order.FileOrgIsCenter == true)
|