增加货位查询

This commit is contained in:
杰 朱
2021-08-26 10:21:32 +08:00
parent 28f61225d3
commit 1282aad61a
3 changed files with 11 additions and 3 deletions

View File

@@ -57,11 +57,17 @@ from InvPositionSum as a left join Inventory as b on a.cInvCode=b.cInvCode where
where.Add(" cInvCode in @MaterialCodes ");
}
if (stock.BinCodes != null)
{
where.Add(" cPosCode in @BinCodes ");
}
return this.GetList(string.Join(" and ", where.ToArray()), new
{
MaterialCode = stock.MaterialCode,
MaterialName = $"%{stock.MaterialName}%",
stock.MaterialCodes
stock.MaterialCodes,
stock.BinCodes
}); ;