增加同步物料接口
This commit is contained in:
@@ -49,7 +49,7 @@ namespace WMS.Web.Repositories.DependencyInjection
|
||||
string[] pathlist = path.Split('/');
|
||||
bool isLogin = pathlist.Where(x => x == "login" || x.ToLower() == "heart"
|
||||
|| x.ToLower() == "test" || x.ToLower() == "serialnumber" || x.ToLower() == "barcode" ||
|
||||
x.ToLower() == "swagger" || x.ToLower() == "productinventory").Any();
|
||||
x.ToLower() == "swagger" || x.ToLower() == "productinventory" || x.ToLower() == "material").Any();
|
||||
if (isLogin)
|
||||
{
|
||||
context.Response.StatusCode = 200;
|
||||
|
||||
@@ -160,5 +160,10 @@ namespace WMS.Web.Repositories
|
||||
return true;
|
||||
}
|
||||
}
|
||||
public async Task<List<Materials>> GetEntityList(List<string> materNumbers)
|
||||
{
|
||||
var entitys = await _context.Materials.Where(x => materNumbers.Contains(x.MaterialNumber)).ToListAsync();
|
||||
return entitys;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user