去掉不要的
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user