|
@@ -81,7 +81,7 @@ namespace GxPress.Repository.Implement
|
|
|
}
|
|
|
public async Task<IEnumerable<ArticleGroup>> GetListAsync(int userId)
|
|
|
{
|
|
|
- string sql = $@"select * from tede_article_group where Id in(SELECT ArticleGroupId FROM tede_article_group_user where UserId={userId}) or IsSystemDefault=1";
|
|
|
+ string sql = $@"select * from tede_article_group where Id not in(SELECT ArticleGroupId FROM tede_article_group_user where UserId={userId}) or IsSystemDefault=1";
|
|
|
var databaseType = StringUtils.ToEnum<DatabaseType>(_databaseTypeStr, DatabaseType.MySql);
|
|
|
var database = new Database(databaseType, _connectionString);
|
|
|
var connection = database.GetConnection();
|