修改
This commit is contained in:
@@ -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}%",
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace NX.ERP.WebAPi.Controllers.Store
|
||||
/// </summary>
|
||||
public class BinChangeController : ApiController
|
||||
{
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
///添加货位调整单
|
||||
@@ -24,24 +24,7 @@ namespace NX.ERP.WebAPi.Controllers.Store
|
||||
public string AddVoucher([FromBody] Model.Request.BinChange storeIn)
|
||||
{
|
||||
var dal = new NX.ERP.U8.Store.BinChangeDAL();
|
||||
return dal.AddVocher(new Model.Request.BinChange()
|
||||
{
|
||||
whCode = "2",
|
||||
binChangeDetails = new List<Model.Request.BinChangeDetail>()
|
||||
{
|
||||
new Model.Request.BinChangeDetail()
|
||||
{
|
||||
InvCode="511153",
|
||||
SoucePositon="A1Y1H002",
|
||||
DestPostion="A1Y1H003",
|
||||
Qty=1
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}); ;
|
||||
return dal.AddVocher(storeIn);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user