身份验证
This commit is contained in:
@@ -307,13 +307,17 @@ SELECT m..mocode, md.SortSeq, md.InvCode, p.cInvName, p.cInvStd,KK.cComUnitNam
|
||||
{
|
||||
where.Add(" mmm.mocode in @moCodes");
|
||||
}
|
||||
if (info.InvCodes!= null )
|
||||
if (info.InvCodes != null)
|
||||
{
|
||||
where.Add(" mmm.InvCode in @invcode");
|
||||
}
|
||||
if (info.InvCodes1!= null )
|
||||
{
|
||||
where.Add(" mmm.invcode1 in @invcode1");
|
||||
}
|
||||
if (!info.byFinish)
|
||||
if (info.byFinish != null)
|
||||
{
|
||||
where.Add(" mmm.Status <> 4");
|
||||
where.Add(" mmm.Status in @byFinish");
|
||||
}
|
||||
if (!info.byiss)
|
||||
{
|
||||
@@ -333,7 +337,7 @@ SELECT m..mocode, md.SortSeq, md.InvCode, p.cInvName, p.cInvStd,KK.cComUnitNam
|
||||
|
||||
using (var conn = NX.ERP.U8.U8LoginContext.Instance.Connection)
|
||||
{
|
||||
return conn.Query<NX.ERP.Model.PmcInventorymomRes>(sql, new { moCodes = info.moCodes, invcode1=info.InvCodes });
|
||||
return conn.Query<NX.ERP.Model.PmcInventorymomRes>(sql, new { moCodes = info.moCodes, invcode = info.InvCodes, invcode1=info.InvCodes1, info.byFinish });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user