This commit is contained in:
杰 朱
2021-10-20 21:20:25 +08:00
parent 0cd0b70837
commit d47cd74f95

View File

@@ -905,6 +905,8 @@ select *from tempdb..tablepzck20210526
// where.Add(" a.iQuantity - isnull(d.cqty,0) >0 and b.cVerifier is not null ");
where.Add(" mm.wfiQuantity >0 and mm.cVerifier is not null ");
if(info1 !=null)
{
if (!string.IsNullOrEmpty(info1.cCusAbbName))
{
@@ -1038,7 +1040,7 @@ select *from tempdb..tablepzck20210526
where.Add(strs);
}
}
var aa = string.Join(" and ", where.ToArray());
@@ -1049,7 +1051,9 @@ select *from tempdb..tablepzck20210526
using (var conn = NX.ERP.U8.U8LoginContext.Instance.Connection)
{
return conn.Query<object>(sql, new { cCusAbbName = $"%{info1.cCusAbbName}%", dDate = info1.dDate, dPreDate = info1.dPreDate, cSOCode = info1.cSOCode, cInvCode = $"%{info1.cInvCode}%" , cInvName = $"%{info1.cInvName}%" , cInvStd = $"%{info1.cInvStd}%" , cMemo = $"%{info1.cMemo}%", SoCodes = info1.SoCodes, info1.jandate, info1.wfiQuantity, info1.kcyl, });
try { return conn.Query<object>(sql, new { cCusAbbName = $"%{info1.cCusAbbName}%", dDate = info1.dDate, dPreDate = info1.dPreDate, cSOCode = info1.cSOCode, cInvCode = $"%{info1.cInvCode}%", cInvName = $"%{info1.cInvName}%", cInvStd = $"%{info1.cInvStd}%", cMemo = $"%{info1.cMemo}%", SoCodes = info1.SoCodes, info1.jandate, info1.wfiQuantity, info1.kcyl, }); }
catch { return null; }
}
}