fix 数据过滤问题

This commit is contained in:
2025-03-21 10:47:56 +08:00
parent e6dd90617c
commit a1b2666d0b
2 changed files with 1 additions and 2 deletions

View File

@@ -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();