diff --git a/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application/Services/DiscussService.cs b/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application/Services/DiscussService.cs index 32db7073..fc620c26 100644 --- a/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application/Services/DiscussService.cs +++ b/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application/Services/DiscussService.cs @@ -144,6 +144,7 @@ namespace Yi.Framework.Bbs.Application.Services .Select((top, discuss, user, info) => new DiscussGetListOutputDto { Id = discuss.Id, + IsAgree = SqlFunc.Subqueryable().WhereIF(CurrentUser.Id != null, x => x.CreatorId == CurrentUser.Id && x.DiscussId == discuss.Id).Any(), User = new BbsUserGetListOutputDto { Id = user.Id, @@ -153,7 +154,7 @@ namespace Yi.Framework.Bbs.Application.Services Address = user.Address, Age = user.Age, CreationTime = user.CreationTime, - IsAgree = SqlFunc.Subqueryable().WhereIF(CurrentUser.Id != null, x => x.CreatorId == CurrentUser.Id && x.DiscussId == discuss.Id).Any(), + Level =info.Level, Introduction = user.Introduction, Icon= user.Icon,