添加页面
This commit is contained in:
@@ -117,7 +117,7 @@ namespace NX.ERP.U8.Pmc
|
||||
}
|
||||
|
||||
|
||||
public IEnumerable<object> Inventorymom(List<string> invCodes)
|
||||
public IEnumerable<object> Inventorymom(List<string> moCodes)
|
||||
{
|
||||
string sql = $@"
|
||||
SELECT m..mocode, md.SortSeq, md.InvCode, p.cInvName, p.cInvStd,KK.cComUnitName, md.Qty, md.QualifiedInQty, ma.InvCode invcode1,
|
||||
@@ -190,12 +190,12 @@ namespace NX.ERP.U8.Pmc
|
||||
left join ComputationUnit kk WITH (nolock) on p.cComUnitCode=kk.cComunitCode
|
||||
left join ComputationUnit LL WITH (nolock) on c.cComUnitCode=LL.cComunitCode
|
||||
WHERE md.Status <> 4 AND ma.Qty - IsNull(ma.IssQty, 0) > 0
|
||||
and m..mocode in @ins
|
||||
and m..mocode in @moCodes
|
||||
order by m.mocode
|
||||
";
|
||||
using (var conn = NX.ERP.U8.U8LoginContext.Instance.Connection)
|
||||
{
|
||||
return conn.Query<object>(sql, new { ins = invCodes });
|
||||
return conn.Query<object>(sql, new { moCodes = moCodes });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user