身份验证

This commit is contained in:
杰 朱
2021-05-22 16:38:37 +08:00
parent edae082c51
commit bc15722b6f
13 changed files with 245 additions and 28 deletions

View File

@@ -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 });
}
}