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