李昊 4 years ago
parent
commit
7aef288024

+ 2 - 1
gx_api/GxPress/Repository/GxPress.Repository.Implement/ArticleGroupUserRepository.cs

@@ -85,6 +85,7 @@ namespace GxPress.Repository.Implement
                         };
                         await _repository.InsertAsync(articleGroupUserEntity);
                     }
+                    transactionScope.Complete();
                 }
             }
             catch
@@ -127,7 +128,7 @@ namespace GxPress.Repository.Implement
                 item.ArticleGroupName = articleGroup.Name;
                 item.StyleCss = articleGroup.StyleCss;
             }
-            return listArray;
+            return listArray.Distinct();
         }
     }
 }