增加货位查询
This commit is contained in:
@@ -16,5 +16,7 @@ namespace NX.ERP.Model.Request
|
|||||||
|
|
||||||
|
|
||||||
public string MaterialName { get => _name; set => _name = value; }
|
public string MaterialName { get => _name; set => _name = value; }
|
||||||
|
|
||||||
|
public IEnumerable<string> BinCodes { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -57,11 +57,17 @@ from InvPositionSum as a left join Inventory as b on a.cInvCode=b.cInvCode where
|
|||||||
where.Add(" cInvCode in @MaterialCodes ");
|
where.Add(" cInvCode in @MaterialCodes ");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (stock.BinCodes != null)
|
||||||
|
{
|
||||||
|
where.Add(" cPosCode in @BinCodes ");
|
||||||
|
}
|
||||||
|
|
||||||
return this.GetList(string.Join(" and ", where.ToArray()), new
|
return this.GetList(string.Join(" and ", where.ToArray()), new
|
||||||
{
|
{
|
||||||
MaterialCode = stock.MaterialCode,
|
MaterialCode = stock.MaterialCode,
|
||||||
MaterialName = $"%{stock.MaterialName}%",
|
MaterialName = $"%{stock.MaterialName}%",
|
||||||
stock.MaterialCodes
|
stock.MaterialCodes,
|
||||||
|
stock.BinCodes
|
||||||
|
|
||||||
}); ;
|
}); ;
|
||||||
|
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
<configuration>
|
<configuration>
|
||||||
<appSettings>
|
<appSettings>
|
||||||
<add key="ApiDbName" value="MES_SUBMIT" />
|
<add key="ApiDbName" value="MES_SUBMIT" />
|
||||||
<add key="server" value="10.0.0.250" />
|
<add key="server" value="10.0.0.12" />
|
||||||
<add key="AccId" value="u8@001" />
|
<add key="AccId" value="u8-2@001" />
|
||||||
<add key="UserId" value="wx997" />
|
<add key="UserId" value="wx997" />
|
||||||
<add key="Password" value="1" />
|
<add key="Password" value="1" />
|
||||||
<add key="EaiPort" value="80" />
|
<add key="EaiPort" value="80" />
|
||||||
|
|||||||
Reference in New Issue
Block a user