去掉不要的

This commit is contained in:
tongfei
2024-03-05 17:25:15 +08:00
parent ce7fc68ce3
commit a8cc80fb6d
3 changed files with 29 additions and 28 deletions

View File

@@ -62,26 +62,6 @@ namespace WMS.Web.Repositories
}
}
/// <summary>
/// 获取集合
/// </summary>
/// <param name="ids"></param>
/// <returns></returns>
public async Task<List<Materials>> GetEntityList(IServiceProvider serPro,int? orgId = null )
{
using (var context = serPro.GetRequiredService<RepositoryDbContext>())
{
var query = context.Materials.Where(x => 1 == 1);
if (orgId.HasValue)
query = query.Where(x => x.OrgId == orgId.Value);
var res = await query.ToListAsync();
return res.Clone();
}
}
/// <summary>
/// 获取集合
/// </summary>