This commit is contained in:
gongxh
2021-10-14 09:15:14 +08:00
parent 8175d7dc0e
commit e68edc23df
2 changed files with 10 additions and 22 deletions

View File

@@ -31,10 +31,10 @@ namespace NX.ERP.U8.Mom
left join mom_SNDetail as e on b.MoDId=e.iVouchsID
left join mom_moallocate as c on b.MoDId=c.MoDId
left join Inventory as InvDetail on b.InvCode =InvDetail.cInvCode
left join Inventory as InvLocate on c.InvCode =InvLocate.cInvCode where b.Status<>'4' ";
left join Inventory as InvLocate on c.InvCode =InvLocate.cInvCode ";
if (!string.IsNullOrEmpty(strWhere))
{
strSQL += $" and {strWhere} ";
strSQL += $" where {strWhere} ";
}
var lookupDetail = new Dictionary<int, Model.MOM.MomDetail>();
var lookupOrder = new Dictionary<int, Model.MOM.MomOrder>();
@@ -124,14 +124,19 @@ namespace NX.ERP.U8.Mom
where.Add("CONVERT(BIGINT,a.Ufts) > @Pubufts ");
}
else
{
where.Add(" b.Status<>'4' ");
}
if (Params.Status != null)
if (Params.Status != null && Params.Status.Count() > 0)
{
where.Add(" b.Status in @Status ");
}
return this.GetList(string.Join(" and ", where.ToArray()), new
{
ProductCode = $"%{Params.ProductCode}%",