From fb5bcac2d74874ca8ba6f291fbe1d5dae7e12755 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=B7=B3?= <454313500@qq.com> Date: Tue, 26 Dec 2023 10:17:21 +0800 Subject: [PATCH] =?UTF-8?q?chore=EF=BC=9A=20=E6=9E=84=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Yi.Framework.Bbs.Application/Services/DiscussService.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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,