fix 数据过滤问题
This commit is contained in:
@@ -288,7 +288,6 @@ public class DevicePermissionService : IDevicePermissionService
|
||||
}
|
||||
|
||||
ids = ids.Distinct().ToList();
|
||||
|
||||
var factorySetting = await _factorySettingService.GetFactorySettingAsync(device.TenantId, false);
|
||||
|
||||
var page = await _dbContext.Queryable<GainfoEntity>()
|
||||
|
||||
@@ -125,7 +125,7 @@ public class FactorySettingService : IFactorySettingService
|
||||
}
|
||||
}
|
||||
|
||||
var factoryCodes = factories.Where(x => x.PCode.IsPresent()).Select(x => x.Code).ToList();
|
||||
var factoryCodes = factories.Select(x => x.Code).ToList();
|
||||
var settings = await _dbContext.Queryable<FactorySettingEntity>()
|
||||
.Where(x => factoryCodes.Contains(x.TenantId))
|
||||
.ToListAsync();
|
||||
|
||||
Reference in New Issue
Block a user