李昊 4 years ago
parent
commit
e131a68152

+ 1 - 1
gx_api/GxPress/Model/GxPress.Request/Media/MediaRequest.cs

@@ -310,7 +310,7 @@ namespace GxPress.Request.Media
         /// 作者ID
         /// </summary>
         /// <value></value>
-        public List<int> AuthorId { get; set; }
+        public List<int> TeacherId { get; set; }
         /// <summary>
         /// 开始时间
         /// </summary>

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

@@ -790,8 +790,8 @@ namespace GxPress.Repository.Implement.Media
             query.Select(nameof(Entity.tede2.Media.Media.CreatedDate));
             if (request.MediaIds.Count() > 0)
                 query.WhereIn(nameof(Entity.tede2.Media.Media.Id), request.MediaIds);
-            if (request.AuthorId != null && request.AuthorId.Count > 0)
-                query.WhereIn(nameof(Entity.tede2.Media.Media.TeacherId), request.AuthorId);
+            if (request.TeacherId != null && request.TeacherId.Count > 0)
+                query.WhereIn(nameof(Entity.tede2.Media.Media.TeacherId), request.TeacherId);
             resut.Total = await _repository.CountAsync(query);
             if (!string.IsNullOrEmpty(request.BeginTime) && !string.IsNullOrEmpty(request.EndTime))
             {