From 12f43f0d84c7dacd2041b1daa4a76ca960ffdaf0 Mon Sep 17 00:00:00 2001 From: zhangbin <460190368@qq.com> Date: Tue, 19 Nov 2024 14:23:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E6=B7=BB=E5=8A=A0=E4=BA=BA?= =?UTF-8?q?=E5=91=98=E8=BF=87=E6=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- OpenAuth.App/ServiceApp/DataAnalysisApp.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OpenAuth.App/ServiceApp/DataAnalysisApp.cs b/OpenAuth.App/ServiceApp/DataAnalysisApp.cs index ec354f4..ed2c2ca 100644 --- a/OpenAuth.App/ServiceApp/DataAnalysisApp.cs +++ b/OpenAuth.App/ServiceApp/DataAnalysisApp.cs @@ -207,6 +207,7 @@ namespace OpenAuth.App.ServiceApp .LeftJoin((a, b) => a.ReciveUserId == b.Id.ToString()) .WhereIF(beginTime.Year != 0001, a => a.CreateTime >= beginTime && a.CreateTime <= endTime) .WhereIF(groupUser.Count > 0, a => groupUser.Contains(a.ReciveUserId)) + .Where((a,b)=>!string.IsNullOrEmpty(a.ReciveUserId)) .GroupBy((a, b) => b.Name) .Select((a, b) => new UserOrGroupTaskResp { @@ -228,6 +229,7 @@ namespace OpenAuth.App.ServiceApp .LeftJoin((a, b, c) => b.GroupId == c.Id) .WhereIF(beginTime.Year != 0001, a => a.CreateTime >= beginTime && a.CreateTime <= endTime) .WhereIF(groupUser.Count > 0, a => groupUser.Contains(a.ReciveUserId)) + .Where((a, b) => !string.IsNullOrEmpty(a.ReciveUserId)) .GroupBy((a, b, c) => c.Name) .Select((a, b, c) => new UserOrGroupTaskResp {