lihao 4 yıl önce
ebeveyn
işleme
c615e9450b

+ 5 - 0
gx_api/GxPress/Repository/GxPress.Repository.Implement/TopicRepository.cs

@@ -495,6 +495,11 @@ namespace GxPress.Repository.Implement
                 item.AvatarUrl = StringUtils.AddDomainMin(item.AvatarUrl);
             }
             result.Total = await connection.ExecuteScalarAsync<int>(countSql);
+            //回去小组草稿数量
+            var query = Q.NewQuery();
+            query.WhereIn(nameof(Entity.Topic.Topic.GroupId), request.GroupIds);
+            query.Where(nameof(Entity.Topic.Topic.IsDraft), true);
+            result.DraftCount = await CountAsync(query);
             return result;
         }