|
@@ -788,7 +788,6 @@ namespace GxPress.Repository.Implement.Media
|
|
|
query.Select(nameof(Entity.tede2.Media.Media.MediaType));
|
|
|
query.Select(nameof(Entity.tede2.Media.Media.ReadCount));
|
|
|
query.Select(nameof(Entity.tede2.Media.Media.CreatedDate));
|
|
|
- query.Where(nameof(Entity.tede2.Media.Media.MediaType), GxPress.EnumConst.AllTypeConst.Book.GetHashCode());
|
|
|
if (request.MediaIds.Count() > 0)
|
|
|
query.WhereIn(nameof(Entity.tede2.Media.Media.Id), request.MediaIds);
|
|
|
if (request.AuthorId != null && request.AuthorId.Count > 0)
|
|
@@ -799,7 +798,7 @@ namespace GxPress.Repository.Implement.Media
|
|
|
query.Where(nameof(Entity.tede2.Media.Media.AddDate), ">=", request.BeginTime);
|
|
|
query.Where(nameof(Entity.tede2.Media.Media.AddDate), "<=", request.EndTime);
|
|
|
}
|
|
|
- if (request.AuthorId != null && request.Press.Count > 0)
|
|
|
+ if (request.Press != null && request.Press.Count > 0)
|
|
|
{
|
|
|
query.OrWhereIn(nameof(Entity.tede2.Media.Media.Press), request.Press);
|
|
|
}
|