李昊 %!s(int64=4) %!d(string=hai) anos
pai
achega
3c6f83c828

+ 1 - 2
gx_api/GxPress/Repository/GxPress.Repository.Implement/Media/MediaRepository.cs

@@ -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);
             }