lihao 4 年之前
父节点
当前提交
84eca818dc
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5 2
      gx_api/GxPress/Repository/GxPress.Repository.Implement/GroupRepository.cs

+ 5 - 2
gx_api/GxPress/Repository/GxPress.Repository.Implement/GroupRepository.cs

@@ -441,7 +441,7 @@ namespace GxPress.Repository.Implement
         public async Task<IEnumerable<SearchGroupDetailResult>> GetAllAsync(int categoryId, int userId)
         {
             var sql = $@"SELECT 
-                             a.Id,
+                            a.Id,
                             a.Name,
                             a.AvatarUrl,
                             a.Introduce,
@@ -464,7 +464,10 @@ namespace GxPress.Repository.Implement
             if (userId > 0)
             {
                 sql = $@"SELECT 
-                                *,
+                            a.Id,
+                            a.Name,
+                            a.AvatarUrl,
+                            a.Introduce,
                                 (SELECT 
                                         COUNT(1)
                                     FROM