From c6f32841156a50899825fb1e89e051e3a3a7f715 Mon Sep 17 00:00:00 2001 From: liguoyang Date: Fri, 10 Jan 2025 11:03:35 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=B8=B4=E6=97=B6=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E5=AE=89=E5=85=A8=E7=99=BD=E5=90=8D=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Organization/Services/Implements/GainfoService.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoService.cs b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoService.cs index f1159b25..04552c4a 100644 --- a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoService.cs +++ b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoService.cs @@ -99,7 +99,13 @@ public class GainfoService : IGainfoService _ => throw new ArgumentOutOfRangeException(request.SearchType?.ToString()) }; - where = where.And(gainfo => gainfo.Type == userType); + var userTypes = new List { userType }; + if (userType == GainfoUserTypeEnumType.Normal) + { + userTypes.Add(GainfoUserTypeEnumType.SecurityWhite); + } + + where = where.And(gainfo => userTypes.Contains(gainfo.Type)); } ISugarQueryable queryable = request.IsSearchAll