|
@@ -429,9 +429,9 @@ public class BiSnapshotApplication : IBiSnapshotApplication, IScopeDependency
|
|
|
"secondnum" => query.Where((snapshot, order, back, visit, second) => second.Id != null || second.Id != ""),
|
|
|
_ => throw new UserFriendlyException($"入参: {dto.FieldName} 异常")
|
|
|
};
|
|
|
- return query.Select(d => new SnapshotProcessingStatisticsDetailsOutDto
|
|
|
+ return query.Select((snapshot, order, back, visit, second) => new SnapshotProcessingStatisticsDetailsOutDto
|
|
|
{
|
|
|
- OrderScreenStatus = SqlFunc.Subqueryable<OrderScreen>().Where(q => q.OrderId == d.Id).OrderByDesc(q => q.CreationTime).Select(q => q.Status),
|
|
|
+ OrderScreenStatus = SqlFunc.Subqueryable<OrderScreen>().Where(q => q.OrderId == order.Id).OrderByDesc(q => q.CreationTime).Select(q => q.Status),
|
|
|
}, true);
|
|
|
}
|
|
|
|
|
@@ -595,4 +595,6 @@ public class BiSnapshotApplication : IBiSnapshotApplication, IScopeDependency
|
|
|
#endif
|
|
|
return query;
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
}
|