fix tenant分配移除外部人员判断
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Dlhis.Entity.Basic.Entity;
|
||||
using Dlhis.Entity.Basic.Enums;
|
||||
|
||||
namespace Dlhis.Basic.Device.Services.Implements.PermissionAnalyze;
|
||||
|
||||
@@ -13,6 +14,8 @@ public class TenantPermissionAnalyzeService : BasePermissionAnalyzeService
|
||||
/// <inheritdoc />
|
||||
protected override async Task<List<string>> GetGainfoNosAsync(string assignValue)
|
||||
{
|
||||
return await DbContext.Queryable<GainfoEntity>().Where(x => x.Factory == assignValue).Select(x => x.No).ToListAsync();
|
||||
return await DbContext.Queryable<GainfoEntity>()
|
||||
.Where(x => x.Factory == assignValue && x.Type != GainfoUserTypeEnumType.External)
|
||||
.Select(x => x.No).ToListAsync();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user