From ab26dd1b085102c637e360707f755c528df15ba1 Mon Sep 17 00:00:00 2001 From: wtp <1813748440@qq.com> Date: Wed, 8 Nov 2023 15:11:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9C=A8=E7=BA=BF=E6=95=99?= =?UTF-8?q?=E5=B8=88=E6=9F=A5=E8=AF=A2bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GDZZ.Application/Service/BaseUser/BaseUserService.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/GDZZ.Application/Service/BaseUser/BaseUserService.cs b/GDZZ.Application/Service/BaseUser/BaseUserService.cs index c90b15b..ac9fce0 100644 --- a/GDZZ.Application/Service/BaseUser/BaseUserService.cs +++ b/GDZZ.Application/Service/BaseUser/BaseUserService.cs @@ -100,7 +100,7 @@ namespace GDZZ.Application List userls = new List(); var users = await this._sysUserRep.AsQueryable().Filter("TenantId", true) .LeftJoin((u, o) => u.Id == o.UserId) - .Where((u, o) => u.AdminType == AdminType.None) + .Where((u, o) => u.AdminType == AdminType.None&&o.ConnectionId !=null) .Select((u, o) => new UserOutput { Account = u.Account, @@ -116,7 +116,8 @@ namespace GDZZ.Application Tel = u.Tel, TenantId = u.TenantId, ConnectionId = o.ConnectionId, - Profile = u.Profile + Profile = u.Profile, + }) .ToListAsync(); @@ -125,7 +126,8 @@ namespace GDZZ.Application { var userDto = user.Adapt(); userDto.SysEmpInfo = await _sysEmpService.GetEmpTSInfo(long.Parse(user.Id)); - if(!userDto.SysEmpInfo.Positions.Count.IsNullOrZero()) + + if (!userDto.SysEmpInfo.Positions.Count.IsNullOrZero()) userls.Add(userDto); }