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 0ca9d52d..32db7073 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 @@ -153,8 +153,8 @@ namespace Yi.Framework.Bbs.Application.Services Address = user.Address, Age = user.Age, CreationTime = user.CreationTime, - - Level=info.Level, + 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, Nick= user.Nick,